From d2226b05a5d4c2bb4314a371fe098543c4548eaf Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 3 Aug 2021 22:44:06 +0000 Subject: [PATCH 1/2] feat!: release gapic-generator-java v2.0.0 Committer: @miraleung PiperOrigin-RevId: 388535346 Source-Link: https://github.com/googleapis/googleapis/commit/d9eaf41de44d953458b18712a3f240bb4c564e48 Source-Link: https://github.com/googleapis/googleapis-gen/commit/976c5ab6f24b58c91fe04847ead1953f99d19e6a --- .../clouddms/v1/DataMigrationServiceGrpc.java | 2286 -------------- .../v1/DataMigrationServiceClient.java | 53 +- .../v1/DataMigrationServiceSettings.java | 17 +- .../cloud/clouddms/v1/gapic_metadata.json | 0 .../cloud/clouddms/v1/package-info.java | 0 .../v1/stub/DataMigrationServiceStub.java | 0 .../DataMigrationServiceStubSettings.java | 34 +- ...pcDataMigrationServiceCallableFactory.java | 0 .../v1/stub/GrpcDataMigrationServiceStub.java | 202 +- .../v1/DataMigrationServiceClientTest.java | 0 .../clouddms/v1/MockDataMigrationService.java | 0 .../v1/MockDataMigrationServiceImpl.java | 0 .../clouddms/v1/DataMigrationServiceGrpc.java | 1710 +++++++++++ .../v1/CloudSqlConnectionProfile.java | 618 ++-- .../CloudSqlConnectionProfileOrBuilder.java | 65 +- .../cloud/clouddms/v1/CloudSqlSettings.java | 2063 +++++-------- .../v1/CloudSqlSettingsOrBuilder.java | 192 +- .../cloud/clouddms/v1/ClouddmsProto.java | 505 ++++ .../clouddms/v1/ClouddmsResourcesProto.java | 425 +++ .../cloud/clouddms/v1/ConnectionProfile.java | 1641 ++++------ .../clouddms/v1/ConnectionProfileName.java | 0 .../v1/ConnectionProfileOrBuilder.java | 149 +- .../v1/CreateConnectionProfileRequest.java | 649 ++-- ...eateConnectionProfileRequestOrBuilder.java | 73 +- .../v1/CreateMigrationJobRequest.java | 646 ++-- .../CreateMigrationJobRequestOrBuilder.java | 73 +- .../cloud/clouddms/v1/DatabaseEngine.java | 86 +- .../cloud/clouddms/v1/DatabaseProvider.java | 86 +- .../cloud/clouddms/v1/DatabaseType.java | 348 +-- .../clouddms/v1/DatabaseTypeOrBuilder.java | 30 +- .../v1/DeleteConnectionProfileRequest.java | 461 ++- ...leteConnectionProfileRequestOrBuilder.java | 47 +- .../v1/DeleteMigrationJobRequest.java | 458 ++- .../DeleteMigrationJobRequestOrBuilder.java | 47 +- .../clouddms/v1/GenerateSshScriptRequest.java | 679 ++--- .../v1/GenerateSshScriptRequestOrBuilder.java | 55 +- .../v1/GetConnectionProfileRequest.java | 342 +-- .../GetConnectionProfileRequestOrBuilder.java | 29 + .../clouddms/v1/GetMigrationJobRequest.java | 339 +-- .../v1/GetMigrationJobRequestOrBuilder.java | 29 + .../v1/ListConnectionProfilesRequest.java | 615 ++-- ...istConnectionProfilesRequestOrBuilder.java | 65 +- .../v1/ListConnectionProfilesResponse.java | 562 ++-- ...stConnectionProfilesResponseOrBuilder.java | 63 +- .../clouddms/v1/ListMigrationJobsRequest.java | 615 ++-- .../v1/ListMigrationJobsRequestOrBuilder.java | 65 +- .../v1/ListMigrationJobsResponse.java | 569 ++-- .../ListMigrationJobsResponseOrBuilder.java | 63 +- .../cloud/clouddms/v1/LocationName.java | 0 .../cloud/clouddms/v1/MigrationJob.java | 2644 ++++++----------- .../cloud/clouddms/v1/MigrationJobName.java | 0 .../clouddms/v1/MigrationJobOrBuilder.java | 245 +- .../v1/MigrationJobVerificationError.java | 685 ++--- ...igrationJobVerificationErrorOrBuilder.java | 50 +- .../clouddms/v1/MySqlConnectionProfile.java | 740 ++--- .../v1/MySqlConnectionProfileOrBuilder.java | 76 +- .../cloud/clouddms/v1/OperationMetadata.java | 842 ++---- .../v1/OperationMetadataOrBuilder.java | 91 +- .../v1/PostgreSqlConnectionProfile.java | 743 ++--- .../PostgreSqlConnectionProfileOrBuilder.java | 76 +- .../v1/PromoteMigrationJobRequest.java | 314 +- .../PromoteMigrationJobRequestOrBuilder.java | 29 + .../v1/RestartMigrationJobRequest.java | 314 +- .../RestartMigrationJobRequestOrBuilder.java | 29 + .../v1/ResumeMigrationJobRequest.java | 314 +- .../ResumeMigrationJobRequestOrBuilder.java | 29 + .../clouddms/v1/ReverseSshConnectivity.java | 505 ++-- .../v1/ReverseSshConnectivityOrBuilder.java | 48 +- .../google/cloud/clouddms/v1/SqlAclEntry.java | 639 ++-- .../clouddms/v1/SqlAclEntryOrBuilder.java | 52 +- .../google/cloud/clouddms/v1/SqlIpConfig.java | 616 ++-- .../clouddms/v1/SqlIpConfigOrBuilder.java | 61 +- .../google/cloud/clouddms/v1/SshScript.java | 294 +- .../cloud/clouddms/v1/SshScriptOrBuilder.java | 29 + .../google/cloud/clouddms/v1/SslConfig.java | 628 ++-- .../cloud/clouddms/v1/SslConfigOrBuilder.java | 67 +- .../clouddms/v1/StartMigrationJobRequest.java | 314 +- .../v1/StartMigrationJobRequestOrBuilder.java | 29 + .../clouddms/v1/StaticIpConnectivity.java | 235 +- .../v1/StaticIpConnectivityOrBuilder.java | 9 + .../clouddms/v1/StopMigrationJobRequest.java | 311 +- .../v1/StopMigrationJobRequestOrBuilder.java | 29 + .../v1/UpdateConnectionProfileRequest.java | 595 ++-- ...dateConnectionProfileRequestOrBuilder.java | 64 +- .../v1/UpdateMigrationJobRequest.java | 592 ++-- .../UpdateMigrationJobRequestOrBuilder.java | 64 +- .../v1/VerifyMigrationJobRequest.java | 314 +- .../VerifyMigrationJobRequestOrBuilder.java | 29 + .../cloud/clouddms/v1/VmCreationConfig.java | 459 ++- .../v1/VmCreationConfigOrBuilder.java | 45 +- .../cloud/clouddms/v1/VmSelectionConfig.java | 301 +- .../v1/VmSelectionConfigOrBuilder.java | 27 +- .../clouddms/v1/VpcPeeringConnectivity.java | 311 +- .../v1/VpcPeeringConnectivityOrBuilder.java | 29 + .../google/cloud/clouddms/v1/clouddms.proto | 0 .../clouddms/v1/clouddms_resources.proto | 0 .../cloud/clouddms/v1/ClouddmsProto.java | 548 ---- .../clouddms/v1/ClouddmsResourcesProto.java | 505 ---- .../GetConnectionProfileRequestOrBuilder.java | 54 - .../v1/GetMigrationJobRequestOrBuilder.java | 54 - .../PromoteMigrationJobRequestOrBuilder.java | 50 - .../RestartMigrationJobRequestOrBuilder.java | 50 - .../ResumeMigrationJobRequestOrBuilder.java | 50 - .../cloud/clouddms/v1/SshScriptOrBuilder.java | 50 - .../v1/StartMigrationJobRequestOrBuilder.java | 50 - .../v1/StaticIpConnectivityOrBuilder.java | 24 - .../v1/StopMigrationJobRequestOrBuilder.java | 50 - .../VerifyMigrationJobRequestOrBuilder.java | 50 - .../v1/VpcPeeringConnectivityOrBuilder.java | 50 - 109 files changed, 12503 insertions(+), 20053 deletions(-) delete mode 100644 grpc-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceGrpc.java rename {google-cloud-dms => owl-bot-staging/v1/google-cloud-dms}/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java (97%) rename {google-cloud-dms => owl-bot-staging/v1/google-cloud-dms}/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java (97%) rename {google-cloud-dms => owl-bot-staging/v1/google-cloud-dms}/src/main/java/com/google/cloud/clouddms/v1/gapic_metadata.json (100%) rename {google-cloud-dms => owl-bot-staging/v1/google-cloud-dms}/src/main/java/com/google/cloud/clouddms/v1/package-info.java (100%) rename {google-cloud-dms => owl-bot-staging/v1/google-cloud-dms}/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStub.java (100%) rename {google-cloud-dms => owl-bot-staging/v1/google-cloud-dms}/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java (98%) rename {google-cloud-dms => owl-bot-staging/v1/google-cloud-dms}/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceCallableFactory.java (100%) rename {google-cloud-dms => owl-bot-staging/v1/google-cloud-dms}/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceStub.java (83%) rename {google-cloud-dms => owl-bot-staging/v1/google-cloud-dms}/src/test/java/com/google/cloud/clouddms/v1/DataMigrationServiceClientTest.java (100%) rename {google-cloud-dms => owl-bot-staging/v1/google-cloud-dms}/src/test/java/com/google/cloud/clouddms/v1/MockDataMigrationService.java (100%) rename {google-cloud-dms => owl-bot-staging/v1/google-cloud-dms}/src/test/java/com/google/cloud/clouddms/v1/MockDataMigrationServiceImpl.java (100%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceGrpc.java rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfile.java (68%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfileOrBuilder.java (64%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettings.java (72%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettingsOrBuilder.java (85%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsProto.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfile.java (70%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileName.java (100%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileOrBuilder.java (83%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequest.java (67%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequestOrBuilder.java (62%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequest.java (68%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequestOrBuilder.java (64%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/DatabaseEngine.java (65%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/DatabaseProvider.java (65%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/DatabaseType.java (68%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/DatabaseTypeOrBuilder.java (63%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequest.java (69%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequestOrBuilder.java (62%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequest.java (69%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequestOrBuilder.java (62%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequest.java (72%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequestOrBuilder.java (76%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequest.java (64%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequestOrBuilder.java rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequest.java (64%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequestOrBuilder.java rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequest.java (73%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequestOrBuilder.java (74%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponse.java (74%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponseOrBuilder.java (74%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequest.java (74%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequestOrBuilder.java (75%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponse.java (74%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponseOrBuilder.java (72%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/LocationName.java (100%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/MigrationJob.java (71%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/MigrationJobName.java (100%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/MigrationJobOrBuilder.java (83%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationError.java (71%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationErrorOrBuilder.java (61%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfile.java (72%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfileOrBuilder.java (74%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/OperationMetadata.java (71%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/OperationMetadataOrBuilder.java (75%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfile.java (72%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfileOrBuilder.java (74%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequest.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequestOrBuilder.java rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequest.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequestOrBuilder.java rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequest.java (68%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequestOrBuilder.java rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivity.java (72%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivityOrBuilder.java (68%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntry.java (72%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntryOrBuilder.java (76%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfig.java (78%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfigOrBuilder.java (82%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/SshScript.java (68%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScriptOrBuilder.java rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/SslConfig.java (71%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/SslConfigOrBuilder.java (66%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequest.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequestOrBuilder.java rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivity.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivityOrBuilder.java rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequest.java (68%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequestOrBuilder.java rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequest.java (67%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequestOrBuilder.java (66%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequest.java (67%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequestOrBuilder.java (66%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequest.java (68%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequestOrBuilder.java rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfig.java (70%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfigOrBuilder.java (62%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfig.java (69%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfigOrBuilder.java (50%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivity.java (69%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivityOrBuilder.java rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/proto/google/cloud/clouddms/v1/clouddms.proto (100%) rename {proto-google-cloud-dms-v1 => owl-bot-staging/v1/proto-google-cloud-dms-v1}/src/main/proto/google/cloud/clouddms/v1/clouddms_resources.proto (100%) delete mode 100644 proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsProto.java delete mode 100644 proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java delete mode 100644 proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequestOrBuilder.java delete mode 100644 proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequestOrBuilder.java delete mode 100644 proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequestOrBuilder.java delete mode 100644 proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequestOrBuilder.java delete mode 100644 proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequestOrBuilder.java delete mode 100644 proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScriptOrBuilder.java delete mode 100644 proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequestOrBuilder.java delete mode 100644 proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivityOrBuilder.java delete mode 100644 proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequestOrBuilder.java delete mode 100644 proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequestOrBuilder.java delete mode 100644 proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivityOrBuilder.java diff --git a/grpc-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceGrpc.java b/grpc-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceGrpc.java deleted file mode 100644 index 6bc3a3c0..00000000 --- a/grpc-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceGrpc.java +++ /dev/null @@ -1,2286 +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.clouddms.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Database Migration service
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/clouddms/v1/clouddms.proto") -public final class DataMigrationServiceGrpc { - - private DataMigrationServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.clouddms.v1.DataMigrationService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.ListMigrationJobsRequest, - com.google.cloud.clouddms.v1.ListMigrationJobsResponse> - getListMigrationJobsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListMigrationJobs", - requestType = com.google.cloud.clouddms.v1.ListMigrationJobsRequest.class, - responseType = com.google.cloud.clouddms.v1.ListMigrationJobsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.ListMigrationJobsRequest, - com.google.cloud.clouddms.v1.ListMigrationJobsResponse> - getListMigrationJobsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.ListMigrationJobsRequest, - com.google.cloud.clouddms.v1.ListMigrationJobsResponse> - getListMigrationJobsMethod; - if ((getListMigrationJobsMethod = DataMigrationServiceGrpc.getListMigrationJobsMethod) - == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getListMigrationJobsMethod = DataMigrationServiceGrpc.getListMigrationJobsMethod) - == null) { - DataMigrationServiceGrpc.getListMigrationJobsMethod = - getListMigrationJobsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMigrationJobs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.ListMigrationJobsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.ListMigrationJobsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataMigrationServiceMethodDescriptorSupplier("ListMigrationJobs")) - .build(); - } - } - } - return getListMigrationJobsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.GetMigrationJobRequest, - com.google.cloud.clouddms.v1.MigrationJob> - getGetMigrationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMigrationJob", - requestType = com.google.cloud.clouddms.v1.GetMigrationJobRequest.class, - responseType = com.google.cloud.clouddms.v1.MigrationJob.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.GetMigrationJobRequest, - com.google.cloud.clouddms.v1.MigrationJob> - getGetMigrationJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.GetMigrationJobRequest, - com.google.cloud.clouddms.v1.MigrationJob> - getGetMigrationJobMethod; - if ((getGetMigrationJobMethod = DataMigrationServiceGrpc.getGetMigrationJobMethod) == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getGetMigrationJobMethod = DataMigrationServiceGrpc.getGetMigrationJobMethod) - == null) { - DataMigrationServiceGrpc.getGetMigrationJobMethod = - getGetMigrationJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMigrationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.GetMigrationJobRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance())) - .setSchemaDescriptor( - new DataMigrationServiceMethodDescriptorSupplier("GetMigrationJob")) - .build(); - } - } - } - return getGetMigrationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.CreateMigrationJobRequest, com.google.longrunning.Operation> - getCreateMigrationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateMigrationJob", - requestType = com.google.cloud.clouddms.v1.CreateMigrationJobRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.CreateMigrationJobRequest, com.google.longrunning.Operation> - getCreateMigrationJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.CreateMigrationJobRequest, - com.google.longrunning.Operation> - getCreateMigrationJobMethod; - if ((getCreateMigrationJobMethod = DataMigrationServiceGrpc.getCreateMigrationJobMethod) - == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getCreateMigrationJobMethod = DataMigrationServiceGrpc.getCreateMigrationJobMethod) - == null) { - DataMigrationServiceGrpc.getCreateMigrationJobMethod = - getCreateMigrationJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMigrationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.CreateMigrationJobRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DataMigrationServiceMethodDescriptorSupplier("CreateMigrationJob")) - .build(); - } - } - } - return getCreateMigrationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.UpdateMigrationJobRequest, com.google.longrunning.Operation> - getUpdateMigrationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateMigrationJob", - requestType = com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.UpdateMigrationJobRequest, com.google.longrunning.Operation> - getUpdateMigrationJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.UpdateMigrationJobRequest, - com.google.longrunning.Operation> - getUpdateMigrationJobMethod; - if ((getUpdateMigrationJobMethod = DataMigrationServiceGrpc.getUpdateMigrationJobMethod) - == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getUpdateMigrationJobMethod = DataMigrationServiceGrpc.getUpdateMigrationJobMethod) - == null) { - DataMigrationServiceGrpc.getUpdateMigrationJobMethod = - getUpdateMigrationJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMigrationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.UpdateMigrationJobRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DataMigrationServiceMethodDescriptorSupplier("UpdateMigrationJob")) - .build(); - } - } - } - return getUpdateMigrationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.DeleteMigrationJobRequest, com.google.longrunning.Operation> - getDeleteMigrationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteMigrationJob", - requestType = com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.DeleteMigrationJobRequest, com.google.longrunning.Operation> - getDeleteMigrationJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.DeleteMigrationJobRequest, - com.google.longrunning.Operation> - getDeleteMigrationJobMethod; - if ((getDeleteMigrationJobMethod = DataMigrationServiceGrpc.getDeleteMigrationJobMethod) - == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getDeleteMigrationJobMethod = DataMigrationServiceGrpc.getDeleteMigrationJobMethod) - == null) { - DataMigrationServiceGrpc.getDeleteMigrationJobMethod = - getDeleteMigrationJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMigrationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.DeleteMigrationJobRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DataMigrationServiceMethodDescriptorSupplier("DeleteMigrationJob")) - .build(); - } - } - } - return getDeleteMigrationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.StartMigrationJobRequest, com.google.longrunning.Operation> - getStartMigrationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartMigrationJob", - requestType = com.google.cloud.clouddms.v1.StartMigrationJobRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.StartMigrationJobRequest, com.google.longrunning.Operation> - getStartMigrationJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.StartMigrationJobRequest, com.google.longrunning.Operation> - getStartMigrationJobMethod; - if ((getStartMigrationJobMethod = DataMigrationServiceGrpc.getStartMigrationJobMethod) - == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getStartMigrationJobMethod = DataMigrationServiceGrpc.getStartMigrationJobMethod) - == null) { - DataMigrationServiceGrpc.getStartMigrationJobMethod = - getStartMigrationJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartMigrationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.StartMigrationJobRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DataMigrationServiceMethodDescriptorSupplier("StartMigrationJob")) - .build(); - } - } - } - return getStartMigrationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.StopMigrationJobRequest, com.google.longrunning.Operation> - getStopMigrationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopMigrationJob", - requestType = com.google.cloud.clouddms.v1.StopMigrationJobRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.StopMigrationJobRequest, com.google.longrunning.Operation> - getStopMigrationJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.StopMigrationJobRequest, com.google.longrunning.Operation> - getStopMigrationJobMethod; - if ((getStopMigrationJobMethod = DataMigrationServiceGrpc.getStopMigrationJobMethod) == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getStopMigrationJobMethod = DataMigrationServiceGrpc.getStopMigrationJobMethod) - == null) { - DataMigrationServiceGrpc.getStopMigrationJobMethod = - getStopMigrationJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopMigrationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.StopMigrationJobRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DataMigrationServiceMethodDescriptorSupplier("StopMigrationJob")) - .build(); - } - } - } - return getStopMigrationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.ResumeMigrationJobRequest, com.google.longrunning.Operation> - getResumeMigrationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResumeMigrationJob", - requestType = com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.ResumeMigrationJobRequest, com.google.longrunning.Operation> - getResumeMigrationJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.ResumeMigrationJobRequest, - com.google.longrunning.Operation> - getResumeMigrationJobMethod; - if ((getResumeMigrationJobMethod = DataMigrationServiceGrpc.getResumeMigrationJobMethod) - == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getResumeMigrationJobMethod = DataMigrationServiceGrpc.getResumeMigrationJobMethod) - == null) { - DataMigrationServiceGrpc.getResumeMigrationJobMethod = - getResumeMigrationJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResumeMigrationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.ResumeMigrationJobRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DataMigrationServiceMethodDescriptorSupplier("ResumeMigrationJob")) - .build(); - } - } - } - return getResumeMigrationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.PromoteMigrationJobRequest, com.google.longrunning.Operation> - getPromoteMigrationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PromoteMigrationJob", - requestType = com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.PromoteMigrationJobRequest, com.google.longrunning.Operation> - getPromoteMigrationJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.PromoteMigrationJobRequest, - com.google.longrunning.Operation> - getPromoteMigrationJobMethod; - if ((getPromoteMigrationJobMethod = DataMigrationServiceGrpc.getPromoteMigrationJobMethod) - == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getPromoteMigrationJobMethod = DataMigrationServiceGrpc.getPromoteMigrationJobMethod) - == null) { - DataMigrationServiceGrpc.getPromoteMigrationJobMethod = - getPromoteMigrationJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "PromoteMigrationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.PromoteMigrationJobRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DataMigrationServiceMethodDescriptorSupplier("PromoteMigrationJob")) - .build(); - } - } - } - return getPromoteMigrationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.VerifyMigrationJobRequest, com.google.longrunning.Operation> - getVerifyMigrationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "VerifyMigrationJob", - requestType = com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.VerifyMigrationJobRequest, com.google.longrunning.Operation> - getVerifyMigrationJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.VerifyMigrationJobRequest, - com.google.longrunning.Operation> - getVerifyMigrationJobMethod; - if ((getVerifyMigrationJobMethod = DataMigrationServiceGrpc.getVerifyMigrationJobMethod) - == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getVerifyMigrationJobMethod = DataMigrationServiceGrpc.getVerifyMigrationJobMethod) - == null) { - DataMigrationServiceGrpc.getVerifyMigrationJobMethod = - getVerifyMigrationJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerifyMigrationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.VerifyMigrationJobRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DataMigrationServiceMethodDescriptorSupplier("VerifyMigrationJob")) - .build(); - } - } - } - return getVerifyMigrationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.RestartMigrationJobRequest, com.google.longrunning.Operation> - getRestartMigrationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RestartMigrationJob", - requestType = com.google.cloud.clouddms.v1.RestartMigrationJobRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.RestartMigrationJobRequest, com.google.longrunning.Operation> - getRestartMigrationJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.RestartMigrationJobRequest, - com.google.longrunning.Operation> - getRestartMigrationJobMethod; - if ((getRestartMigrationJobMethod = DataMigrationServiceGrpc.getRestartMigrationJobMethod) - == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getRestartMigrationJobMethod = DataMigrationServiceGrpc.getRestartMigrationJobMethod) - == null) { - DataMigrationServiceGrpc.getRestartMigrationJobMethod = - getRestartMigrationJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "RestartMigrationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.RestartMigrationJobRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DataMigrationServiceMethodDescriptorSupplier("RestartMigrationJob")) - .build(); - } - } - } - return getRestartMigrationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.GenerateSshScriptRequest, - com.google.cloud.clouddms.v1.SshScript> - getGenerateSshScriptMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateSshScript", - requestType = com.google.cloud.clouddms.v1.GenerateSshScriptRequest.class, - responseType = com.google.cloud.clouddms.v1.SshScript.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.GenerateSshScriptRequest, - com.google.cloud.clouddms.v1.SshScript> - getGenerateSshScriptMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.GenerateSshScriptRequest, - com.google.cloud.clouddms.v1.SshScript> - getGenerateSshScriptMethod; - if ((getGenerateSshScriptMethod = DataMigrationServiceGrpc.getGenerateSshScriptMethod) - == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getGenerateSshScriptMethod = DataMigrationServiceGrpc.getGenerateSshScriptMethod) - == null) { - DataMigrationServiceGrpc.getGenerateSshScriptMethod = - getGenerateSshScriptMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateSshScript")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.GenerateSshScriptRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.SshScript.getDefaultInstance())) - .setSchemaDescriptor( - new DataMigrationServiceMethodDescriptorSupplier("GenerateSshScript")) - .build(); - } - } - } - return getGenerateSshScriptMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.ListConnectionProfilesRequest, - com.google.cloud.clouddms.v1.ListConnectionProfilesResponse> - getListConnectionProfilesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListConnectionProfiles", - requestType = com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.class, - responseType = com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.ListConnectionProfilesRequest, - com.google.cloud.clouddms.v1.ListConnectionProfilesResponse> - getListConnectionProfilesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.ListConnectionProfilesRequest, - com.google.cloud.clouddms.v1.ListConnectionProfilesResponse> - getListConnectionProfilesMethod; - if ((getListConnectionProfilesMethod = DataMigrationServiceGrpc.getListConnectionProfilesMethod) - == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getListConnectionProfilesMethod = - DataMigrationServiceGrpc.getListConnectionProfilesMethod) - == null) { - DataMigrationServiceGrpc.getListConnectionProfilesMethod = - getListConnectionProfilesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListConnectionProfiles")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.ListConnectionProfilesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.ListConnectionProfilesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataMigrationServiceMethodDescriptorSupplier( - "ListConnectionProfiles")) - .build(); - } - } - } - return getListConnectionProfilesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.GetConnectionProfileRequest, - com.google.cloud.clouddms.v1.ConnectionProfile> - getGetConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConnectionProfile", - requestType = com.google.cloud.clouddms.v1.GetConnectionProfileRequest.class, - responseType = com.google.cloud.clouddms.v1.ConnectionProfile.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.GetConnectionProfileRequest, - com.google.cloud.clouddms.v1.ConnectionProfile> - getGetConnectionProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.GetConnectionProfileRequest, - com.google.cloud.clouddms.v1.ConnectionProfile> - getGetConnectionProfileMethod; - if ((getGetConnectionProfileMethod = DataMigrationServiceGrpc.getGetConnectionProfileMethod) - == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getGetConnectionProfileMethod = DataMigrationServiceGrpc.getGetConnectionProfileMethod) - == null) { - DataMigrationServiceGrpc.getGetConnectionProfileMethod = - getGetConnectionProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.GetConnectionProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance())) - .setSchemaDescriptor( - new DataMigrationServiceMethodDescriptorSupplier("GetConnectionProfile")) - .build(); - } - } - } - return getGetConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.CreateConnectionProfileRequest, - com.google.longrunning.Operation> - getCreateConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateConnectionProfile", - requestType = com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.CreateConnectionProfileRequest, - com.google.longrunning.Operation> - getCreateConnectionProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.CreateConnectionProfileRequest, - com.google.longrunning.Operation> - getCreateConnectionProfileMethod; - if ((getCreateConnectionProfileMethod = - DataMigrationServiceGrpc.getCreateConnectionProfileMethod) - == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getCreateConnectionProfileMethod = - DataMigrationServiceGrpc.getCreateConnectionProfileMethod) - == null) { - DataMigrationServiceGrpc.getCreateConnectionProfileMethod = - getCreateConnectionProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.CreateConnectionProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DataMigrationServiceMethodDescriptorSupplier( - "CreateConnectionProfile")) - .build(); - } - } - } - return getCreateConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest, - com.google.longrunning.Operation> - getUpdateConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConnectionProfile", - requestType = com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest, - com.google.longrunning.Operation> - getUpdateConnectionProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest, - com.google.longrunning.Operation> - getUpdateConnectionProfileMethod; - if ((getUpdateConnectionProfileMethod = - DataMigrationServiceGrpc.getUpdateConnectionProfileMethod) - == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getUpdateConnectionProfileMethod = - DataMigrationServiceGrpc.getUpdateConnectionProfileMethod) - == null) { - DataMigrationServiceGrpc.getUpdateConnectionProfileMethod = - getUpdateConnectionProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DataMigrationServiceMethodDescriptorSupplier( - "UpdateConnectionProfile")) - .build(); - } - } - } - return getUpdateConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest, - com.google.longrunning.Operation> - getDeleteConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteConnectionProfile", - requestType = com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest, - com.google.longrunning.Operation> - getDeleteConnectionProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest, - com.google.longrunning.Operation> - getDeleteConnectionProfileMethod; - if ((getDeleteConnectionProfileMethod = - DataMigrationServiceGrpc.getDeleteConnectionProfileMethod) - == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getDeleteConnectionProfileMethod = - DataMigrationServiceGrpc.getDeleteConnectionProfileMethod) - == null) { - DataMigrationServiceGrpc.getDeleteConnectionProfileMethod = - getDeleteConnectionProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DataMigrationServiceMethodDescriptorSupplier( - "DeleteConnectionProfile")) - .build(); - } - } - } - return getDeleteConnectionProfileMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static DataMigrationServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataMigrationServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataMigrationServiceStub(channel, callOptions); - } - }; - return DataMigrationServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DataMigrationServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataMigrationServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataMigrationServiceBlockingStub(channel, callOptions); - } - }; - return DataMigrationServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static DataMigrationServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataMigrationServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataMigrationServiceFutureStub(channel, callOptions); - } - }; - return DataMigrationServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Database Migration service
-   * 
- */ - public abstract static class DataMigrationServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists migration jobs in a given project and location.
-     * 
- */ - public void listMigrationJobs( - com.google.cloud.clouddms.v1.ListMigrationJobsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListMigrationJobsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single migration job.
-     * 
- */ - public void getMigrationJob( - com.google.cloud.clouddms.v1.GetMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetMigrationJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new migration job in a given project and location.
-     * 
- */ - public void createMigrationJob( - com.google.cloud.clouddms.v1.CreateMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateMigrationJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single migration job.
-     * 
- */ - public void updateMigrationJob( - com.google.cloud.clouddms.v1.UpdateMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateMigrationJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single migration job.
-     * 
- */ - public void deleteMigrationJob( - com.google.cloud.clouddms.v1.DeleteMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteMigrationJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Start an already created migration job.
-     * 
- */ - public void startMigrationJob( - com.google.cloud.clouddms.v1.StartMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStartMigrationJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Stops a running migration job.
-     * 
- */ - public void stopMigrationJob( - com.google.cloud.clouddms.v1.StopMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStopMigrationJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Resume a migration job that is currently stopped and is resumable (was
-     * stopped during CDC phase).
-     * 
- */ - public void resumeMigrationJob( - com.google.cloud.clouddms.v1.ResumeMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getResumeMigrationJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Promote a migration job, stopping replication to the destination and
-     * promoting the destination to be a standalone database.
-     * 
- */ - public void promoteMigrationJob( - com.google.cloud.clouddms.v1.PromoteMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getPromoteMigrationJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Verify a migration job, making sure the destination can reach the source
-     * and that all configuration and prerequisites are met.
-     * 
- */ - public void verifyMigrationJob( - com.google.cloud.clouddms.v1.VerifyMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getVerifyMigrationJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Restart a stopped or failed migration job, resetting the destination
-     * instance to its original state and starting the migration process from
-     * scratch.
-     * 
- */ - public void restartMigrationJob( - com.google.cloud.clouddms.v1.RestartMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRestartMigrationJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Generate a SSH configuration script to configure the reverse SSH
-     * connectivity.
-     * 
- */ - public void generateSshScript( - com.google.cloud.clouddms.v1.GenerateSshScriptRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGenerateSshScriptMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieve a list of all connection profiles in a given project and location.
-     * 
- */ - public void listConnectionProfiles( - com.google.cloud.clouddms.v1.ListConnectionProfilesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListConnectionProfilesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single connection profile.
-     * 
- */ - public void getConnectionProfile( - com.google.cloud.clouddms.v1.GetConnectionProfileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetConnectionProfileMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new connection profile in a given project and location.
-     * 
- */ - public void createConnectionProfile( - com.google.cloud.clouddms.v1.CreateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateConnectionProfileMethod(), responseObserver); - } - - /** - * - * - *
-     * Update the configuration of a single connection profile.
-     * 
- */ - public void updateConnectionProfile( - com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateConnectionProfileMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single Database Migration Service connection profile.
-     * A connection profile can only be deleted if it is not in use by any
-     * active migration jobs.
-     * 
- */ - public void deleteConnectionProfile( - com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteConnectionProfileMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListMigrationJobsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.ListMigrationJobsRequest, - com.google.cloud.clouddms.v1.ListMigrationJobsResponse>( - this, METHODID_LIST_MIGRATION_JOBS))) - .addMethod( - getGetMigrationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.GetMigrationJobRequest, - com.google.cloud.clouddms.v1.MigrationJob>(this, METHODID_GET_MIGRATION_JOB))) - .addMethod( - getCreateMigrationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.CreateMigrationJobRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_MIGRATION_JOB))) - .addMethod( - getUpdateMigrationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.UpdateMigrationJobRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_MIGRATION_JOB))) - .addMethod( - getDeleteMigrationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.DeleteMigrationJobRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_MIGRATION_JOB))) - .addMethod( - getStartMigrationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.StartMigrationJobRequest, - com.google.longrunning.Operation>(this, METHODID_START_MIGRATION_JOB))) - .addMethod( - getStopMigrationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.StopMigrationJobRequest, - com.google.longrunning.Operation>(this, METHODID_STOP_MIGRATION_JOB))) - .addMethod( - getResumeMigrationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.ResumeMigrationJobRequest, - com.google.longrunning.Operation>(this, METHODID_RESUME_MIGRATION_JOB))) - .addMethod( - getPromoteMigrationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.PromoteMigrationJobRequest, - com.google.longrunning.Operation>(this, METHODID_PROMOTE_MIGRATION_JOB))) - .addMethod( - getVerifyMigrationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.VerifyMigrationJobRequest, - com.google.longrunning.Operation>(this, METHODID_VERIFY_MIGRATION_JOB))) - .addMethod( - getRestartMigrationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.RestartMigrationJobRequest, - com.google.longrunning.Operation>(this, METHODID_RESTART_MIGRATION_JOB))) - .addMethod( - getGenerateSshScriptMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.GenerateSshScriptRequest, - com.google.cloud.clouddms.v1.SshScript>(this, METHODID_GENERATE_SSH_SCRIPT))) - .addMethod( - getListConnectionProfilesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.ListConnectionProfilesRequest, - com.google.cloud.clouddms.v1.ListConnectionProfilesResponse>( - this, METHODID_LIST_CONNECTION_PROFILES))) - .addMethod( - getGetConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.GetConnectionProfileRequest, - com.google.cloud.clouddms.v1.ConnectionProfile>( - this, METHODID_GET_CONNECTION_PROFILE))) - .addMethod( - getCreateConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.CreateConnectionProfileRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_CONNECTION_PROFILE))) - .addMethod( - getUpdateConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_CONNECTION_PROFILE))) - .addMethod( - getDeleteConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_CONNECTION_PROFILE))) - .build(); - } - } - - /** - * - * - *
-   * Database Migration service
-   * 
- */ - public static final class DataMigrationServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private DataMigrationServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataMigrationServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataMigrationServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists migration jobs in a given project and location.
-     * 
- */ - public void listMigrationJobs( - com.google.cloud.clouddms.v1.ListMigrationJobsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMigrationJobsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single migration job.
-     * 
- */ - public void getMigrationJob( - com.google.cloud.clouddms.v1.GetMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMigrationJobMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new migration job in a given project and location.
-     * 
- */ - public void createMigrationJob( - com.google.cloud.clouddms.v1.CreateMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateMigrationJobMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single migration job.
-     * 
- */ - public void updateMigrationJob( - com.google.cloud.clouddms.v1.UpdateMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateMigrationJobMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single migration job.
-     * 
- */ - public void deleteMigrationJob( - com.google.cloud.clouddms.v1.DeleteMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteMigrationJobMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Start an already created migration job.
-     * 
- */ - public void startMigrationJob( - com.google.cloud.clouddms.v1.StartMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartMigrationJobMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Stops a running migration job.
-     * 
- */ - public void stopMigrationJob( - com.google.cloud.clouddms.v1.StopMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopMigrationJobMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Resume a migration job that is currently stopped and is resumable (was
-     * stopped during CDC phase).
-     * 
- */ - public void resumeMigrationJob( - com.google.cloud.clouddms.v1.ResumeMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResumeMigrationJobMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Promote a migration job, stopping replication to the destination and
-     * promoting the destination to be a standalone database.
-     * 
- */ - public void promoteMigrationJob( - com.google.cloud.clouddms.v1.PromoteMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPromoteMigrationJobMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Verify a migration job, making sure the destination can reach the source
-     * and that all configuration and prerequisites are met.
-     * 
- */ - public void verifyMigrationJob( - com.google.cloud.clouddms.v1.VerifyMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getVerifyMigrationJobMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Restart a stopped or failed migration job, resetting the destination
-     * instance to its original state and starting the migration process from
-     * scratch.
-     * 
- */ - public void restartMigrationJob( - com.google.cloud.clouddms.v1.RestartMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRestartMigrationJobMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Generate a SSH configuration script to configure the reverse SSH
-     * connectivity.
-     * 
- */ - public void generateSshScript( - com.google.cloud.clouddms.v1.GenerateSshScriptRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateSshScriptMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieve a list of all connection profiles in a given project and location.
-     * 
- */ - public void listConnectionProfiles( - com.google.cloud.clouddms.v1.ListConnectionProfilesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single connection profile.
-     * 
- */ - public void getConnectionProfile( - com.google.cloud.clouddms.v1.GetConnectionProfileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new connection profile in a given project and location.
-     * 
- */ - public void createConnectionProfile( - com.google.cloud.clouddms.v1.CreateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Update the configuration of a single connection profile.
-     * 
- */ - public void updateConnectionProfile( - com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single Database Migration Service connection profile.
-     * A connection profile can only be deleted if it is not in use by any
-     * active migration jobs.
-     * 
- */ - public void deleteConnectionProfile( - com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Database Migration service
-   * 
- */ - public static final class DataMigrationServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private DataMigrationServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataMigrationServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataMigrationServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists migration jobs in a given project and location.
-     * 
- */ - public com.google.cloud.clouddms.v1.ListMigrationJobsResponse listMigrationJobs( - com.google.cloud.clouddms.v1.ListMigrationJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMigrationJobsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single migration job.
-     * 
- */ - public com.google.cloud.clouddms.v1.MigrationJob getMigrationJob( - com.google.cloud.clouddms.v1.GetMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMigrationJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new migration job in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createMigrationJob( - com.google.cloud.clouddms.v1.CreateMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateMigrationJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the parameters of a single migration job.
-     * 
- */ - public com.google.longrunning.Operation updateMigrationJob( - com.google.cloud.clouddms.v1.UpdateMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateMigrationJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single migration job.
-     * 
- */ - public com.google.longrunning.Operation deleteMigrationJob( - com.google.cloud.clouddms.v1.DeleteMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteMigrationJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Start an already created migration job.
-     * 
- */ - public com.google.longrunning.Operation startMigrationJob( - com.google.cloud.clouddms.v1.StartMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartMigrationJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Stops a running migration job.
-     * 
- */ - public com.google.longrunning.Operation stopMigrationJob( - com.google.cloud.clouddms.v1.StopMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopMigrationJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Resume a migration job that is currently stopped and is resumable (was
-     * stopped during CDC phase).
-     * 
- */ - public com.google.longrunning.Operation resumeMigrationJob( - com.google.cloud.clouddms.v1.ResumeMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResumeMigrationJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Promote a migration job, stopping replication to the destination and
-     * promoting the destination to be a standalone database.
-     * 
- */ - public com.google.longrunning.Operation promoteMigrationJob( - com.google.cloud.clouddms.v1.PromoteMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPromoteMigrationJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Verify a migration job, making sure the destination can reach the source
-     * and that all configuration and prerequisites are met.
-     * 
- */ - public com.google.longrunning.Operation verifyMigrationJob( - com.google.cloud.clouddms.v1.VerifyMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getVerifyMigrationJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Restart a stopped or failed migration job, resetting the destination
-     * instance to its original state and starting the migration process from
-     * scratch.
-     * 
- */ - public com.google.longrunning.Operation restartMigrationJob( - com.google.cloud.clouddms.v1.RestartMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRestartMigrationJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Generate a SSH configuration script to configure the reverse SSH
-     * connectivity.
-     * 
- */ - public com.google.cloud.clouddms.v1.SshScript generateSshScript( - com.google.cloud.clouddms.v1.GenerateSshScriptRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateSshScriptMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieve a list of all connection profiles in a given project and location.
-     * 
- */ - public com.google.cloud.clouddms.v1.ListConnectionProfilesResponse listConnectionProfiles( - com.google.cloud.clouddms.v1.ListConnectionProfilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListConnectionProfilesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single connection profile.
-     * 
- */ - public com.google.cloud.clouddms.v1.ConnectionProfile getConnectionProfile( - com.google.cloud.clouddms.v1.GetConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConnectionProfileMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new connection profile in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createConnectionProfile( - com.google.cloud.clouddms.v1.CreateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateConnectionProfileMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update the configuration of a single connection profile.
-     * 
- */ - public com.google.longrunning.Operation updateConnectionProfile( - com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConnectionProfileMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single Database Migration Service connection profile.
-     * A connection profile can only be deleted if it is not in use by any
-     * active migration jobs.
-     * 
- */ - public com.google.longrunning.Operation deleteConnectionProfile( - com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteConnectionProfileMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Database Migration service
-   * 
- */ - public static final class DataMigrationServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private DataMigrationServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataMigrationServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataMigrationServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists migration jobs in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.clouddms.v1.ListMigrationJobsResponse> - listMigrationJobs(com.google.cloud.clouddms.v1.ListMigrationJobsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMigrationJobsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single migration job.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.clouddms.v1.MigrationJob> - getMigrationJob(com.google.cloud.clouddms.v1.GetMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMigrationJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new migration job in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createMigrationJob(com.google.cloud.clouddms.v1.CreateMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateMigrationJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the parameters of a single migration job.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateMigrationJob(com.google.cloud.clouddms.v1.UpdateMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateMigrationJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single migration job.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteMigrationJob(com.google.cloud.clouddms.v1.DeleteMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteMigrationJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Start an already created migration job.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - startMigrationJob(com.google.cloud.clouddms.v1.StartMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartMigrationJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Stops a running migration job.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - stopMigrationJob(com.google.cloud.clouddms.v1.StopMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopMigrationJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Resume a migration job that is currently stopped and is resumable (was
-     * stopped during CDC phase).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - resumeMigrationJob(com.google.cloud.clouddms.v1.ResumeMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResumeMigrationJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Promote a migration job, stopping replication to the destination and
-     * promoting the destination to be a standalone database.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - promoteMigrationJob(com.google.cloud.clouddms.v1.PromoteMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPromoteMigrationJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Verify a migration job, making sure the destination can reach the source
-     * and that all configuration and prerequisites are met.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - verifyMigrationJob(com.google.cloud.clouddms.v1.VerifyMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getVerifyMigrationJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Restart a stopped or failed migration job, resetting the destination
-     * instance to its original state and starting the migration process from
-     * scratch.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - restartMigrationJob(com.google.cloud.clouddms.v1.RestartMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRestartMigrationJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Generate a SSH configuration script to configure the reverse SSH
-     * connectivity.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.clouddms.v1.SshScript> - generateSshScript(com.google.cloud.clouddms.v1.GenerateSshScriptRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateSshScriptMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieve a list of all connection profiles in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.clouddms.v1.ListConnectionProfilesResponse> - listConnectionProfiles(com.google.cloud.clouddms.v1.ListConnectionProfilesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single connection profile.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.clouddms.v1.ConnectionProfile> - getConnectionProfile(com.google.cloud.clouddms.v1.GetConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new connection profile in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createConnectionProfile( - com.google.cloud.clouddms.v1.CreateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update the configuration of a single connection profile.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateConnectionProfile( - com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single Database Migration Service connection profile.
-     * A connection profile can only be deleted if it is not in use by any
-     * active migration jobs.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteConnectionProfile( - com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_MIGRATION_JOBS = 0; - private static final int METHODID_GET_MIGRATION_JOB = 1; - private static final int METHODID_CREATE_MIGRATION_JOB = 2; - private static final int METHODID_UPDATE_MIGRATION_JOB = 3; - private static final int METHODID_DELETE_MIGRATION_JOB = 4; - private static final int METHODID_START_MIGRATION_JOB = 5; - private static final int METHODID_STOP_MIGRATION_JOB = 6; - private static final int METHODID_RESUME_MIGRATION_JOB = 7; - private static final int METHODID_PROMOTE_MIGRATION_JOB = 8; - private static final int METHODID_VERIFY_MIGRATION_JOB = 9; - private static final int METHODID_RESTART_MIGRATION_JOB = 10; - private static final int METHODID_GENERATE_SSH_SCRIPT = 11; - private static final int METHODID_LIST_CONNECTION_PROFILES = 12; - private static final int METHODID_GET_CONNECTION_PROFILE = 13; - private static final int METHODID_CREATE_CONNECTION_PROFILE = 14; - private static final int METHODID_UPDATE_CONNECTION_PROFILE = 15; - private static final int METHODID_DELETE_CONNECTION_PROFILE = 16; - - 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 DataMigrationServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(DataMigrationServiceImplBase 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_LIST_MIGRATION_JOBS: - serviceImpl.listMigrationJobs( - (com.google.cloud.clouddms.v1.ListMigrationJobsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_MIGRATION_JOB: - serviceImpl.getMigrationJob( - (com.google.cloud.clouddms.v1.GetMigrationJobRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_MIGRATION_JOB: - serviceImpl.createMigrationJob( - (com.google.cloud.clouddms.v1.CreateMigrationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_MIGRATION_JOB: - serviceImpl.updateMigrationJob( - (com.google.cloud.clouddms.v1.UpdateMigrationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_MIGRATION_JOB: - serviceImpl.deleteMigrationJob( - (com.google.cloud.clouddms.v1.DeleteMigrationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_MIGRATION_JOB: - serviceImpl.startMigrationJob( - (com.google.cloud.clouddms.v1.StartMigrationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STOP_MIGRATION_JOB: - serviceImpl.stopMigrationJob( - (com.google.cloud.clouddms.v1.StopMigrationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESUME_MIGRATION_JOB: - serviceImpl.resumeMigrationJob( - (com.google.cloud.clouddms.v1.ResumeMigrationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PROMOTE_MIGRATION_JOB: - serviceImpl.promoteMigrationJob( - (com.google.cloud.clouddms.v1.PromoteMigrationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_VERIFY_MIGRATION_JOB: - serviceImpl.verifyMigrationJob( - (com.google.cloud.clouddms.v1.VerifyMigrationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESTART_MIGRATION_JOB: - serviceImpl.restartMigrationJob( - (com.google.cloud.clouddms.v1.RestartMigrationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GENERATE_SSH_SCRIPT: - serviceImpl.generateSshScript( - (com.google.cloud.clouddms.v1.GenerateSshScriptRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_CONNECTION_PROFILES: - serviceImpl.listConnectionProfiles( - (com.google.cloud.clouddms.v1.ListConnectionProfilesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.clouddms.v1.ListConnectionProfilesResponse>) - responseObserver); - break; - case METHODID_GET_CONNECTION_PROFILE: - serviceImpl.getConnectionProfile( - (com.google.cloud.clouddms.v1.GetConnectionProfileRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_CONNECTION_PROFILE: - serviceImpl.createConnectionProfile( - (com.google.cloud.clouddms.v1.CreateConnectionProfileRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CONNECTION_PROFILE: - serviceImpl.updateConnectionProfile( - (com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CONNECTION_PROFILE: - serviceImpl.deleteConnectionProfile( - (com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest) 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 DataMigrationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - DataMigrationServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("DataMigrationService"); - } - } - - private static final class DataMigrationServiceFileDescriptorSupplier - extends DataMigrationServiceBaseDescriptorSupplier { - DataMigrationServiceFileDescriptorSupplier() {} - } - - private static final class DataMigrationServiceMethodDescriptorSupplier - extends DataMigrationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - DataMigrationServiceMethodDescriptorSupplier(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 (DataMigrationServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DataMigrationServiceFileDescriptorSupplier()) - .addMethod(getListMigrationJobsMethod()) - .addMethod(getGetMigrationJobMethod()) - .addMethod(getCreateMigrationJobMethod()) - .addMethod(getUpdateMigrationJobMethod()) - .addMethod(getDeleteMigrationJobMethod()) - .addMethod(getStartMigrationJobMethod()) - .addMethod(getStopMigrationJobMethod()) - .addMethod(getResumeMigrationJobMethod()) - .addMethod(getPromoteMigrationJobMethod()) - .addMethod(getVerifyMigrationJobMethod()) - .addMethod(getRestartMigrationJobMethod()) - .addMethod(getGenerateSshScriptMethod()) - .addMethod(getListConnectionProfilesMethod()) - .addMethod(getGetConnectionProfileMethod()) - .addMethod(getCreateConnectionProfileMethod()) - .addMethod(getUpdateConnectionProfileMethod()) - .addMethod(getDeleteConnectionProfileMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java b/owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java similarity index 97% rename from google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java rename to owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java index fac37317..9f6db904 100644 --- a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java +++ b/owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.clouddms.v1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -63,13 +62,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -2052,10 +2051,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListMigrationJobsPagedResponse extends AbstractPagedListResponse< - ListMigrationJobsRequest, - ListMigrationJobsResponse, - MigrationJob, - ListMigrationJobsPage, + ListMigrationJobsRequest, ListMigrationJobsResponse, MigrationJob, ListMigrationJobsPage, ListMigrationJobsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2065,12 +2061,7 @@ public static ApiFuture createAsync( ListMigrationJobsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListMigrationJobsPagedResponse apply(ListMigrationJobsPage input) { - return new ListMigrationJobsPagedResponse(input); - } - }, + input -> new ListMigrationJobsPagedResponse(input), MoreExecutors.directExecutor()); } @@ -2081,9 +2072,7 @@ private ListMigrationJobsPagedResponse(ListMigrationJobsPage page) { public static class ListMigrationJobsPage extends AbstractPage< - ListMigrationJobsRequest, - ListMigrationJobsResponse, - MigrationJob, + ListMigrationJobsRequest, ListMigrationJobsResponse, MigrationJob, ListMigrationJobsPage> { private ListMigrationJobsPage( @@ -2113,10 +2102,7 @@ public ApiFuture createPageAsync( public static class ListMigrationJobsFixedSizeCollection extends AbstractFixedSizeCollection< - ListMigrationJobsRequest, - ListMigrationJobsResponse, - MigrationJob, - ListMigrationJobsPage, + ListMigrationJobsRequest, ListMigrationJobsResponse, MigrationJob, ListMigrationJobsPage, ListMigrationJobsFixedSizeCollection> { private ListMigrationJobsFixedSizeCollection( @@ -2137,11 +2123,8 @@ protected ListMigrationJobsFixedSizeCollection createCollection( public static class ListConnectionProfilesPagedResponse extends AbstractPagedListResponse< - ListConnectionProfilesRequest, - ListConnectionProfilesResponse, - ConnectionProfile, - ListConnectionProfilesPage, - ListConnectionProfilesFixedSizeCollection> { + ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile, + ListConnectionProfilesPage, ListConnectionProfilesFixedSizeCollection> { public static ApiFuture createAsync( PageContext< @@ -2152,12 +2135,7 @@ public static ApiFuture createAsync( ListConnectionProfilesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListConnectionProfilesPagedResponse apply(ListConnectionProfilesPage input) { - return new ListConnectionProfilesPagedResponse(input); - } - }, + input -> new ListConnectionProfilesPagedResponse(input), MoreExecutors.directExecutor()); } @@ -2168,9 +2146,7 @@ private ListConnectionProfilesPagedResponse(ListConnectionProfilesPage page) { public static class ListConnectionProfilesPage extends AbstractPage< - ListConnectionProfilesRequest, - ListConnectionProfilesResponse, - ConnectionProfile, + ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile, ListConnectionProfilesPage> { private ListConnectionProfilesPage( @@ -2206,11 +2182,8 @@ public ApiFuture createPageAsync( public static class ListConnectionProfilesFixedSizeCollection extends AbstractFixedSizeCollection< - ListConnectionProfilesRequest, - ListConnectionProfilesResponse, - ConnectionProfile, - ListConnectionProfilesPage, - ListConnectionProfilesFixedSizeCollection> { + ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile, + ListConnectionProfilesPage, ListConnectionProfilesFixedSizeCollection> { private ListConnectionProfilesFixedSizeCollection( List pages, int collectionSize) { diff --git a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java b/owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java similarity index 97% rename from google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java rename to owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java index 96da8a95..ee628a98 100644 --- a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java +++ b/owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; 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.clouddms.v1.stub.DataMigrationServiceStubSettings; @@ -45,9 +46,10 @@ *

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

    - *
  • The default service address (datamigration.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (datamigration.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -201,8 +203,7 @@ public UnaryCallSettings generateSshScriptS /** Returns the object with the settings used for calls to listConnectionProfiles. */ public PagedCallSettings< - ListConnectionProfilesRequest, - ListConnectionProfilesResponse, + ListConnectionProfilesRequest, ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> listConnectionProfilesSettings() { return ((DataMigrationServiceStubSettings) getStubSettings()).listConnectionProfilesSettings(); @@ -339,14 +340,13 @@ public DataMigrationServiceStubSettings.Builder getStubSettingsBuilder() { return ((DataMigrationServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; @@ -483,8 +483,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listConnectionProfiles. */ public PagedCallSettings.Builder< - ListConnectionProfilesRequest, - ListConnectionProfilesResponse, + ListConnectionProfilesRequest, ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> listConnectionProfilesSettings() { return getStubSettingsBuilder().listConnectionProfilesSettings(); diff --git a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/gapic_metadata.json similarity index 100% rename from google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/gapic_metadata.json diff --git a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/package-info.java b/owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/package-info.java similarity index 100% rename from google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/package-info.java diff --git a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStub.java b/owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStub.java similarity index 100% rename from google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStub.java rename to owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStub.java diff --git a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java similarity index 98% rename from google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java index 2316de63..5388aa17 100644 --- a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java @@ -86,9 +86,10 @@ *

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

    - *
  • The default service address (datamigration.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (datamigration.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -154,8 +155,7 @@ public class DataMigrationServiceStubSettings restartMigrationJobOperationSettings; private final UnaryCallSettings generateSshScriptSettings; private final PagedCallSettings< - ListConnectionProfilesRequest, - ListConnectionProfilesResponse, + ListConnectionProfilesRequest, ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> listConnectionProfilesSettings; private final UnaryCallSettings @@ -262,8 +262,7 @@ public Iterable extractResources( ListMigrationJobsRequest, ListMigrationJobsResponse, ListMigrationJobsPagedResponse> LIST_MIGRATION_JOBS_PAGE_STR_FACT = new PagedListResponseFactory< - ListMigrationJobsRequest, - ListMigrationJobsResponse, + ListMigrationJobsRequest, ListMigrationJobsResponse, ListMigrationJobsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -280,13 +279,11 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListConnectionProfilesRequest, - ListConnectionProfilesResponse, + ListConnectionProfilesRequest, ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> LIST_CONNECTION_PROFILES_PAGE_STR_FACT = new PagedListResponseFactory< - ListConnectionProfilesRequest, - ListConnectionProfilesResponse, + ListConnectionProfilesRequest, ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -296,8 +293,7 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListConnectionProfilesRequest, - ListConnectionProfilesResponse, + ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile> pageContext = PageContext.create( @@ -424,8 +420,7 @@ public UnaryCallSettings generateSshScriptS /** Returns the object with the settings used for calls to listConnectionProfiles. */ public PagedCallSettings< - ListConnectionProfilesRequest, - ListConnectionProfilesResponse, + ListConnectionProfilesRequest, ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> listConnectionProfilesSettings() { return listConnectionProfilesSettings; @@ -645,8 +640,7 @@ public static class Builder private final UnaryCallSettings.Builder generateSshScriptSettings; private final PagedCallSettings.Builder< - ListConnectionProfilesRequest, - ListConnectionProfilesResponse, + ListConnectionProfilesRequest, ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> listConnectionProfilesSettings; private final UnaryCallSettings.Builder @@ -1207,14 +1201,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } @@ -1372,8 +1365,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listConnectionProfiles. */ public PagedCallSettings.Builder< - ListConnectionProfilesRequest, - ListConnectionProfilesResponse, + ListConnectionProfilesRequest, ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> listConnectionProfilesSettings() { return listConnectionProfilesSettings; diff --git a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceCallableFactory.java similarity index 100% rename from google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceCallableFactory.java diff --git a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceStub.java b/owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceStub.java similarity index 83% rename from google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceStub.java rename to owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceStub.java index 1067e719..a2bdf4c2 100644 --- a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceStub.java +++ b/owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceStub.java @@ -25,7 +25,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.clouddms.v1.ConnectionProfile; import com.google.cloud.clouddms.v1.CreateConnectionProfileRequest; @@ -353,157 +352,121 @@ protected GrpcDataMigrationServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(listMigrationJobsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListMigrationJobsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getMigrationJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getMigrationJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetMigrationJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings createMigrationJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createMigrationJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateMigrationJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings updateMigrationJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateMigrationJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateMigrationJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "migration_job.name", String.valueOf(request.getMigrationJob().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "migration_job.name", String.valueOf(request.getMigrationJob().getName())); + return params.build(); }) .build(); GrpcCallSettings deleteMigrationJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteMigrationJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteMigrationJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings startMigrationJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(startMigrationJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(StartMigrationJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings stopMigrationJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(stopMigrationJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(StopMigrationJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings resumeMigrationJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(resumeMigrationJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ResumeMigrationJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings promoteMigrationJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(promoteMigrationJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(PromoteMigrationJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings verifyMigrationJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(verifyMigrationJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(VerifyMigrationJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings restartMigrationJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(restartMigrationJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(RestartMigrationJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings generateSshScriptTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(generateSshScriptMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GenerateSshScriptRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("migration_job", String.valueOf(request.getMigrationJob())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("migration_job", String.valueOf(request.getMigrationJob())); + return params.build(); }) .build(); GrpcCallSettings @@ -512,13 +475,10 @@ public Map extract(GenerateSshScriptRequest request) { .newBuilder() .setMethodDescriptor(listConnectionProfilesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListConnectionProfilesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -526,13 +486,10 @@ public Map extract(ListConnectionProfilesRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(getConnectionProfileMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetConnectionProfileRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -540,13 +497,10 @@ public Map extract(GetConnectionProfileRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(createConnectionProfileMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateConnectionProfileRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -554,15 +508,12 @@ public Map extract(CreateConnectionProfileRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(updateConnectionProfileMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateConnectionProfileRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "connection_profile.name", - String.valueOf(request.getConnectionProfile().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "connection_profile.name", + String.valueOf(request.getConnectionProfile().getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -570,13 +521,10 @@ public Map extract(UpdateConnectionProfileRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteConnectionProfileMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteConnectionProfileRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); @@ -929,7 +877,13 @@ public UnaryCallable generateSshScriptCalla @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/DataMigrationServiceClientTest.java b/owl-bot-staging/v1/google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/DataMigrationServiceClientTest.java similarity index 100% rename from google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/DataMigrationServiceClientTest.java rename to owl-bot-staging/v1/google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/DataMigrationServiceClientTest.java diff --git a/google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/MockDataMigrationService.java b/owl-bot-staging/v1/google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/MockDataMigrationService.java similarity index 100% rename from google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/MockDataMigrationService.java rename to owl-bot-staging/v1/google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/MockDataMigrationService.java diff --git a/google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/MockDataMigrationServiceImpl.java b/owl-bot-staging/v1/google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/MockDataMigrationServiceImpl.java similarity index 100% rename from google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/MockDataMigrationServiceImpl.java rename to owl-bot-staging/v1/google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/MockDataMigrationServiceImpl.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceGrpc.java new file mode 100644 index 00000000..564f79f6 --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceGrpc.java @@ -0,0 +1,1710 @@ +package com.google.cloud.clouddms.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Database Migration service
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/clouddms/v1/clouddms.proto") +public final class DataMigrationServiceGrpc { + + private DataMigrationServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.clouddms.v1.DataMigrationService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListMigrationJobsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMigrationJobs", + requestType = com.google.cloud.clouddms.v1.ListMigrationJobsRequest.class, + responseType = com.google.cloud.clouddms.v1.ListMigrationJobsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListMigrationJobsMethod() { + io.grpc.MethodDescriptor getListMigrationJobsMethod; + if ((getListMigrationJobsMethod = DataMigrationServiceGrpc.getListMigrationJobsMethod) == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getListMigrationJobsMethod = DataMigrationServiceGrpc.getListMigrationJobsMethod) == null) { + DataMigrationServiceGrpc.getListMigrationJobsMethod = getListMigrationJobsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMigrationJobs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.ListMigrationJobsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.ListMigrationJobsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("ListMigrationJobs")) + .build(); + } + } + } + return getListMigrationJobsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetMigrationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMigrationJob", + requestType = com.google.cloud.clouddms.v1.GetMigrationJobRequest.class, + responseType = com.google.cloud.clouddms.v1.MigrationJob.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetMigrationJobMethod() { + io.grpc.MethodDescriptor getGetMigrationJobMethod; + if ((getGetMigrationJobMethod = DataMigrationServiceGrpc.getGetMigrationJobMethod) == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getGetMigrationJobMethod = DataMigrationServiceGrpc.getGetMigrationJobMethod) == null) { + DataMigrationServiceGrpc.getGetMigrationJobMethod = getGetMigrationJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMigrationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.GetMigrationJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance())) + .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("GetMigrationJob")) + .build(); + } + } + } + return getGetMigrationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateMigrationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMigrationJob", + requestType = com.google.cloud.clouddms.v1.CreateMigrationJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateMigrationJobMethod() { + io.grpc.MethodDescriptor getCreateMigrationJobMethod; + if ((getCreateMigrationJobMethod = DataMigrationServiceGrpc.getCreateMigrationJobMethod) == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getCreateMigrationJobMethod = DataMigrationServiceGrpc.getCreateMigrationJobMethod) == null) { + DataMigrationServiceGrpc.getCreateMigrationJobMethod = getCreateMigrationJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMigrationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.CreateMigrationJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("CreateMigrationJob")) + .build(); + } + } + } + return getCreateMigrationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateMigrationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMigrationJob", + requestType = com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateMigrationJobMethod() { + io.grpc.MethodDescriptor getUpdateMigrationJobMethod; + if ((getUpdateMigrationJobMethod = DataMigrationServiceGrpc.getUpdateMigrationJobMethod) == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getUpdateMigrationJobMethod = DataMigrationServiceGrpc.getUpdateMigrationJobMethod) == null) { + DataMigrationServiceGrpc.getUpdateMigrationJobMethod = getUpdateMigrationJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMigrationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("UpdateMigrationJob")) + .build(); + } + } + } + return getUpdateMigrationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteMigrationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMigrationJob", + requestType = com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteMigrationJobMethod() { + io.grpc.MethodDescriptor getDeleteMigrationJobMethod; + if ((getDeleteMigrationJobMethod = DataMigrationServiceGrpc.getDeleteMigrationJobMethod) == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getDeleteMigrationJobMethod = DataMigrationServiceGrpc.getDeleteMigrationJobMethod) == null) { + DataMigrationServiceGrpc.getDeleteMigrationJobMethod = getDeleteMigrationJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMigrationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("DeleteMigrationJob")) + .build(); + } + } + } + return getDeleteMigrationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getStartMigrationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartMigrationJob", + requestType = com.google.cloud.clouddms.v1.StartMigrationJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStartMigrationJobMethod() { + io.grpc.MethodDescriptor getStartMigrationJobMethod; + if ((getStartMigrationJobMethod = DataMigrationServiceGrpc.getStartMigrationJobMethod) == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getStartMigrationJobMethod = DataMigrationServiceGrpc.getStartMigrationJobMethod) == null) { + DataMigrationServiceGrpc.getStartMigrationJobMethod = getStartMigrationJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartMigrationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.StartMigrationJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("StartMigrationJob")) + .build(); + } + } + } + return getStartMigrationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getStopMigrationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopMigrationJob", + requestType = com.google.cloud.clouddms.v1.StopMigrationJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStopMigrationJobMethod() { + io.grpc.MethodDescriptor getStopMigrationJobMethod; + if ((getStopMigrationJobMethod = DataMigrationServiceGrpc.getStopMigrationJobMethod) == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getStopMigrationJobMethod = DataMigrationServiceGrpc.getStopMigrationJobMethod) == null) { + DataMigrationServiceGrpc.getStopMigrationJobMethod = getStopMigrationJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopMigrationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.StopMigrationJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("StopMigrationJob")) + .build(); + } + } + } + return getStopMigrationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getResumeMigrationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ResumeMigrationJob", + requestType = com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getResumeMigrationJobMethod() { + io.grpc.MethodDescriptor getResumeMigrationJobMethod; + if ((getResumeMigrationJobMethod = DataMigrationServiceGrpc.getResumeMigrationJobMethod) == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getResumeMigrationJobMethod = DataMigrationServiceGrpc.getResumeMigrationJobMethod) == null) { + DataMigrationServiceGrpc.getResumeMigrationJobMethod = getResumeMigrationJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResumeMigrationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("ResumeMigrationJob")) + .build(); + } + } + } + return getResumeMigrationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getPromoteMigrationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PromoteMigrationJob", + requestType = com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getPromoteMigrationJobMethod() { + io.grpc.MethodDescriptor getPromoteMigrationJobMethod; + if ((getPromoteMigrationJobMethod = DataMigrationServiceGrpc.getPromoteMigrationJobMethod) == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getPromoteMigrationJobMethod = DataMigrationServiceGrpc.getPromoteMigrationJobMethod) == null) { + DataMigrationServiceGrpc.getPromoteMigrationJobMethod = getPromoteMigrationJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PromoteMigrationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("PromoteMigrationJob")) + .build(); + } + } + } + return getPromoteMigrationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getVerifyMigrationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "VerifyMigrationJob", + requestType = com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getVerifyMigrationJobMethod() { + io.grpc.MethodDescriptor getVerifyMigrationJobMethod; + if ((getVerifyMigrationJobMethod = DataMigrationServiceGrpc.getVerifyMigrationJobMethod) == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getVerifyMigrationJobMethod = DataMigrationServiceGrpc.getVerifyMigrationJobMethod) == null) { + DataMigrationServiceGrpc.getVerifyMigrationJobMethod = getVerifyMigrationJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerifyMigrationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("VerifyMigrationJob")) + .build(); + } + } + } + return getVerifyMigrationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getRestartMigrationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RestartMigrationJob", + requestType = com.google.cloud.clouddms.v1.RestartMigrationJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRestartMigrationJobMethod() { + io.grpc.MethodDescriptor getRestartMigrationJobMethod; + if ((getRestartMigrationJobMethod = DataMigrationServiceGrpc.getRestartMigrationJobMethod) == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getRestartMigrationJobMethod = DataMigrationServiceGrpc.getRestartMigrationJobMethod) == null) { + DataMigrationServiceGrpc.getRestartMigrationJobMethod = getRestartMigrationJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestartMigrationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.RestartMigrationJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("RestartMigrationJob")) + .build(); + } + } + } + return getRestartMigrationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getGenerateSshScriptMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateSshScript", + requestType = com.google.cloud.clouddms.v1.GenerateSshScriptRequest.class, + responseType = com.google.cloud.clouddms.v1.SshScript.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGenerateSshScriptMethod() { + io.grpc.MethodDescriptor getGenerateSshScriptMethod; + if ((getGenerateSshScriptMethod = DataMigrationServiceGrpc.getGenerateSshScriptMethod) == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getGenerateSshScriptMethod = DataMigrationServiceGrpc.getGenerateSshScriptMethod) == null) { + DataMigrationServiceGrpc.getGenerateSshScriptMethod = getGenerateSshScriptMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateSshScript")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.GenerateSshScriptRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.SshScript.getDefaultInstance())) + .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("GenerateSshScript")) + .build(); + } + } + } + return getGenerateSshScriptMethod; + } + + private static volatile io.grpc.MethodDescriptor getListConnectionProfilesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConnectionProfiles", + requestType = com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.class, + responseType = com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListConnectionProfilesMethod() { + io.grpc.MethodDescriptor getListConnectionProfilesMethod; + if ((getListConnectionProfilesMethod = DataMigrationServiceGrpc.getListConnectionProfilesMethod) == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getListConnectionProfilesMethod = DataMigrationServiceGrpc.getListConnectionProfilesMethod) == null) { + DataMigrationServiceGrpc.getListConnectionProfilesMethod = getListConnectionProfilesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnectionProfiles")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.getDefaultInstance())) + .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("ListConnectionProfiles")) + .build(); + } + } + } + return getListConnectionProfilesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConnectionProfile", + requestType = com.google.cloud.clouddms.v1.GetConnectionProfileRequest.class, + responseType = com.google.cloud.clouddms.v1.ConnectionProfile.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetConnectionProfileMethod() { + io.grpc.MethodDescriptor getGetConnectionProfileMethod; + if ((getGetConnectionProfileMethod = DataMigrationServiceGrpc.getGetConnectionProfileMethod) == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getGetConnectionProfileMethod = DataMigrationServiceGrpc.getGetConnectionProfileMethod) == null) { + DataMigrationServiceGrpc.getGetConnectionProfileMethod = getGetConnectionProfileMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.GetConnectionProfileRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance())) + .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("GetConnectionProfile")) + .build(); + } + } + } + return getGetConnectionProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConnectionProfile", + requestType = com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateConnectionProfileMethod() { + io.grpc.MethodDescriptor getCreateConnectionProfileMethod; + if ((getCreateConnectionProfileMethod = DataMigrationServiceGrpc.getCreateConnectionProfileMethod) == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getCreateConnectionProfileMethod = DataMigrationServiceGrpc.getCreateConnectionProfileMethod) == null) { + DataMigrationServiceGrpc.getCreateConnectionProfileMethod = getCreateConnectionProfileMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("CreateConnectionProfile")) + .build(); + } + } + } + return getCreateConnectionProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConnectionProfile", + requestType = com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateConnectionProfileMethod() { + io.grpc.MethodDescriptor getUpdateConnectionProfileMethod; + if ((getUpdateConnectionProfileMethod = DataMigrationServiceGrpc.getUpdateConnectionProfileMethod) == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getUpdateConnectionProfileMethod = DataMigrationServiceGrpc.getUpdateConnectionProfileMethod) == null) { + DataMigrationServiceGrpc.getUpdateConnectionProfileMethod = getUpdateConnectionProfileMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("UpdateConnectionProfile")) + .build(); + } + } + } + return getUpdateConnectionProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConnectionProfile", + requestType = com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteConnectionProfileMethod() { + io.grpc.MethodDescriptor getDeleteConnectionProfileMethod; + if ((getDeleteConnectionProfileMethod = DataMigrationServiceGrpc.getDeleteConnectionProfileMethod) == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getDeleteConnectionProfileMethod = DataMigrationServiceGrpc.getDeleteConnectionProfileMethod) == null) { + DataMigrationServiceGrpc.getDeleteConnectionProfileMethod = getDeleteConnectionProfileMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("DeleteConnectionProfile")) + .build(); + } + } + } + return getDeleteConnectionProfileMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static DataMigrationServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataMigrationServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataMigrationServiceStub(channel, callOptions); + } + }; + return DataMigrationServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DataMigrationServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataMigrationServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataMigrationServiceBlockingStub(channel, callOptions); + } + }; + return DataMigrationServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static DataMigrationServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataMigrationServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataMigrationServiceFutureStub(channel, callOptions); + } + }; + return DataMigrationServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Database Migration service
+   * 
+ */ + public static abstract class DataMigrationServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists migration jobs in a given project and location.
+     * 
+ */ + public void listMigrationJobs(com.google.cloud.clouddms.v1.ListMigrationJobsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMigrationJobsMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single migration job.
+     * 
+ */ + public void getMigrationJob(com.google.cloud.clouddms.v1.GetMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMigrationJobMethod(), responseObserver); + } + + /** + *
+     * Creates a new migration job in a given project and location.
+     * 
+ */ + public void createMigrationJob(com.google.cloud.clouddms.v1.CreateMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMigrationJobMethod(), responseObserver); + } + + /** + *
+     * Updates the parameters of a single migration job.
+     * 
+ */ + public void updateMigrationJob(com.google.cloud.clouddms.v1.UpdateMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMigrationJobMethod(), responseObserver); + } + + /** + *
+     * Deletes a single migration job.
+     * 
+ */ + public void deleteMigrationJob(com.google.cloud.clouddms.v1.DeleteMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMigrationJobMethod(), responseObserver); + } + + /** + *
+     * Start an already created migration job.
+     * 
+ */ + public void startMigrationJob(com.google.cloud.clouddms.v1.StartMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartMigrationJobMethod(), responseObserver); + } + + /** + *
+     * Stops a running migration job.
+     * 
+ */ + public void stopMigrationJob(com.google.cloud.clouddms.v1.StopMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopMigrationJobMethod(), responseObserver); + } + + /** + *
+     * Resume a migration job that is currently stopped and is resumable (was
+     * stopped during CDC phase).
+     * 
+ */ + public void resumeMigrationJob(com.google.cloud.clouddms.v1.ResumeMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResumeMigrationJobMethod(), responseObserver); + } + + /** + *
+     * Promote a migration job, stopping replication to the destination and
+     * promoting the destination to be a standalone database.
+     * 
+ */ + public void promoteMigrationJob(com.google.cloud.clouddms.v1.PromoteMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPromoteMigrationJobMethod(), responseObserver); + } + + /** + *
+     * Verify a migration job, making sure the destination can reach the source
+     * and that all configuration and prerequisites are met.
+     * 
+ */ + public void verifyMigrationJob(com.google.cloud.clouddms.v1.VerifyMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVerifyMigrationJobMethod(), responseObserver); + } + + /** + *
+     * Restart a stopped or failed migration job, resetting the destination
+     * instance to its original state and starting the migration process from
+     * scratch.
+     * 
+ */ + public void restartMigrationJob(com.google.cloud.clouddms.v1.RestartMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRestartMigrationJobMethod(), responseObserver); + } + + /** + *
+     * Generate a SSH configuration script to configure the reverse SSH
+     * connectivity.
+     * 
+ */ + public void generateSshScript(com.google.cloud.clouddms.v1.GenerateSshScriptRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateSshScriptMethod(), responseObserver); + } + + /** + *
+     * Retrieve a list of all connection profiles in a given project and location.
+     * 
+ */ + public void listConnectionProfiles(com.google.cloud.clouddms.v1.ListConnectionProfilesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListConnectionProfilesMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single connection profile.
+     * 
+ */ + public void getConnectionProfile(com.google.cloud.clouddms.v1.GetConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConnectionProfileMethod(), responseObserver); + } + + /** + *
+     * Creates a new connection profile in a given project and location.
+     * 
+ */ + public void createConnectionProfile(com.google.cloud.clouddms.v1.CreateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateConnectionProfileMethod(), responseObserver); + } + + /** + *
+     * Update the configuration of a single connection profile.
+     * 
+ */ + public void updateConnectionProfile(com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConnectionProfileMethod(), responseObserver); + } + + /** + *
+     * Deletes a single Database Migration Service connection profile.
+     * A connection profile can only be deleted if it is not in use by any
+     * active migration jobs.
+     * 
+ */ + public void deleteConnectionProfile(com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteConnectionProfileMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListMigrationJobsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.ListMigrationJobsRequest, + com.google.cloud.clouddms.v1.ListMigrationJobsResponse>( + this, METHODID_LIST_MIGRATION_JOBS))) + .addMethod( + getGetMigrationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.GetMigrationJobRequest, + com.google.cloud.clouddms.v1.MigrationJob>( + this, METHODID_GET_MIGRATION_JOB))) + .addMethod( + getCreateMigrationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.CreateMigrationJobRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_MIGRATION_JOB))) + .addMethod( + getUpdateMigrationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.UpdateMigrationJobRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_MIGRATION_JOB))) + .addMethod( + getDeleteMigrationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.DeleteMigrationJobRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_MIGRATION_JOB))) + .addMethod( + getStartMigrationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.StartMigrationJobRequest, + com.google.longrunning.Operation>( + this, METHODID_START_MIGRATION_JOB))) + .addMethod( + getStopMigrationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.StopMigrationJobRequest, + com.google.longrunning.Operation>( + this, METHODID_STOP_MIGRATION_JOB))) + .addMethod( + getResumeMigrationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.ResumeMigrationJobRequest, + com.google.longrunning.Operation>( + this, METHODID_RESUME_MIGRATION_JOB))) + .addMethod( + getPromoteMigrationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.PromoteMigrationJobRequest, + com.google.longrunning.Operation>( + this, METHODID_PROMOTE_MIGRATION_JOB))) + .addMethod( + getVerifyMigrationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.VerifyMigrationJobRequest, + com.google.longrunning.Operation>( + this, METHODID_VERIFY_MIGRATION_JOB))) + .addMethod( + getRestartMigrationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.RestartMigrationJobRequest, + com.google.longrunning.Operation>( + this, METHODID_RESTART_MIGRATION_JOB))) + .addMethod( + getGenerateSshScriptMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.GenerateSshScriptRequest, + com.google.cloud.clouddms.v1.SshScript>( + this, METHODID_GENERATE_SSH_SCRIPT))) + .addMethod( + getListConnectionProfilesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.ListConnectionProfilesRequest, + com.google.cloud.clouddms.v1.ListConnectionProfilesResponse>( + this, METHODID_LIST_CONNECTION_PROFILES))) + .addMethod( + getGetConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.GetConnectionProfileRequest, + com.google.cloud.clouddms.v1.ConnectionProfile>( + this, METHODID_GET_CONNECTION_PROFILE))) + .addMethod( + getCreateConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_CONNECTION_PROFILE))) + .addMethod( + getUpdateConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_CONNECTION_PROFILE))) + .addMethod( + getDeleteConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_CONNECTION_PROFILE))) + .build(); + } + } + + /** + *
+   * Database Migration service
+   * 
+ */ + public static final class DataMigrationServiceStub extends io.grpc.stub.AbstractAsyncStub { + private DataMigrationServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataMigrationServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataMigrationServiceStub(channel, callOptions); + } + + /** + *
+     * Lists migration jobs in a given project and location.
+     * 
+ */ + public void listMigrationJobs(com.google.cloud.clouddms.v1.ListMigrationJobsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMigrationJobsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single migration job.
+     * 
+ */ + public void getMigrationJob(com.google.cloud.clouddms.v1.GetMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMigrationJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new migration job in a given project and location.
+     * 
+ */ + public void createMigrationJob(com.google.cloud.clouddms.v1.CreateMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMigrationJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the parameters of a single migration job.
+     * 
+ */ + public void updateMigrationJob(com.google.cloud.clouddms.v1.UpdateMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMigrationJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a single migration job.
+     * 
+ */ + public void deleteMigrationJob(com.google.cloud.clouddms.v1.DeleteMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMigrationJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Start an already created migration job.
+     * 
+ */ + public void startMigrationJob(com.google.cloud.clouddms.v1.StartMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartMigrationJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Stops a running migration job.
+     * 
+ */ + public void stopMigrationJob(com.google.cloud.clouddms.v1.StopMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopMigrationJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Resume a migration job that is currently stopped and is resumable (was
+     * stopped during CDC phase).
+     * 
+ */ + public void resumeMigrationJob(com.google.cloud.clouddms.v1.ResumeMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getResumeMigrationJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Promote a migration job, stopping replication to the destination and
+     * promoting the destination to be a standalone database.
+     * 
+ */ + public void promoteMigrationJob(com.google.cloud.clouddms.v1.PromoteMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPromoteMigrationJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Verify a migration job, making sure the destination can reach the source
+     * and that all configuration and prerequisites are met.
+     * 
+ */ + public void verifyMigrationJob(com.google.cloud.clouddms.v1.VerifyMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getVerifyMigrationJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Restart a stopped or failed migration job, resetting the destination
+     * instance to its original state and starting the migration process from
+     * scratch.
+     * 
+ */ + public void restartMigrationJob(com.google.cloud.clouddms.v1.RestartMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRestartMigrationJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Generate a SSH configuration script to configure the reverse SSH
+     * connectivity.
+     * 
+ */ + public void generateSshScript(com.google.cloud.clouddms.v1.GenerateSshScriptRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateSshScriptMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieve a list of all connection profiles in a given project and location.
+     * 
+ */ + public void listConnectionProfiles(com.google.cloud.clouddms.v1.ListConnectionProfilesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single connection profile.
+     * 
+ */ + public void getConnectionProfile(com.google.cloud.clouddms.v1.GetConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new connection profile in a given project and location.
+     * 
+ */ + public void createConnectionProfile(com.google.cloud.clouddms.v1.CreateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update the configuration of a single connection profile.
+     * 
+ */ + public void updateConnectionProfile(com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a single Database Migration Service connection profile.
+     * A connection profile can only be deleted if it is not in use by any
+     * active migration jobs.
+     * 
+ */ + public void deleteConnectionProfile(com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Database Migration service
+   * 
+ */ + public static final class DataMigrationServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private DataMigrationServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataMigrationServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataMigrationServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists migration jobs in a given project and location.
+     * 
+ */ + public com.google.cloud.clouddms.v1.ListMigrationJobsResponse listMigrationJobs(com.google.cloud.clouddms.v1.ListMigrationJobsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMigrationJobsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single migration job.
+     * 
+ */ + public com.google.cloud.clouddms.v1.MigrationJob getMigrationJob(com.google.cloud.clouddms.v1.GetMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMigrationJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new migration job in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createMigrationJob(com.google.cloud.clouddms.v1.CreateMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMigrationJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the parameters of a single migration job.
+     * 
+ */ + public com.google.longrunning.Operation updateMigrationJob(com.google.cloud.clouddms.v1.UpdateMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMigrationJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a single migration job.
+     * 
+ */ + public com.google.longrunning.Operation deleteMigrationJob(com.google.cloud.clouddms.v1.DeleteMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMigrationJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Start an already created migration job.
+     * 
+ */ + public com.google.longrunning.Operation startMigrationJob(com.google.cloud.clouddms.v1.StartMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartMigrationJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Stops a running migration job.
+     * 
+ */ + public com.google.longrunning.Operation stopMigrationJob(com.google.cloud.clouddms.v1.StopMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopMigrationJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Resume a migration job that is currently stopped and is resumable (was
+     * stopped during CDC phase).
+     * 
+ */ + public com.google.longrunning.Operation resumeMigrationJob(com.google.cloud.clouddms.v1.ResumeMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResumeMigrationJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Promote a migration job, stopping replication to the destination and
+     * promoting the destination to be a standalone database.
+     * 
+ */ + public com.google.longrunning.Operation promoteMigrationJob(com.google.cloud.clouddms.v1.PromoteMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPromoteMigrationJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Verify a migration job, making sure the destination can reach the source
+     * and that all configuration and prerequisites are met.
+     * 
+ */ + public com.google.longrunning.Operation verifyMigrationJob(com.google.cloud.clouddms.v1.VerifyMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getVerifyMigrationJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Restart a stopped or failed migration job, resetting the destination
+     * instance to its original state and starting the migration process from
+     * scratch.
+     * 
+ */ + public com.google.longrunning.Operation restartMigrationJob(com.google.cloud.clouddms.v1.RestartMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRestartMigrationJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Generate a SSH configuration script to configure the reverse SSH
+     * connectivity.
+     * 
+ */ + public com.google.cloud.clouddms.v1.SshScript generateSshScript(com.google.cloud.clouddms.v1.GenerateSshScriptRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateSshScriptMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieve a list of all connection profiles in a given project and location.
+     * 
+ */ + public com.google.cloud.clouddms.v1.ListConnectionProfilesResponse listConnectionProfiles(com.google.cloud.clouddms.v1.ListConnectionProfilesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConnectionProfilesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single connection profile.
+     * 
+ */ + public com.google.cloud.clouddms.v1.ConnectionProfile getConnectionProfile(com.google.cloud.clouddms.v1.GetConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConnectionProfileMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new connection profile in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createConnectionProfile(com.google.cloud.clouddms.v1.CreateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateConnectionProfileMethod(), getCallOptions(), request); + } + + /** + *
+     * Update the configuration of a single connection profile.
+     * 
+ */ + public com.google.longrunning.Operation updateConnectionProfile(com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConnectionProfileMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a single Database Migration Service connection profile.
+     * A connection profile can only be deleted if it is not in use by any
+     * active migration jobs.
+     * 
+ */ + public com.google.longrunning.Operation deleteConnectionProfile(com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConnectionProfileMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Database Migration service
+   * 
+ */ + public static final class DataMigrationServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private DataMigrationServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataMigrationServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataMigrationServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Lists migration jobs in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listMigrationJobs( + com.google.cloud.clouddms.v1.ListMigrationJobsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMigrationJobsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single migration job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getMigrationJob( + com.google.cloud.clouddms.v1.GetMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMigrationJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new migration job in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createMigrationJob( + com.google.cloud.clouddms.v1.CreateMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMigrationJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the parameters of a single migration job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateMigrationJob( + com.google.cloud.clouddms.v1.UpdateMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateMigrationJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a single migration job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteMigrationJob( + com.google.cloud.clouddms.v1.DeleteMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMigrationJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Start an already created migration job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture startMigrationJob( + com.google.cloud.clouddms.v1.StartMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartMigrationJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Stops a running migration job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture stopMigrationJob( + com.google.cloud.clouddms.v1.StopMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopMigrationJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Resume a migration job that is currently stopped and is resumable (was
+     * stopped during CDC phase).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture resumeMigrationJob( + com.google.cloud.clouddms.v1.ResumeMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getResumeMigrationJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Promote a migration job, stopping replication to the destination and
+     * promoting the destination to be a standalone database.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture promoteMigrationJob( + com.google.cloud.clouddms.v1.PromoteMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPromoteMigrationJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Verify a migration job, making sure the destination can reach the source
+     * and that all configuration and prerequisites are met.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture verifyMigrationJob( + com.google.cloud.clouddms.v1.VerifyMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getVerifyMigrationJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Restart a stopped or failed migration job, resetting the destination
+     * instance to its original state and starting the migration process from
+     * scratch.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture restartMigrationJob( + com.google.cloud.clouddms.v1.RestartMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRestartMigrationJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Generate a SSH configuration script to configure the reverse SSH
+     * connectivity.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture generateSshScript( + com.google.cloud.clouddms.v1.GenerateSshScriptRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateSshScriptMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieve a list of all connection profiles in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listConnectionProfiles( + com.google.cloud.clouddms.v1.ListConnectionProfilesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single connection profile.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getConnectionProfile( + com.google.cloud.clouddms.v1.GetConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new connection profile in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createConnectionProfile( + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), request); + } + + /** + *
+     * Update the configuration of a single connection profile.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateConnectionProfile( + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a single Database Migration Service connection profile.
+     * A connection profile can only be deleted if it is not in use by any
+     * active migration jobs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteConnectionProfile( + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_MIGRATION_JOBS = 0; + private static final int METHODID_GET_MIGRATION_JOB = 1; + private static final int METHODID_CREATE_MIGRATION_JOB = 2; + private static final int METHODID_UPDATE_MIGRATION_JOB = 3; + private static final int METHODID_DELETE_MIGRATION_JOB = 4; + private static final int METHODID_START_MIGRATION_JOB = 5; + private static final int METHODID_STOP_MIGRATION_JOB = 6; + private static final int METHODID_RESUME_MIGRATION_JOB = 7; + private static final int METHODID_PROMOTE_MIGRATION_JOB = 8; + private static final int METHODID_VERIFY_MIGRATION_JOB = 9; + private static final int METHODID_RESTART_MIGRATION_JOB = 10; + private static final int METHODID_GENERATE_SSH_SCRIPT = 11; + private static final int METHODID_LIST_CONNECTION_PROFILES = 12; + private static final int METHODID_GET_CONNECTION_PROFILE = 13; + private static final int METHODID_CREATE_CONNECTION_PROFILE = 14; + private static final int METHODID_UPDATE_CONNECTION_PROFILE = 15; + private static final int METHODID_DELETE_CONNECTION_PROFILE = 16; + + 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 DataMigrationServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(DataMigrationServiceImplBase 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_LIST_MIGRATION_JOBS: + serviceImpl.listMigrationJobs((com.google.cloud.clouddms.v1.ListMigrationJobsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_MIGRATION_JOB: + serviceImpl.getMigrationJob((com.google.cloud.clouddms.v1.GetMigrationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_MIGRATION_JOB: + serviceImpl.createMigrationJob((com.google.cloud.clouddms.v1.CreateMigrationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MIGRATION_JOB: + serviceImpl.updateMigrationJob((com.google.cloud.clouddms.v1.UpdateMigrationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_MIGRATION_JOB: + serviceImpl.deleteMigrationJob((com.google.cloud.clouddms.v1.DeleteMigrationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_MIGRATION_JOB: + serviceImpl.startMigrationJob((com.google.cloud.clouddms.v1.StartMigrationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_MIGRATION_JOB: + serviceImpl.stopMigrationJob((com.google.cloud.clouddms.v1.StopMigrationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESUME_MIGRATION_JOB: + serviceImpl.resumeMigrationJob((com.google.cloud.clouddms.v1.ResumeMigrationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_PROMOTE_MIGRATION_JOB: + serviceImpl.promoteMigrationJob((com.google.cloud.clouddms.v1.PromoteMigrationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_VERIFY_MIGRATION_JOB: + serviceImpl.verifyMigrationJob((com.google.cloud.clouddms.v1.VerifyMigrationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESTART_MIGRATION_JOB: + serviceImpl.restartMigrationJob((com.google.cloud.clouddms.v1.RestartMigrationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_SSH_SCRIPT: + serviceImpl.generateSshScript((com.google.cloud.clouddms.v1.GenerateSshScriptRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CONNECTION_PROFILES: + serviceImpl.listConnectionProfiles((com.google.cloud.clouddms.v1.ListConnectionProfilesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CONNECTION_PROFILE: + serviceImpl.getConnectionProfile((com.google.cloud.clouddms.v1.GetConnectionProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CONNECTION_PROFILE: + serviceImpl.createConnectionProfile((com.google.cloud.clouddms.v1.CreateConnectionProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CONNECTION_PROFILE: + serviceImpl.updateConnectionProfile((com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CONNECTION_PROFILE: + serviceImpl.deleteConnectionProfile((com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest) 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 DataMigrationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DataMigrationServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DataMigrationService"); + } + } + + private static final class DataMigrationServiceFileDescriptorSupplier + extends DataMigrationServiceBaseDescriptorSupplier { + DataMigrationServiceFileDescriptorSupplier() {} + } + + private static final class DataMigrationServiceMethodDescriptorSupplier + extends DataMigrationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + DataMigrationServiceMethodDescriptorSupplier(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 (DataMigrationServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DataMigrationServiceFileDescriptorSupplier()) + .addMethod(getListMigrationJobsMethod()) + .addMethod(getGetMigrationJobMethod()) + .addMethod(getCreateMigrationJobMethod()) + .addMethod(getUpdateMigrationJobMethod()) + .addMethod(getDeleteMigrationJobMethod()) + .addMethod(getStartMigrationJobMethod()) + .addMethod(getStopMigrationJobMethod()) + .addMethod(getResumeMigrationJobMethod()) + .addMethod(getPromoteMigrationJobMethod()) + .addMethod(getVerifyMigrationJobMethod()) + .addMethod(getRestartMigrationJobMethod()) + .addMethod(getGenerateSshScriptMethod()) + .addMethod(getListConnectionProfilesMethod()) + .addMethod(getGetConnectionProfileMethod()) + .addMethod(getCreateConnectionProfileMethod()) + .addMethod(getUpdateConnectionProfileMethod()) + .addMethod(getDeleteConnectionProfileMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfile.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfile.java similarity index 68% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfile.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfile.java index 5b1f07f3..574e3383 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfile.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfile.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/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * Specifies required connection parameters, and, optionally, the parameters
  * required to create a Cloud SQL destination database instance.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.clouddms.v1.CloudSqlConnectionProfile}
  */
-public final class CloudSqlConnectionProfile extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CloudSqlConnectionProfile extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.CloudSqlConnectionProfile)
     CloudSqlConnectionProfileOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CloudSqlConnectionProfile.newBuilder() to construct.
   private CloudSqlConnectionProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CloudSqlConnectionProfile() {
     cloudSqlId_ = "";
     privateIp_ = "";
@@ -46,15 +28,16 @@ private CloudSqlConnectionProfile() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CloudSqlConnectionProfile();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CloudSqlConnectionProfile(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,88 +56,77 @@ private CloudSqlConnectionProfile(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              cloudSqlId_ = s;
-              break;
+            cloudSqlId_ = s;
+            break;
+          }
+          case 18: {
+            com.google.cloud.clouddms.v1.CloudSqlSettings.Builder subBuilder = null;
+            if (settings_ != null) {
+              subBuilder = settings_.toBuilder();
             }
-          case 18:
-            {
-              com.google.cloud.clouddms.v1.CloudSqlSettings.Builder subBuilder = null;
-              if (settings_ != null) {
-                subBuilder = settings_.toBuilder();
-              }
-              settings_ =
-                  input.readMessage(
-                      com.google.cloud.clouddms.v1.CloudSqlSettings.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(settings_);
-                settings_ = subBuilder.buildPartial();
-              }
-
-              break;
+            settings_ = input.readMessage(com.google.cloud.clouddms.v1.CloudSqlSettings.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(settings_);
+              settings_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              privateIp_ = s;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              publicIp_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            privateIp_ = s;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            publicIp_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
-        .internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
-        .internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_fieldAccessorTable
+    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.class,
-            com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.Builder.class);
+            com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.class, com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.Builder.class);
   }
 
   public static final int CLOUD_SQL_ID_FIELD_NUMBER = 1;
   private volatile java.lang.Object cloudSqlId_;
   /**
-   *
-   *
    * 
    * Output only. The Cloud SQL instance ID that this connection profile is associated with.
    * 
* * string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cloudSqlId. */ @java.lang.Override @@ -163,29 +135,29 @@ public java.lang.String getCloudSqlId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudSqlId_ = s; return s; } } /** - * - * *
    * Output only. The Cloud SQL instance ID that this connection profile is associated with.
    * 
* * string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for cloudSqlId. */ @java.lang.Override - public com.google.protobuf.ByteString getCloudSqlIdBytes() { + public com.google.protobuf.ByteString + getCloudSqlIdBytes() { java.lang.Object ref = cloudSqlId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cloudSqlId_ = b; return b; } else { @@ -196,16 +168,11 @@ public com.google.protobuf.ByteString getCloudSqlIdBytes() { public static final int SETTINGS_FIELD_NUMBER = 2; private com.google.cloud.clouddms.v1.CloudSqlSettings settings_; /** - * - * *
    * Immutable. Metadata used to create the destination Cloud SQL database.
    * 
* - * - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the settings field is set. */ @java.lang.Override @@ -213,34 +180,23 @@ public boolean hasSettings() { return settings_ != null; } /** - * - * *
    * Immutable. Metadata used to create the destination Cloud SQL database.
    * 
* - * - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return The settings. */ @java.lang.Override public com.google.cloud.clouddms.v1.CloudSqlSettings getSettings() { - return settings_ == null - ? com.google.cloud.clouddms.v1.CloudSqlSettings.getDefaultInstance() - : settings_; + return settings_ == null ? com.google.cloud.clouddms.v1.CloudSqlSettings.getDefaultInstance() : settings_; } /** - * - * *
    * Immutable. Metadata used to create the destination Cloud SQL database.
    * 
* - * - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.cloud.clouddms.v1.CloudSqlSettingsOrBuilder getSettingsOrBuilder() { @@ -250,14 +206,11 @@ public com.google.cloud.clouddms.v1.CloudSqlSettingsOrBuilder getSettingsOrBuild public static final int PRIVATE_IP_FIELD_NUMBER = 3; private volatile java.lang.Object privateIp_; /** - * - * *
    * Output only. The Cloud SQL database instance's private IP.
    * 
* * string private_ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The privateIp. */ @java.lang.Override @@ -266,29 +219,29 @@ public java.lang.String getPrivateIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateIp_ = s; return s; } } /** - * - * *
    * Output only. The Cloud SQL database instance's private IP.
    * 
* * string private_ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for privateIp. */ @java.lang.Override - public com.google.protobuf.ByteString getPrivateIpBytes() { + public com.google.protobuf.ByteString + getPrivateIpBytes() { java.lang.Object ref = privateIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); privateIp_ = b; return b; } else { @@ -299,14 +252,11 @@ public com.google.protobuf.ByteString getPrivateIpBytes() { public static final int PUBLIC_IP_FIELD_NUMBER = 4; private volatile java.lang.Object publicIp_; /** - * - * *
    * Output only. The Cloud SQL database instance's public IP.
    * 
* * string public_ip = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The publicIp. */ @java.lang.Override @@ -315,29 +265,29 @@ public java.lang.String getPublicIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publicIp_ = s; return s; } } /** - * - * *
    * Output only. The Cloud SQL database instance's public IP.
    * 
* * string public_ip = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for publicIp. */ @java.lang.Override - public com.google.protobuf.ByteString getPublicIpBytes() { + public com.google.protobuf.ByteString + getPublicIpBytes() { java.lang.Object ref = publicIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); publicIp_ = b; return b; } else { @@ -346,7 +296,6 @@ public com.google.protobuf.ByteString getPublicIpBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -358,7 +307,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 (!getCloudSqlIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cloudSqlId_); } @@ -384,7 +334,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cloudSqlId_); } if (settings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSettings()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSettings()); } if (!getPrivateIpBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, privateIp_); @@ -400,21 +351,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.clouddms.v1.CloudSqlConnectionProfile)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.CloudSqlConnectionProfile other = - (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) obj; + com.google.cloud.clouddms.v1.CloudSqlConnectionProfile other = (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) obj; - if (!getCloudSqlId().equals(other.getCloudSqlId())) return false; + if (!getCloudSqlId() + .equals(other.getCloudSqlId())) return false; if (hasSettings() != other.hasSettings()) return false; if (hasSettings()) { - if (!getSettings().equals(other.getSettings())) return false; + if (!getSettings() + .equals(other.getSettings())) return false; } - if (!getPrivateIp().equals(other.getPrivateIp())) return false; - if (!getPublicIp().equals(other.getPublicIp())) return false; + if (!getPrivateIp() + .equals(other.getPrivateIp())) return false; + if (!getPublicIp() + .equals(other.getPublicIp())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -442,104 +396,96 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.CloudSqlConnectionProfile 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.clouddms.v1.CloudSqlConnectionProfile 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.clouddms.v1.CloudSqlConnectionProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.CloudSqlConnectionProfile 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.clouddms.v1.CloudSqlConnectionProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.CloudSqlConnectionProfile 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.clouddms.v1.CloudSqlConnectionProfile parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.CloudSqlConnectionProfile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.CloudSqlConnectionProfile 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.clouddms.v1.CloudSqlConnectionProfile parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.CloudSqlConnectionProfile parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.CloudSqlConnectionProfile 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.clouddms.v1.CloudSqlConnectionProfile 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.clouddms.v1.CloudSqlConnectionProfile 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.clouddms.v1.CloudSqlConnectionProfile prototype) { + public static Builder newBuilder(com.google.cloud.clouddms.v1.CloudSqlConnectionProfile 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; } /** - * - * *
    * Specifies required connection parameters, and, optionally, the parameters
    * required to create a Cloud SQL destination database instance.
@@ -547,23 +493,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.clouddms.v1.CloudSqlConnectionProfile}
    */
-  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.clouddms.v1.CloudSqlConnectionProfile)
       com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
-          .internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
-          .internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_fieldAccessorTable
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.class,
-              com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.Builder.class);
+              com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.class, com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.Builder.class);
     }
 
     // Construct using com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.newBuilder()
@@ -571,15 +515,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -599,9 +544,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
-          .internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor;
     }
 
     @java.lang.Override
@@ -620,8 +565,7 @@ public com.google.cloud.clouddms.v1.CloudSqlConnectionProfile build() {
 
     @java.lang.Override
     public com.google.cloud.clouddms.v1.CloudSqlConnectionProfile buildPartial() {
-      com.google.cloud.clouddms.v1.CloudSqlConnectionProfile result =
-          new com.google.cloud.clouddms.v1.CloudSqlConnectionProfile(this);
+      com.google.cloud.clouddms.v1.CloudSqlConnectionProfile result = new com.google.cloud.clouddms.v1.CloudSqlConnectionProfile(this);
       result.cloudSqlId_ = cloudSqlId_;
       if (settingsBuilder_ == null) {
         result.settings_ = settings_;
@@ -638,39 +582,38 @@ public com.google.cloud.clouddms.v1.CloudSqlConnectionProfile 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.clouddms.v1.CloudSqlConnectionProfile) {
-        return mergeFrom((com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) other);
+        return mergeFrom((com.google.cloud.clouddms.v1.CloudSqlConnectionProfile)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -678,8 +621,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.clouddms.v1.CloudSqlConnectionProfile other) {
-      if (other == com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.getDefaultInstance()) return this;
       if (!other.getCloudSqlId().isEmpty()) {
         cloudSqlId_ = other.cloudSqlId_;
         onChanged();
@@ -714,8 +656,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -727,20 +668,18 @@ public Builder mergeFrom(
 
     private java.lang.Object cloudSqlId_ = "";
     /**
-     *
-     *
      * 
      * Output only. The Cloud SQL instance ID that this connection profile is associated with.
      * 
* * string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cloudSqlId. */ public java.lang.String getCloudSqlId() { java.lang.Object ref = cloudSqlId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudSqlId_ = s; return s; @@ -749,21 +688,20 @@ public java.lang.String getCloudSqlId() { } } /** - * - * *
      * Output only. The Cloud SQL instance ID that this connection profile is associated with.
      * 
* * string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for cloudSqlId. */ - public com.google.protobuf.ByteString getCloudSqlIdBytes() { + public com.google.protobuf.ByteString + getCloudSqlIdBytes() { java.lang.Object ref = cloudSqlId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cloudSqlId_ = b; return b; } else { @@ -771,61 +709,54 @@ public com.google.protobuf.ByteString getCloudSqlIdBytes() { } } /** - * - * *
      * Output only. The Cloud SQL instance ID that this connection profile is associated with.
      * 
* * string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The cloudSqlId to set. * @return This builder for chaining. */ - public Builder setCloudSqlId(java.lang.String value) { + public Builder setCloudSqlId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cloudSqlId_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The Cloud SQL instance ID that this connection profile is associated with.
      * 
* * string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCloudSqlId() { - + cloudSqlId_ = getDefaultInstance().getCloudSqlId(); onChanged(); return this; } /** - * - * *
      * Output only. The Cloud SQL instance ID that this connection profile is associated with.
      * 
* * string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for cloudSqlId to set. * @return This builder for chaining. */ - public Builder setCloudSqlIdBytes(com.google.protobuf.ByteString value) { + public Builder setCloudSqlIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cloudSqlId_ = value; onChanged(); return this; @@ -833,58 +764,39 @@ public Builder setCloudSqlIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.clouddms.v1.CloudSqlSettings settings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.CloudSqlSettings, - com.google.cloud.clouddms.v1.CloudSqlSettings.Builder, - com.google.cloud.clouddms.v1.CloudSqlSettingsOrBuilder> - settingsBuilder_; + com.google.cloud.clouddms.v1.CloudSqlSettings, com.google.cloud.clouddms.v1.CloudSqlSettings.Builder, com.google.cloud.clouddms.v1.CloudSqlSettingsOrBuilder> settingsBuilder_; /** - * - * *
      * Immutable. Metadata used to create the destination Cloud SQL database.
      * 
* - * - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the settings field is set. */ public boolean hasSettings() { return settingsBuilder_ != null || settings_ != null; } /** - * - * *
      * Immutable. Metadata used to create the destination Cloud SQL database.
      * 
* - * - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return The settings. */ public com.google.cloud.clouddms.v1.CloudSqlSettings getSettings() { if (settingsBuilder_ == null) { - return settings_ == null - ? com.google.cloud.clouddms.v1.CloudSqlSettings.getDefaultInstance() - : settings_; + return settings_ == null ? com.google.cloud.clouddms.v1.CloudSqlSettings.getDefaultInstance() : settings_; } else { return settingsBuilder_.getMessage(); } } /** - * - * *
      * Immutable. Metadata used to create the destination Cloud SQL database.
      * 
* - * - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setSettings(com.google.cloud.clouddms.v1.CloudSqlSettings value) { if (settingsBuilder_ == null) { @@ -900,15 +812,11 @@ public Builder setSettings(com.google.cloud.clouddms.v1.CloudSqlSettings value) return this; } /** - * - * *
      * Immutable. Metadata used to create the destination Cloud SQL database.
      * 
* - * - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setSettings( com.google.cloud.clouddms.v1.CloudSqlSettings.Builder builderForValue) { @@ -922,23 +830,17 @@ public Builder setSettings( return this; } /** - * - * *
      * Immutable. Metadata used to create the destination Cloud SQL database.
      * 
* - * - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder mergeSettings(com.google.cloud.clouddms.v1.CloudSqlSettings value) { if (settingsBuilder_ == null) { if (settings_ != null) { settings_ = - com.google.cloud.clouddms.v1.CloudSqlSettings.newBuilder(settings_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.clouddms.v1.CloudSqlSettings.newBuilder(settings_).mergeFrom(value).buildPartial(); } else { settings_ = value; } @@ -950,15 +852,11 @@ public Builder mergeSettings(com.google.cloud.clouddms.v1.CloudSqlSettings value return this; } /** - * - * *
      * Immutable. Metadata used to create the destination Cloud SQL database.
      * 
* - * - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearSettings() { if (settingsBuilder_ == null) { @@ -972,64 +870,48 @@ public Builder clearSettings() { return this; } /** - * - * *
      * Immutable. Metadata used to create the destination Cloud SQL database.
      * 
* - * - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; */ public com.google.cloud.clouddms.v1.CloudSqlSettings.Builder getSettingsBuilder() { - + onChanged(); return getSettingsFieldBuilder().getBuilder(); } /** - * - * *
      * Immutable. Metadata used to create the destination Cloud SQL database.
      * 
* - * - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; */ public com.google.cloud.clouddms.v1.CloudSqlSettingsOrBuilder getSettingsOrBuilder() { if (settingsBuilder_ != null) { return settingsBuilder_.getMessageOrBuilder(); } else { - return settings_ == null - ? com.google.cloud.clouddms.v1.CloudSqlSettings.getDefaultInstance() - : settings_; + return settings_ == null ? + com.google.cloud.clouddms.v1.CloudSqlSettings.getDefaultInstance() : settings_; } } /** - * - * *
      * Immutable. Metadata used to create the destination Cloud SQL database.
      * 
* - * - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.CloudSqlSettings, - com.google.cloud.clouddms.v1.CloudSqlSettings.Builder, - com.google.cloud.clouddms.v1.CloudSqlSettingsOrBuilder> + com.google.cloud.clouddms.v1.CloudSqlSettings, com.google.cloud.clouddms.v1.CloudSqlSettings.Builder, com.google.cloud.clouddms.v1.CloudSqlSettingsOrBuilder> getSettingsFieldBuilder() { if (settingsBuilder_ == null) { - settingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.CloudSqlSettings, - com.google.cloud.clouddms.v1.CloudSqlSettings.Builder, - com.google.cloud.clouddms.v1.CloudSqlSettingsOrBuilder>( - getSettings(), getParentForChildren(), isClean()); + settingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.CloudSqlSettings, com.google.cloud.clouddms.v1.CloudSqlSettings.Builder, com.google.cloud.clouddms.v1.CloudSqlSettingsOrBuilder>( + getSettings(), + getParentForChildren(), + isClean()); settings_ = null; } return settingsBuilder_; @@ -1037,20 +919,18 @@ public com.google.cloud.clouddms.v1.CloudSqlSettingsOrBuilder getSettingsOrBuild private java.lang.Object privateIp_ = ""; /** - * - * *
      * Output only. The Cloud SQL database instance's private IP.
      * 
* * string private_ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The privateIp. */ public java.lang.String getPrivateIp() { java.lang.Object ref = privateIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateIp_ = s; return s; @@ -1059,21 +939,20 @@ public java.lang.String getPrivateIp() { } } /** - * - * *
      * Output only. The Cloud SQL database instance's private IP.
      * 
* * string private_ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for privateIp. */ - public com.google.protobuf.ByteString getPrivateIpBytes() { + public com.google.protobuf.ByteString + getPrivateIpBytes() { java.lang.Object ref = privateIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); privateIp_ = b; return b; } else { @@ -1081,61 +960,54 @@ public com.google.protobuf.ByteString getPrivateIpBytes() { } } /** - * - * *
      * Output only. The Cloud SQL database instance's private IP.
      * 
* * string private_ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The privateIp to set. * @return This builder for chaining. */ - public Builder setPrivateIp(java.lang.String value) { + public Builder setPrivateIp( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + privateIp_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The Cloud SQL database instance's private IP.
      * 
* * string private_ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearPrivateIp() { - + privateIp_ = getDefaultInstance().getPrivateIp(); onChanged(); return this; } /** - * - * *
      * Output only. The Cloud SQL database instance's private IP.
      * 
* * string private_ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for privateIp to set. * @return This builder for chaining. */ - public Builder setPrivateIpBytes(com.google.protobuf.ByteString value) { + public Builder setPrivateIpBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + privateIp_ = value; onChanged(); return this; @@ -1143,20 +1015,18 @@ public Builder setPrivateIpBytes(com.google.protobuf.ByteString value) { private java.lang.Object publicIp_ = ""; /** - * - * *
      * Output only. The Cloud SQL database instance's public IP.
      * 
* * string public_ip = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The publicIp. */ public java.lang.String getPublicIp() { java.lang.Object ref = publicIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publicIp_ = s; return s; @@ -1165,21 +1035,20 @@ public java.lang.String getPublicIp() { } } /** - * - * *
      * Output only. The Cloud SQL database instance's public IP.
      * 
* * string public_ip = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for publicIp. */ - public com.google.protobuf.ByteString getPublicIpBytes() { + public com.google.protobuf.ByteString + getPublicIpBytes() { java.lang.Object ref = publicIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); publicIp_ = b; return b; } else { @@ -1187,68 +1056,61 @@ public com.google.protobuf.ByteString getPublicIpBytes() { } } /** - * - * *
      * Output only. The Cloud SQL database instance's public IP.
      * 
* * string public_ip = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The publicIp to set. * @return This builder for chaining. */ - public Builder setPublicIp(java.lang.String value) { + public Builder setPublicIp( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + publicIp_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The Cloud SQL database instance's public IP.
      * 
* * string public_ip = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearPublicIp() { - + publicIp_ = getDefaultInstance().getPublicIp(); onChanged(); return this; } /** - * - * *
      * Output only. The Cloud SQL database instance's public IP.
      * 
* * string public_ip = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for publicIp to set. * @return This builder for chaining. */ - public Builder setPublicIpBytes(com.google.protobuf.ByteString value) { + public Builder setPublicIpBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + publicIp_ = 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); } @@ -1258,12 +1120,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.CloudSqlConnectionProfile) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.CloudSqlConnectionProfile) private static final com.google.cloud.clouddms.v1.CloudSqlConnectionProfile DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.CloudSqlConnectionProfile(); } @@ -1272,16 +1134,16 @@ public static com.google.cloud.clouddms.v1.CloudSqlConnectionProfile getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudSqlConnectionProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudSqlConnectionProfile(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudSqlConnectionProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CloudSqlConnectionProfile(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1296,4 +1158,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.clouddms.v1.CloudSqlConnectionProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfileOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfileOrBuilder.java similarity index 64% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfileOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfileOrBuilder.java index 4433a014..a9fc1244 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfileOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfileOrBuilder.java @@ -1,141 +1,96 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; -public interface CloudSqlConnectionProfileOrBuilder - extends +public interface CloudSqlConnectionProfileOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.CloudSqlConnectionProfile) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The Cloud SQL instance ID that this connection profile is associated with.
    * 
* * string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cloudSqlId. */ java.lang.String getCloudSqlId(); /** - * - * *
    * Output only. The Cloud SQL instance ID that this connection profile is associated with.
    * 
* * string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for cloudSqlId. */ - com.google.protobuf.ByteString getCloudSqlIdBytes(); + com.google.protobuf.ByteString + getCloudSqlIdBytes(); /** - * - * *
    * Immutable. Metadata used to create the destination Cloud SQL database.
    * 
* - * - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the settings field is set. */ boolean hasSettings(); /** - * - * *
    * Immutable. Metadata used to create the destination Cloud SQL database.
    * 
* - * - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return The settings. */ com.google.cloud.clouddms.v1.CloudSqlSettings getSettings(); /** - * - * *
    * Immutable. Metadata used to create the destination Cloud SQL database.
    * 
* - * - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; */ com.google.cloud.clouddms.v1.CloudSqlSettingsOrBuilder getSettingsOrBuilder(); /** - * - * *
    * Output only. The Cloud SQL database instance's private IP.
    * 
* * string private_ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The privateIp. */ java.lang.String getPrivateIp(); /** - * - * *
    * Output only. The Cloud SQL database instance's private IP.
    * 
* * string private_ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for privateIp. */ - com.google.protobuf.ByteString getPrivateIpBytes(); + com.google.protobuf.ByteString + getPrivateIpBytes(); /** - * - * *
    * Output only. The Cloud SQL database instance's public IP.
    * 
* * string public_ip = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The publicIp. */ java.lang.String getPublicIp(); /** - * - * *
    * Output only. The Cloud SQL database instance's public IP.
    * 
* * string public_ip = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for publicIp. */ - com.google.protobuf.ByteString getPublicIpBytes(); + com.google.protobuf.ByteString + getPublicIpBytes(); } diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettings.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettings.java similarity index 72% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettings.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettings.java index 01070b0b..169440e1 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettings.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettings.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/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * Settings for creating a Cloud SQL database instance.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.CloudSqlSettings} */ -public final class CloudSqlSettings extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CloudSqlSettings extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.CloudSqlSettings) CloudSqlSettingsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CloudSqlSettings.newBuilder() to construct. private CloudSqlSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CloudSqlSettings() { databaseVersion_ = 0; tier_ = ""; @@ -50,15 +32,16 @@ private CloudSqlSettings() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CloudSqlSettings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CloudSqlSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -78,220 +61,193 @@ private CloudSqlSettings( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - databaseVersion_ = rawValue; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - userLabels_ = - com.google.protobuf.MapField.newMapField( - UserLabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry userLabels__ = - input.readMessage( - UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - userLabels_.getMutableMap().put(userLabels__.getKey(), userLabels__.getValue()); - break; + databaseVersion_ = rawValue; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + userLabels_ = com.google.protobuf.MapField.newMapField( + UserLabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + com.google.protobuf.MapEntry + userLabels__ = input.readMessage( + UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + userLabels_.getMutableMap().put( + userLabels__.getKey(), userLabels__.getValue()); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - tier_ = s; - break; + tier_ = s; + break; + } + case 34: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (storageAutoResizeLimit_ != null) { + subBuilder = storageAutoResizeLimit_.toBuilder(); } - case 34: - { - com.google.protobuf.Int64Value.Builder subBuilder = null; - if (storageAutoResizeLimit_ != null) { - subBuilder = storageAutoResizeLimit_.toBuilder(); - } - storageAutoResizeLimit_ = - input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(storageAutoResizeLimit_); - storageAutoResizeLimit_ = subBuilder.buildPartial(); - } - - break; + storageAutoResizeLimit_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(storageAutoResizeLimit_); + storageAutoResizeLimit_ = subBuilder.buildPartial(); } - case 40: - { - int rawValue = input.readEnum(); - activationPolicy_ = rawValue; - break; - } - case 50: - { - com.google.cloud.clouddms.v1.SqlIpConfig.Builder subBuilder = null; - if (ipConfig_ != null) { - subBuilder = ipConfig_.toBuilder(); - } - ipConfig_ = - input.readMessage( - com.google.cloud.clouddms.v1.SqlIpConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(ipConfig_); - ipConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 58: - { - com.google.protobuf.BoolValue.Builder subBuilder = null; - if (autoStorageIncrease_ != null) { - subBuilder = autoStorageIncrease_.toBuilder(); - } - autoStorageIncrease_ = - input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(autoStorageIncrease_); - autoStorageIncrease_ = subBuilder.buildPartial(); - } - - break; - } - case 66: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - databaseFlags_ = - com.google.protobuf.MapField.newMapField( - DatabaseFlagsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry databaseFlags__ = - input.readMessage( - DatabaseFlagsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - databaseFlags_ - .getMutableMap() - .put(databaseFlags__.getKey(), databaseFlags__.getValue()); - break; - } - case 72: - { - int rawValue = input.readEnum(); + break; + } + case 40: { + int rawValue = input.readEnum(); - dataDiskType_ = rawValue; - break; + activationPolicy_ = rawValue; + break; + } + case 50: { + com.google.cloud.clouddms.v1.SqlIpConfig.Builder subBuilder = null; + if (ipConfig_ != null) { + subBuilder = ipConfig_.toBuilder(); } - case 82: - { - com.google.protobuf.Int64Value.Builder subBuilder = null; - if (dataDiskSizeGb_ != null) { - subBuilder = dataDiskSizeGb_.toBuilder(); - } - dataDiskSizeGb_ = - input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataDiskSizeGb_); - dataDiskSizeGb_ = subBuilder.buildPartial(); - } - - break; + ipConfig_ = input.readMessage(com.google.cloud.clouddms.v1.SqlIpConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(ipConfig_); + ipConfig_ = subBuilder.buildPartial(); } - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); - zone_ = s; - break; + break; + } + case 58: { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (autoStorageIncrease_ != null) { + subBuilder = autoStorageIncrease_.toBuilder(); + } + autoStorageIncrease_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(autoStorageIncrease_); + autoStorageIncrease_ = subBuilder.buildPartial(); } - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); - sourceId_ = s; - break; + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + databaseFlags_ = com.google.protobuf.MapField.newMapField( + DatabaseFlagsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; } - case 106: - { - java.lang.String s = input.readStringRequireUtf8(); + com.google.protobuf.MapEntry + databaseFlags__ = input.readMessage( + DatabaseFlagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + databaseFlags_.getMutableMap().put( + databaseFlags__.getKey(), databaseFlags__.getValue()); + break; + } + case 72: { + int rawValue = input.readEnum(); - rootPassword_ = s; - break; + dataDiskType_ = rawValue; + break; + } + case 82: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (dataDiskSizeGb_ != null) { + subBuilder = dataDiskSizeGb_.toBuilder(); } - case 112: - { - rootPasswordSet_ = input.readBool(); - break; + dataDiskSizeGb_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataDiskSizeGb_); + dataDiskSizeGb_ = subBuilder.buildPartial(); } - case 122: - { - java.lang.String s = input.readStringRequireUtf8(); - collation_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + + sourceId_ = s; + break; + } + case 106: { + java.lang.String s = input.readStringRequireUtf8(); + + rootPassword_ = s; + break; + } + case 112: { + + rootPasswordSet_ = input.readBool(); + break; + } + case 122: { + java.lang.String s = input.readStringRequireUtf8(); + + collation_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetUserLabels(); case 8: return internalGetDatabaseFlags(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_CloudSqlSettings_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_CloudSqlSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.CloudSqlSettings.class, - com.google.cloud.clouddms.v1.CloudSqlSettings.Builder.class); + com.google.cloud.clouddms.v1.CloudSqlSettings.class, com.google.cloud.clouddms.v1.CloudSqlSettings.Builder.class); } /** - * - * *
    * Specifies when the instance should be activated.
    * 
* * Protobuf enum {@code google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy} */ - public enum SqlActivationPolicy implements com.google.protobuf.ProtocolMessageEnum { + public enum SqlActivationPolicy + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * unspecified policy.
      * 
@@ -300,8 +256,6 @@ public enum SqlActivationPolicy implements com.google.protobuf.ProtocolMessageEn */ SQL_ACTIVATION_POLICY_UNSPECIFIED(0), /** - * - * *
      * The instance is always up and running.
      * 
@@ -310,8 +264,6 @@ public enum SqlActivationPolicy implements com.google.protobuf.ProtocolMessageEn */ ALWAYS(1), /** - * - * *
      * The instance should never spin up.
      * 
@@ -323,8 +275,6 @@ public enum SqlActivationPolicy implements com.google.protobuf.ProtocolMessageEn ; /** - * - * *
      * unspecified policy.
      * 
@@ -333,8 +283,6 @@ public enum SqlActivationPolicy implements com.google.protobuf.ProtocolMessageEn */ public static final int SQL_ACTIVATION_POLICY_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The instance is always up and running.
      * 
@@ -343,8 +291,6 @@ public enum SqlActivationPolicy implements com.google.protobuf.ProtocolMessageEn */ public static final int ALWAYS_VALUE = 1; /** - * - * *
      * The instance should never spin up.
      * 
@@ -353,6 +299,7 @@ public enum SqlActivationPolicy implements com.google.protobuf.ProtocolMessageEn */ public static final int NEVER_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -377,14 +324,10 @@ public static SqlActivationPolicy valueOf(int value) { */ public static SqlActivationPolicy forNumber(int value) { switch (value) { - case 0: - return SQL_ACTIVATION_POLICY_UNSPECIFIED; - case 1: - return ALWAYS; - case 2: - return NEVER; - default: - return null; + case 0: return SQL_ACTIVATION_POLICY_UNSPECIFIED; + case 1: return ALWAYS; + case 2: return NEVER; + default: return null; } } @@ -392,28 +335,28 @@ public static SqlActivationPolicy forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + SqlActivationPolicy> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SqlActivationPolicy findValueByNumber(int number) { + return SqlActivationPolicy.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SqlActivationPolicy findValueByNumber(int number) { - return SqlActivationPolicy.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() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.clouddms.v1.CloudSqlSettings.getDescriptor().getEnumTypes().get(0); } @@ -422,7 +365,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static SqlActivationPolicy 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; @@ -440,18 +384,15 @@ private SqlActivationPolicy(int value) { } /** - * - * *
    * The storage options for Cloud SQL databases.
    * 
* * Protobuf enum {@code google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType} */ - public enum SqlDataDiskType implements com.google.protobuf.ProtocolMessageEnum { + public enum SqlDataDiskType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified.
      * 
@@ -460,8 +401,6 @@ public enum SqlDataDiskType implements com.google.protobuf.ProtocolMessageEnum { */ SQL_DATA_DISK_TYPE_UNSPECIFIED(0), /** - * - * *
      * SSD disk.
      * 
@@ -470,8 +409,6 @@ public enum SqlDataDiskType implements com.google.protobuf.ProtocolMessageEnum { */ PD_SSD(1), /** - * - * *
      * HDD disk.
      * 
@@ -483,8 +420,6 @@ public enum SqlDataDiskType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified.
      * 
@@ -493,8 +428,6 @@ public enum SqlDataDiskType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SQL_DATA_DISK_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * SSD disk.
      * 
@@ -503,8 +436,6 @@ public enum SqlDataDiskType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PD_SSD_VALUE = 1; /** - * - * *
      * HDD disk.
      * 
@@ -513,6 +444,7 @@ public enum SqlDataDiskType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PD_HDD_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -537,42 +469,39 @@ public static SqlDataDiskType valueOf(int value) { */ public static SqlDataDiskType forNumber(int value) { switch (value) { - case 0: - return SQL_DATA_DISK_TYPE_UNSPECIFIED; - case 1: - return PD_SSD; - case 2: - return PD_HDD; - default: - return null; + case 0: return SQL_DATA_DISK_TYPE_UNSPECIFIED; + case 1: return PD_SSD; + case 2: return PD_HDD; + 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< + SqlDataDiskType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SqlDataDiskType findValueByNumber(int number) { + return SqlDataDiskType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SqlDataDiskType findValueByNumber(int number) { - return SqlDataDiskType.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() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.clouddms.v1.CloudSqlSettings.getDescriptor().getEnumTypes().get(1); } @@ -581,7 +510,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static SqlDataDiskType 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; @@ -599,18 +529,15 @@ private SqlDataDiskType(int value) { } /** - * - * *
    * The database engine type and version.
    * 
* * Protobuf enum {@code google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion} */ - public enum SqlDatabaseVersion implements com.google.protobuf.ProtocolMessageEnum { + public enum SqlDatabaseVersion + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified version.
      * 
@@ -619,8 +546,6 @@ public enum SqlDatabaseVersion implements com.google.protobuf.ProtocolMessageEnu */ SQL_DATABASE_VERSION_UNSPECIFIED(0), /** - * - * *
      * MySQL 5.6.
      * 
@@ -629,8 +554,6 @@ public enum SqlDatabaseVersion implements com.google.protobuf.ProtocolMessageEnu */ MYSQL_5_6(1), /** - * - * *
      * MySQL 5.7.
      * 
@@ -639,8 +562,6 @@ public enum SqlDatabaseVersion implements com.google.protobuf.ProtocolMessageEnu */ MYSQL_5_7(2), /** - * - * *
      * PostgreSQL 9.6.
      * 
@@ -649,8 +570,6 @@ public enum SqlDatabaseVersion implements com.google.protobuf.ProtocolMessageEnu */ POSTGRES_9_6(3), /** - * - * *
      * PostgreSQL 11.
      * 
@@ -659,8 +578,6 @@ public enum SqlDatabaseVersion implements com.google.protobuf.ProtocolMessageEnu */ POSTGRES_11(4), /** - * - * *
      * PostgreSQL 10.
      * 
@@ -669,8 +586,6 @@ public enum SqlDatabaseVersion implements com.google.protobuf.ProtocolMessageEnu */ POSTGRES_10(5), /** - * - * *
      * MySQL 8.0.
      * 
@@ -679,8 +594,6 @@ public enum SqlDatabaseVersion implements com.google.protobuf.ProtocolMessageEnu */ MYSQL_8_0(6), /** - * - * *
      * PostgreSQL 12.
      * 
@@ -689,8 +602,6 @@ public enum SqlDatabaseVersion implements com.google.protobuf.ProtocolMessageEnu */ POSTGRES_12(7), /** - * - * *
      * PostgreSQL 13.
      * 
@@ -702,8 +613,6 @@ public enum SqlDatabaseVersion implements com.google.protobuf.ProtocolMessageEnu ; /** - * - * *
      * Unspecified version.
      * 
@@ -712,8 +621,6 @@ public enum SqlDatabaseVersion implements com.google.protobuf.ProtocolMessageEnu */ public static final int SQL_DATABASE_VERSION_UNSPECIFIED_VALUE = 0; /** - * - * *
      * MySQL 5.6.
      * 
@@ -722,8 +629,6 @@ public enum SqlDatabaseVersion implements com.google.protobuf.ProtocolMessageEnu */ public static final int MYSQL_5_6_VALUE = 1; /** - * - * *
      * MySQL 5.7.
      * 
@@ -732,8 +637,6 @@ public enum SqlDatabaseVersion implements com.google.protobuf.ProtocolMessageEnu */ public static final int MYSQL_5_7_VALUE = 2; /** - * - * *
      * PostgreSQL 9.6.
      * 
@@ -742,8 +645,6 @@ public enum SqlDatabaseVersion implements com.google.protobuf.ProtocolMessageEnu */ public static final int POSTGRES_9_6_VALUE = 3; /** - * - * *
      * PostgreSQL 11.
      * 
@@ -752,8 +653,6 @@ public enum SqlDatabaseVersion implements com.google.protobuf.ProtocolMessageEnu */ public static final int POSTGRES_11_VALUE = 4; /** - * - * *
      * PostgreSQL 10.
      * 
@@ -762,8 +661,6 @@ public enum SqlDatabaseVersion implements com.google.protobuf.ProtocolMessageEnu */ public static final int POSTGRES_10_VALUE = 5; /** - * - * *
      * MySQL 8.0.
      * 
@@ -772,8 +669,6 @@ public enum SqlDatabaseVersion implements com.google.protobuf.ProtocolMessageEnu */ public static final int MYSQL_8_0_VALUE = 6; /** - * - * *
      * PostgreSQL 12.
      * 
@@ -782,8 +677,6 @@ public enum SqlDatabaseVersion implements com.google.protobuf.ProtocolMessageEnu */ public static final int POSTGRES_12_VALUE = 7; /** - * - * *
      * PostgreSQL 13.
      * 
@@ -792,6 +685,7 @@ public enum SqlDatabaseVersion implements com.google.protobuf.ProtocolMessageEnu */ public static final int POSTGRES_13_VALUE = 8; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -816,26 +710,16 @@ public static SqlDatabaseVersion valueOf(int value) { */ public static SqlDatabaseVersion forNumber(int value) { switch (value) { - case 0: - return SQL_DATABASE_VERSION_UNSPECIFIED; - case 1: - return MYSQL_5_6; - case 2: - return MYSQL_5_7; - case 3: - return POSTGRES_9_6; - case 4: - return POSTGRES_11; - case 5: - return POSTGRES_10; - case 6: - return MYSQL_8_0; - case 7: - return POSTGRES_12; - case 8: - return POSTGRES_13; - default: - return null; + case 0: return SQL_DATABASE_VERSION_UNSPECIFIED; + case 1: return MYSQL_5_6; + case 2: return MYSQL_5_7; + case 3: return POSTGRES_9_6; + case 4: return POSTGRES_11; + case 5: return POSTGRES_10; + case 6: return MYSQL_8_0; + case 7: return POSTGRES_12; + case 8: return POSTGRES_13; + default: return null; } } @@ -843,28 +727,28 @@ public static SqlDatabaseVersion forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + SqlDatabaseVersion> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SqlDatabaseVersion findValueByNumber(int number) { + return SqlDatabaseVersion.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SqlDatabaseVersion findValueByNumber(int number) { - return SqlDatabaseVersion.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() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.clouddms.v1.CloudSqlSettings.getDescriptor().getEnumTypes().get(2); } @@ -873,7 +757,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static SqlDatabaseVersion 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; @@ -893,61 +778,49 @@ private SqlDatabaseVersion(int value) { public static final int DATABASE_VERSION_FIELD_NUMBER = 1; private int databaseVersion_; /** - * - * *
    * The database engine type and version.
    * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; - * - * + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; * @return The enum numeric value on the wire for databaseVersion. */ - @java.lang.Override - public int getDatabaseVersionValue() { + @java.lang.Override public int getDatabaseVersionValue() { return databaseVersion_; } /** - * - * *
    * The database engine type and version.
    * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; - * - * + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; * @return The databaseVersion. */ - @java.lang.Override - public com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion getDatabaseVersion() { + @java.lang.Override public com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion getDatabaseVersion() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion result = - com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion.valueOf(databaseVersion_); - return result == null - ? com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion.UNRECOGNIZED - : result; + com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion result = com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion.valueOf(databaseVersion_); + return result == null ? com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion.UNRECOGNIZED : result; } public static final int USER_LABELS_FIELD_NUMBER = 2; - private static final class UserLabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_CloudSqlSettings_UserLabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField userLabels_; - - private com.google.protobuf.MapField internalGetUserLabels() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_CloudSqlSettings_UserLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> userLabels_; + private com.google.protobuf.MapField + internalGetUserLabels() { if (userLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField(UserLabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + UserLabelsDefaultEntryHolder.defaultEntry); } return userLabels_; } @@ -956,8 +829,6 @@ public int getUserLabelsCount() { return internalGetUserLabels().getMap().size(); } /** - * - * *
    * The resource labels for a Cloud SQL instance to use to annotate any related
    * underlying resources such as Compute Engine VMs.
@@ -967,22 +838,22 @@ public int getUserLabelsCount() {
    *
    * map<string, string> user_labels = 2;
    */
+
   @java.lang.Override
-  public boolean containsUserLabels(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsUserLabels(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetUserLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getUserLabelsMap()} instead. */
+  /**
+   * Use {@link #getUserLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getUserLabels() {
     return getUserLabelsMap();
   }
   /**
-   *
-   *
    * 
    * The resource labels for a Cloud SQL instance to use to annotate any related
    * underlying resources such as Compute Engine VMs.
@@ -993,12 +864,11 @@ public java.util.Map getUserLabels() {
    * map<string, string> user_labels = 2;
    */
   @java.lang.Override
+
   public java.util.Map getUserLabelsMap() {
     return internalGetUserLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * The resource labels for a Cloud SQL instance to use to annotate any related
    * underlying resources such as Compute Engine VMs.
@@ -1009,17 +879,16 @@ public java.util.Map getUserLabelsMap() {
    * map<string, string> user_labels = 2;
    */
   @java.lang.Override
+
   public java.lang.String getUserLabelsOrDefault(
-      java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetUserLabels().getMap();
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetUserLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * The resource labels for a Cloud SQL instance to use to annotate any related
    * underlying resources such as Compute Engine VMs.
@@ -1030,11 +899,12 @@ public java.lang.String getUserLabelsOrDefault(
    * map<string, string> user_labels = 2;
    */
   @java.lang.Override
-  public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetUserLabels().getMap();
+
+  public java.lang.String getUserLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetUserLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1044,8 +914,6 @@ public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
   public static final int TIER_FIELD_NUMBER = 3;
   private volatile java.lang.Object tier_;
   /**
-   *
-   *
    * 
    * The tier (or machine type) for this instance, for example:
    * `db-n1-standard-1` (MySQL instances) or
@@ -1056,7 +924,6 @@ public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
    * 
* * string tier = 3; - * * @return The tier. */ @java.lang.Override @@ -1065,15 +932,14 @@ public java.lang.String getTier() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tier_ = s; return s; } } /** - * - * *
    * The tier (or machine type) for this instance, for example:
    * `db-n1-standard-1` (MySQL instances) or
@@ -1084,15 +950,16 @@ public java.lang.String getTier() {
    * 
* * string tier = 3; - * * @return The bytes for tier. */ @java.lang.Override - public com.google.protobuf.ByteString getTierBytes() { + public com.google.protobuf.ByteString + getTierBytes() { java.lang.Object ref = tier_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); tier_ = b; return b; } else { @@ -1103,15 +970,12 @@ public com.google.protobuf.ByteString getTierBytes() { public static final int STORAGE_AUTO_RESIZE_LIMIT_FIELD_NUMBER = 4; private com.google.protobuf.Int64Value storageAutoResizeLimit_; /** - * - * *
    * The maximum size to which storage capacity can be automatically increased.
    * The default value is 0, which specifies that there is no limit.
    * 
* * .google.protobuf.Int64Value storage_auto_resize_limit = 4; - * * @return Whether the storageAutoResizeLimit field is set. */ @java.lang.Override @@ -1119,26 +983,19 @@ public boolean hasStorageAutoResizeLimit() { return storageAutoResizeLimit_ != null; } /** - * - * *
    * The maximum size to which storage capacity can be automatically increased.
    * The default value is 0, which specifies that there is no limit.
    * 
* * .google.protobuf.Int64Value storage_auto_resize_limit = 4; - * * @return The storageAutoResizeLimit. */ @java.lang.Override public com.google.protobuf.Int64Value getStorageAutoResizeLimit() { - return storageAutoResizeLimit_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : storageAutoResizeLimit_; + return storageAutoResizeLimit_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : storageAutoResizeLimit_; } /** - * - * *
    * The maximum size to which storage capacity can be automatically increased.
    * The default value is 0, which specifies that there is no limit.
@@ -1154,8 +1011,6 @@ public com.google.protobuf.Int64ValueOrBuilder getStorageAutoResizeLimitOrBuilde
   public static final int ACTIVATION_POLICY_FIELD_NUMBER = 5;
   private int activationPolicy_;
   /**
-   *
-   *
    * 
    * The activation policy specifies when the instance is activated; it is
    * applicable only when the instance state is 'RUNNABLE'. Valid values:
@@ -1165,18 +1020,13 @@ public com.google.protobuf.Int64ValueOrBuilder getStorageAutoResizeLimitOrBuilde
    * connection request arrives.
    * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; - * - * + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; * @return The enum numeric value on the wire for activationPolicy. */ - @java.lang.Override - public int getActivationPolicyValue() { + @java.lang.Override public int getActivationPolicyValue() { return activationPolicy_; } /** - * - * *
    * The activation policy specifies when the instance is activated; it is
    * applicable only when the instance state is 'RUNNABLE'. Valid values:
@@ -1186,27 +1036,18 @@ public int getActivationPolicyValue() {
    * connection request arrives.
    * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; - * - * + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; * @return The activationPolicy. */ - @java.lang.Override - public com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy getActivationPolicy() { + @java.lang.Override public com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy getActivationPolicy() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy result = - com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy.valueOf( - activationPolicy_); - return result == null - ? com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy.UNRECOGNIZED - : result; + com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy result = com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy.valueOf(activationPolicy_); + return result == null ? com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy.UNRECOGNIZED : result; } public static final int IP_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.clouddms.v1.SqlIpConfig ipConfig_; /** - * - * *
    * The settings for IP Management. This allows to enable or disable the
    * instance IP and manage which external networks can connect to the instance.
@@ -1214,7 +1055,6 @@ public com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy getActi
    * 
* * .google.cloud.clouddms.v1.SqlIpConfig ip_config = 6; - * * @return Whether the ipConfig field is set. */ @java.lang.Override @@ -1222,8 +1062,6 @@ public boolean hasIpConfig() { return ipConfig_ != null; } /** - * - * *
    * The settings for IP Management. This allows to enable or disable the
    * instance IP and manage which external networks can connect to the instance.
@@ -1231,18 +1069,13 @@ public boolean hasIpConfig() {
    * 
* * .google.cloud.clouddms.v1.SqlIpConfig ip_config = 6; - * * @return The ipConfig. */ @java.lang.Override public com.google.cloud.clouddms.v1.SqlIpConfig getIpConfig() { - return ipConfig_ == null - ? com.google.cloud.clouddms.v1.SqlIpConfig.getDefaultInstance() - : ipConfig_; + return ipConfig_ == null ? com.google.cloud.clouddms.v1.SqlIpConfig.getDefaultInstance() : ipConfig_; } /** - * - * *
    * The settings for IP Management. This allows to enable or disable the
    * instance IP and manage which external networks can connect to the instance.
@@ -1259,8 +1092,6 @@ public com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder getIpConfigOrBuilder()
   public static final int AUTO_STORAGE_INCREASE_FIELD_NUMBER = 7;
   private com.google.protobuf.BoolValue autoStorageIncrease_;
   /**
-   *
-   *
    * 
    * [default: ON] If you enable this setting, Cloud SQL checks your available
    * storage every 30 seconds. If the available storage falls below a threshold
@@ -1270,7 +1101,6 @@ public com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder getIpConfigOrBuilder()
    * 
* * .google.protobuf.BoolValue auto_storage_increase = 7; - * * @return Whether the autoStorageIncrease field is set. */ @java.lang.Override @@ -1278,8 +1108,6 @@ public boolean hasAutoStorageIncrease() { return autoStorageIncrease_ != null; } /** - * - * *
    * [default: ON] If you enable this setting, Cloud SQL checks your available
    * storage every 30 seconds. If the available storage falls below a threshold
@@ -1289,18 +1117,13 @@ public boolean hasAutoStorageIncrease() {
    * 
* * .google.protobuf.BoolValue auto_storage_increase = 7; - * * @return The autoStorageIncrease. */ @java.lang.Override public com.google.protobuf.BoolValue getAutoStorageIncrease() { - return autoStorageIncrease_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : autoStorageIncrease_; + return autoStorageIncrease_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : autoStorageIncrease_; } /** - * - * *
    * [default: ON] If you enable this setting, Cloud SQL checks your available
    * storage every 30 seconds. If the available storage falls below a threshold
@@ -1317,22 +1140,21 @@ public com.google.protobuf.BoolValueOrBuilder getAutoStorageIncreaseOrBuilder()
   }
 
   public static final int DATABASE_FLAGS_FIELD_NUMBER = 8;
-
   private static final class DatabaseFlagsDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry defaultEntry =
-        com.google.protobuf.MapEntry.newDefaultInstance(
-            com.google.cloud.clouddms.v1.ClouddmsResourcesProto
-                .internal_static_google_cloud_clouddms_v1_CloudSqlSettings_DatabaseFlagsEntry_descriptor,
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "",
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "");
-  }
-
-  private com.google.protobuf.MapField databaseFlags_;
-
+    static final com.google.protobuf.MapEntry<
+        java.lang.String, java.lang.String> defaultEntry =
+            com.google.protobuf.MapEntry
+            .newDefaultInstance(
+                com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_CloudSqlSettings_DatabaseFlagsEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "");
+  }
+  private com.google.protobuf.MapField<
+      java.lang.String, java.lang.String> databaseFlags_;
   private com.google.protobuf.MapField
-      internalGetDatabaseFlags() {
+  internalGetDatabaseFlags() {
     if (databaseFlags_ == null) {
       return com.google.protobuf.MapField.emptyMapField(
           DatabaseFlagsDefaultEntryHolder.defaultEntry);
@@ -1344,8 +1166,6 @@ public int getDatabaseFlagsCount() {
     return internalGetDatabaseFlags().getMap().size();
   }
   /**
-   *
-   *
    * 
    * The database flags passed to the Cloud SQL instance at startup.
    * An object containing a list of "key": value pairs.
@@ -1354,22 +1174,22 @@ public int getDatabaseFlagsCount() {
    *
    * map<string, string> database_flags = 8;
    */
+
   @java.lang.Override
-  public boolean containsDatabaseFlags(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsDatabaseFlags(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetDatabaseFlags().getMap().containsKey(key);
   }
-  /** Use {@link #getDatabaseFlagsMap()} instead. */
+  /**
+   * Use {@link #getDatabaseFlagsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getDatabaseFlags() {
     return getDatabaseFlagsMap();
   }
   /**
-   *
-   *
    * 
    * The database flags passed to the Cloud SQL instance at startup.
    * An object containing a list of "key": value pairs.
@@ -1379,12 +1199,11 @@ public java.util.Map getDatabaseFlags() {
    * map<string, string> database_flags = 8;
    */
   @java.lang.Override
+
   public java.util.Map getDatabaseFlagsMap() {
     return internalGetDatabaseFlags().getMap();
   }
   /**
-   *
-   *
    * 
    * The database flags passed to the Cloud SQL instance at startup.
    * An object containing a list of "key": value pairs.
@@ -1394,17 +1213,16 @@ public java.util.Map getDatabaseFlagsMap() {
    * map<string, string> database_flags = 8;
    */
   @java.lang.Override
+
   public java.lang.String getDatabaseFlagsOrDefault(
-      java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetDatabaseFlags().getMap();
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetDatabaseFlags().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * The database flags passed to the Cloud SQL instance at startup.
    * An object containing a list of "key": value pairs.
@@ -1414,11 +1232,12 @@ public java.lang.String getDatabaseFlagsOrDefault(
    * map<string, string> database_flags = 8;
    */
   @java.lang.Override
-  public java.lang.String getDatabaseFlagsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetDatabaseFlags().getMap();
+
+  public java.lang.String getDatabaseFlagsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetDatabaseFlags().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1428,53 +1247,39 @@ public java.lang.String getDatabaseFlagsOrThrow(java.lang.String key) {
   public static final int DATA_DISK_TYPE_FIELD_NUMBER = 9;
   private int dataDiskType_;
   /**
-   *
-   *
    * 
    * The type of storage: `PD_SSD` (default) or `PD_HDD`.
    * 
* * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType data_disk_type = 9; - * * @return The enum numeric value on the wire for dataDiskType. */ - @java.lang.Override - public int getDataDiskTypeValue() { + @java.lang.Override public int getDataDiskTypeValue() { return dataDiskType_; } /** - * - * *
    * The type of storage: `PD_SSD` (default) or `PD_HDD`.
    * 
* * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType data_disk_type = 9; - * * @return The dataDiskType. */ - @java.lang.Override - public com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType getDataDiskType() { + @java.lang.Override public com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType getDataDiskType() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType result = - com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType.valueOf(dataDiskType_); - return result == null - ? com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType.UNRECOGNIZED - : result; + com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType result = com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType.valueOf(dataDiskType_); + return result == null ? com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType.UNRECOGNIZED : result; } public static final int DATA_DISK_SIZE_GB_FIELD_NUMBER = 10; private com.google.protobuf.Int64Value dataDiskSizeGb_; /** - * - * *
    * The storage capacity available to the database, in GB.
    * The minimum (and default) size is 10GB.
    * 
* * .google.protobuf.Int64Value data_disk_size_gb = 10; - * * @return Whether the dataDiskSizeGb field is set. */ @java.lang.Override @@ -1482,26 +1287,19 @@ public boolean hasDataDiskSizeGb() { return dataDiskSizeGb_ != null; } /** - * - * *
    * The storage capacity available to the database, in GB.
    * The minimum (and default) size is 10GB.
    * 
* * .google.protobuf.Int64Value data_disk_size_gb = 10; - * * @return The dataDiskSizeGb. */ @java.lang.Override public com.google.protobuf.Int64Value getDataDiskSizeGb() { - return dataDiskSizeGb_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : dataDiskSizeGb_; + return dataDiskSizeGb_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : dataDiskSizeGb_; } /** - * - * *
    * The storage capacity available to the database, in GB.
    * The minimum (and default) size is 10GB.
@@ -1517,15 +1315,12 @@ public com.google.protobuf.Int64ValueOrBuilder getDataDiskSizeGbOrBuilder() {
   public static final int ZONE_FIELD_NUMBER = 11;
   private volatile java.lang.Object zone_;
   /**
-   *
-   *
    * 
    * The Google Cloud Platform zone where your Cloud SQL datdabse instance is
    * located.
    * 
* * string zone = 11; - * * @return The zone. */ @java.lang.Override @@ -1534,30 +1329,30 @@ public java.lang.String getZone() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zone_ = s; return s; } } /** - * - * *
    * The Google Cloud Platform zone where your Cloud SQL datdabse instance is
    * located.
    * 
* * string zone = 11; - * * @return The bytes for zone. */ @java.lang.Override - public com.google.protobuf.ByteString getZoneBytes() { + public com.google.protobuf.ByteString + getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); zone_ = b; return b; } else { @@ -1568,8 +1363,6 @@ public com.google.protobuf.ByteString getZoneBytes() { public static final int SOURCE_ID_FIELD_NUMBER = 12; private volatile java.lang.Object sourceId_; /** - * - * *
    * The Database Migration Service source connection profile ID,
    * in the format:
@@ -1577,7 +1370,6 @@ public com.google.protobuf.ByteString getZoneBytes() {
    * 
* * string source_id = 12; - * * @return The sourceId. */ @java.lang.Override @@ -1586,15 +1378,14 @@ public java.lang.String getSourceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceId_ = s; return s; } } /** - * - * *
    * The Database Migration Service source connection profile ID,
    * in the format:
@@ -1602,15 +1393,16 @@ public java.lang.String getSourceId() {
    * 
* * string source_id = 12; - * * @return The bytes for sourceId. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceIdBytes() { + public com.google.protobuf.ByteString + getSourceIdBytes() { java.lang.Object ref = sourceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceId_ = b; return b; } else { @@ -1621,14 +1413,11 @@ public com.google.protobuf.ByteString getSourceIdBytes() { public static final int ROOT_PASSWORD_FIELD_NUMBER = 13; private volatile java.lang.Object rootPassword_; /** - * - * *
    * Input only. Initial root password.
    * 
* * string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The rootPassword. */ @java.lang.Override @@ -1637,29 +1426,29 @@ public java.lang.String getRootPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootPassword_ = s; return s; } } /** - * - * *
    * Input only. Initial root password.
    * 
* * string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for rootPassword. */ @java.lang.Override - public com.google.protobuf.ByteString getRootPasswordBytes() { + public com.google.protobuf.ByteString + getRootPasswordBytes() { java.lang.Object ref = rootPassword_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rootPassword_ = b; return b; } else { @@ -1670,14 +1459,11 @@ public com.google.protobuf.ByteString getRootPasswordBytes() { public static final int ROOT_PASSWORD_SET_FIELD_NUMBER = 14; private boolean rootPasswordSet_; /** - * - * *
    * Output only. Indicates If this connection profile root password is stored.
    * 
* * bool root_password_set = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The rootPasswordSet. */ @java.lang.Override @@ -1688,14 +1474,11 @@ public boolean getRootPasswordSet() { public static final int COLLATION_FIELD_NUMBER = 15; private volatile java.lang.Object collation_; /** - * - * *
    * The Cloud SQL default instance level collation.
    * 
* * string collation = 15; - * * @return The collation. */ @java.lang.Override @@ -1704,29 +1487,29 @@ public java.lang.String getCollation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collation_ = s; return s; } } /** - * - * *
    * The Cloud SQL default instance level collation.
    * 
* * string collation = 15; - * * @return The bytes for collation. */ @java.lang.Override - public com.google.protobuf.ByteString getCollationBytes() { + public com.google.protobuf.ByteString + getCollationBytes() { java.lang.Object ref = collation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); collation_ = b; return b; } else { @@ -1735,7 +1518,6 @@ public com.google.protobuf.ByteString getCollationBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1747,25 +1529,24 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (databaseVersion_ - != com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion - .SQL_DATABASE_VERSION_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (databaseVersion_ != com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion.SQL_DATABASE_VERSION_UNSPECIFIED.getNumber()) { output.writeEnum(1, databaseVersion_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 2); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetUserLabels(), + UserLabelsDefaultEntryHolder.defaultEntry, + 2); if (!getTierBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tier_); } if (storageAutoResizeLimit_ != null) { output.writeMessage(4, getStorageAutoResizeLimit()); } - if (activationPolicy_ - != com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy - .SQL_ACTIVATION_POLICY_UNSPECIFIED - .getNumber()) { + if (activationPolicy_ != com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy.SQL_ACTIVATION_POLICY_UNSPECIFIED.getNumber()) { output.writeEnum(5, activationPolicy_); } if (ipConfig_ != null) { @@ -1774,12 +1555,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (autoStorageIncrease_ != null) { output.writeMessage(7, getAutoStorageIncrease()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetDatabaseFlags(), DatabaseFlagsDefaultEntryHolder.defaultEntry, 8); - if (dataDiskType_ - != com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType - .SQL_DATA_DISK_TYPE_UNSPECIFIED - .getNumber()) { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetDatabaseFlags(), + DatabaseFlagsDefaultEntryHolder.defaultEntry, + 8); + if (dataDiskType_ != com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType.SQL_DATA_DISK_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(9, dataDiskType_); } if (dataDiskSizeGb_ != null) { @@ -1809,59 +1591,56 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (databaseVersion_ - != com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion - .SQL_DATABASE_VERSION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, databaseVersion_); - } - for (java.util.Map.Entry entry : - internalGetUserLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry userLabels__ = - UserLabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, userLabels__); + if (databaseVersion_ != com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion.SQL_DATABASE_VERSION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, databaseVersion_); + } + for (java.util.Map.Entry entry + : internalGetUserLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + userLabels__ = UserLabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, userLabels__); } if (!getTierBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tier_); } if (storageAutoResizeLimit_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStorageAutoResizeLimit()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getStorageAutoResizeLimit()); } - if (activationPolicy_ - != com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy - .SQL_ACTIVATION_POLICY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, activationPolicy_); + if (activationPolicy_ != com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy.SQL_ACTIVATION_POLICY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, activationPolicy_); } if (ipConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getIpConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getIpConfig()); } if (autoStorageIncrease_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAutoStorageIncrease()); - } - for (java.util.Map.Entry entry : - internalGetDatabaseFlags().getMap().entrySet()) { - com.google.protobuf.MapEntry databaseFlags__ = - DatabaseFlagsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, databaseFlags__); - } - if (dataDiskType_ - != com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType - .SQL_DATA_DISK_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, dataDiskType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getAutoStorageIncrease()); + } + for (java.util.Map.Entry entry + : internalGetDatabaseFlags().getMap().entrySet()) { + com.google.protobuf.MapEntry + databaseFlags__ = DatabaseFlagsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, databaseFlags__); + } + if (dataDiskType_ != com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType.SQL_DATA_DISK_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, dataDiskType_); } if (dataDiskSizeGb_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDataDiskSizeGb()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getDataDiskSizeGb()); } if (!getZoneBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, zone_); @@ -1873,7 +1652,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, rootPassword_); } if (rootPasswordSet_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, rootPasswordSet_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(14, rootPasswordSet_); } if (!getCollationBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, collation_); @@ -1886,41 +1666,52 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.clouddms.v1.CloudSqlSettings)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.CloudSqlSettings other = - (com.google.cloud.clouddms.v1.CloudSqlSettings) obj; + com.google.cloud.clouddms.v1.CloudSqlSettings other = (com.google.cloud.clouddms.v1.CloudSqlSettings) obj; if (databaseVersion_ != other.databaseVersion_) return false; - if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false; - if (!getTier().equals(other.getTier())) return false; + if (!internalGetUserLabels().equals( + other.internalGetUserLabels())) return false; + if (!getTier() + .equals(other.getTier())) return false; if (hasStorageAutoResizeLimit() != other.hasStorageAutoResizeLimit()) return false; if (hasStorageAutoResizeLimit()) { - if (!getStorageAutoResizeLimit().equals(other.getStorageAutoResizeLimit())) return false; + if (!getStorageAutoResizeLimit() + .equals(other.getStorageAutoResizeLimit())) return false; } if (activationPolicy_ != other.activationPolicy_) return false; if (hasIpConfig() != other.hasIpConfig()) return false; if (hasIpConfig()) { - if (!getIpConfig().equals(other.getIpConfig())) return false; + if (!getIpConfig() + .equals(other.getIpConfig())) return false; } if (hasAutoStorageIncrease() != other.hasAutoStorageIncrease()) return false; if (hasAutoStorageIncrease()) { - if (!getAutoStorageIncrease().equals(other.getAutoStorageIncrease())) return false; + if (!getAutoStorageIncrease() + .equals(other.getAutoStorageIncrease())) return false; } - if (!internalGetDatabaseFlags().equals(other.internalGetDatabaseFlags())) return false; + if (!internalGetDatabaseFlags().equals( + other.internalGetDatabaseFlags())) return false; if (dataDiskType_ != other.dataDiskType_) return false; if (hasDataDiskSizeGb() != other.hasDataDiskSizeGb()) return false; if (hasDataDiskSizeGb()) { - if (!getDataDiskSizeGb().equals(other.getDataDiskSizeGb())) return false; - } - if (!getZone().equals(other.getZone())) return false; - if (!getSourceId().equals(other.getSourceId())) return false; - if (!getRootPassword().equals(other.getRootPassword())) return false; - if (getRootPasswordSet() != other.getRootPasswordSet()) return false; - if (!getCollation().equals(other.getCollation())) return false; + if (!getDataDiskSizeGb() + .equals(other.getDataDiskSizeGb())) return false; + } + if (!getZone() + .equals(other.getZone())) return false; + if (!getSourceId() + .equals(other.getSourceId())) return false; + if (!getRootPassword() + .equals(other.getRootPassword())) return false; + if (getRootPasswordSet() + != other.getRootPasswordSet()) return false; + if (!getCollation() + .equals(other.getCollation())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1971,7 +1762,8 @@ public int hashCode() { hash = (37 * hash) + ROOT_PASSWORD_FIELD_NUMBER; hash = (53 * hash) + getRootPassword().hashCode(); hash = (37 * hash) + ROOT_PASSWORD_SET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRootPasswordSet()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRootPasswordSet()); hash = (37 * hash) + COLLATION_FIELD_NUMBER; hash = (53 * hash) + getCollation().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -1979,151 +1771,144 @@ public int hashCode() { return hash; } - public static com.google.cloud.clouddms.v1.CloudSqlSettings parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.clouddms.v1.CloudSqlSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.CloudSqlSettings 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.clouddms.v1.CloudSqlSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.CloudSqlSettings 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.clouddms.v1.CloudSqlSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.CloudSqlSettings 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.clouddms.v1.CloudSqlSettings parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.CloudSqlSettings 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.clouddms.v1.CloudSqlSettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.CloudSqlSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.CloudSqlSettings 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.clouddms.v1.CloudSqlSettings 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.clouddms.v1.CloudSqlSettings 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.clouddms.v1.CloudSqlSettings 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; } /** - * - * *
    * Settings for creating a Cloud SQL database instance.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.CloudSqlSettings} */ - 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.clouddms.v1.CloudSqlSettings) com.google.cloud.clouddms.v1.CloudSqlSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetUserLabels(); case 8: return internalGetDatabaseFlags(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 2: return internalGetMutableUserLabels(); case 8: return internalGetMutableDatabaseFlags(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_CloudSqlSettings_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_CloudSqlSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.CloudSqlSettings.class, - com.google.cloud.clouddms.v1.CloudSqlSettings.Builder.class); + com.google.cloud.clouddms.v1.CloudSqlSettings.class, com.google.cloud.clouddms.v1.CloudSqlSettings.Builder.class); } // Construct using com.google.cloud.clouddms.v1.CloudSqlSettings.newBuilder() @@ -2131,15 +1916,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2191,9 +1977,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor; } @java.lang.Override @@ -2212,8 +1998,7 @@ public com.google.cloud.clouddms.v1.CloudSqlSettings build() { @java.lang.Override public com.google.cloud.clouddms.v1.CloudSqlSettings buildPartial() { - com.google.cloud.clouddms.v1.CloudSqlSettings result = - new com.google.cloud.clouddms.v1.CloudSqlSettings(this); + com.google.cloud.clouddms.v1.CloudSqlSettings result = new com.google.cloud.clouddms.v1.CloudSqlSettings(this); int from_bitField0_ = bitField0_; result.databaseVersion_ = databaseVersion_; result.userLabels_ = internalGetUserLabels(); @@ -2256,39 +2041,38 @@ public com.google.cloud.clouddms.v1.CloudSqlSettings 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.clouddms.v1.CloudSqlSettings) { - return mergeFrom((com.google.cloud.clouddms.v1.CloudSqlSettings) other); + return mergeFrom((com.google.cloud.clouddms.v1.CloudSqlSettings)other); } else { super.mergeFrom(other); return this; @@ -2300,7 +2084,8 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.CloudSqlSettings other) { if (other.databaseVersion_ != 0) { setDatabaseVersionValue(other.getDatabaseVersionValue()); } - internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels()); + internalGetMutableUserLabels().mergeFrom( + other.internalGetUserLabels()); if (!other.getTier().isEmpty()) { tier_ = other.tier_; onChanged(); @@ -2317,7 +2102,8 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.CloudSqlSettings other) { if (other.hasAutoStorageIncrease()) { mergeAutoStorageIncrease(other.getAutoStorageIncrease()); } - internalGetMutableDatabaseFlags().mergeFrom(other.internalGetDatabaseFlags()); + internalGetMutableDatabaseFlags().mergeFrom( + other.internalGetDatabaseFlags()); if (other.dataDiskType_ != 0) { setDataDiskTypeValue(other.getDataDiskTypeValue()); } @@ -2371,127 +2157,98 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private int databaseVersion_ = 0; /** - * - * *
      * The database engine type and version.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; - * - * + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; * @return The enum numeric value on the wire for databaseVersion. */ - @java.lang.Override - public int getDatabaseVersionValue() { + @java.lang.Override public int getDatabaseVersionValue() { return databaseVersion_; } /** - * - * *
      * The database engine type and version.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; - * - * + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; * @param value The enum numeric value on the wire for databaseVersion to set. * @return This builder for chaining. */ public Builder setDatabaseVersionValue(int value) { - + databaseVersion_ = value; onChanged(); return this; } /** - * - * *
      * The database engine type and version.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; - * - * + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; * @return The databaseVersion. */ @java.lang.Override public com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion getDatabaseVersion() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion result = - com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion.valueOf( - databaseVersion_); - return result == null - ? com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion.UNRECOGNIZED - : result; + com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion result = com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion.valueOf(databaseVersion_); + return result == null ? com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion.UNRECOGNIZED : result; } /** - * - * *
      * The database engine type and version.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; - * - * + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; * @param value The databaseVersion to set. * @return This builder for chaining. */ - public Builder setDatabaseVersion( - com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion value) { + public Builder setDatabaseVersion(com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion value) { if (value == null) { throw new NullPointerException(); } - + databaseVersion_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The database engine type and version.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; - * - * + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; * @return This builder for chaining. */ public Builder clearDatabaseVersion() { - + databaseVersion_ = 0; onChanged(); return this; } - private com.google.protobuf.MapField userLabels_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> userLabels_; private com.google.protobuf.MapField - internalGetUserLabels() { + internalGetUserLabels() { if (userLabels_ == null) { return com.google.protobuf.MapField.emptyMapField( UserLabelsDefaultEntryHolder.defaultEntry); } return userLabels_; } - private com.google.protobuf.MapField - internalGetMutableUserLabels() { - onChanged(); - ; + internalGetMutableUserLabels() { + onChanged();; if (userLabels_ == null) { - userLabels_ = - com.google.protobuf.MapField.newMapField(UserLabelsDefaultEntryHolder.defaultEntry); + userLabels_ = com.google.protobuf.MapField.newMapField( + UserLabelsDefaultEntryHolder.defaultEntry); } if (!userLabels_.isMutable()) { userLabels_ = userLabels_.copy(); @@ -2503,8 +2260,6 @@ public int getUserLabelsCount() { return internalGetUserLabels().getMap().size(); } /** - * - * *
      * The resource labels for a Cloud SQL instance to use to annotate any related
      * underlying resources such as Compute Engine VMs.
@@ -2514,22 +2269,22 @@ public int getUserLabelsCount() {
      *
      * map<string, string> user_labels = 2;
      */
+
     @java.lang.Override
-    public boolean containsUserLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsUserLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetUserLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getUserLabelsMap()} instead. */
+    /**
+     * Use {@link #getUserLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getUserLabels() {
       return getUserLabelsMap();
     }
     /**
-     *
-     *
      * 
      * The resource labels for a Cloud SQL instance to use to annotate any related
      * underlying resources such as Compute Engine VMs.
@@ -2540,12 +2295,11 @@ public java.util.Map getUserLabels() {
      * map<string, string> user_labels = 2;
      */
     @java.lang.Override
+
     public java.util.Map getUserLabelsMap() {
       return internalGetUserLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * The resource labels for a Cloud SQL instance to use to annotate any related
      * underlying resources such as Compute Engine VMs.
@@ -2556,17 +2310,16 @@ public java.util.Map getUserLabelsMap() {
      * map<string, string> user_labels = 2;
      */
     @java.lang.Override
+
     public java.lang.String getUserLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetUserLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetUserLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * The resource labels for a Cloud SQL instance to use to annotate any related
      * underlying resources such as Compute Engine VMs.
@@ -2577,11 +2330,12 @@ public java.lang.String getUserLabelsOrDefault(
      * map<string, string> user_labels = 2;
      */
     @java.lang.Override
-    public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetUserLabels().getMap();
+
+    public java.lang.String getUserLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetUserLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2589,12 +2343,11 @@ public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearUserLabels() {
-      internalGetMutableUserLabels().getMutableMap().clear();
+      internalGetMutableUserLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * The resource labels for a Cloud SQL instance to use to annotate any related
      * underlying resources such as Compute Engine VMs.
@@ -2604,21 +2357,23 @@ public Builder clearUserLabels() {
      *
      * map<string, string> user_labels = 2;
      */
-    public Builder removeUserLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableUserLabels().getMutableMap().remove(key);
+
+    public Builder removeUserLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableUserLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableUserLabels() {
+    public java.util.Map
+    getMutableUserLabels() {
       return internalGetMutableUserLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * The resource labels for a Cloud SQL instance to use to annotate any related
      * underlying resources such as Compute Engine VMs.
@@ -2628,19 +2383,16 @@ public java.util.Map getMutableUserLabels()
      *
      * map<string, string> user_labels = 2;
      */
-    public Builder putUserLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableUserLabels().getMutableMap().put(key, value);
+    public Builder putUserLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableUserLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * The resource labels for a Cloud SQL instance to use to annotate any related
      * underlying resources such as Compute Engine VMs.
@@ -2650,15 +2402,16 @@ public Builder putUserLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> user_labels = 2;
      */
-    public Builder putAllUserLabels(java.util.Map values) {
-      internalGetMutableUserLabels().getMutableMap().putAll(values);
+
+    public Builder putAllUserLabels(
+        java.util.Map values) {
+      internalGetMutableUserLabels().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private java.lang.Object tier_ = "";
     /**
-     *
-     *
      * 
      * The tier (or machine type) for this instance, for example:
      * `db-n1-standard-1` (MySQL instances) or
@@ -2669,13 +2422,13 @@ public Builder putAllUserLabels(java.util.Map
      *
      * string tier = 3;
-     *
      * @return The tier.
      */
     public java.lang.String getTier() {
       java.lang.Object ref = tier_;
       if (!(ref instanceof java.lang.String)) {
-        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+        com.google.protobuf.ByteString bs =
+            (com.google.protobuf.ByteString) ref;
         java.lang.String s = bs.toStringUtf8();
         tier_ = s;
         return s;
@@ -2684,8 +2437,6 @@ public java.lang.String getTier() {
       }
     }
     /**
-     *
-     *
      * 
      * The tier (or machine type) for this instance, for example:
      * `db-n1-standard-1` (MySQL instances) or
@@ -2696,14 +2447,15 @@ public java.lang.String getTier() {
      * 
* * string tier = 3; - * * @return The bytes for tier. */ - public com.google.protobuf.ByteString getTierBytes() { + public com.google.protobuf.ByteString + getTierBytes() { java.lang.Object ref = tier_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); tier_ = b; return b; } else { @@ -2711,8 +2463,6 @@ public com.google.protobuf.ByteString getTierBytes() { } } /** - * - * *
      * The tier (or machine type) for this instance, for example:
      * `db-n1-standard-1` (MySQL instances) or
@@ -2723,22 +2473,20 @@ public com.google.protobuf.ByteString getTierBytes() {
      * 
* * string tier = 3; - * * @param value The tier to set. * @return This builder for chaining. */ - public Builder setTier(java.lang.String value) { + public Builder setTier( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + tier_ = value; onChanged(); return this; } /** - * - * *
      * The tier (or machine type) for this instance, for example:
      * `db-n1-standard-1` (MySQL instances) or
@@ -2749,18 +2497,15 @@ public Builder setTier(java.lang.String value) {
      * 
* * string tier = 3; - * * @return This builder for chaining. */ public Builder clearTier() { - + tier_ = getDefaultInstance().getTier(); onChanged(); return this; } /** - * - * *
      * The tier (or machine type) for this instance, for example:
      * `db-n1-standard-1` (MySQL instances) or
@@ -2771,16 +2516,16 @@ public Builder clearTier() {
      * 
* * string tier = 3; - * * @param value The bytes for tier to set. * @return This builder for chaining. */ - public Builder setTierBytes(com.google.protobuf.ByteString value) { + public Builder setTierBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tier_ = value; onChanged(); return this; @@ -2788,49 +2533,36 @@ public Builder setTierBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Int64Value storageAutoResizeLimit_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> - storageAutoResizeLimitBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> storageAutoResizeLimitBuilder_; /** - * - * *
      * The maximum size to which storage capacity can be automatically increased.
      * The default value is 0, which specifies that there is no limit.
      * 
* * .google.protobuf.Int64Value storage_auto_resize_limit = 4; - * * @return Whether the storageAutoResizeLimit field is set. */ public boolean hasStorageAutoResizeLimit() { return storageAutoResizeLimitBuilder_ != null || storageAutoResizeLimit_ != null; } /** - * - * *
      * The maximum size to which storage capacity can be automatically increased.
      * The default value is 0, which specifies that there is no limit.
      * 
* * .google.protobuf.Int64Value storage_auto_resize_limit = 4; - * * @return The storageAutoResizeLimit. */ public com.google.protobuf.Int64Value getStorageAutoResizeLimit() { if (storageAutoResizeLimitBuilder_ == null) { - return storageAutoResizeLimit_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : storageAutoResizeLimit_; + return storageAutoResizeLimit_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : storageAutoResizeLimit_; } else { return storageAutoResizeLimitBuilder_.getMessage(); } } /** - * - * *
      * The maximum size to which storage capacity can be automatically increased.
      * The default value is 0, which specifies that there is no limit.
@@ -2852,8 +2584,6 @@ public Builder setStorageAutoResizeLimit(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum size to which storage capacity can be automatically increased.
      * The default value is 0, which specifies that there is no limit.
@@ -2873,8 +2603,6 @@ public Builder setStorageAutoResizeLimit(
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum size to which storage capacity can be automatically increased.
      * The default value is 0, which specifies that there is no limit.
@@ -2886,9 +2614,7 @@ public Builder mergeStorageAutoResizeLimit(com.google.protobuf.Int64Value value)
       if (storageAutoResizeLimitBuilder_ == null) {
         if (storageAutoResizeLimit_ != null) {
           storageAutoResizeLimit_ =
-              com.google.protobuf.Int64Value.newBuilder(storageAutoResizeLimit_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Int64Value.newBuilder(storageAutoResizeLimit_).mergeFrom(value).buildPartial();
         } else {
           storageAutoResizeLimit_ = value;
         }
@@ -2900,8 +2626,6 @@ public Builder mergeStorageAutoResizeLimit(com.google.protobuf.Int64Value value)
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum size to which storage capacity can be automatically increased.
      * The default value is 0, which specifies that there is no limit.
@@ -2921,8 +2645,6 @@ public Builder clearStorageAutoResizeLimit() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum size to which storage capacity can be automatically increased.
      * The default value is 0, which specifies that there is no limit.
@@ -2931,13 +2653,11 @@ public Builder clearStorageAutoResizeLimit() {
      * .google.protobuf.Int64Value storage_auto_resize_limit = 4;
      */
     public com.google.protobuf.Int64Value.Builder getStorageAutoResizeLimitBuilder() {
-
+      
       onChanged();
       return getStorageAutoResizeLimitFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The maximum size to which storage capacity can be automatically increased.
      * The default value is 0, which specifies that there is no limit.
@@ -2949,14 +2669,11 @@ public com.google.protobuf.Int64ValueOrBuilder getStorageAutoResizeLimitOrBuilde
       if (storageAutoResizeLimitBuilder_ != null) {
         return storageAutoResizeLimitBuilder_.getMessageOrBuilder();
       } else {
-        return storageAutoResizeLimit_ == null
-            ? com.google.protobuf.Int64Value.getDefaultInstance()
-            : storageAutoResizeLimit_;
+        return storageAutoResizeLimit_ == null ?
+            com.google.protobuf.Int64Value.getDefaultInstance() : storageAutoResizeLimit_;
       }
     }
-    /**
-     *
-     *
+    /**
      * 
      * The maximum size to which storage capacity can be automatically increased.
      * The default value is 0, which specifies that there is no limit.
@@ -2965,17 +2682,14 @@ public com.google.protobuf.Int64ValueOrBuilder getStorageAutoResizeLimitOrBuilde
      * .google.protobuf.Int64Value storage_auto_resize_limit = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Int64Value,
-            com.google.protobuf.Int64Value.Builder,
-            com.google.protobuf.Int64ValueOrBuilder>
+        com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> 
         getStorageAutoResizeLimitFieldBuilder() {
       if (storageAutoResizeLimitBuilder_ == null) {
-        storageAutoResizeLimitBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Int64Value,
-                com.google.protobuf.Int64Value.Builder,
-                com.google.protobuf.Int64ValueOrBuilder>(
-                getStorageAutoResizeLimit(), getParentForChildren(), isClean());
+        storageAutoResizeLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
+                getStorageAutoResizeLimit(),
+                getParentForChildren(),
+                isClean());
         storageAutoResizeLimit_ = null;
       }
       return storageAutoResizeLimitBuilder_;
@@ -2983,8 +2697,6 @@ public com.google.protobuf.Int64ValueOrBuilder getStorageAutoResizeLimitOrBuilde
 
     private int activationPolicy_ = 0;
     /**
-     *
-     *
      * 
      * The activation policy specifies when the instance is activated; it is
      * applicable only when the instance state is 'RUNNABLE'. Valid values:
@@ -2994,18 +2706,13 @@ public com.google.protobuf.Int64ValueOrBuilder getStorageAutoResizeLimitOrBuilde
      * connection request arrives.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; - * - * + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; * @return The enum numeric value on the wire for activationPolicy. */ - @java.lang.Override - public int getActivationPolicyValue() { + @java.lang.Override public int getActivationPolicyValue() { return activationPolicy_; } /** - * - * *
      * The activation policy specifies when the instance is activated; it is
      * applicable only when the instance state is 'RUNNABLE'. Valid values:
@@ -3015,21 +2722,17 @@ public int getActivationPolicyValue() {
      * connection request arrives.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; - * - * + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; * @param value The enum numeric value on the wire for activationPolicy to set. * @return This builder for chaining. */ public Builder setActivationPolicyValue(int value) { - + activationPolicy_ = value; onChanged(); return this; } /** - * - * *
      * The activation policy specifies when the instance is activated; it is
      * applicable only when the instance state is 'RUNNABLE'. Valid values:
@@ -3039,24 +2742,16 @@ public Builder setActivationPolicyValue(int value) {
      * connection request arrives.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; - * - * + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; * @return The activationPolicy. */ @java.lang.Override public com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy getActivationPolicy() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy result = - com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy.valueOf( - activationPolicy_); - return result == null - ? com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy.UNRECOGNIZED - : result; + com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy result = com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy.valueOf(activationPolicy_); + return result == null ? com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy.UNRECOGNIZED : result; } /** - * - * *
      * The activation policy specifies when the instance is activated; it is
      * applicable only when the instance state is 'RUNNABLE'. Valid values:
@@ -3066,25 +2761,20 @@ public com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy getActi
      * connection request arrives.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; - * - * + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; * @param value The activationPolicy to set. * @return This builder for chaining. */ - public Builder setActivationPolicy( - com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy value) { + public Builder setActivationPolicy(com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy value) { if (value == null) { throw new NullPointerException(); } - + activationPolicy_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The activation policy specifies when the instance is activated; it is
      * applicable only when the instance state is 'RUNNABLE'. Valid values:
@@ -3094,13 +2784,11 @@ public Builder setActivationPolicy(
      * connection request arrives.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; - * - * + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; * @return This builder for chaining. */ public Builder clearActivationPolicy() { - + activationPolicy_ = 0; onChanged(); return this; @@ -3108,13 +2796,8 @@ public Builder clearActivationPolicy() { private com.google.cloud.clouddms.v1.SqlIpConfig ipConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.SqlIpConfig, - com.google.cloud.clouddms.v1.SqlIpConfig.Builder, - com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder> - ipConfigBuilder_; + com.google.cloud.clouddms.v1.SqlIpConfig, com.google.cloud.clouddms.v1.SqlIpConfig.Builder, com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder> ipConfigBuilder_; /** - * - * *
      * The settings for IP Management. This allows to enable or disable the
      * instance IP and manage which external networks can connect to the instance.
@@ -3122,15 +2805,12 @@ public Builder clearActivationPolicy() {
      * 
* * .google.cloud.clouddms.v1.SqlIpConfig ip_config = 6; - * * @return Whether the ipConfig field is set. */ public boolean hasIpConfig() { return ipConfigBuilder_ != null || ipConfig_ != null; } /** - * - * *
      * The settings for IP Management. This allows to enable or disable the
      * instance IP and manage which external networks can connect to the instance.
@@ -3138,21 +2818,16 @@ public boolean hasIpConfig() {
      * 
* * .google.cloud.clouddms.v1.SqlIpConfig ip_config = 6; - * * @return The ipConfig. */ public com.google.cloud.clouddms.v1.SqlIpConfig getIpConfig() { if (ipConfigBuilder_ == null) { - return ipConfig_ == null - ? com.google.cloud.clouddms.v1.SqlIpConfig.getDefaultInstance() - : ipConfig_; + return ipConfig_ == null ? com.google.cloud.clouddms.v1.SqlIpConfig.getDefaultInstance() : ipConfig_; } else { return ipConfigBuilder_.getMessage(); } } /** - * - * *
      * The settings for IP Management. This allows to enable or disable the
      * instance IP and manage which external networks can connect to the instance.
@@ -3175,8 +2850,6 @@ public Builder setIpConfig(com.google.cloud.clouddms.v1.SqlIpConfig value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The settings for IP Management. This allows to enable or disable the
      * instance IP and manage which external networks can connect to the instance.
@@ -3185,7 +2858,8 @@ public Builder setIpConfig(com.google.cloud.clouddms.v1.SqlIpConfig value) {
      *
      * .google.cloud.clouddms.v1.SqlIpConfig ip_config = 6;
      */
-    public Builder setIpConfig(com.google.cloud.clouddms.v1.SqlIpConfig.Builder builderForValue) {
+    public Builder setIpConfig(
+        com.google.cloud.clouddms.v1.SqlIpConfig.Builder builderForValue) {
       if (ipConfigBuilder_ == null) {
         ipConfig_ = builderForValue.build();
         onChanged();
@@ -3196,8 +2870,6 @@ public Builder setIpConfig(com.google.cloud.clouddms.v1.SqlIpConfig.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * The settings for IP Management. This allows to enable or disable the
      * instance IP and manage which external networks can connect to the instance.
@@ -3210,9 +2882,7 @@ public Builder mergeIpConfig(com.google.cloud.clouddms.v1.SqlIpConfig value) {
       if (ipConfigBuilder_ == null) {
         if (ipConfig_ != null) {
           ipConfig_ =
-              com.google.cloud.clouddms.v1.SqlIpConfig.newBuilder(ipConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.clouddms.v1.SqlIpConfig.newBuilder(ipConfig_).mergeFrom(value).buildPartial();
         } else {
           ipConfig_ = value;
         }
@@ -3224,8 +2894,6 @@ public Builder mergeIpConfig(com.google.cloud.clouddms.v1.SqlIpConfig value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The settings for IP Management. This allows to enable or disable the
      * instance IP and manage which external networks can connect to the instance.
@@ -3246,8 +2914,6 @@ public Builder clearIpConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The settings for IP Management. This allows to enable or disable the
      * instance IP and manage which external networks can connect to the instance.
@@ -3257,13 +2923,11 @@ public Builder clearIpConfig() {
      * .google.cloud.clouddms.v1.SqlIpConfig ip_config = 6;
      */
     public com.google.cloud.clouddms.v1.SqlIpConfig.Builder getIpConfigBuilder() {
-
+      
       onChanged();
       return getIpConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The settings for IP Management. This allows to enable or disable the
      * instance IP and manage which external networks can connect to the instance.
@@ -3276,14 +2940,11 @@ public com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder getIpConfigOrBuilder()
       if (ipConfigBuilder_ != null) {
         return ipConfigBuilder_.getMessageOrBuilder();
       } else {
-        return ipConfig_ == null
-            ? com.google.cloud.clouddms.v1.SqlIpConfig.getDefaultInstance()
-            : ipConfig_;
+        return ipConfig_ == null ?
+            com.google.cloud.clouddms.v1.SqlIpConfig.getDefaultInstance() : ipConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * The settings for IP Management. This allows to enable or disable the
      * instance IP and manage which external networks can connect to the instance.
@@ -3293,17 +2954,14 @@ public com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder getIpConfigOrBuilder()
      * .google.cloud.clouddms.v1.SqlIpConfig ip_config = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.clouddms.v1.SqlIpConfig,
-            com.google.cloud.clouddms.v1.SqlIpConfig.Builder,
-            com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder>
+        com.google.cloud.clouddms.v1.SqlIpConfig, com.google.cloud.clouddms.v1.SqlIpConfig.Builder, com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder> 
         getIpConfigFieldBuilder() {
       if (ipConfigBuilder_ == null) {
-        ipConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.clouddms.v1.SqlIpConfig,
-                com.google.cloud.clouddms.v1.SqlIpConfig.Builder,
-                com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder>(
-                getIpConfig(), getParentForChildren(), isClean());
+        ipConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.clouddms.v1.SqlIpConfig, com.google.cloud.clouddms.v1.SqlIpConfig.Builder, com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder>(
+                getIpConfig(),
+                getParentForChildren(),
+                isClean());
         ipConfig_ = null;
       }
       return ipConfigBuilder_;
@@ -3311,13 +2969,8 @@ public com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder getIpConfigOrBuilder()
 
     private com.google.protobuf.BoolValue autoStorageIncrease_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.BoolValue,
-            com.google.protobuf.BoolValue.Builder,
-            com.google.protobuf.BoolValueOrBuilder>
-        autoStorageIncreaseBuilder_;
+        com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> autoStorageIncreaseBuilder_;
     /**
-     *
-     *
      * 
      * [default: ON] If you enable this setting, Cloud SQL checks your available
      * storage every 30 seconds. If the available storage falls below a threshold
@@ -3327,15 +2980,12 @@ public com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder getIpConfigOrBuilder()
      * 
* * .google.protobuf.BoolValue auto_storage_increase = 7; - * * @return Whether the autoStorageIncrease field is set. */ public boolean hasAutoStorageIncrease() { return autoStorageIncreaseBuilder_ != null || autoStorageIncrease_ != null; } /** - * - * *
      * [default: ON] If you enable this setting, Cloud SQL checks your available
      * storage every 30 seconds. If the available storage falls below a threshold
@@ -3345,21 +2995,16 @@ public boolean hasAutoStorageIncrease() {
      * 
* * .google.protobuf.BoolValue auto_storage_increase = 7; - * * @return The autoStorageIncrease. */ public com.google.protobuf.BoolValue getAutoStorageIncrease() { if (autoStorageIncreaseBuilder_ == null) { - return autoStorageIncrease_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : autoStorageIncrease_; + return autoStorageIncrease_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : autoStorageIncrease_; } else { return autoStorageIncreaseBuilder_.getMessage(); } } /** - * - * *
      * [default: ON] If you enable this setting, Cloud SQL checks your available
      * storage every 30 seconds. If the available storage falls below a threshold
@@ -3384,8 +3029,6 @@ public Builder setAutoStorageIncrease(com.google.protobuf.BoolValue value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [default: ON] If you enable this setting, Cloud SQL checks your available
      * storage every 30 seconds. If the available storage falls below a threshold
@@ -3396,7 +3039,8 @@ public Builder setAutoStorageIncrease(com.google.protobuf.BoolValue value) {
      *
      * .google.protobuf.BoolValue auto_storage_increase = 7;
      */
-    public Builder setAutoStorageIncrease(com.google.protobuf.BoolValue.Builder builderForValue) {
+    public Builder setAutoStorageIncrease(
+        com.google.protobuf.BoolValue.Builder builderForValue) {
       if (autoStorageIncreaseBuilder_ == null) {
         autoStorageIncrease_ = builderForValue.build();
         onChanged();
@@ -3407,8 +3051,6 @@ public Builder setAutoStorageIncrease(com.google.protobuf.BoolValue.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * [default: ON] If you enable this setting, Cloud SQL checks your available
      * storage every 30 seconds. If the available storage falls below a threshold
@@ -3423,9 +3065,7 @@ public Builder mergeAutoStorageIncrease(com.google.protobuf.BoolValue value) {
       if (autoStorageIncreaseBuilder_ == null) {
         if (autoStorageIncrease_ != null) {
           autoStorageIncrease_ =
-              com.google.protobuf.BoolValue.newBuilder(autoStorageIncrease_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.BoolValue.newBuilder(autoStorageIncrease_).mergeFrom(value).buildPartial();
         } else {
           autoStorageIncrease_ = value;
         }
@@ -3437,8 +3077,6 @@ public Builder mergeAutoStorageIncrease(com.google.protobuf.BoolValue value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [default: ON] If you enable this setting, Cloud SQL checks your available
      * storage every 30 seconds. If the available storage falls below a threshold
@@ -3461,8 +3099,6 @@ public Builder clearAutoStorageIncrease() {
       return this;
     }
     /**
-     *
-     *
      * 
      * [default: ON] If you enable this setting, Cloud SQL checks your available
      * storage every 30 seconds. If the available storage falls below a threshold
@@ -3474,13 +3110,11 @@ public Builder clearAutoStorageIncrease() {
      * .google.protobuf.BoolValue auto_storage_increase = 7;
      */
     public com.google.protobuf.BoolValue.Builder getAutoStorageIncreaseBuilder() {
-
+      
       onChanged();
       return getAutoStorageIncreaseFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * [default: ON] If you enable this setting, Cloud SQL checks your available
      * storage every 30 seconds. If the available storage falls below a threshold
@@ -3495,14 +3129,11 @@ public com.google.protobuf.BoolValueOrBuilder getAutoStorageIncreaseOrBuilder()
       if (autoStorageIncreaseBuilder_ != null) {
         return autoStorageIncreaseBuilder_.getMessageOrBuilder();
       } else {
-        return autoStorageIncrease_ == null
-            ? com.google.protobuf.BoolValue.getDefaultInstance()
-            : autoStorageIncrease_;
+        return autoStorageIncrease_ == null ?
+            com.google.protobuf.BoolValue.getDefaultInstance() : autoStorageIncrease_;
       }
     }
     /**
-     *
-     *
      * 
      * [default: ON] If you enable this setting, Cloud SQL checks your available
      * storage every 30 seconds. If the available storage falls below a threshold
@@ -3514,40 +3145,35 @@ public com.google.protobuf.BoolValueOrBuilder getAutoStorageIncreaseOrBuilder()
      * .google.protobuf.BoolValue auto_storage_increase = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.BoolValue,
-            com.google.protobuf.BoolValue.Builder,
-            com.google.protobuf.BoolValueOrBuilder>
+        com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> 
         getAutoStorageIncreaseFieldBuilder() {
       if (autoStorageIncreaseBuilder_ == null) {
-        autoStorageIncreaseBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.BoolValue,
-                com.google.protobuf.BoolValue.Builder,
-                com.google.protobuf.BoolValueOrBuilder>(
-                getAutoStorageIncrease(), getParentForChildren(), isClean());
+        autoStorageIncreaseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
+                getAutoStorageIncrease(),
+                getParentForChildren(),
+                isClean());
         autoStorageIncrease_ = null;
       }
       return autoStorageIncreaseBuilder_;
     }
 
-    private com.google.protobuf.MapField databaseFlags_;
-
+    private com.google.protobuf.MapField<
+        java.lang.String, java.lang.String> databaseFlags_;
     private com.google.protobuf.MapField
-        internalGetDatabaseFlags() {
+    internalGetDatabaseFlags() {
       if (databaseFlags_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
             DatabaseFlagsDefaultEntryHolder.defaultEntry);
       }
       return databaseFlags_;
     }
-
     private com.google.protobuf.MapField
-        internalGetMutableDatabaseFlags() {
-      onChanged();
-      ;
+    internalGetMutableDatabaseFlags() {
+      onChanged();;
       if (databaseFlags_ == null) {
-        databaseFlags_ =
-            com.google.protobuf.MapField.newMapField(DatabaseFlagsDefaultEntryHolder.defaultEntry);
+        databaseFlags_ = com.google.protobuf.MapField.newMapField(
+            DatabaseFlagsDefaultEntryHolder.defaultEntry);
       }
       if (!databaseFlags_.isMutable()) {
         databaseFlags_ = databaseFlags_.copy();
@@ -3559,8 +3185,6 @@ public int getDatabaseFlagsCount() {
       return internalGetDatabaseFlags().getMap().size();
     }
     /**
-     *
-     *
      * 
      * The database flags passed to the Cloud SQL instance at startup.
      * An object containing a list of "key": value pairs.
@@ -3569,22 +3193,22 @@ public int getDatabaseFlagsCount() {
      *
      * map<string, string> database_flags = 8;
      */
+
     @java.lang.Override
-    public boolean containsDatabaseFlags(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsDatabaseFlags(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetDatabaseFlags().getMap().containsKey(key);
     }
-    /** Use {@link #getDatabaseFlagsMap()} instead. */
+    /**
+     * Use {@link #getDatabaseFlagsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getDatabaseFlags() {
       return getDatabaseFlagsMap();
     }
     /**
-     *
-     *
      * 
      * The database flags passed to the Cloud SQL instance at startup.
      * An object containing a list of "key": value pairs.
@@ -3594,12 +3218,11 @@ public java.util.Map getDatabaseFlags() {
      * map<string, string> database_flags = 8;
      */
     @java.lang.Override
+
     public java.util.Map getDatabaseFlagsMap() {
       return internalGetDatabaseFlags().getMap();
     }
     /**
-     *
-     *
      * 
      * The database flags passed to the Cloud SQL instance at startup.
      * An object containing a list of "key": value pairs.
@@ -3609,17 +3232,16 @@ public java.util.Map getDatabaseFlagsMap() {
      * map<string, string> database_flags = 8;
      */
     @java.lang.Override
+
     public java.lang.String getDatabaseFlagsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetDatabaseFlags().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetDatabaseFlags().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * The database flags passed to the Cloud SQL instance at startup.
      * An object containing a list of "key": value pairs.
@@ -3629,11 +3251,12 @@ public java.lang.String getDatabaseFlagsOrDefault(
      * map<string, string> database_flags = 8;
      */
     @java.lang.Override
-    public java.lang.String getDatabaseFlagsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetDatabaseFlags().getMap();
+
+    public java.lang.String getDatabaseFlagsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetDatabaseFlags().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -3641,12 +3264,11 @@ public java.lang.String getDatabaseFlagsOrThrow(java.lang.String key) {
     }
 
     public Builder clearDatabaseFlags() {
-      internalGetMutableDatabaseFlags().getMutableMap().clear();
+      internalGetMutableDatabaseFlags().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * The database flags passed to the Cloud SQL instance at startup.
      * An object containing a list of "key": value pairs.
@@ -3655,21 +3277,23 @@ public Builder clearDatabaseFlags() {
      *
      * map<string, string> database_flags = 8;
      */
-    public Builder removeDatabaseFlags(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableDatabaseFlags().getMutableMap().remove(key);
+
+    public Builder removeDatabaseFlags(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableDatabaseFlags().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableDatabaseFlags() {
+    public java.util.Map
+    getMutableDatabaseFlags() {
       return internalGetMutableDatabaseFlags().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * The database flags passed to the Cloud SQL instance at startup.
      * An object containing a list of "key": value pairs.
@@ -3678,19 +3302,16 @@ public java.util.Map getMutableDatabaseFlags
      *
      * map<string, string> database_flags = 8;
      */
-    public Builder putDatabaseFlags(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableDatabaseFlags().getMutableMap().put(key, value);
+    public Builder putDatabaseFlags(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableDatabaseFlags().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * The database flags passed to the Cloud SQL instance at startup.
      * An object containing a list of "key": value pairs.
@@ -3699,100 +3320,83 @@ public Builder putDatabaseFlags(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> database_flags = 8;
      */
-    public Builder putAllDatabaseFlags(java.util.Map values) {
-      internalGetMutableDatabaseFlags().getMutableMap().putAll(values);
+
+    public Builder putAllDatabaseFlags(
+        java.util.Map values) {
+      internalGetMutableDatabaseFlags().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private int dataDiskType_ = 0;
     /**
-     *
-     *
      * 
      * The type of storage: `PD_SSD` (default) or `PD_HDD`.
      * 
* * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType data_disk_type = 9; - * * @return The enum numeric value on the wire for dataDiskType. */ - @java.lang.Override - public int getDataDiskTypeValue() { + @java.lang.Override public int getDataDiskTypeValue() { return dataDiskType_; } /** - * - * *
      * The type of storage: `PD_SSD` (default) or `PD_HDD`.
      * 
* * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType data_disk_type = 9; - * * @param value The enum numeric value on the wire for dataDiskType to set. * @return This builder for chaining. */ public Builder setDataDiskTypeValue(int value) { - + dataDiskType_ = value; onChanged(); return this; } /** - * - * *
      * The type of storage: `PD_SSD` (default) or `PD_HDD`.
      * 
* * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType data_disk_type = 9; - * * @return The dataDiskType. */ @java.lang.Override public com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType getDataDiskType() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType result = - com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType.valueOf(dataDiskType_); - return result == null - ? com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType.UNRECOGNIZED - : result; + com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType result = com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType.valueOf(dataDiskType_); + return result == null ? com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType.UNRECOGNIZED : result; } /** - * - * *
      * The type of storage: `PD_SSD` (default) or `PD_HDD`.
      * 
* * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType data_disk_type = 9; - * * @param value The dataDiskType to set. * @return This builder for chaining. */ - public Builder setDataDiskType( - com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType value) { + public Builder setDataDiskType(com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType value) { if (value == null) { throw new NullPointerException(); } - + dataDiskType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The type of storage: `PD_SSD` (default) or `PD_HDD`.
      * 
* * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType data_disk_type = 9; - * * @return This builder for chaining. */ public Builder clearDataDiskType() { - + dataDiskType_ = 0; onChanged(); return this; @@ -3800,49 +3404,36 @@ public Builder clearDataDiskType() { private com.google.protobuf.Int64Value dataDiskSizeGb_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> - dataDiskSizeGbBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> dataDiskSizeGbBuilder_; /** - * - * *
      * The storage capacity available to the database, in GB.
      * The minimum (and default) size is 10GB.
      * 
* * .google.protobuf.Int64Value data_disk_size_gb = 10; - * * @return Whether the dataDiskSizeGb field is set. */ public boolean hasDataDiskSizeGb() { return dataDiskSizeGbBuilder_ != null || dataDiskSizeGb_ != null; } /** - * - * *
      * The storage capacity available to the database, in GB.
      * The minimum (and default) size is 10GB.
      * 
* * .google.protobuf.Int64Value data_disk_size_gb = 10; - * * @return The dataDiskSizeGb. */ public com.google.protobuf.Int64Value getDataDiskSizeGb() { if (dataDiskSizeGbBuilder_ == null) { - return dataDiskSizeGb_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : dataDiskSizeGb_; + return dataDiskSizeGb_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : dataDiskSizeGb_; } else { return dataDiskSizeGbBuilder_.getMessage(); } } /** - * - * *
      * The storage capacity available to the database, in GB.
      * The minimum (and default) size is 10GB.
@@ -3864,8 +3455,6 @@ public Builder setDataDiskSizeGb(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The storage capacity available to the database, in GB.
      * The minimum (and default) size is 10GB.
@@ -3873,7 +3462,8 @@ public Builder setDataDiskSizeGb(com.google.protobuf.Int64Value value) {
      *
      * .google.protobuf.Int64Value data_disk_size_gb = 10;
      */
-    public Builder setDataDiskSizeGb(com.google.protobuf.Int64Value.Builder builderForValue) {
+    public Builder setDataDiskSizeGb(
+        com.google.protobuf.Int64Value.Builder builderForValue) {
       if (dataDiskSizeGbBuilder_ == null) {
         dataDiskSizeGb_ = builderForValue.build();
         onChanged();
@@ -3884,8 +3474,6 @@ public Builder setDataDiskSizeGb(com.google.protobuf.Int64Value.Builder builderF
       return this;
     }
     /**
-     *
-     *
      * 
      * The storage capacity available to the database, in GB.
      * The minimum (and default) size is 10GB.
@@ -3897,9 +3485,7 @@ public Builder mergeDataDiskSizeGb(com.google.protobuf.Int64Value value) {
       if (dataDiskSizeGbBuilder_ == null) {
         if (dataDiskSizeGb_ != null) {
           dataDiskSizeGb_ =
-              com.google.protobuf.Int64Value.newBuilder(dataDiskSizeGb_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Int64Value.newBuilder(dataDiskSizeGb_).mergeFrom(value).buildPartial();
         } else {
           dataDiskSizeGb_ = value;
         }
@@ -3911,8 +3497,6 @@ public Builder mergeDataDiskSizeGb(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The storage capacity available to the database, in GB.
      * The minimum (and default) size is 10GB.
@@ -3932,8 +3516,6 @@ public Builder clearDataDiskSizeGb() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The storage capacity available to the database, in GB.
      * The minimum (and default) size is 10GB.
@@ -3942,13 +3524,11 @@ public Builder clearDataDiskSizeGb() {
      * .google.protobuf.Int64Value data_disk_size_gb = 10;
      */
     public com.google.protobuf.Int64Value.Builder getDataDiskSizeGbBuilder() {
-
+      
       onChanged();
       return getDataDiskSizeGbFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The storage capacity available to the database, in GB.
      * The minimum (and default) size is 10GB.
@@ -3960,14 +3540,11 @@ public com.google.protobuf.Int64ValueOrBuilder getDataDiskSizeGbOrBuilder() {
       if (dataDiskSizeGbBuilder_ != null) {
         return dataDiskSizeGbBuilder_.getMessageOrBuilder();
       } else {
-        return dataDiskSizeGb_ == null
-            ? com.google.protobuf.Int64Value.getDefaultInstance()
-            : dataDiskSizeGb_;
+        return dataDiskSizeGb_ == null ?
+            com.google.protobuf.Int64Value.getDefaultInstance() : dataDiskSizeGb_;
       }
     }
     /**
-     *
-     *
      * 
      * The storage capacity available to the database, in GB.
      * The minimum (and default) size is 10GB.
@@ -3976,17 +3553,14 @@ public com.google.protobuf.Int64ValueOrBuilder getDataDiskSizeGbOrBuilder() {
      * .google.protobuf.Int64Value data_disk_size_gb = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Int64Value,
-            com.google.protobuf.Int64Value.Builder,
-            com.google.protobuf.Int64ValueOrBuilder>
+        com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> 
         getDataDiskSizeGbFieldBuilder() {
       if (dataDiskSizeGbBuilder_ == null) {
-        dataDiskSizeGbBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Int64Value,
-                com.google.protobuf.Int64Value.Builder,
-                com.google.protobuf.Int64ValueOrBuilder>(
-                getDataDiskSizeGb(), getParentForChildren(), isClean());
+        dataDiskSizeGbBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
+                getDataDiskSizeGb(),
+                getParentForChildren(),
+                isClean());
         dataDiskSizeGb_ = null;
       }
       return dataDiskSizeGbBuilder_;
@@ -3994,21 +3568,19 @@ public com.google.protobuf.Int64ValueOrBuilder getDataDiskSizeGbOrBuilder() {
 
     private java.lang.Object zone_ = "";
     /**
-     *
-     *
      * 
      * The Google Cloud Platform zone where your Cloud SQL datdabse instance is
      * located.
      * 
* * string zone = 11; - * * @return The zone. */ public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zone_ = s; return s; @@ -4017,22 +3589,21 @@ public java.lang.String getZone() { } } /** - * - * *
      * The Google Cloud Platform zone where your Cloud SQL datdabse instance is
      * located.
      * 
* * string zone = 11; - * * @return The bytes for zone. */ - public com.google.protobuf.ByteString getZoneBytes() { + public com.google.protobuf.ByteString + getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); zone_ = b; return b; } else { @@ -4040,64 +3611,57 @@ public com.google.protobuf.ByteString getZoneBytes() { } } /** - * - * *
      * The Google Cloud Platform zone where your Cloud SQL datdabse instance is
      * located.
      * 
* * string zone = 11; - * * @param value The zone to set. * @return This builder for chaining. */ - public Builder setZone(java.lang.String value) { + public Builder setZone( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + zone_ = value; onChanged(); return this; } /** - * - * *
      * The Google Cloud Platform zone where your Cloud SQL datdabse instance is
      * located.
      * 
* * string zone = 11; - * * @return This builder for chaining. */ public Builder clearZone() { - + zone_ = getDefaultInstance().getZone(); onChanged(); return this; } /** - * - * *
      * The Google Cloud Platform zone where your Cloud SQL datdabse instance is
      * located.
      * 
* * string zone = 11; - * * @param value The bytes for zone to set. * @return This builder for chaining. */ - public Builder setZoneBytes(com.google.protobuf.ByteString value) { + public Builder setZoneBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; onChanged(); return this; @@ -4105,8 +3669,6 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceId_ = ""; /** - * - * *
      * The Database Migration Service source connection profile ID,
      * in the format:
@@ -4114,13 +3676,13 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) {
      * 
* * string source_id = 12; - * * @return The sourceId. */ public java.lang.String getSourceId() { java.lang.Object ref = sourceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceId_ = s; return s; @@ -4129,8 +3691,6 @@ public java.lang.String getSourceId() { } } /** - * - * *
      * The Database Migration Service source connection profile ID,
      * in the format:
@@ -4138,14 +3698,15 @@ public java.lang.String getSourceId() {
      * 
* * string source_id = 12; - * * @return The bytes for sourceId. */ - public com.google.protobuf.ByteString getSourceIdBytes() { + public com.google.protobuf.ByteString + getSourceIdBytes() { java.lang.Object ref = sourceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceId_ = b; return b; } else { @@ -4153,8 +3714,6 @@ public com.google.protobuf.ByteString getSourceIdBytes() { } } /** - * - * *
      * The Database Migration Service source connection profile ID,
      * in the format:
@@ -4162,22 +3721,20 @@ public com.google.protobuf.ByteString getSourceIdBytes() {
      * 
* * string source_id = 12; - * * @param value The sourceId to set. * @return This builder for chaining. */ - public Builder setSourceId(java.lang.String value) { + public Builder setSourceId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceId_ = value; onChanged(); return this; } /** - * - * *
      * The Database Migration Service source connection profile ID,
      * in the format:
@@ -4185,18 +3742,15 @@ public Builder setSourceId(java.lang.String value) {
      * 
* * string source_id = 12; - * * @return This builder for chaining. */ public Builder clearSourceId() { - + sourceId_ = getDefaultInstance().getSourceId(); onChanged(); return this; } /** - * - * *
      * The Database Migration Service source connection profile ID,
      * in the format:
@@ -4204,16 +3758,16 @@ public Builder clearSourceId() {
      * 
* * string source_id = 12; - * * @param value The bytes for sourceId to set. * @return This builder for chaining. */ - public Builder setSourceIdBytes(com.google.protobuf.ByteString value) { + public Builder setSourceIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceId_ = value; onChanged(); return this; @@ -4221,20 +3775,18 @@ public Builder setSourceIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object rootPassword_ = ""; /** - * - * *
      * Input only. Initial root password.
      * 
* * string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The rootPassword. */ public java.lang.String getRootPassword() { java.lang.Object ref = rootPassword_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootPassword_ = s; return s; @@ -4243,21 +3795,20 @@ public java.lang.String getRootPassword() { } } /** - * - * *
      * Input only. Initial root password.
      * 
* * string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for rootPassword. */ - public com.google.protobuf.ByteString getRootPasswordBytes() { + public com.google.protobuf.ByteString + getRootPasswordBytes() { java.lang.Object ref = rootPassword_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rootPassword_ = b; return b; } else { @@ -4265,76 +3816,66 @@ public com.google.protobuf.ByteString getRootPasswordBytes() { } } /** - * - * *
      * Input only. Initial root password.
      * 
* * string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The rootPassword to set. * @return This builder for chaining. */ - public Builder setRootPassword(java.lang.String value) { + public Builder setRootPassword( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + rootPassword_ = value; onChanged(); return this; } /** - * - * *
      * Input only. Initial root password.
      * 
* * string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRootPassword() { - + rootPassword_ = getDefaultInstance().getRootPassword(); onChanged(); return this; } /** - * - * *
      * Input only. Initial root password.
      * 
* * string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The bytes for rootPassword to set. * @return This builder for chaining. */ - public Builder setRootPasswordBytes(com.google.protobuf.ByteString value) { + public Builder setRootPasswordBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rootPassword_ = value; onChanged(); return this; } - private boolean rootPasswordSet_; + private boolean rootPasswordSet_ ; /** - * - * *
      * Output only. Indicates If this connection profile root password is stored.
      * 
* * bool root_password_set = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The rootPasswordSet. */ @java.lang.Override @@ -4342,36 +3883,30 @@ public boolean getRootPasswordSet() { return rootPasswordSet_; } /** - * - * *
      * Output only. Indicates If this connection profile root password is stored.
      * 
* * bool root_password_set = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The rootPasswordSet to set. * @return This builder for chaining. */ public Builder setRootPasswordSet(boolean value) { - + rootPasswordSet_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Indicates If this connection profile root password is stored.
      * 
* * bool root_password_set = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRootPasswordSet() { - + rootPasswordSet_ = false; onChanged(); return this; @@ -4379,20 +3914,18 @@ public Builder clearRootPasswordSet() { private java.lang.Object collation_ = ""; /** - * - * *
      * The Cloud SQL default instance level collation.
      * 
* * string collation = 15; - * * @return The collation. */ public java.lang.String getCollation() { java.lang.Object ref = collation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collation_ = s; return s; @@ -4401,21 +3934,20 @@ public java.lang.String getCollation() { } } /** - * - * *
      * The Cloud SQL default instance level collation.
      * 
* * string collation = 15; - * * @return The bytes for collation. */ - public com.google.protobuf.ByteString getCollationBytes() { + public com.google.protobuf.ByteString + getCollationBytes() { java.lang.Object ref = collation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); collation_ = b; return b; } else { @@ -4423,68 +3955,61 @@ public com.google.protobuf.ByteString getCollationBytes() { } } /** - * - * *
      * The Cloud SQL default instance level collation.
      * 
* * string collation = 15; - * * @param value The collation to set. * @return This builder for chaining. */ - public Builder setCollation(java.lang.String value) { + public Builder setCollation( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + collation_ = value; onChanged(); return this; } /** - * - * *
      * The Cloud SQL default instance level collation.
      * 
* * string collation = 15; - * * @return This builder for chaining. */ public Builder clearCollation() { - + collation_ = getDefaultInstance().getCollation(); onChanged(); return this; } /** - * - * *
      * The Cloud SQL default instance level collation.
      * 
* * string collation = 15; - * * @param value The bytes for collation to set. * @return This builder for chaining. */ - public Builder setCollationBytes(com.google.protobuf.ByteString value) { + public Builder setCollationBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + collation_ = 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); } @@ -4494,12 +4019,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.CloudSqlSettings) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.CloudSqlSettings) private static final com.google.cloud.clouddms.v1.CloudSqlSettings DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.CloudSqlSettings(); } @@ -4508,16 +4033,16 @@ public static com.google.cloud.clouddms.v1.CloudSqlSettings getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudSqlSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudSqlSettings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudSqlSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CloudSqlSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4532,4 +4057,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.CloudSqlSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettingsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettingsOrBuilder.java similarity index 85% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettingsOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettingsOrBuilder.java index e88ace94..9c98e706 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettingsOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettingsOrBuilder.java @@ -1,58 +1,32 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; -public interface CloudSqlSettingsOrBuilder - extends +public interface CloudSqlSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.CloudSqlSettings) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The database engine type and version.
    * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; - * - * + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; * @return The enum numeric value on the wire for databaseVersion. */ int getDatabaseVersionValue(); /** - * - * *
    * The database engine type and version.
    * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; - * - * + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; * @return The databaseVersion. */ com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion getDatabaseVersion(); /** - * - * *
    * The resource labels for a Cloud SQL instance to use to annotate any related
    * underlying resources such as Compute Engine VMs.
@@ -64,8 +38,6 @@ public interface CloudSqlSettingsOrBuilder
    */
   int getUserLabelsCount();
   /**
-   *
-   *
    * 
    * The resource labels for a Cloud SQL instance to use to annotate any related
    * underlying resources such as Compute Engine VMs.
@@ -75,13 +47,15 @@ public interface CloudSqlSettingsOrBuilder
    *
    * map<string, string> user_labels = 2;
    */
-  boolean containsUserLabels(java.lang.String key);
-  /** Use {@link #getUserLabelsMap()} instead. */
+  boolean containsUserLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getUserLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getUserLabels();
+  java.util.Map
+  getUserLabels();
   /**
-   *
-   *
    * 
    * The resource labels for a Cloud SQL instance to use to annotate any related
    * underlying resources such as Compute Engine VMs.
@@ -91,10 +65,9 @@ public interface CloudSqlSettingsOrBuilder
    *
    * map<string, string> user_labels = 2;
    */
-  java.util.Map getUserLabelsMap();
+  java.util.Map
+  getUserLabelsMap();
   /**
-   *
-   *
    * 
    * The resource labels for a Cloud SQL instance to use to annotate any related
    * underlying resources such as Compute Engine VMs.
@@ -104,10 +77,11 @@ public interface CloudSqlSettingsOrBuilder
    *
    * map<string, string> user_labels = 2;
    */
-  java.lang.String getUserLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getUserLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * The resource labels for a Cloud SQL instance to use to annotate any related
    * underlying resources such as Compute Engine VMs.
@@ -117,11 +91,11 @@ public interface CloudSqlSettingsOrBuilder
    *
    * map<string, string> user_labels = 2;
    */
-  java.lang.String getUserLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getUserLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * The tier (or machine type) for this instance, for example:
    * `db-n1-standard-1` (MySQL instances) or
@@ -132,13 +106,10 @@ public interface CloudSqlSettingsOrBuilder
    * 
* * string tier = 3; - * * @return The tier. */ java.lang.String getTier(); /** - * - * *
    * The tier (or machine type) for this instance, for example:
    * `db-n1-standard-1` (MySQL instances) or
@@ -149,40 +120,32 @@ public interface CloudSqlSettingsOrBuilder
    * 
* * string tier = 3; - * * @return The bytes for tier. */ - com.google.protobuf.ByteString getTierBytes(); + com.google.protobuf.ByteString + getTierBytes(); /** - * - * *
    * The maximum size to which storage capacity can be automatically increased.
    * The default value is 0, which specifies that there is no limit.
    * 
* * .google.protobuf.Int64Value storage_auto_resize_limit = 4; - * * @return Whether the storageAutoResizeLimit field is set. */ boolean hasStorageAutoResizeLimit(); /** - * - * *
    * The maximum size to which storage capacity can be automatically increased.
    * The default value is 0, which specifies that there is no limit.
    * 
* * .google.protobuf.Int64Value storage_auto_resize_limit = 4; - * * @return The storageAutoResizeLimit. */ com.google.protobuf.Int64Value getStorageAutoResizeLimit(); /** - * - * *
    * The maximum size to which storage capacity can be automatically increased.
    * The default value is 0, which specifies that there is no limit.
@@ -193,8 +156,6 @@ public interface CloudSqlSettingsOrBuilder
   com.google.protobuf.Int64ValueOrBuilder getStorageAutoResizeLimitOrBuilder();
 
   /**
-   *
-   *
    * 
    * The activation policy specifies when the instance is activated; it is
    * applicable only when the instance state is 'RUNNABLE'. Valid values:
@@ -204,15 +165,11 @@ public interface CloudSqlSettingsOrBuilder
    * connection request arrives.
    * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; - * - * + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; * @return The enum numeric value on the wire for activationPolicy. */ int getActivationPolicyValue(); /** - * - * *
    * The activation policy specifies when the instance is activated; it is
    * applicable only when the instance state is 'RUNNABLE'. Valid values:
@@ -222,16 +179,12 @@ public interface CloudSqlSettingsOrBuilder
    * connection request arrives.
    * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; - * - * + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; * @return The activationPolicy. */ com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy getActivationPolicy(); /** - * - * *
    * The settings for IP Management. This allows to enable or disable the
    * instance IP and manage which external networks can connect to the instance.
@@ -239,13 +192,10 @@ public interface CloudSqlSettingsOrBuilder
    * 
* * .google.cloud.clouddms.v1.SqlIpConfig ip_config = 6; - * * @return Whether the ipConfig field is set. */ boolean hasIpConfig(); /** - * - * *
    * The settings for IP Management. This allows to enable or disable the
    * instance IP and manage which external networks can connect to the instance.
@@ -253,13 +203,10 @@ public interface CloudSqlSettingsOrBuilder
    * 
* * .google.cloud.clouddms.v1.SqlIpConfig ip_config = 6; - * * @return The ipConfig. */ com.google.cloud.clouddms.v1.SqlIpConfig getIpConfig(); /** - * - * *
    * The settings for IP Management. This allows to enable or disable the
    * instance IP and manage which external networks can connect to the instance.
@@ -271,8 +218,6 @@ public interface CloudSqlSettingsOrBuilder
   com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder getIpConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * [default: ON] If you enable this setting, Cloud SQL checks your available
    * storage every 30 seconds. If the available storage falls below a threshold
@@ -282,13 +227,10 @@ public interface CloudSqlSettingsOrBuilder
    * 
* * .google.protobuf.BoolValue auto_storage_increase = 7; - * * @return Whether the autoStorageIncrease field is set. */ boolean hasAutoStorageIncrease(); /** - * - * *
    * [default: ON] If you enable this setting, Cloud SQL checks your available
    * storage every 30 seconds. If the available storage falls below a threshold
@@ -298,13 +240,10 @@ public interface CloudSqlSettingsOrBuilder
    * 
* * .google.protobuf.BoolValue auto_storage_increase = 7; - * * @return The autoStorageIncrease. */ com.google.protobuf.BoolValue getAutoStorageIncrease(); /** - * - * *
    * [default: ON] If you enable this setting, Cloud SQL checks your available
    * storage every 30 seconds. If the available storage falls below a threshold
@@ -318,8 +257,6 @@ public interface CloudSqlSettingsOrBuilder
   com.google.protobuf.BoolValueOrBuilder getAutoStorageIncreaseOrBuilder();
 
   /**
-   *
-   *
    * 
    * The database flags passed to the Cloud SQL instance at startup.
    * An object containing a list of "key": value pairs.
@@ -330,8 +267,6 @@ public interface CloudSqlSettingsOrBuilder
    */
   int getDatabaseFlagsCount();
   /**
-   *
-   *
    * 
    * The database flags passed to the Cloud SQL instance at startup.
    * An object containing a list of "key": value pairs.
@@ -340,13 +275,15 @@ public interface CloudSqlSettingsOrBuilder
    *
    * map<string, string> database_flags = 8;
    */
-  boolean containsDatabaseFlags(java.lang.String key);
-  /** Use {@link #getDatabaseFlagsMap()} instead. */
+  boolean containsDatabaseFlags(
+      java.lang.String key);
+  /**
+   * Use {@link #getDatabaseFlagsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getDatabaseFlags();
+  java.util.Map
+  getDatabaseFlags();
   /**
-   *
-   *
    * 
    * The database flags passed to the Cloud SQL instance at startup.
    * An object containing a list of "key": value pairs.
@@ -355,10 +292,9 @@ public interface CloudSqlSettingsOrBuilder
    *
    * map<string, string> database_flags = 8;
    */
-  java.util.Map getDatabaseFlagsMap();
+  java.util.Map
+  getDatabaseFlagsMap();
   /**
-   *
-   *
    * 
    * The database flags passed to the Cloud SQL instance at startup.
    * An object containing a list of "key": value pairs.
@@ -367,10 +303,11 @@ public interface CloudSqlSettingsOrBuilder
    *
    * map<string, string> database_flags = 8;
    */
-  java.lang.String getDatabaseFlagsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getDatabaseFlagsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * The database flags passed to the Cloud SQL instance at startup.
    * An object containing a list of "key": value pairs.
@@ -379,62 +316,50 @@ public interface CloudSqlSettingsOrBuilder
    *
    * map<string, string> database_flags = 8;
    */
-  java.lang.String getDatabaseFlagsOrThrow(java.lang.String key);
+
+  java.lang.String getDatabaseFlagsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * The type of storage: `PD_SSD` (default) or `PD_HDD`.
    * 
* * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType data_disk_type = 9; - * * @return The enum numeric value on the wire for dataDiskType. */ int getDataDiskTypeValue(); /** - * - * *
    * The type of storage: `PD_SSD` (default) or `PD_HDD`.
    * 
* * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType data_disk_type = 9; - * * @return The dataDiskType. */ com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType getDataDiskType(); /** - * - * *
    * The storage capacity available to the database, in GB.
    * The minimum (and default) size is 10GB.
    * 
* * .google.protobuf.Int64Value data_disk_size_gb = 10; - * * @return Whether the dataDiskSizeGb field is set. */ boolean hasDataDiskSizeGb(); /** - * - * *
    * The storage capacity available to the database, in GB.
    * The minimum (and default) size is 10GB.
    * 
* * .google.protobuf.Int64Value data_disk_size_gb = 10; - * * @return The dataDiskSizeGb. */ com.google.protobuf.Int64Value getDataDiskSizeGb(); /** - * - * *
    * The storage capacity available to the database, in GB.
    * The minimum (and default) size is 10GB.
@@ -445,35 +370,28 @@ public interface CloudSqlSettingsOrBuilder
   com.google.protobuf.Int64ValueOrBuilder getDataDiskSizeGbOrBuilder();
 
   /**
-   *
-   *
    * 
    * The Google Cloud Platform zone where your Cloud SQL datdabse instance is
    * located.
    * 
* * string zone = 11; - * * @return The zone. */ java.lang.String getZone(); /** - * - * *
    * The Google Cloud Platform zone where your Cloud SQL datdabse instance is
    * located.
    * 
* * string zone = 11; - * * @return The bytes for zone. */ - com.google.protobuf.ByteString getZoneBytes(); + com.google.protobuf.ByteString + getZoneBytes(); /** - * - * *
    * The Database Migration Service source connection profile ID,
    * in the format:
@@ -481,13 +399,10 @@ public interface CloudSqlSettingsOrBuilder
    * 
* * string source_id = 12; - * * @return The sourceId. */ java.lang.String getSourceId(); /** - * - * *
    * The Database Migration Service source connection profile ID,
    * in the format:
@@ -495,71 +410,58 @@ public interface CloudSqlSettingsOrBuilder
    * 
* * string source_id = 12; - * * @return The bytes for sourceId. */ - com.google.protobuf.ByteString getSourceIdBytes(); + com.google.protobuf.ByteString + getSourceIdBytes(); /** - * - * *
    * Input only. Initial root password.
    * 
* * string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The rootPassword. */ java.lang.String getRootPassword(); /** - * - * *
    * Input only. Initial root password.
    * 
* * string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for rootPassword. */ - com.google.protobuf.ByteString getRootPasswordBytes(); + com.google.protobuf.ByteString + getRootPasswordBytes(); /** - * - * *
    * Output only. Indicates If this connection profile root password is stored.
    * 
* * bool root_password_set = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The rootPasswordSet. */ boolean getRootPasswordSet(); /** - * - * *
    * The Cloud SQL default instance level collation.
    * 
* * string collation = 15; - * * @return The collation. */ java.lang.String getCollation(); /** - * - * *
    * The Cloud SQL default instance level collation.
    * 
* * string collation = 15; - * * @return The bytes for collation. */ - com.google.protobuf.ByteString getCollationBytes(); + com.google.protobuf.ByteString + getCollationBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsProto.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsProto.java new file mode 100644 index 00000000..85d56ae1 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsProto.java @@ -0,0 +1,505 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public final class ClouddmsProto { + private ClouddmsProto() {} + 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_clouddms_v1_ListMigrationJobsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_VmCreationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_VmCreationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_VmSelectionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_VmSelectionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_SshScript_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_SshScript_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\'google/cloud/clouddms/v1/clouddms.prot" + + "o\022\030google.cloud.clouddms.v1\032\034google/api/" + + "annotations.proto\032\027google/api/client.pro" + + "to\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\0321google/cloud/clo" + + "uddms/v1/clouddms_resources.proto\032#googl" + + "e/longrunning/operations.proto\032 google/p" + + "rotobuf/field_mask.proto\032\037google/protobu" + + "f/timestamp.proto\"\246\001\n\030ListMigrationJobsR" + + "equest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)datamigr" + + "ation.googleapis.com/MigrationJob\022\021\n\tpag" + + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filt" + + "er\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\211\001\n\031ListMigra" + + "tionJobsResponse\022>\n\016migration_jobs\030\001 \003(\013" + + "2&.google.cloud.clouddms.v1.MigrationJob" + + "\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachable" + + "\030\003 \003(\t\"Y\n\026GetMigrationJobRequest\022?\n\004name" + + "\030\001 \001(\tB1\340A\002\372A+\n)datamigration.googleapis" + + ".com/MigrationJob\"\325\001\n\031CreateMigrationJob" + + "Request\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)datamig" + + "ration.googleapis.com/MigrationJob\022\035\n\020mi" + + "gration_job_id\030\002 \001(\tB\003\340A\002\022B\n\rmigration_j" + + "ob\030\003 \001(\0132&.google.cloud.clouddms.v1.Migr" + + "ationJobB\003\340A\002\022\022\n\nrequest_id\030\004 \001(\t\"\251\001\n\031Up" + + "dateMigrationJobRequest\0224\n\013update_mask\030\001" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022B\n" + + "\rmigration_job\030\002 \001(\0132&.google.cloud.clou" + + "ddms.v1.MigrationJobB\003\340A\002\022\022\n\nrequest_id\030" + + "\003 \001(\t\"\177\n\031DeleteMigrationJobRequest\022?\n\004na" + + "me\030\001 \001(\tB1\340A\002\372A+\n)datamigration.googleap" + + "is.com/MigrationJob\022\022\n\nrequest_id\030\002 \001(\t\022" + + "\r\n\005force\030\003 \001(\010\"X\n\030StartMigrationJobReque" + + "st\022<\n\004name\030\001 \001(\tB.\372A+\n)datamigration.goo" + + "gleapis.com/MigrationJob\"W\n\027StopMigratio" + + "nJobRequest\022<\n\004name\030\001 \001(\tB.\372A+\n)datamigr" + + "ation.googleapis.com/MigrationJob\"Y\n\031Res" + + "umeMigrationJobRequest\022<\n\004name\030\001 \001(\tB.\372A" + + "+\n)datamigration.googleapis.com/Migratio" + + "nJob\"Z\n\032PromoteMigrationJobRequest\022<\n\004na" + + "me\030\001 \001(\tB.\372A+\n)datamigration.googleapis." + + "com/MigrationJob\"Y\n\031VerifyMigrationJobRe" + + "quest\022<\n\004name\030\001 \001(\tB.\372A+\n)datamigration." + + "googleapis.com/MigrationJob\"Z\n\032RestartMi" + + "grationJobRequest\022<\n\004name\030\001 \001(\tB.\372A+\n)da" + + "tamigration.googleapis.com/MigrationJob\"" + + "\246\002\n\030GenerateSshScriptRequest\022E\n\rmigratio" + + "n_job\030\001 \001(\tB.\372A+\n)datamigration.googleap" + + "is.com/MigrationJob\022\017\n\002vm\030\002 \001(\tB\003\340A\002\022H\n\022" + + "vm_creation_config\030d \001(\0132*.google.cloud." + + "clouddms.v1.VmCreationConfigH\000\022J\n\023vm_sel" + + "ection_config\030e \001(\0132+.google.cloud.cloud" + + "dms.v1.VmSelectionConfigH\000\022\017\n\007vm_port\030\003 " + + "\001(\005B\013\n\tvm_config\"Q\n\020VmCreationConfig\022\034\n\017" + + "vm_machine_type\030\001 \001(\tB\003\340A\002\022\017\n\007vm_zone\030\002 " + + "\001(\t\022\016\n\006subnet\030\003 \001(\t\")\n\021VmSelectionConfig" + + "\022\024\n\007vm_zone\030\001 \001(\tB\003\340A\002\"\033\n\tSshScript\022\016\n\006s" + + "cript\030\001 \001(\t\"\260\001\n\035ListConnectionProfilesRe" + + "quest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.datamigra" + + "tion.googleapis.com/ConnectionProfile\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006" + + "filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\230\001\n\036ListC" + + "onnectionProfilesResponse\022H\n\023connection_" + + "profiles\030\001 \003(\0132+.google.cloud.clouddms.v" + + "1.ConnectionProfile\022\027\n\017next_page_token\030\002" + + " \001(\t\022\023\n\013unreachable\030\003 \003(\t\"c\n\033GetConnecti" + + "onProfileRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n." + + "datamigration.googleapis.com/ConnectionP" + + "rofile\"\356\001\n\036CreateConnectionProfileReques" + + "t\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.datamigration" + + ".googleapis.com/ConnectionProfile\022\"\n\025con" + + "nection_profile_id\030\002 \001(\tB\003\340A\002\022L\n\022connect" + + "ion_profile\030\003 \001(\0132+.google.cloud.clouddm" + + "s.v1.ConnectionProfileB\003\340A\002\022\022\n\nrequest_i" + + "d\030\004 \001(\t\"\270\001\n\036UpdateConnectionProfileReque" + + "st\0224\n\013update_mask\030\001 \001(\0132\032.google.protobu" + + "f.FieldMaskB\003\340A\002\022L\n\022connection_profile\030\002" + + " \001(\0132+.google.cloud.clouddms.v1.Connecti" + + "onProfileB\003\340A\002\022\022\n\nrequest_id\030\003 \001(\t\"\211\001\n\036D" + + "eleteConnectionProfileRequest\022D\n\004name\030\001 " + + "\001(\tB6\340A\002\372A0\n.datamigration.googleapis.co" + + "m/ConnectionProfile\022\022\n\nrequest_id\030\002 \001(\t\022" + + "\r\n\005force\030\003 \001(\010\"\200\002\n\021OperationMetadata\0224\n\013" + + "create_time\030\001 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340" + + "A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message\030" + + "\005 \001(\tB\003\340A\003\022#\n\026requested_cancellation\030\006 \001" + + "(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\0032\310\036\n\024Da" + + "taMigrationService\022\300\001\n\021ListMigrationJobs" + + "\0222.google.cloud.clouddms.v1.ListMigratio" + + "nJobsRequest\0323.google.cloud.clouddms.v1." + + "ListMigrationJobsResponse\"B\202\323\344\223\0023\0221/v1/{" + + "parent=projects/*/locations/*}/migration" + + "Jobs\332A\006parent\022\255\001\n\017GetMigrationJob\0220.goog" + + "le.cloud.clouddms.v1.GetMigrationJobRequ" + + "est\032&.google.cloud.clouddms.v1.Migration" + + "Job\"@\202\323\344\223\0023\0221/v1/{name=projects/*/locati" + + "ons/*/migrationJobs/*}\332A\004name\022\377\001\n\022Create" + + "MigrationJob\0223.google.cloud.clouddms.v1." + + "CreateMigrationJobRequest\032\035.google.longr" + + "unning.Operation\"\224\001\202\323\344\223\002B\"1/v1/{parent=p" + + "rojects/*/locations/*}/migrationJobs:\rmi" + + "gration_job\332A%parent,migration_job,migra" + + "tion_job_id\312A!\n\014MigrationJob\022\021OperationM" + + "etadata\022\201\002\n\022UpdateMigrationJob\0223.google." + + "cloud.clouddms.v1.UpdateMigrationJobRequ" + + "est\032\035.google.longrunning.Operation\"\226\001\202\323\344" + + "\223\002P2?/v1/{migration_job.name=projects/*/" + + "locations/*/migrationJobs/*}:\rmigration_" + + "job\332A\031migration_job,update_mask\312A!\n\014Migr" + + "ationJob\022\021OperationMetadata\022\327\001\n\022DeleteMi" + + "grationJob\0223.google.cloud.clouddms.v1.De" + + "leteMigrationJobRequest\032\035.google.longrun" + + "ning.Operation\"m\202\323\344\223\0023*1/v1/{name=projec" + + "ts/*/locations/*/migrationJobs/*}\332A\004name" + + "\312A*\n\025google.protobuf.Empty\022\021OperationMet" + + "adata\022\316\001\n\021StartMigrationJob\0222.google.clo" + + "ud.clouddms.v1.StartMigrationJobRequest\032" + + "\035.google.longrunning.Operation\"f\202\323\344\223\002<\"7" + + "/v1/{name=projects/*/locations/*/migrati" + + "onJobs/*}:start:\001*\312A!\n\014MigrationJob\022\021Ope" + + "rationMetadata\022\313\001\n\020StopMigrationJob\0221.go" + + "ogle.cloud.clouddms.v1.StopMigrationJobR" + + "equest\032\035.google.longrunning.Operation\"e\202" + + "\323\344\223\002;\"6/v1/{name=projects/*/locations/*/" + + "migrationJobs/*}:stop:\001*\312A!\n\014MigrationJo" + + "b\022\021OperationMetadata\022\321\001\n\022ResumeMigration" + + "Job\0223.google.cloud.clouddms.v1.ResumeMig" + + "rationJobRequest\032\035.google.longrunning.Op" + + "eration\"g\202\323\344\223\002=\"8/v1/{name=projects/*/lo" + + "cations/*/migrationJobs/*}:resume:\001*\312A!\n" + + "\014MigrationJob\022\021OperationMetadata\022\324\001\n\023Pro" + + "moteMigrationJob\0224.google.cloud.clouddms" + + ".v1.PromoteMigrationJobRequest\032\035.google." + + "longrunning.Operation\"h\202\323\344\223\002>\"9/v1/{name" + + "=projects/*/locations/*/migrationJobs/*}" + + ":promote:\001*\312A!\n\014MigrationJob\022\021OperationM" + + "etadata\022\321\001\n\022VerifyMigrationJob\0223.google." + + "cloud.clouddms.v1.VerifyMigrationJobRequ" + + "est\032\035.google.longrunning.Operation\"g\202\323\344\223" + + "\002=\"8/v1/{name=projects/*/locations/*/mig" + + "rationJobs/*}:verify:\001*\312A!\n\014MigrationJob" + + "\022\021OperationMetadata\022\324\001\n\023RestartMigration" + + "Job\0224.google.cloud.clouddms.v1.RestartMi" + + "grationJobRequest\032\035.google.longrunning.O" + + "peration\"h\202\323\344\223\002>\"9/v1/{name=projects/*/l" + + "ocations/*/migrationJobs/*}:restart:\001*\312A" + + "!\n\014MigrationJob\022\021OperationMetadata\022\305\001\n\021G" + + "enerateSshScript\0222.google.cloud.clouddms" + + ".v1.GenerateSshScriptRequest\032#.google.cl" + + "oud.clouddms.v1.SshScript\"W\202\323\344\223\002Q\"L/v1/{" + + "migration_job=projects/*/locations/*/mig" + + "rationJobs/*}:generateSshScript:\001*\022\324\001\n\026L" + + "istConnectionProfiles\0227.google.cloud.clo" + + "uddms.v1.ListConnectionProfilesRequest\0328" + + ".google.cloud.clouddms.v1.ListConnection" + + "ProfilesResponse\"G\202\323\344\223\0028\0226/v1/{parent=pr" + + "ojects/*/locations/*}/connectionProfiles" + + "\332A\006parent\022\301\001\n\024GetConnectionProfile\0225.goo" + + "gle.cloud.clouddms.v1.GetConnectionProfi" + + "leRequest\032+.google.cloud.clouddms.v1.Con" + + "nectionProfile\"E\202\323\344\223\0028\0226/v1/{name=projec" + + "ts/*/locations/*/connectionProfiles/*}\332A" + + "\004name\022\242\002\n\027CreateConnectionProfile\0228.goog" + + "le.cloud.clouddms.v1.CreateConnectionPro" + + "fileRequest\032\035.google.longrunning.Operati" + + "on\"\255\001\202\323\344\223\002L\"6/v1/{parent=projects/*/loca" + + "tions/*}/connectionProfiles:\022connection_" + + "profile\332A/parent,connection_profile,conn" + + "ection_profile_id\312A&\n\021ConnectionProfile\022" + + "\021OperationMetadata\022\244\002\n\027UpdateConnectionP" + + "rofile\0228.google.cloud.clouddms.v1.Update" + + "ConnectionProfileRequest\032\035.google.longru" + + "nning.Operation\"\257\001\202\323\344\223\002_2I/v1/{connectio" + + "n_profile.name=projects/*/locations/*/co" + + "nnectionProfiles/*}:\022connection_profile\332" + + "A\036connection_profile,update_mask\312A&\n\021Con" + + "nectionProfile\022\021OperationMetadata\022\346\001\n\027De" + + "leteConnectionProfile\0228.google.cloud.clo" + + "uddms.v1.DeleteConnectionProfileRequest\032" + + "\035.google.longrunning.Operation\"r\202\323\344\223\0028*6" + + "/v1/{name=projects/*/locations/*/connect" + + "ionProfiles/*}\332A\004name\312A*\n\025google.protobu" + + "f.Empty\022\021OperationMetadata\032P\312A\034datamigra" + + "tion.googleapis.com\322A.https://www.google" + + "apis.com/auth/cloud-platformB\305\001\n\034com.goo" + + "gle.cloud.clouddms.v1B\rClouddmsProtoP\001Z@" + + "google.golang.org/genproto/googleapis/cl" + + "oud/clouddms/v1;clouddms\252\002\030Google.Cloud." + + "CloudDms.V1\312\002\030Google\\Cloud\\CloudDms\\V1\352\002" + + "\033Google::Cloud::CloudDMS::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.clouddms.v1.ClouddmsResourcesProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_descriptor, + new java.lang.String[] { "MigrationJobs", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_descriptor, + new java.lang.String[] { "Parent", "MigrationJobId", "MigrationJob", "RequestId", }); + internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_descriptor, + new java.lang.String[] { "UpdateMask", "MigrationJob", "RequestId", }); + internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_descriptor, + new java.lang.String[] { "Name", "RequestId", "Force", }); + internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_descriptor, + new java.lang.String[] { "MigrationJob", "Vm", "VmCreationConfig", "VmSelectionConfig", "VmPort", "VmConfig", }); + internal_static_google_cloud_clouddms_v1_VmCreationConfig_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_clouddms_v1_VmCreationConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_VmCreationConfig_descriptor, + new java.lang.String[] { "VmMachineType", "VmZone", "Subnet", }); + internal_static_google_cloud_clouddms_v1_VmSelectionConfig_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_clouddms_v1_VmSelectionConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_VmSelectionConfig_descriptor, + new java.lang.String[] { "VmZone", }); + internal_static_google_cloud_clouddms_v1_SshScript_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_clouddms_v1_SshScript_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_SshScript_descriptor, + new java.lang.String[] { "Script", }); + internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_descriptor, + new java.lang.String[] { "ConnectionProfiles", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_descriptor, + new java.lang.String[] { "Parent", "ConnectionProfileId", "ConnectionProfile", "RequestId", }); + internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor, + new java.lang.String[] { "UpdateMask", "ConnectionProfile", "RequestId", }); + internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor, + new java.lang.String[] { "Name", "RequestId", "Force", }); + internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_clouddms_v1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); + 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.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + 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.clouddms.v1.ClouddmsResourcesProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java new file mode 100644 index 00000000..1a345b59 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java @@ -0,0 +1,425 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/clouddms/v1/clouddms_resources.proto + +package com.google.cloud.clouddms.v1; + +public final class ClouddmsResourcesProto { + private ClouddmsResourcesProto() {} + 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_clouddms_v1_SslConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_SslConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_SqlAclEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_SqlAclEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_SqlIpConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_SqlIpConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_UserLabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_UserLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_DatabaseFlagsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_DatabaseFlagsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_DatabaseType_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_DatabaseType_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_MigrationJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ConnectionProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ConnectionProfile_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ConnectionProfile_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/clouddms/v1/clouddms_reso" + + "urces.proto\022\030google.cloud.clouddms.v1\032\037g" + + "oogle/api/field_behavior.proto\032\031google/a" + + "pi/resource.proto\032\036google/protobuf/durat" + + "ion.proto\032\037google/protobuf/timestamp.pro" + + "to\032\036google/protobuf/wrappers.proto\032\027goog" + + "le/rpc/status.proto\032\034google/api/annotati" + + "ons.proto\"\356\001\n\tSslConfig\022>\n\004type\030\001 \001(\0162+." + + "google.cloud.clouddms.v1.SslConfig.SslTy" + + "peB\003\340A\003\022\027\n\nclient_key\030\002 \001(\tB\003\340A\004\022\037\n\022clie" + + "nt_certificate\030\003 \001(\tB\003\340A\004\022\036\n\016ca_certific" + + "ate\030\004 \001(\tB\006\340A\004\340A\002\"G\n\007SslType\022\030\n\024SSL_TYPE" + + "_UNSPECIFIED\020\000\022\017\n\013SERVER_ONLY\020\001\022\021\n\rSERVE" + + "R_CLIENT\020\002\"\322\001\n\026MySqlConnectionProfile\022\021\n" + + "\004host\030\001 \001(\tB\003\340A\002\022\021\n\004port\030\002 \001(\005B\003\340A\002\022\025\n\010u" + + "sername\030\003 \001(\tB\003\340A\002\022\030\n\010password\030\004 \001(\tB\006\340A" + + "\004\340A\002\022\031\n\014password_set\030\005 \001(\010B\003\340A\003\0220\n\003ssl\030\006" + + " \001(\0132#.google.cloud.clouddms.v1.SslConfi" + + "g\022\024\n\014cloud_sql_id\030\007 \001(\t\"\327\001\n\033PostgreSqlCo" + + "nnectionProfile\022\021\n\004host\030\001 \001(\tB\003\340A\002\022\021\n\004po" + + "rt\030\002 \001(\005B\003\340A\002\022\025\n\010username\030\003 \001(\tB\003\340A\002\022\030\n\010" + + "password\030\004 \001(\tB\006\340A\004\340A\002\022\031\n\014password_set\030\005" + + " \001(\010B\003\340A\003\0220\n\003ssl\030\006 \001(\0132#.google.cloud.cl" + + "ouddms.v1.SslConfig\022\024\n\014cloud_sql_id\030\007 \001(" + + "\t\"\252\001\n\031CloudSqlConnectionProfile\022\031\n\014cloud" + + "_sql_id\030\001 \001(\tB\003\340A\003\022A\n\010settings\030\002 \001(\0132*.g" + + "oogle.cloud.clouddms.v1.CloudSqlSettings" + + "B\003\340A\005\022\027\n\nprivate_ip\030\003 \001(\tB\003\340A\003\022\026\n\tpublic" + + "_ip\030\004 \001(\tB\003\340A\003\"\233\001\n\013SqlAclEntry\022\r\n\005value\030" + + "\001 \001(\t\0221\n\013expire_time\030\n \001(\0132\032.google.prot" + + "obuf.TimestampH\000\022-\n\003ttl\030\013 \001(\0132\031.google.p" + + "rotobuf.DurationB\003\340A\004H\000\022\r\n\005label\030\003 \001(\tB\014" + + "\n\nexpiration\"\314\001\n\013SqlIpConfig\022/\n\013enable_i" + + "pv4\030\001 \001(\0132\032.google.protobuf.BoolValue\022\027\n" + + "\017private_network\030\002 \001(\t\022/\n\013require_ssl\030\003 " + + "\001(\0132\032.google.protobuf.BoolValue\022B\n\023autho" + + "rized_networks\030\004 \003(\0132%.google.cloud.clou" + + "ddms.v1.SqlAclEntry\"\372\t\n\020CloudSqlSettings" + + "\022W\n\020database_version\030\001 \001(\0162=.google.clou" + + "d.clouddms.v1.CloudSqlSettings.SqlDataba" + + "seVersion\022O\n\013user_labels\030\002 \003(\0132:.google." + + "cloud.clouddms.v1.CloudSqlSettings.UserL" + + "abelsEntry\022\014\n\004tier\030\003 \001(\t\022>\n\031storage_auto" + + "_resize_limit\030\004 \001(\0132\033.google.protobuf.In" + + "t64Value\022Y\n\021activation_policy\030\005 \001(\0162>.go" + + "ogle.cloud.clouddms.v1.CloudSqlSettings." + + "SqlActivationPolicy\0228\n\tip_config\030\006 \001(\0132%" + + ".google.cloud.clouddms.v1.SqlIpConfig\0229\n" + + "\025auto_storage_increase\030\007 \001(\0132\032.google.pr" + + "otobuf.BoolValue\022U\n\016database_flags\030\010 \003(\013" + + "2=.google.cloud.clouddms.v1.CloudSqlSett" + + "ings.DatabaseFlagsEntry\022R\n\016data_disk_typ" + + "e\030\t \001(\0162:.google.cloud.clouddms.v1.Cloud" + + "SqlSettings.SqlDataDiskType\0226\n\021data_disk" + + "_size_gb\030\n \001(\0132\033.google.protobuf.Int64Va" + + "lue\022\014\n\004zone\030\013 \001(\t\022\021\n\tsource_id\030\014 \001(\t\022\032\n\r" + + "root_password\030\r \001(\tB\003\340A\004\022\036\n\021root_passwor" + + "d_set\030\016 \001(\010B\003\340A\003\022\021\n\tcollation\030\017 \001(\t\0321\n\017U" + + "serLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\0324\n\022DatabaseFlagsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"S\n\023SqlActivationPol" + + "icy\022%\n!SQL_ACTIVATION_POLICY_UNSPECIFIED" + + "\020\000\022\n\n\006ALWAYS\020\001\022\t\n\005NEVER\020\002\"M\n\017SqlDataDisk" + + "Type\022\"\n\036SQL_DATA_DISK_TYPE_UNSPECIFIED\020\000" + + "\022\n\n\006PD_SSD\020\001\022\n\n\006PD_HDD\020\002\"\275\001\n\022SqlDatabase" + + "Version\022$\n SQL_DATABASE_VERSION_UNSPECIF" + + "IED\020\000\022\r\n\tMYSQL_5_6\020\001\022\r\n\tMYSQL_5_7\020\002\022\020\n\014P" + + "OSTGRES_9_6\020\003\022\017\n\013POSTGRES_11\020\004\022\017\n\013POSTGR" + + "ES_10\020\005\022\r\n\tMYSQL_8_0\020\006\022\017\n\013POSTGRES_12\020\007\022" + + "\017\n\013POSTGRES_13\020\010\"\026\n\024StaticIpConnectivity" + + "\"[\n\026ReverseSshConnectivity\022\022\n\005vm_ip\030\001 \001(" + + "\tB\003\340A\002\022\024\n\007vm_port\030\002 \001(\005B\003\340A\002\022\n\n\002vm\030\003 \001(\t" + + "\022\013\n\003vpc\030\004 \001(\t\"%\n\026VpcPeeringConnectivity\022" + + "\013\n\003vpc\030\001 \001(\t\"\206\001\n\014DatabaseType\022<\n\010provide" + + "r\030\001 \001(\0162*.google.cloud.clouddms.v1.Datab" + + "aseProvider\0228\n\006engine\030\002 \001(\0162(.google.clo" + + "ud.clouddms.v1.DatabaseEngine\"\354\014\n\014Migrat" + + "ionJob\022\014\n\004name\030\001 \001(\t\0224\n\013create_time\030\002 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" + + "date_time\030\003 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\022B\n\006labels\030\004 \003(\01322.google.cloud." + + "clouddms.v1.MigrationJob.LabelsEntry\022\024\n\014" + + "display_name\030\005 \001(\t\022;\n\005state\030\006 \001(\0162,.goog" + + "le.cloud.clouddms.v1.MigrationJob.State\022" + + "@\n\005phase\030\007 \001(\0162,.google.cloud.clouddms.v" + + "1.MigrationJob.PhaseB\003\340A\003\022>\n\004type\030\010 \001(\0162" + + "+.google.cloud.clouddms.v1.MigrationJob." + + "TypeB\003\340A\002\022\021\n\tdump_path\030\t \001(\t\022\023\n\006source\030\n" + + " \001(\tB\003\340A\002\022\030\n\013destination\030\013 \001(\tB\003\340A\002\022T\n\030r" + + "everse_ssh_connectivity\030e \001(\01320.google.c" + + "loud.clouddms.v1.ReverseSshConnectivityH" + + "\000\022T\n\030vpc_peering_connectivity\030f \001(\01320.go" + + "ogle.cloud.clouddms.v1.VpcPeeringConnect" + + "ivityH\000\022P\n\026static_ip_connectivity\030g \001(\0132" + + "..google.cloud.clouddms.v1.StaticIpConne" + + "ctivityH\000\0220\n\010duration\030\014 \001(\0132\031.google.pro" + + "tobuf.DurationB\003\340A\003\022&\n\005error\030\r \001(\0132\022.goo" + + "gle.rpc.StatusB\003\340A\003\022?\n\017source_database\030\016" + + " \001(\0132&.google.cloud.clouddms.v1.Database" + + "Type\022D\n\024destination_database\030\017 \001(\0132&.goo" + + "gle.cloud.clouddms.v1.DatabaseType\0221\n\010en" + + "d_time\030\020 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001\"\361\001\n\005State\022\025\n\021STATE_UNSPECIF" + + "IED\020\000\022\017\n\013MAINTENANCE\020\001\022\t\n\005DRAFT\020\002\022\014\n\010CRE" + + "ATING\020\003\022\017\n\013NOT_STARTED\020\004\022\013\n\007RUNNING\020\005\022\n\n" + + "\006FAILED\020\006\022\r\n\tCOMPLETED\020\007\022\014\n\010DELETING\020\010\022\014" + + "\n\010STOPPING\020\t\022\013\n\007STOPPED\020\n\022\013\n\007DELETED\020\013\022\014" + + "\n\010UPDATING\020\014\022\014\n\010STARTING\020\r\022\016\n\nRESTARTING" + + "\020\016\022\014\n\010RESUMING\020\017\"\216\001\n\005Phase\022\025\n\021PHASE_UNSP" + + "ECIFIED\020\000\022\r\n\tFULL_DUMP\020\001\022\007\n\003CDC\020\002\022\027\n\023PRO" + + "MOTE_IN_PROGRESS\020\003\022%\n!WAITING_FOR_SOURCE" + + "_WRITES_TO_STOP\020\004\022\026\n\022PREPARING_THE_DUMP\020" + + "\005\":\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\014\n\010ONE_T" + + "IME\020\001\022\016\n\nCONTINUOUS\020\002:u\352Ar\n)datamigratio" + + "n.googleapis.com/MigrationJob\022Eprojects/" + + "{project}/locations/{location}/migration" + + "Jobs/{migration_job}B\016\n\014connectivity\"\263\007\n" + + "\021ConnectionProfile\022\014\n\004name\030\001 \001(\t\0224\n\013crea" + + "te_time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\022G\n\006labels\030\004 \003(\01327.g" + + "oogle.cloud.clouddms.v1.ConnectionProfil" + + "e.LabelsEntry\022@\n\005state\030\005 \001(\01621.google.cl" + + "oud.clouddms.v1.ConnectionProfile.State\022" + + "\024\n\014display_name\030\006 \001(\t\022A\n\005mysql\030d \001(\01320.g" + + "oogle.cloud.clouddms.v1.MySqlConnectionP" + + "rofileH\000\022K\n\npostgresql\030e \001(\01325.google.cl" + + "oud.clouddms.v1.PostgreSqlConnectionProf" + + "ileH\000\022G\n\010cloudsql\030f \001(\01323.google.cloud.c" + + "louddms.v1.CloudSqlConnectionProfileH\000\022&" + + "\n\005error\030\007 \001(\0132\022.google.rpc.StatusB\003\340A\003\022<" + + "\n\010provider\030\010 \001(\0162*.google.cloud.clouddms" + + ".v1.DatabaseProvider\032-\n\013LabelsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n\005State\022\025\n\021" + + "STATE_UNSPECIFIED\020\000\022\t\n\005DRAFT\020\001\022\014\n\010CREATI" + + "NG\020\002\022\t\n\005READY\020\003\022\014\n\010UPDATING\020\004\022\014\n\010DELETIN" + + "G\020\005\022\013\n\007DELETED\020\006\022\n\n\006FAILED\020\007:\205\001\352A\201\001\n.dat" + + "amigration.googleapis.com/ConnectionProf" + + "ile\022Oprojects/{project}/locations/{locat" + + "ion}/connectionProfiles/{connection_prof" + + "ile}B\024\n\022connection_profile\"\320\006\n\035Migration" + + "JobVerificationError\022Z\n\nerror_code\030\001 \001(\016" + + "2A.google.cloud.clouddms.v1.MigrationJob" + + "VerificationError.ErrorCodeB\003\340A\003\022\032\n\rerro" + + "r_message\030\002 \001(\tB\003\340A\003\022!\n\024error_detail_mes" + + "sage\030\003 \001(\tB\003\340A\003\"\223\005\n\tErrorCode\022\032\n\026ERROR_C" + + "ODE_UNSPECIFIED\020\000\022\026\n\022CONNECTION_FAILURE\020" + + "\001\022\032\n\026AUTHENTICATION_FAILURE\020\002\022%\n!INVALID" + + "_CONNECTION_PROFILE_CONFIG\020\003\022\033\n\027VERSION_" + + "INCOMPATIBILITY\020\004\022,\n(CONNECTION_PROFILE_" + + "TYPES_INCOMPATIBILITY\020\005\022\032\n\026NO_PGLOGICAL_" + + "INSTALLED\020\007\022!\n\035PGLOGICAL_NODE_ALREADY_EX" + + "ISTS\020\010\022\025\n\021INVALID_WAL_LEVEL\020\t\022\"\n\036INVALID" + + "_SHARED_PRELOAD_LIBRARY\020\n\022&\n\"INSUFFICIEN" + + "T_MAX_REPLICATION_SLOTS\020\013\022 \n\034INSUFFICIEN" + + "T_MAX_WAL_SENDERS\020\014\022%\n!INSUFFICIENT_MAX_" + + "WORKER_PROCESSES\020\r\022\032\n\026UNSUPPORTED_EXTENS" + + "IONS\020\016\022\036\n\032UNSUPPORTED_MIGRATION_TYPE\020\017\022#" + + "\n\037INVALID_RDS_LOGICAL_REPLICATION\020\020\022\031\n\025U" + + "NSUPPORTED_GTID_MODE\020\021\022 \n\034UNSUPPORTED_TA" + + "BLE_DEFINITION\020\022\022\027\n\023UNSUPPORTED_DEFINER\020" + + "\023\022\"\n\036CANT_RESTART_RUNNING_MIGRATION\020\025*L\n" + + "\016DatabaseEngine\022\037\n\033DATABASE_ENGINE_UNSPE" + + "CIFIED\020\000\022\t\n\005MYSQL\020\001\022\016\n\nPOSTGRESQL\020\002*L\n\020D" + + "atabaseProvider\022!\n\035DATABASE_PROVIDER_UNS" + + "PECIFIED\020\000\022\014\n\010CLOUDSQL\020\001\022\007\n\003RDS\020\002B\316\001\n\034co" + + "m.google.cloud.clouddms.v1B\026ClouddmsReso" + + "urcesProtoP\001Z@google.golang.org/genproto" + + "/googleapis/cloud/clouddms/v1;clouddms\252\002" + + "\030Google.Cloud.CloudDms.V1\312\002\030Google\\Cloud" + + "\\CloudDms\\V1\352\002\033Google::Cloud::CloudDMS::" + + "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.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_clouddms_v1_SslConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_clouddms_v1_SslConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_SslConfig_descriptor, + new java.lang.String[] { "Type", "ClientKey", "ClientCertificate", "CaCertificate", }); + internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_descriptor, + new java.lang.String[] { "Host", "Port", "Username", "Password", "PasswordSet", "Ssl", "CloudSqlId", }); + internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_descriptor, + new java.lang.String[] { "Host", "Port", "Username", "Password", "PasswordSet", "Ssl", "CloudSqlId", }); + internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor, + new java.lang.String[] { "CloudSqlId", "Settings", "PrivateIp", "PublicIp", }); + internal_static_google_cloud_clouddms_v1_SqlAclEntry_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_clouddms_v1_SqlAclEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_SqlAclEntry_descriptor, + new java.lang.String[] { "Value", "ExpireTime", "Ttl", "Label", "Expiration", }); + internal_static_google_cloud_clouddms_v1_SqlIpConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_clouddms_v1_SqlIpConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_SqlIpConfig_descriptor, + new java.lang.String[] { "EnableIpv4", "PrivateNetwork", "RequireSsl", "AuthorizedNetworks", }); + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor, + new java.lang.String[] { "DatabaseVersion", "UserLabels", "Tier", "StorageAutoResizeLimit", "ActivationPolicy", "IpConfig", "AutoStorageIncrease", "DatabaseFlags", "DataDiskType", "DataDiskSizeGb", "Zone", "SourceId", "RootPassword", "RootPasswordSet", "Collation", }); + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_UserLabelsEntry_descriptor = + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_UserLabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_UserLabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_DatabaseFlagsEntry_descriptor = + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_DatabaseFlagsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_DatabaseFlagsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_descriptor, + new java.lang.String[] { "VmIp", "VmPort", "Vm", "Vpc", }); + internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_descriptor, + new java.lang.String[] { "Vpc", }); + internal_static_google_cloud_clouddms_v1_DatabaseType_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_clouddms_v1_DatabaseType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_DatabaseType_descriptor, + new java.lang.String[] { "Provider", "Engine", }); + internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_clouddms_v1_MigrationJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor, + new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "DisplayName", "State", "Phase", "Type", "DumpPath", "Source", "Destination", "ReverseSshConnectivity", "VpcPeeringConnectivity", "StaticIpConnectivity", "Duration", "Error", "SourceDatabase", "DestinationDatabase", "EndTime", "Connectivity", }); + internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_descriptor = + internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_clouddms_v1_ConnectionProfile_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor, + new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "State", "DisplayName", "Mysql", "Postgresql", "Cloudsql", "Error", "Provider", "ConnectionProfile", }); + internal_static_google_cloud_clouddms_v1_ConnectionProfile_LabelsEntry_descriptor = + internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_clouddms_v1_ConnectionProfile_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ConnectionProfile_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_descriptor, + new java.lang.String[] { "ErrorCode", "ErrorMessage", "ErrorDetailMessage", }); + 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.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfile.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfile.java similarity index 70% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfile.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfile.java index 8dcb9b43..8ed7c4c1 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfile.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfile.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/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * A connection profile definition.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.ConnectionProfile} */ -public final class ConnectionProfile extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ConnectionProfile extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ConnectionProfile) ConnectionProfileOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ConnectionProfile.newBuilder() to construct. private ConnectionProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConnectionProfile() { name_ = ""; state_ = 0; @@ -46,15 +28,16 @@ private ConnectionProfile() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConnectionProfile(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ConnectionProfile( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,209 +57,178 @@ private ConnectionProfile( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - case 40: - { - int rawValue = input.readEnum(); - state_ = rawValue; - break; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 40: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; + displayName_ = s; + break; + } + case 58: { + com.google.rpc.Status.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); } - case 58: - { - com.google.rpc.Status.Builder subBuilder = null; - if (error_ != null) { - subBuilder = error_.toBuilder(); - } - error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(error_); - error_ = subBuilder.buildPartial(); - } - - break; + error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = subBuilder.buildPartial(); } - case 64: - { - int rawValue = input.readEnum(); - provider_ = rawValue; - break; + break; + } + case 64: { + int rawValue = input.readEnum(); + + provider_ = rawValue; + break; + } + case 802: { + com.google.cloud.clouddms.v1.MySqlConnectionProfile.Builder subBuilder = null; + if (connectionProfileCase_ == 100) { + subBuilder = ((com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_).toBuilder(); + } + connectionProfile_ = + input.readMessage(com.google.cloud.clouddms.v1.MySqlConnectionProfile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_); + connectionProfile_ = subBuilder.buildPartial(); } - case 802: - { - com.google.cloud.clouddms.v1.MySqlConnectionProfile.Builder subBuilder = null; - if (connectionProfileCase_ == 100) { - subBuilder = - ((com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_) - .toBuilder(); - } - connectionProfile_ = - input.readMessage( - com.google.cloud.clouddms.v1.MySqlConnectionProfile.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_); - connectionProfile_ = subBuilder.buildPartial(); - } - connectionProfileCase_ = 100; - break; + connectionProfileCase_ = 100; + break; + } + case 810: { + com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder subBuilder = null; + if (connectionProfileCase_ == 101) { + subBuilder = ((com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_).toBuilder(); } - case 810: - { - com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder subBuilder = null; - if (connectionProfileCase_ == 101) { - subBuilder = - ((com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_) - .toBuilder(); - } - connectionProfile_ = - input.readMessage( - com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_); - connectionProfile_ = subBuilder.buildPartial(); - } - connectionProfileCase_ = 101; - break; + connectionProfile_ = + input.readMessage(com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_); + connectionProfile_ = subBuilder.buildPartial(); } - case 818: - { - com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.Builder subBuilder = null; - if (connectionProfileCase_ == 102) { - subBuilder = - ((com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_) - .toBuilder(); - } - connectionProfile_ = - input.readMessage( - com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_); - connectionProfile_ = subBuilder.buildPartial(); - } - connectionProfileCase_ = 102; - break; + connectionProfileCase_ = 101; + break; + } + case 818: { + com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.Builder subBuilder = null; + if (connectionProfileCase_ == 102) { + subBuilder = ((com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + connectionProfile_ = + input.readMessage(com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_); + connectionProfile_ = subBuilder.buildPartial(); } + connectionProfileCase_ = 102; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_ConnectionProfile_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_ConnectionProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.ConnectionProfile.class, - com.google.cloud.clouddms.v1.ConnectionProfile.Builder.class); + com.google.cloud.clouddms.v1.ConnectionProfile.class, com.google.cloud.clouddms.v1.ConnectionProfile.Builder.class); } /** - * - * *
    * The current connection profile state (e.g. DRAFT, READY, or FAILED).
    * 
* * Protobuf enum {@code google.cloud.clouddms.v1.ConnectionProfile.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The state of the connection profile is unknown.
      * 
@@ -285,8 +237,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The connection profile is in draft mode and fully editable.
      * 
@@ -295,8 +245,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DRAFT(1), /** - * - * *
      * The connection profile is being created.
      * 
@@ -305,8 +253,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(2), /** - * - * *
      * The connection profile is ready.
      * 
@@ -315,8 +261,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(3), /** - * - * *
      * The connection profile is being updated.
      * 
@@ -325,8 +269,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ UPDATING(4), /** - * - * *
      * The connection profile is being deleted.
      * 
@@ -335,8 +277,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(5), /** - * - * *
      * The connection profile has been deleted.
      * 
@@ -345,8 +285,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DELETED(6), /** - * - * *
      * The last action on the connection profile failed.
      * 
@@ -358,8 +296,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The state of the connection profile is unknown.
      * 
@@ -368,8 +304,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The connection profile is in draft mode and fully editable.
      * 
@@ -378,8 +312,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DRAFT_VALUE = 1; /** - * - * *
      * The connection profile is being created.
      * 
@@ -388,8 +320,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 2; /** - * - * *
      * The connection profile is ready.
      * 
@@ -398,8 +328,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 3; /** - * - * *
      * The connection profile is being updated.
      * 
@@ -408,8 +336,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATING_VALUE = 4; /** - * - * *
      * The connection profile is being deleted.
      * 
@@ -418,8 +344,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 5; /** - * - * *
      * The connection profile has been deleted.
      * 
@@ -428,8 +352,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETED_VALUE = 6; /** - * - * *
      * The last action on the connection profile failed.
      * 
@@ -438,6 +360,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 7; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -462,59 +385,54 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return DRAFT; - case 2: - return CREATING; - case 3: - return READY; - case 4: - return UPDATING; - case 5: - return DELETING; - case 6: - return DELETED; - case 7: - return FAILED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return DRAFT; + case 2: return CREATING; + case 3: return READY; + case 4: return UPDATING; + case 5: return DELETING; + case 6: return DELETED; + case 7: return FAILED; + 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< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.clouddms.v1.ConnectionProfile.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -533,17 +451,14 @@ private State(int value) { private int connectionProfileCase_ = 0; private java.lang.Object connectionProfile_; - public enum ConnectionProfileCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MYSQL(100), POSTGRESQL(101), CLOUDSQL(102), CONNECTIONPROFILE_NOT_SET(0); private final int value; - private ConnectionProfileCase(int value) { this.value = value; } @@ -559,40 +474,33 @@ public static ConnectionProfileCase valueOf(int value) { public static ConnectionProfileCase forNumber(int value) { switch (value) { - case 100: - return MYSQL; - case 101: - return POSTGRESQL; - case 102: - return CLOUDSQL; - case 0: - return CONNECTIONPROFILE_NOT_SET; - default: - return null; + case 100: return MYSQL; + case 101: return POSTGRESQL; + case 102: return CLOUDSQL; + case 0: return CONNECTIONPROFILE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ConnectionProfileCase getConnectionProfileCase() { - return ConnectionProfileCase.forNumber(connectionProfileCase_); + public ConnectionProfileCase + getConnectionProfileCase() { + return ConnectionProfileCase.forNumber( + connectionProfileCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The name of this connection profile resource in the form of
    * projects/{project}/locations/{location}/instances/{instance}.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -601,30 +509,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The name of this connection profile resource in the form of
    * projects/{project}/locations/{location}/instances/{instance}.
    * 
* * 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 { @@ -635,17 +543,13 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The timestamp when the resource was created.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -653,17 +557,13 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The timestamp when the resource was created.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -671,16 +571,13 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The timestamp when the resource was created.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -690,17 +587,13 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The timestamp when the resource was last updated.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -708,17 +601,13 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The timestamp when the resource was last updated.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -726,16 +615,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The timestamp when the resource was last updated.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -743,23 +629,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_ConnectionProfile_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_ConnectionProfile_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -768,8 +655,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * The resource labels for connection profile to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -779,22 +664,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4;
    */
+
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * The resource labels for connection profile to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -805,12 +690,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * The resource labels for connection profile to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -821,16 +705,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * The resource labels for connection profile to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -841,11 +725,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -855,52 +740,38 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int STATE_FIELD_NUMBER = 5;
   private int state_;
   /**
-   *
-   *
    * 
    * The current connection profile state (e.g. DRAFT, READY, or FAILED).
    * 
* * .google.cloud.clouddms.v1.ConnectionProfile.State state = 5; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The current connection profile state (e.g. DRAFT, READY, or FAILED).
    * 
* * .google.cloud.clouddms.v1.ConnectionProfile.State state = 5; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.clouddms.v1.ConnectionProfile.State getState() { + @java.lang.Override public com.google.cloud.clouddms.v1.ConnectionProfile.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.ConnectionProfile.State result = - com.google.cloud.clouddms.v1.ConnectionProfile.State.valueOf(state_); - return result == null - ? com.google.cloud.clouddms.v1.ConnectionProfile.State.UNRECOGNIZED - : result; + com.google.cloud.clouddms.v1.ConnectionProfile.State result = com.google.cloud.clouddms.v1.ConnectionProfile.State.valueOf(state_); + return result == null ? com.google.cloud.clouddms.v1.ConnectionProfile.State.UNRECOGNIZED : result; } public static final int DISPLAY_NAME_FIELD_NUMBER = 6; private volatile java.lang.Object displayName_; /** - * - * *
    * The connection profile display name.
    * 
* * string display_name = 6; - * * @return The displayName. */ @java.lang.Override @@ -909,29 +780,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; } } /** - * - * *
    * The connection profile display name.
    * 
* * string display_name = 6; - * * @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 { @@ -941,14 +812,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int MYSQL_FIELD_NUMBER = 100; /** - * - * *
    * A MySQL database connection profile.
    * 
* * .google.cloud.clouddms.v1.MySqlConnectionProfile mysql = 100; - * * @return Whether the mysql field is set. */ @java.lang.Override @@ -956,26 +824,21 @@ public boolean hasMysql() { return connectionProfileCase_ == 100; } /** - * - * *
    * A MySQL database connection profile.
    * 
* * .google.cloud.clouddms.v1.MySqlConnectionProfile mysql = 100; - * * @return The mysql. */ @java.lang.Override public com.google.cloud.clouddms.v1.MySqlConnectionProfile getMysql() { if (connectionProfileCase_ == 100) { - return (com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_; + return (com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_; } return com.google.cloud.clouddms.v1.MySqlConnectionProfile.getDefaultInstance(); } /** - * - * *
    * A MySQL database connection profile.
    * 
@@ -985,21 +848,18 @@ public com.google.cloud.clouddms.v1.MySqlConnectionProfile getMysql() { @java.lang.Override public com.google.cloud.clouddms.v1.MySqlConnectionProfileOrBuilder getMysqlOrBuilder() { if (connectionProfileCase_ == 100) { - return (com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_; + return (com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_; } return com.google.cloud.clouddms.v1.MySqlConnectionProfile.getDefaultInstance(); } public static final int POSTGRESQL_FIELD_NUMBER = 101; /** - * - * *
    * A PostgreSQL database connection profile.
    * 
* * .google.cloud.clouddms.v1.PostgreSqlConnectionProfile postgresql = 101; - * * @return Whether the postgresql field is set. */ @java.lang.Override @@ -1007,26 +867,21 @@ public boolean hasPostgresql() { return connectionProfileCase_ == 101; } /** - * - * *
    * A PostgreSQL database connection profile.
    * 
* * .google.cloud.clouddms.v1.PostgreSqlConnectionProfile postgresql = 101; - * * @return The postgresql. */ @java.lang.Override public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile getPostgresql() { if (connectionProfileCase_ == 101) { - return (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_; + return (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_; } return com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.getDefaultInstance(); } /** - * - * *
    * A PostgreSQL database connection profile.
    * 
@@ -1034,24 +889,20 @@ public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile getPostgresql() * .google.cloud.clouddms.v1.PostgreSqlConnectionProfile postgresql = 101; */ @java.lang.Override - public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfileOrBuilder - getPostgresqlOrBuilder() { + public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfileOrBuilder getPostgresqlOrBuilder() { if (connectionProfileCase_ == 101) { - return (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_; + return (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_; } return com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.getDefaultInstance(); } public static final int CLOUDSQL_FIELD_NUMBER = 102; /** - * - * *
    * A CloudSQL database connection profile.
    * 
* * .google.cloud.clouddms.v1.CloudSqlConnectionProfile cloudsql = 102; - * * @return Whether the cloudsql field is set. */ @java.lang.Override @@ -1059,26 +910,21 @@ public boolean hasCloudsql() { return connectionProfileCase_ == 102; } /** - * - * *
    * A CloudSQL database connection profile.
    * 
* * .google.cloud.clouddms.v1.CloudSqlConnectionProfile cloudsql = 102; - * * @return The cloudsql. */ @java.lang.Override public com.google.cloud.clouddms.v1.CloudSqlConnectionProfile getCloudsql() { if (connectionProfileCase_ == 102) { - return (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_; + return (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_; } return com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.getDefaultInstance(); } /** - * - * *
    * A CloudSQL database connection profile.
    * 
@@ -1088,7 +934,7 @@ public com.google.cloud.clouddms.v1.CloudSqlConnectionProfile getCloudsql() { @java.lang.Override public com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder getCloudsqlOrBuilder() { if (connectionProfileCase_ == 102) { - return (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_; + return (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_; } return com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.getDefaultInstance(); } @@ -1096,14 +942,11 @@ public com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder getClouds public static final int ERROR_FIELD_NUMBER = 7; private com.google.rpc.Status error_; /** - * - * *
    * Output only. The error details in case of state FAILED.
    * 
* * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the error field is set. */ @java.lang.Override @@ -1111,14 +954,11 @@ public boolean hasError() { return error_ != null; } /** - * - * *
    * Output only. The error details in case of state FAILED.
    * 
* * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The error. */ @java.lang.Override @@ -1126,8 +966,6 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** - * - * *
    * Output only. The error details in case of state FAILED.
    * 
@@ -1142,41 +980,31 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { public static final int PROVIDER_FIELD_NUMBER = 8; private int provider_; /** - * - * *
    * The database provider.
    * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 8; - * * @return The enum numeric value on the wire for provider. */ - @java.lang.Override - public int getProviderValue() { + @java.lang.Override public int getProviderValue() { return provider_; } /** - * - * *
    * The database provider.
    * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 8; - * * @return The provider. */ - @java.lang.Override - public com.google.cloud.clouddms.v1.DatabaseProvider getProvider() { + @java.lang.Override public com.google.cloud.clouddms.v1.DatabaseProvider getProvider() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.DatabaseProvider result = - com.google.cloud.clouddms.v1.DatabaseProvider.valueOf(provider_); + com.google.cloud.clouddms.v1.DatabaseProvider result = com.google.cloud.clouddms.v1.DatabaseProvider.valueOf(provider_); return result == null ? com.google.cloud.clouddms.v1.DatabaseProvider.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1188,7 +1016,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1198,10 +1027,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); - if (state_ - != com.google.cloud.clouddms.v1.ConnectionProfile.State.STATE_UNSPECIFIED.getNumber()) { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); + if (state_ != com.google.cloud.clouddms.v1.ConnectionProfile.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(5, state_); } if (!getDisplayNameBytes().isEmpty()) { @@ -1210,22 +1042,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (error_ != null) { output.writeMessage(7, getError()); } - if (provider_ - != com.google.cloud.clouddms.v1.DatabaseProvider.DATABASE_PROVIDER_UNSPECIFIED - .getNumber()) { + if (provider_ != com.google.cloud.clouddms.v1.DatabaseProvider.DATABASE_PROVIDER_UNSPECIFIED.getNumber()) { output.writeEnum(8, provider_); } if (connectionProfileCase_ == 100) { - output.writeMessage( - 100, (com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_); + output.writeMessage(100, (com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_); } if (connectionProfileCase_ == 101) { - output.writeMessage( - 101, (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_); + output.writeMessage(101, (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_); } if (connectionProfileCase_ == 102) { - output.writeMessage( - 102, (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_); + output.writeMessage(102, (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_); } unknownFields.writeTo(output); } @@ -1240,50 +1067,49 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); - } - if (state_ - != com.google.cloud.clouddms.v1.ConnectionProfile.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); + } + if (state_ != com.google.cloud.clouddms.v1.ConnectionProfile.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, state_); } if (!getDisplayNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, displayName_); } if (error_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getError()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getError()); } - if (provider_ - != com.google.cloud.clouddms.v1.DatabaseProvider.DATABASE_PROVIDER_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, provider_); + if (provider_ != com.google.cloud.clouddms.v1.DatabaseProvider.DATABASE_PROVIDER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, provider_); } if (connectionProfileCase_ == 100) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 100, (com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, (com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_); } if (connectionProfileCase_ == 101) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 101, (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(101, (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_); } if (connectionProfileCase_ == 102) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 102, (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(102, (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1293,41 +1119,49 @@ 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.clouddms.v1.ConnectionProfile)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.ConnectionProfile other = - (com.google.cloud.clouddms.v1.ConnectionProfile) obj; + com.google.cloud.clouddms.v1.ConnectionProfile other = (com.google.cloud.clouddms.v1.ConnectionProfile) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) 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 (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (state_ != other.state_) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError().equals(other.getError())) return false; + if (!getError() + .equals(other.getError())) return false; } if (provider_ != other.provider_) return false; if (!getConnectionProfileCase().equals(other.getConnectionProfileCase())) return false; switch (connectionProfileCase_) { case 100: - if (!getMysql().equals(other.getMysql())) return false; + if (!getMysql() + .equals(other.getMysql())) return false; break; case 101: - if (!getPostgresql().equals(other.getPostgresql())) return false; + if (!getPostgresql() + .equals(other.getPostgresql())) return false; break; case 102: - if (!getCloudsql().equals(other.getCloudsql())) return false; + if (!getCloudsql() + .equals(other.getCloudsql())) return false; break; case 0: default: @@ -1388,147 +1222,140 @@ public int hashCode() { return hash; } - public static com.google.cloud.clouddms.v1.ConnectionProfile parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.clouddms.v1.ConnectionProfile parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.ConnectionProfile 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.clouddms.v1.ConnectionProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.ConnectionProfile 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.clouddms.v1.ConnectionProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.ConnectionProfile 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.clouddms.v1.ConnectionProfile parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.ConnectionProfile 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.clouddms.v1.ConnectionProfile parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.ConnectionProfile parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.ConnectionProfile 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.clouddms.v1.ConnectionProfile 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.clouddms.v1.ConnectionProfile 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.clouddms.v1.ConnectionProfile 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 connection profile definition.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.ConnectionProfile} */ - 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.clouddms.v1.ConnectionProfile) com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 4: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_ConnectionProfile_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_ConnectionProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.ConnectionProfile.class, - com.google.cloud.clouddms.v1.ConnectionProfile.Builder.class); + com.google.cloud.clouddms.v1.ConnectionProfile.class, com.google.cloud.clouddms.v1.ConnectionProfile.Builder.class); } // Construct using com.google.cloud.clouddms.v1.ConnectionProfile.newBuilder() @@ -1536,15 +1363,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1581,9 +1409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor; } @java.lang.Override @@ -1602,8 +1430,7 @@ public com.google.cloud.clouddms.v1.ConnectionProfile build() { @java.lang.Override public com.google.cloud.clouddms.v1.ConnectionProfile buildPartial() { - com.google.cloud.clouddms.v1.ConnectionProfile result = - new com.google.cloud.clouddms.v1.ConnectionProfile(this); + com.google.cloud.clouddms.v1.ConnectionProfile result = new com.google.cloud.clouddms.v1.ConnectionProfile(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (createTimeBuilder_ == null) { @@ -1656,39 +1483,38 @@ public com.google.cloud.clouddms.v1.ConnectionProfile 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.clouddms.v1.ConnectionProfile) { - return mergeFrom((com.google.cloud.clouddms.v1.ConnectionProfile) other); + return mergeFrom((com.google.cloud.clouddms.v1.ConnectionProfile)other); } else { super.mergeFrom(other); return this; @@ -1707,7 +1533,8 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.ConnectionProfile other) { if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -1722,25 +1549,21 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.ConnectionProfile other) { setProviderValue(other.getProviderValue()); } switch (other.getConnectionProfileCase()) { - case MYSQL: - { - mergeMysql(other.getMysql()); - break; - } - case POSTGRESQL: - { - mergePostgresql(other.getPostgresql()); - break; - } - case CLOUDSQL: - { - mergeCloudsql(other.getCloudsql()); - break; - } - case CONNECTIONPROFILE_NOT_SET: - { - break; - } + case MYSQL: { + mergeMysql(other.getMysql()); + break; + } + case POSTGRESQL: { + mergePostgresql(other.getPostgresql()); + break; + } + case CLOUDSQL: { + mergeCloudsql(other.getCloudsql()); + break; + } + case CONNECTIONPROFILE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1770,12 +1593,12 @@ public Builder mergeFrom( } return this; } - private int connectionProfileCase_ = 0; private java.lang.Object connectionProfile_; - - public ConnectionProfileCase getConnectionProfileCase() { - return ConnectionProfileCase.forNumber(connectionProfileCase_); + public ConnectionProfileCase + getConnectionProfileCase() { + return ConnectionProfileCase.forNumber( + connectionProfileCase_); } public Builder clearConnectionProfile() { @@ -1789,21 +1612,19 @@ public Builder clearConnectionProfile() { private java.lang.Object name_ = ""; /** - * - * *
      * The name of this connection profile resource in the form of
      * projects/{project}/locations/{location}/instances/{instance}.
      * 
* * 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; @@ -1812,22 +1633,21 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of this connection profile resource in the form of
      * projects/{project}/locations/{location}/instances/{instance}.
      * 
* * 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 { @@ -1835,64 +1655,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of this connection profile resource in the form of
      * projects/{project}/locations/{location}/instances/{instance}.
      * 
* * 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 this connection profile resource in the form of
      * projects/{project}/locations/{location}/instances/{instance}.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The name of this connection profile resource in the form of
      * projects/{project}/locations/{location}/instances/{instance}.
      * 
* * 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; @@ -1900,64 +1713,45 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The timestamp when the resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1973,19 +1767,16 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1996,23 +1787,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2024,17 +1811,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2048,70 +1831,54 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The timestamp when the resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2119,64 +1886,45 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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. The timestamp when the resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The timestamp when the resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.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. The timestamp when the resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2192,19 +1940,16 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.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(); @@ -2215,23 +1960,19 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when the resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.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; } @@ -2243,17 +1984,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2267,90 +2004,75 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The timestamp when the resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when the resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.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. The timestamp when the resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.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_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2362,8 +2084,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * The resource labels for connection profile to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -2373,22 +2093,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4;
      */
+
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * The resource labels for connection profile to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -2399,12 +2119,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * The resource labels for connection profile to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -2415,17 +2134,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * The resource labels for connection profile to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -2436,11 +2154,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2448,12 +2167,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * The resource labels for connection profile to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -2463,21 +2181,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+    getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * The resource labels for connection profile to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -2487,19 +2207,16 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 4;
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * The resource labels for connection profile to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -2509,74 +2226,61 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 4;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private int state_ = 0;
     /**
-     *
-     *
      * 
      * The current connection profile state (e.g. DRAFT, READY, or FAILED).
      * 
* * .google.cloud.clouddms.v1.ConnectionProfile.State state = 5; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The current connection profile state (e.g. DRAFT, READY, or FAILED).
      * 
* * .google.cloud.clouddms.v1.ConnectionProfile.State state = 5; - * * @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; } /** - * - * *
      * The current connection profile state (e.g. DRAFT, READY, or FAILED).
      * 
* * .google.cloud.clouddms.v1.ConnectionProfile.State state = 5; - * * @return The state. */ @java.lang.Override public com.google.cloud.clouddms.v1.ConnectionProfile.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.ConnectionProfile.State result = - com.google.cloud.clouddms.v1.ConnectionProfile.State.valueOf(state_); - return result == null - ? com.google.cloud.clouddms.v1.ConnectionProfile.State.UNRECOGNIZED - : result; + com.google.cloud.clouddms.v1.ConnectionProfile.State result = com.google.cloud.clouddms.v1.ConnectionProfile.State.valueOf(state_); + return result == null ? com.google.cloud.clouddms.v1.ConnectionProfile.State.UNRECOGNIZED : result; } /** - * - * *
      * The current connection profile state (e.g. DRAFT, READY, or FAILED).
      * 
* * .google.cloud.clouddms.v1.ConnectionProfile.State state = 5; - * * @param value The state to set. * @return This builder for chaining. */ @@ -2584,24 +2288,21 @@ public Builder setState(com.google.cloud.clouddms.v1.ConnectionProfile.State val if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The current connection profile state (e.g. DRAFT, READY, or FAILED).
      * 
* * .google.cloud.clouddms.v1.ConnectionProfile.State state = 5; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2609,20 +2310,18 @@ public Builder clearState() { private java.lang.Object displayName_ = ""; /** - * - * *
      * The connection profile display name.
      * 
* * string display_name = 6; - * * @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; @@ -2631,21 +2330,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * The connection profile display name.
      * 
* * string display_name = 6; - * * @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 { @@ -2653,80 +2351,67 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * The connection profile display name.
      * 
* * string display_name = 6; - * * @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; } /** - * - * *
      * The connection profile display name.
      * 
* * string display_name = 6; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * The connection profile display name.
      * 
* * string display_name = 6; - * * @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; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.MySqlConnectionProfile, - com.google.cloud.clouddms.v1.MySqlConnectionProfile.Builder, - com.google.cloud.clouddms.v1.MySqlConnectionProfileOrBuilder> - mysqlBuilder_; + com.google.cloud.clouddms.v1.MySqlConnectionProfile, com.google.cloud.clouddms.v1.MySqlConnectionProfile.Builder, com.google.cloud.clouddms.v1.MySqlConnectionProfileOrBuilder> mysqlBuilder_; /** - * - * *
      * A MySQL database connection profile.
      * 
* * .google.cloud.clouddms.v1.MySqlConnectionProfile mysql = 100; - * * @return Whether the mysql field is set. */ @java.lang.Override @@ -2734,14 +2419,11 @@ public boolean hasMysql() { return connectionProfileCase_ == 100; } /** - * - * *
      * A MySQL database connection profile.
      * 
* * .google.cloud.clouddms.v1.MySqlConnectionProfile mysql = 100; - * * @return The mysql. */ @java.lang.Override @@ -2759,8 +2441,6 @@ public com.google.cloud.clouddms.v1.MySqlConnectionProfile getMysql() { } } /** - * - * *
      * A MySQL database connection profile.
      * 
@@ -2781,8 +2461,6 @@ public Builder setMysql(com.google.cloud.clouddms.v1.MySqlConnectionProfile valu return this; } /** - * - * *
      * A MySQL database connection profile.
      * 
@@ -2801,8 +2479,6 @@ public Builder setMysql( return this; } /** - * - * *
      * A MySQL database connection profile.
      * 
@@ -2811,14 +2487,10 @@ public Builder setMysql( */ public Builder mergeMysql(com.google.cloud.clouddms.v1.MySqlConnectionProfile value) { if (mysqlBuilder_ == null) { - if (connectionProfileCase_ == 100 - && connectionProfile_ - != com.google.cloud.clouddms.v1.MySqlConnectionProfile.getDefaultInstance()) { - connectionProfile_ = - com.google.cloud.clouddms.v1.MySqlConnectionProfile.newBuilder( - (com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_) - .mergeFrom(value) - .buildPartial(); + if (connectionProfileCase_ == 100 && + connectionProfile_ != com.google.cloud.clouddms.v1.MySqlConnectionProfile.getDefaultInstance()) { + connectionProfile_ = com.google.cloud.clouddms.v1.MySqlConnectionProfile.newBuilder((com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_) + .mergeFrom(value).buildPartial(); } else { connectionProfile_ = value; } @@ -2833,8 +2505,6 @@ public Builder mergeMysql(com.google.cloud.clouddms.v1.MySqlConnectionProfile va return this; } /** - * - * *
      * A MySQL database connection profile.
      * 
@@ -2858,8 +2528,6 @@ public Builder clearMysql() { return this; } /** - * - * *
      * A MySQL database connection profile.
      * 
@@ -2870,8 +2538,6 @@ public com.google.cloud.clouddms.v1.MySqlConnectionProfile.Builder getMysqlBuild return getMysqlFieldBuilder().getBuilder(); } /** - * - * *
      * A MySQL database connection profile.
      * 
@@ -2890,8 +2556,6 @@ public com.google.cloud.clouddms.v1.MySqlConnectionProfileOrBuilder getMysqlOrBu } } /** - * - * *
      * A MySQL database connection profile.
      * 
@@ -2899,45 +2563,32 @@ public com.google.cloud.clouddms.v1.MySqlConnectionProfileOrBuilder getMysqlOrBu * .google.cloud.clouddms.v1.MySqlConnectionProfile mysql = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.MySqlConnectionProfile, - com.google.cloud.clouddms.v1.MySqlConnectionProfile.Builder, - com.google.cloud.clouddms.v1.MySqlConnectionProfileOrBuilder> + com.google.cloud.clouddms.v1.MySqlConnectionProfile, com.google.cloud.clouddms.v1.MySqlConnectionProfile.Builder, com.google.cloud.clouddms.v1.MySqlConnectionProfileOrBuilder> getMysqlFieldBuilder() { if (mysqlBuilder_ == null) { if (!(connectionProfileCase_ == 100)) { - connectionProfile_ = - com.google.cloud.clouddms.v1.MySqlConnectionProfile.getDefaultInstance(); + connectionProfile_ = com.google.cloud.clouddms.v1.MySqlConnectionProfile.getDefaultInstance(); } - mysqlBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.MySqlConnectionProfile, - com.google.cloud.clouddms.v1.MySqlConnectionProfile.Builder, - com.google.cloud.clouddms.v1.MySqlConnectionProfileOrBuilder>( + mysqlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.MySqlConnectionProfile, com.google.cloud.clouddms.v1.MySqlConnectionProfile.Builder, com.google.cloud.clouddms.v1.MySqlConnectionProfileOrBuilder>( (com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_, getParentForChildren(), isClean()); connectionProfile_ = null; } connectionProfileCase_ = 100; - onChanged(); - ; + onChanged();; return mysqlBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile, - com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder, - com.google.cloud.clouddms.v1.PostgreSqlConnectionProfileOrBuilder> - postgresqlBuilder_; + com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile, com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder, com.google.cloud.clouddms.v1.PostgreSqlConnectionProfileOrBuilder> postgresqlBuilder_; /** - * - * *
      * A PostgreSQL database connection profile.
      * 
* * .google.cloud.clouddms.v1.PostgreSqlConnectionProfile postgresql = 101; - * * @return Whether the postgresql field is set. */ @java.lang.Override @@ -2945,14 +2596,11 @@ public boolean hasPostgresql() { return connectionProfileCase_ == 101; } /** - * - * *
      * A PostgreSQL database connection profile.
      * 
* * .google.cloud.clouddms.v1.PostgreSqlConnectionProfile postgresql = 101; - * * @return The postgresql. */ @java.lang.Override @@ -2970,8 +2618,6 @@ public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile getPostgresql() } } /** - * - * *
      * A PostgreSQL database connection profile.
      * 
@@ -2992,8 +2638,6 @@ public Builder setPostgresql(com.google.cloud.clouddms.v1.PostgreSqlConnectionPr return this; } /** - * - * *
      * A PostgreSQL database connection profile.
      * 
@@ -3012,8 +2656,6 @@ public Builder setPostgresql( return this; } /** - * - * *
      * A PostgreSQL database connection profile.
      * 
@@ -3022,14 +2664,10 @@ public Builder setPostgresql( */ public Builder mergePostgresql(com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile value) { if (postgresqlBuilder_ == null) { - if (connectionProfileCase_ == 101 - && connectionProfile_ - != com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.getDefaultInstance()) { - connectionProfile_ = - com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.newBuilder( - (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_) - .mergeFrom(value) - .buildPartial(); + if (connectionProfileCase_ == 101 && + connectionProfile_ != com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.getDefaultInstance()) { + connectionProfile_ = com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.newBuilder((com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_) + .mergeFrom(value).buildPartial(); } else { connectionProfile_ = value; } @@ -3044,8 +2682,6 @@ public Builder mergePostgresql(com.google.cloud.clouddms.v1.PostgreSqlConnection return this; } /** - * - * *
      * A PostgreSQL database connection profile.
      * 
@@ -3069,8 +2705,6 @@ public Builder clearPostgresql() { return this; } /** - * - * *
      * A PostgreSQL database connection profile.
      * 
@@ -3081,8 +2715,6 @@ public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder getPostg return getPostgresqlFieldBuilder().getBuilder(); } /** - * - * *
      * A PostgreSQL database connection profile.
      * 
@@ -3090,8 +2722,7 @@ public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder getPostg * .google.cloud.clouddms.v1.PostgreSqlConnectionProfile postgresql = 101; */ @java.lang.Override - public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfileOrBuilder - getPostgresqlOrBuilder() { + public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfileOrBuilder getPostgresqlOrBuilder() { if ((connectionProfileCase_ == 101) && (postgresqlBuilder_ != null)) { return postgresqlBuilder_.getMessageOrBuilder(); } else { @@ -3102,8 +2733,6 @@ public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder getPostg } } /** - * - * *
      * A PostgreSQL database connection profile.
      * 
@@ -3111,45 +2740,32 @@ public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder getPostg * .google.cloud.clouddms.v1.PostgreSqlConnectionProfile postgresql = 101; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile, - com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder, - com.google.cloud.clouddms.v1.PostgreSqlConnectionProfileOrBuilder> + com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile, com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder, com.google.cloud.clouddms.v1.PostgreSqlConnectionProfileOrBuilder> getPostgresqlFieldBuilder() { if (postgresqlBuilder_ == null) { if (!(connectionProfileCase_ == 101)) { - connectionProfile_ = - com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.getDefaultInstance(); + connectionProfile_ = com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.getDefaultInstance(); } - postgresqlBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile, - com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder, - com.google.cloud.clouddms.v1.PostgreSqlConnectionProfileOrBuilder>( + postgresqlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile, com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder, com.google.cloud.clouddms.v1.PostgreSqlConnectionProfileOrBuilder>( (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_, getParentForChildren(), isClean()); connectionProfile_ = null; } connectionProfileCase_ = 101; - onChanged(); - ; + onChanged();; return postgresqlBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.CloudSqlConnectionProfile, - com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.Builder, - com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder> - cloudsqlBuilder_; + com.google.cloud.clouddms.v1.CloudSqlConnectionProfile, com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.Builder, com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder> cloudsqlBuilder_; /** - * - * *
      * A CloudSQL database connection profile.
      * 
* * .google.cloud.clouddms.v1.CloudSqlConnectionProfile cloudsql = 102; - * * @return Whether the cloudsql field is set. */ @java.lang.Override @@ -3157,14 +2773,11 @@ public boolean hasCloudsql() { return connectionProfileCase_ == 102; } /** - * - * *
      * A CloudSQL database connection profile.
      * 
* * .google.cloud.clouddms.v1.CloudSqlConnectionProfile cloudsql = 102; - * * @return The cloudsql. */ @java.lang.Override @@ -3182,8 +2795,6 @@ public com.google.cloud.clouddms.v1.CloudSqlConnectionProfile getCloudsql() { } } /** - * - * *
      * A CloudSQL database connection profile.
      * 
@@ -3204,8 +2815,6 @@ public Builder setCloudsql(com.google.cloud.clouddms.v1.CloudSqlConnectionProfil return this; } /** - * - * *
      * A CloudSQL database connection profile.
      * 
@@ -3224,8 +2833,6 @@ public Builder setCloudsql( return this; } /** - * - * *
      * A CloudSQL database connection profile.
      * 
@@ -3234,14 +2841,10 @@ public Builder setCloudsql( */ public Builder mergeCloudsql(com.google.cloud.clouddms.v1.CloudSqlConnectionProfile value) { if (cloudsqlBuilder_ == null) { - if (connectionProfileCase_ == 102 - && connectionProfile_ - != com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.getDefaultInstance()) { - connectionProfile_ = - com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.newBuilder( - (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_) - .mergeFrom(value) - .buildPartial(); + if (connectionProfileCase_ == 102 && + connectionProfile_ != com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.getDefaultInstance()) { + connectionProfile_ = com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.newBuilder((com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_) + .mergeFrom(value).buildPartial(); } else { connectionProfile_ = value; } @@ -3256,8 +2859,6 @@ public Builder mergeCloudsql(com.google.cloud.clouddms.v1.CloudSqlConnectionProf return this; } /** - * - * *
      * A CloudSQL database connection profile.
      * 
@@ -3281,8 +2882,6 @@ public Builder clearCloudsql() { return this; } /** - * - * *
      * A CloudSQL database connection profile.
      * 
@@ -3293,8 +2892,6 @@ public com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.Builder getCloudsq return getCloudsqlFieldBuilder().getBuilder(); } /** - * - * *
      * A CloudSQL database connection profile.
      * 
@@ -3313,8 +2910,6 @@ public com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder getClouds } } /** - * - * *
      * A CloudSQL database connection profile.
      * 
@@ -3322,58 +2917,44 @@ public com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder getClouds * .google.cloud.clouddms.v1.CloudSqlConnectionProfile cloudsql = 102; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.CloudSqlConnectionProfile, - com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.Builder, - com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder> + com.google.cloud.clouddms.v1.CloudSqlConnectionProfile, com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.Builder, com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder> getCloudsqlFieldBuilder() { if (cloudsqlBuilder_ == null) { if (!(connectionProfileCase_ == 102)) { - connectionProfile_ = - com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.getDefaultInstance(); + connectionProfile_ = com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.getDefaultInstance(); } - cloudsqlBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.CloudSqlConnectionProfile, - com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.Builder, - com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder>( + cloudsqlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.CloudSqlConnectionProfile, com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.Builder, com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder>( (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_, getParentForChildren(), isClean()); connectionProfile_ = null; } connectionProfileCase_ = 102; - onChanged(); - ; + onChanged();; return cloudsqlBuilder_; } private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; /** - * - * *
      * Output only. The error details in case of state FAILED.
      * 
* * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** - * - * *
      * Output only. The error details in case of state FAILED.
      * 
* * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The error. */ public com.google.rpc.Status getError() { @@ -3384,8 +2965,6 @@ public com.google.rpc.Status getError() { } } /** - * - * *
      * Output only. The error details in case of state FAILED.
      * 
@@ -3406,15 +2985,14 @@ public Builder setError(com.google.rpc.Status value) { return this; } /** - * - * *
      * Output only. The error details in case of state FAILED.
      * 
* * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setError(com.google.rpc.Status.Builder builderForValue) { + public Builder setError( + com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); @@ -3425,8 +3003,6 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
      * Output only. The error details in case of state FAILED.
      * 
@@ -3436,7 +3012,8 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { if (error_ != null) { - error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + error_ = + com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } @@ -3448,8 +3025,6 @@ public Builder mergeError(com.google.rpc.Status value) { return this; } /** - * - * *
      * Output only. The error details in case of state FAILED.
      * 
@@ -3468,8 +3043,6 @@ public Builder clearError() { return this; } /** - * - * *
      * Output only. The error details in case of state FAILED.
      * 
@@ -3477,13 +3050,11 @@ public Builder clearError() { * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - + onChanged(); return getErrorFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The error details in case of state FAILED.
      * 
@@ -3494,12 +3065,11 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { - return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + return error_ == null ? + com.google.rpc.Status.getDefaultInstance() : error_; } } /** - * - * *
      * Output only. The error details in case of state FAILED.
      * 
@@ -3507,14 +3077,14 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getErrorFieldBuilder() { if (errorBuilder_ == null) { - errorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getError(), + getParentForChildren(), + isClean()); error_ = null; } return errorBuilder_; @@ -3522,65 +3092,51 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { private int provider_ = 0; /** - * - * *
      * The database provider.
      * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 8; - * * @return The enum numeric value on the wire for provider. */ - @java.lang.Override - public int getProviderValue() { + @java.lang.Override public int getProviderValue() { return provider_; } /** - * - * *
      * The database provider.
      * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 8; - * * @param value The enum numeric value on the wire for provider to set. * @return This builder for chaining. */ public Builder setProviderValue(int value) { - + provider_ = value; onChanged(); return this; } /** - * - * *
      * The database provider.
      * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 8; - * * @return The provider. */ @java.lang.Override public com.google.cloud.clouddms.v1.DatabaseProvider getProvider() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.DatabaseProvider result = - com.google.cloud.clouddms.v1.DatabaseProvider.valueOf(provider_); + com.google.cloud.clouddms.v1.DatabaseProvider result = com.google.cloud.clouddms.v1.DatabaseProvider.valueOf(provider_); return result == null ? com.google.cloud.clouddms.v1.DatabaseProvider.UNRECOGNIZED : result; } /** - * - * *
      * The database provider.
      * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 8; - * * @param value The provider to set. * @return This builder for chaining. */ @@ -3588,31 +3144,28 @@ public Builder setProvider(com.google.cloud.clouddms.v1.DatabaseProvider value) if (value == null) { throw new NullPointerException(); } - + provider_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The database provider.
      * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 8; - * * @return This builder for chaining. */ public Builder clearProvider() { - + provider_ = 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); } @@ -3622,12 +3175,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.ConnectionProfile) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ConnectionProfile) private static final com.google.cloud.clouddms.v1.ConnectionProfile DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ConnectionProfile(); } @@ -3636,16 +3189,16 @@ public static com.google.cloud.clouddms.v1.ConnectionProfile getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectionProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConnectionProfile(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectionProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConnectionProfile(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3660,4 +3213,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.ConnectionProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileName.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileName.java similarity index 100% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileName.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileName.java diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileOrBuilder.java similarity index 83% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileOrBuilder.java index 9a9a15db..f3508231 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileOrBuilder.java @@ -1,146 +1,101 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; -public interface ConnectionProfileOrBuilder - extends +public interface ConnectionProfileOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ConnectionProfile) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of this connection profile resource in the form of
    * projects/{project}/locations/{location}/instances/{instance}.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of this connection profile resource in the form of
    * projects/{project}/locations/{location}/instances/{instance}.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The timestamp when the resource was created.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The timestamp when the resource was created.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The timestamp when the resource was created.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The timestamp when the resource was last updated.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The timestamp when the resource was last updated.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The timestamp when the resource was last updated.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * The resource labels for connection profile to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -152,8 +107,6 @@ public interface ConnectionProfileOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * The resource labels for connection profile to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -163,13 +116,15 @@ public interface ConnectionProfileOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * The resource labels for connection profile to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -179,10 +134,9 @@ public interface ConnectionProfileOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * The resource labels for connection profile to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -192,10 +146,11 @@ public interface ConnectionProfileOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * The resource labels for connection profile to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -205,85 +160,68 @@ public interface ConnectionProfileOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * The current connection profile state (e.g. DRAFT, READY, or FAILED).
    * 
* * .google.cloud.clouddms.v1.ConnectionProfile.State state = 5; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The current connection profile state (e.g. DRAFT, READY, or FAILED).
    * 
* * .google.cloud.clouddms.v1.ConnectionProfile.State state = 5; - * * @return The state. */ com.google.cloud.clouddms.v1.ConnectionProfile.State getState(); /** - * - * *
    * The connection profile display name.
    * 
* * string display_name = 6; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * The connection profile display name.
    * 
* * string display_name = 6; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * A MySQL database connection profile.
    * 
* * .google.cloud.clouddms.v1.MySqlConnectionProfile mysql = 100; - * * @return Whether the mysql field is set. */ boolean hasMysql(); /** - * - * *
    * A MySQL database connection profile.
    * 
* * .google.cloud.clouddms.v1.MySqlConnectionProfile mysql = 100; - * * @return The mysql. */ com.google.cloud.clouddms.v1.MySqlConnectionProfile getMysql(); /** - * - * *
    * A MySQL database connection profile.
    * 
@@ -293,32 +231,24 @@ public interface ConnectionProfileOrBuilder com.google.cloud.clouddms.v1.MySqlConnectionProfileOrBuilder getMysqlOrBuilder(); /** - * - * *
    * A PostgreSQL database connection profile.
    * 
* * .google.cloud.clouddms.v1.PostgreSqlConnectionProfile postgresql = 101; - * * @return Whether the postgresql field is set. */ boolean hasPostgresql(); /** - * - * *
    * A PostgreSQL database connection profile.
    * 
* * .google.cloud.clouddms.v1.PostgreSqlConnectionProfile postgresql = 101; - * * @return The postgresql. */ com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile getPostgresql(); /** - * - * *
    * A PostgreSQL database connection profile.
    * 
@@ -328,32 +258,24 @@ public interface ConnectionProfileOrBuilder com.google.cloud.clouddms.v1.PostgreSqlConnectionProfileOrBuilder getPostgresqlOrBuilder(); /** - * - * *
    * A CloudSQL database connection profile.
    * 
* * .google.cloud.clouddms.v1.CloudSqlConnectionProfile cloudsql = 102; - * * @return Whether the cloudsql field is set. */ boolean hasCloudsql(); /** - * - * *
    * A CloudSQL database connection profile.
    * 
* * .google.cloud.clouddms.v1.CloudSqlConnectionProfile cloudsql = 102; - * * @return The cloudsql. */ com.google.cloud.clouddms.v1.CloudSqlConnectionProfile getCloudsql(); /** - * - * *
    * A CloudSQL database connection profile.
    * 
@@ -363,32 +285,24 @@ public interface ConnectionProfileOrBuilder com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder getCloudsqlOrBuilder(); /** - * - * *
    * Output only. The error details in case of state FAILED.
    * 
* * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
    * Output only. The error details in case of state FAILED.
    * 
* * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The error. */ com.google.rpc.Status getError(); /** - * - * *
    * Output only. The error details in case of state FAILED.
    * 
@@ -398,30 +312,23 @@ public interface ConnectionProfileOrBuilder com.google.rpc.StatusOrBuilder getErrorOrBuilder(); /** - * - * *
    * The database provider.
    * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 8; - * * @return The enum numeric value on the wire for provider. */ int getProviderValue(); /** - * - * *
    * The database provider.
    * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 8; - * * @return The provider. */ com.google.cloud.clouddms.v1.DatabaseProvider getProvider(); - public com.google.cloud.clouddms.v1.ConnectionProfile.ConnectionProfileCase - getConnectionProfileCase(); + public com.google.cloud.clouddms.v1.ConnectionProfile.ConnectionProfileCase getConnectionProfileCase(); } diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequest.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequest.java similarity index 67% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequest.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequest.java index 017a7e92..67a74654 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequest.java @@ -1,43 +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/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * Request message for 'CreateConnectionProfile' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.CreateConnectionProfileRequest} */ -public final class CreateConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateConnectionProfileRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.CreateConnectionProfileRequest) CreateConnectionProfileRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateConnectionProfileRequest.newBuilder() to construct. - private CreateConnectionProfileRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateConnectionProfileRequest() { parent_ = ""; connectionProfileId_ = ""; @@ -46,15 +27,16 @@ private CreateConnectionProfileRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateConnectionProfileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,90 +55,77 @@ private CreateConnectionProfileRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - connectionProfileId_ = s; - break; + connectionProfileId_ = s; + break; + } + case 26: { + com.google.cloud.clouddms.v1.ConnectionProfile.Builder subBuilder = null; + if (connectionProfile_ != null) { + subBuilder = connectionProfile_.toBuilder(); } - case 26: - { - com.google.cloud.clouddms.v1.ConnectionProfile.Builder subBuilder = null; - if (connectionProfile_ != null) { - subBuilder = connectionProfile_.toBuilder(); - } - connectionProfile_ = - input.readMessage( - com.google.cloud.clouddms.v1.ConnectionProfile.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(connectionProfile_); - connectionProfile_ = subBuilder.buildPartial(); - } - - break; + connectionProfile_ = input.readMessage(com.google.cloud.clouddms.v1.ConnectionProfile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(connectionProfile_); + connectionProfile_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.class, - com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.Builder.class); + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.class, com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent, which owns this collection of connection profiles.
    * 
* - * - * string 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 @@ -165,31 +134,29 @@ 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 parent, which owns this collection of connection profiles.
    * 
* - * - * string 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 { @@ -200,14 +167,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CONNECTION_PROFILE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object connectionProfileId_; /** - * - * *
    * Required. The connection profile identifier.
    * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The connectionProfileId. */ @java.lang.Override @@ -216,29 +180,29 @@ public java.lang.String getConnectionProfileId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connectionProfileId_ = s; return s; } } /** - * - * *
    * Required. The connection profile identifier.
    * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for connectionProfileId. */ @java.lang.Override - public com.google.protobuf.ByteString getConnectionProfileIdBytes() { + public com.google.protobuf.ByteString + getConnectionProfileIdBytes() { java.lang.Object ref = connectionProfileId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); connectionProfileId_ = b; return b; } else { @@ -249,16 +213,11 @@ public com.google.protobuf.ByteString getConnectionProfileIdBytes() { public static final int CONNECTION_PROFILE_FIELD_NUMBER = 3; private com.google.cloud.clouddms.v1.ConnectionProfile connectionProfile_; /** - * - * *
    * Required. The create request body including the connection profile data
    * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connectionProfile field is set. */ @java.lang.Override @@ -266,34 +225,23 @@ public boolean hasConnectionProfile() { return connectionProfile_ != null; } /** - * - * *
    * Required. The create request body including the connection profile data
    * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The connectionProfile. */ @java.lang.Override public com.google.cloud.clouddms.v1.ConnectionProfile getConnectionProfile() { - return connectionProfile_ == null - ? com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance() - : connectionProfile_; + return connectionProfile_ == null ? com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; } /** - * - * *
    * Required. The create request body including the connection profile data
    * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { @@ -303,8 +251,6 @@ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProf public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** - * - * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -314,7 +260,6 @@ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProf
    * 
* * string request_id = 4; - * * @return The requestId. */ @java.lang.Override @@ -323,15 +268,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -341,15 +285,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -358,7 +303,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -370,7 +314,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -399,7 +344,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, connectionProfileId_); } if (connectionProfile_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConnectionProfile()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getConnectionProfile()); } if (!getRequestIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -412,21 +358,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.clouddms.v1.CreateConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.CreateConnectionProfileRequest other = - (com.google.cloud.clouddms.v1.CreateConnectionProfileRequest) obj; + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest other = (com.google.cloud.clouddms.v1.CreateConnectionProfileRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getConnectionProfileId().equals(other.getConnectionProfileId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getConnectionProfileId() + .equals(other.getConnectionProfileId())) return false; if (hasConnectionProfile() != other.hasConnectionProfile()) return false; if (hasConnectionProfile()) { - if (!getConnectionProfile().equals(other.getConnectionProfile())) return false; + if (!getConnectionProfile() + .equals(other.getConnectionProfile())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -454,127 +403,117 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.CreateConnectionProfileRequest 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.clouddms.v1.CreateConnectionProfileRequest 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.clouddms.v1.CreateConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.CreateConnectionProfileRequest 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.clouddms.v1.CreateConnectionProfileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.CreateConnectionProfileRequest 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.clouddms.v1.CreateConnectionProfileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.CreateConnectionProfileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.CreateConnectionProfileRequest 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.clouddms.v1.CreateConnectionProfileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.CreateConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.CreateConnectionProfileRequest 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.clouddms.v1.CreateConnectionProfileRequest 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.clouddms.v1.CreateConnectionProfileRequest 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.clouddms.v1.CreateConnectionProfileRequest prototype) { + public static Builder newBuilder(com.google.cloud.clouddms.v1.CreateConnectionProfileRequest 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 message for 'CreateConnectionProfile' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.CreateConnectionProfileRequest} */ - 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.clouddms.v1.CreateConnectionProfileRequest) com.google.cloud.clouddms.v1.CreateConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.class, - com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.Builder.class); + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.class, com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.newBuilder() @@ -582,15 +521,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -610,9 +550,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_descriptor; } @java.lang.Override @@ -631,8 +571,7 @@ public com.google.cloud.clouddms.v1.CreateConnectionProfileRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.CreateConnectionProfileRequest buildPartial() { - com.google.cloud.clouddms.v1.CreateConnectionProfileRequest result = - new com.google.cloud.clouddms.v1.CreateConnectionProfileRequest(this); + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest result = new com.google.cloud.clouddms.v1.CreateConnectionProfileRequest(this); result.parent_ = parent_; result.connectionProfileId_ = connectionProfileId_; if (connectionProfileBuilder_ == null) { @@ -649,39 +588,38 @@ public com.google.cloud.clouddms.v1.CreateConnectionProfileRequest 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.clouddms.v1.CreateConnectionProfileRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.CreateConnectionProfileRequest) other); + return mergeFrom((com.google.cloud.clouddms.v1.CreateConnectionProfileRequest)other); } else { super.mergeFrom(other); return this; @@ -689,8 +627,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.CreateConnectionProfileRequest other) { - if (other == com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -725,8 +662,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.clouddms.v1.CreateConnectionProfileRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.clouddms.v1.CreateConnectionProfileRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -738,22 +674,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent, which owns this collection of connection profiles.
      * 
* - * - * string 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; @@ -762,23 +694,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent, which owns this collection of connection profiles.
      * 
* - * - * string 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 { @@ -786,67 +715,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent, which owns this collection of connection profiles.
      * 
* - * - * 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 parent, which owns this collection of connection profiles.
      * 
* - * - * string 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 parent, which owns this collection of connection profiles.
      * 
* - * - * 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; @@ -854,20 +770,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object connectionProfileId_ = ""; /** - * - * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The connectionProfileId. */ public java.lang.String getConnectionProfileId() { java.lang.Object ref = connectionProfileId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connectionProfileId_ = s; return s; @@ -876,21 +790,20 @@ public java.lang.String getConnectionProfileId() { } } /** - * - * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for connectionProfileId. */ - public com.google.protobuf.ByteString getConnectionProfileIdBytes() { + public com.google.protobuf.ByteString + getConnectionProfileIdBytes() { java.lang.Object ref = connectionProfileId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); connectionProfileId_ = b; return b; } else { @@ -898,61 +811,54 @@ public com.google.protobuf.ByteString getConnectionProfileIdBytes() { } } /** - * - * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The connectionProfileId to set. * @return This builder for chaining. */ - public Builder setConnectionProfileId(java.lang.String value) { + public Builder setConnectionProfileId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + connectionProfileId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearConnectionProfileId() { - + connectionProfileId_ = getDefaultInstance().getConnectionProfileId(); onChanged(); return this; } /** - * - * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for connectionProfileId to set. * @return This builder for chaining. */ - public Builder setConnectionProfileIdBytes(com.google.protobuf.ByteString value) { + public Builder setConnectionProfileIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connectionProfileId_ = value; onChanged(); return this; @@ -960,58 +866,39 @@ public Builder setConnectionProfileIdBytes(com.google.protobuf.ByteString value) private com.google.cloud.clouddms.v1.ConnectionProfile connectionProfile_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.ConnectionProfile, - com.google.cloud.clouddms.v1.ConnectionProfile.Builder, - com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder> - connectionProfileBuilder_; + com.google.cloud.clouddms.v1.ConnectionProfile, com.google.cloud.clouddms.v1.ConnectionProfile.Builder, com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder> connectionProfileBuilder_; /** - * - * *
      * Required. The create request body including the connection profile data
      * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connectionProfile field is set. */ public boolean hasConnectionProfile() { return connectionProfileBuilder_ != null || connectionProfile_ != null; } /** - * - * *
      * Required. The create request body including the connection profile data
      * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The connectionProfile. */ public com.google.cloud.clouddms.v1.ConnectionProfile getConnectionProfile() { if (connectionProfileBuilder_ == null) { - return connectionProfile_ == null - ? com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance() - : connectionProfile_; + return connectionProfile_ == null ? com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; } else { return connectionProfileBuilder_.getMessage(); } } /** - * - * *
      * Required. The create request body including the connection profile data
      * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConnectionProfile(com.google.cloud.clouddms.v1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { @@ -1027,15 +914,11 @@ public Builder setConnectionProfile(com.google.cloud.clouddms.v1.ConnectionProfi return this; } /** - * - * *
      * Required. The create request body including the connection profile data
      * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConnectionProfile( com.google.cloud.clouddms.v1.ConnectionProfile.Builder builderForValue) { @@ -1049,23 +932,17 @@ public Builder setConnectionProfile( return this; } /** - * - * *
      * Required. The create request body including the connection profile data
      * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConnectionProfile(com.google.cloud.clouddms.v1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { if (connectionProfile_ != null) { connectionProfile_ = - com.google.cloud.clouddms.v1.ConnectionProfile.newBuilder(connectionProfile_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.clouddms.v1.ConnectionProfile.newBuilder(connectionProfile_).mergeFrom(value).buildPartial(); } else { connectionProfile_ = value; } @@ -1077,15 +954,11 @@ public Builder mergeConnectionProfile(com.google.cloud.clouddms.v1.ConnectionPro return this; } /** - * - * *
      * Required. The create request body including the connection profile data
      * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConnectionProfile() { if (connectionProfileBuilder_ == null) { @@ -1099,64 +972,48 @@ public Builder clearConnectionProfile() { return this; } /** - * - * *
      * Required. The create request body including the connection profile data
      * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.clouddms.v1.ConnectionProfile.Builder getConnectionProfileBuilder() { - + onChanged(); return getConnectionProfileFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The create request body including the connection profile data
      * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { if (connectionProfileBuilder_ != null) { return connectionProfileBuilder_.getMessageOrBuilder(); } else { - return connectionProfile_ == null - ? com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance() - : connectionProfile_; + return connectionProfile_ == null ? + com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; } } /** - * - * *
      * Required. The create request body including the connection profile data
      * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.ConnectionProfile, - com.google.cloud.clouddms.v1.ConnectionProfile.Builder, - com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder> + com.google.cloud.clouddms.v1.ConnectionProfile, com.google.cloud.clouddms.v1.ConnectionProfile.Builder, com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder> getConnectionProfileFieldBuilder() { if (connectionProfileBuilder_ == null) { - connectionProfileBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.ConnectionProfile, - com.google.cloud.clouddms.v1.ConnectionProfile.Builder, - com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder>( - getConnectionProfile(), getParentForChildren(), isClean()); + connectionProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ConnectionProfile, com.google.cloud.clouddms.v1.ConnectionProfile.Builder, com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder>( + getConnectionProfile(), + getParentForChildren(), + isClean()); connectionProfile_ = null; } return connectionProfileBuilder_; @@ -1164,8 +1021,6 @@ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProf private java.lang.Object requestId_ = ""; /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1175,13 +1030,13 @@ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProf
      * 
* * string request_id = 4; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1190,8 +1045,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1201,14 +1054,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1216,8 +1070,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1227,22 +1079,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1252,18 +1102,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1273,23 +1120,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1299,12 +1146,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.CreateConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.CreateConnectionProfileRequest) private static final com.google.cloud.clouddms.v1.CreateConnectionProfileRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.CreateConnectionProfileRequest(); } @@ -1313,16 +1160,16 @@ public static com.google.cloud.clouddms.v1.CreateConnectionProfileRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateConnectionProfileRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateConnectionProfileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1337,4 +1184,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.clouddms.v1.CreateConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequestOrBuilder.java index 60a3a5bb..06ac2dd6 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequestOrBuilder.java @@ -1,126 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface CreateConnectionProfileRequestOrBuilder - extends +public interface CreateConnectionProfileRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.CreateConnectionProfileRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent, which owns this collection of connection profiles.
    * 
* - * - * string 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 parent, which owns this collection of connection profiles.
    * 
* - * - * string 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. The connection profile identifier.
    * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The connectionProfileId. */ java.lang.String getConnectionProfileId(); /** - * - * *
    * Required. The connection profile identifier.
    * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for connectionProfileId. */ - com.google.protobuf.ByteString getConnectionProfileIdBytes(); + com.google.protobuf.ByteString + getConnectionProfileIdBytes(); /** - * - * *
    * Required. The create request body including the connection profile data
    * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connectionProfile field is set. */ boolean hasConnectionProfile(); /** - * - * *
    * Required. The create request body including the connection profile data
    * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The connectionProfile. */ com.google.cloud.clouddms.v1.ConnectionProfile getConnectionProfile(); /** - * - * *
    * Required. The create request body including the connection profile data
    * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder(); /** - * - * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -130,13 +84,10 @@ public interface CreateConnectionProfileRequestOrBuilder
    * 
* * string request_id = 4; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -146,8 +97,8 @@ public interface CreateConnectionProfileRequestOrBuilder
    * 
* * string request_id = 4; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequest.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequest.java similarity index 68% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequest.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequest.java index fae2a530..1d2e9b5f 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequest.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/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * Request message to create a new Database Migration Service migration job
  * in the specified project and region.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.clouddms.v1.CreateMigrationJobRequest}
  */
-public final class CreateMigrationJobRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateMigrationJobRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.CreateMigrationJobRequest)
     CreateMigrationJobRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateMigrationJobRequest.newBuilder() to construct.
   private CreateMigrationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateMigrationJobRequest() {
     parent_ = "";
     migrationJobId_ = "";
@@ -46,15 +28,16 @@ private CreateMigrationJobRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateMigrationJobRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CreateMigrationJobRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,90 +56,77 @@ private CreateMigrationJobRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              parent_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            parent_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              migrationJobId_ = s;
-              break;
+            migrationJobId_ = s;
+            break;
+          }
+          case 26: {
+            com.google.cloud.clouddms.v1.MigrationJob.Builder subBuilder = null;
+            if (migrationJob_ != null) {
+              subBuilder = migrationJob_.toBuilder();
             }
-          case 26:
-            {
-              com.google.cloud.clouddms.v1.MigrationJob.Builder subBuilder = null;
-              if (migrationJob_ != null) {
-                subBuilder = migrationJob_.toBuilder();
-              }
-              migrationJob_ =
-                  input.readMessage(
-                      com.google.cloud.clouddms.v1.MigrationJob.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(migrationJob_);
-                migrationJob_ = subBuilder.buildPartial();
-              }
-
-              break;
+            migrationJob_ = input.readMessage(com.google.cloud.clouddms.v1.MigrationJob.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(migrationJob_);
+              migrationJob_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              requestId_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            requestId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.clouddms.v1.ClouddmsProto
-        .internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.clouddms.v1.ClouddmsProto
-        .internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_fieldAccessorTable
+    return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.clouddms.v1.CreateMigrationJobRequest.class,
-            com.google.cloud.clouddms.v1.CreateMigrationJobRequest.Builder.class);
+            com.google.cloud.clouddms.v1.CreateMigrationJobRequest.class, com.google.cloud.clouddms.v1.CreateMigrationJobRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
-   *
-   *
    * 
    * Required. The parent, which owns this collection of migration jobs.
    * 
* - * - * string 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 @@ -165,31 +135,29 @@ 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 parent, which owns this collection of migration jobs.
    * 
* - * - * string 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 { @@ -200,14 +168,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int MIGRATION_JOB_ID_FIELD_NUMBER = 2; private volatile java.lang.Object migrationJobId_; /** - * - * *
    * Required. The ID of the instance to create.
    * 
* * string migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The migrationJobId. */ @java.lang.Override @@ -216,29 +181,29 @@ public java.lang.String getMigrationJobId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); migrationJobId_ = s; return s; } } /** - * - * *
    * Required. The ID of the instance to create.
    * 
* * string migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for migrationJobId. */ @java.lang.Override - public com.google.protobuf.ByteString getMigrationJobIdBytes() { + public com.google.protobuf.ByteString + getMigrationJobIdBytes() { java.lang.Object ref = migrationJobId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); migrationJobId_ = b; return b; } else { @@ -249,18 +214,13 @@ public com.google.protobuf.ByteString getMigrationJobIdBytes() { public static final int MIGRATION_JOB_FIELD_NUMBER = 3; private com.google.cloud.clouddms.v1.MigrationJob migrationJob_; /** - * - * *
    * Required. Represents a [migration
    * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
    * object.
    * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the migrationJob field is set. */ @java.lang.Override @@ -268,38 +228,27 @@ public boolean hasMigrationJob() { return migrationJob_ != null; } /** - * - * *
    * Required. Represents a [migration
    * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
    * object.
    * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The migrationJob. */ @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJob getMigrationJob() { - return migrationJob_ == null - ? com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() - : migrationJob_; + return migrationJob_ == null ? com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() : migrationJob_; } /** - * - * *
    * Required. Represents a [migration
    * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
    * object.
    * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuilder() { @@ -309,8 +258,6 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuild public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** - * - * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -320,7 +267,6 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuild
    * 
* * string request_id = 4; - * * @return The requestId. */ @java.lang.Override @@ -329,15 +275,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -347,15 +292,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -364,7 +310,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -376,7 +321,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -405,7 +351,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, migrationJobId_); } if (migrationJob_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMigrationJob()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMigrationJob()); } if (!getRequestIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -418,21 +365,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.clouddms.v1.CreateMigrationJobRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.CreateMigrationJobRequest other = - (com.google.cloud.clouddms.v1.CreateMigrationJobRequest) obj; + com.google.cloud.clouddms.v1.CreateMigrationJobRequest other = (com.google.cloud.clouddms.v1.CreateMigrationJobRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getMigrationJobId().equals(other.getMigrationJobId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getMigrationJobId() + .equals(other.getMigrationJobId())) return false; if (hasMigrationJob() != other.hasMigrationJob()) return false; if (hasMigrationJob()) { - if (!getMigrationJob().equals(other.getMigrationJob())) return false; + if (!getMigrationJob() + .equals(other.getMigrationJob())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -460,104 +410,96 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.CreateMigrationJobRequest 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.clouddms.v1.CreateMigrationJobRequest 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.clouddms.v1.CreateMigrationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.CreateMigrationJobRequest 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.clouddms.v1.CreateMigrationJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.CreateMigrationJobRequest 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.clouddms.v1.CreateMigrationJobRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.CreateMigrationJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.CreateMigrationJobRequest 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.clouddms.v1.CreateMigrationJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.CreateMigrationJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.CreateMigrationJobRequest 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.clouddms.v1.CreateMigrationJobRequest 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.clouddms.v1.CreateMigrationJobRequest 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.clouddms.v1.CreateMigrationJobRequest prototype) { + public static Builder newBuilder(com.google.cloud.clouddms.v1.CreateMigrationJobRequest 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 message to create a new Database Migration Service migration job
    * in the specified project and region.
@@ -565,23 +507,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.clouddms.v1.CreateMigrationJobRequest}
    */
-  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.clouddms.v1.CreateMigrationJobRequest)
       com.google.cloud.clouddms.v1.CreateMigrationJobRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.clouddms.v1.ClouddmsProto
-          .internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.clouddms.v1.ClouddmsProto
-          .internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_fieldAccessorTable
+      return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.clouddms.v1.CreateMigrationJobRequest.class,
-              com.google.cloud.clouddms.v1.CreateMigrationJobRequest.Builder.class);
+              com.google.cloud.clouddms.v1.CreateMigrationJobRequest.class, com.google.cloud.clouddms.v1.CreateMigrationJobRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.clouddms.v1.CreateMigrationJobRequest.newBuilder()
@@ -589,15 +529,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -617,9 +558,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.clouddms.v1.ClouddmsProto
-          .internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_descriptor;
     }
 
     @java.lang.Override
@@ -638,8 +579,7 @@ public com.google.cloud.clouddms.v1.CreateMigrationJobRequest build() {
 
     @java.lang.Override
     public com.google.cloud.clouddms.v1.CreateMigrationJobRequest buildPartial() {
-      com.google.cloud.clouddms.v1.CreateMigrationJobRequest result =
-          new com.google.cloud.clouddms.v1.CreateMigrationJobRequest(this);
+      com.google.cloud.clouddms.v1.CreateMigrationJobRequest result = new com.google.cloud.clouddms.v1.CreateMigrationJobRequest(this);
       result.parent_ = parent_;
       result.migrationJobId_ = migrationJobId_;
       if (migrationJobBuilder_ == null) {
@@ -656,39 +596,38 @@ public com.google.cloud.clouddms.v1.CreateMigrationJobRequest 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.clouddms.v1.CreateMigrationJobRequest) {
-        return mergeFrom((com.google.cloud.clouddms.v1.CreateMigrationJobRequest) other);
+        return mergeFrom((com.google.cloud.clouddms.v1.CreateMigrationJobRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -696,8 +635,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.clouddms.v1.CreateMigrationJobRequest other) {
-      if (other == com.google.cloud.clouddms.v1.CreateMigrationJobRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.clouddms.v1.CreateMigrationJobRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -732,8 +670,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.clouddms.v1.CreateMigrationJobRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.clouddms.v1.CreateMigrationJobRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -745,22 +682,18 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The parent, which owns this collection of migration jobs.
      * 
* - * - * string 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; @@ -769,23 +702,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent, which owns this collection of migration jobs.
      * 
* - * - * string 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 { @@ -793,67 +723,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent, which owns this collection of migration jobs.
      * 
* - * - * 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 parent, which owns this collection of migration jobs.
      * 
* - * - * string 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 parent, which owns this collection of migration jobs.
      * 
* - * - * 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; @@ -861,20 +778,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object migrationJobId_ = ""; /** - * - * *
      * Required. The ID of the instance to create.
      * 
* * string migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The migrationJobId. */ public java.lang.String getMigrationJobId() { java.lang.Object ref = migrationJobId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); migrationJobId_ = s; return s; @@ -883,21 +798,20 @@ public java.lang.String getMigrationJobId() { } } /** - * - * *
      * Required. The ID of the instance to create.
      * 
* * string migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for migrationJobId. */ - public com.google.protobuf.ByteString getMigrationJobIdBytes() { + public com.google.protobuf.ByteString + getMigrationJobIdBytes() { java.lang.Object ref = migrationJobId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); migrationJobId_ = b; return b; } else { @@ -905,61 +819,54 @@ public com.google.protobuf.ByteString getMigrationJobIdBytes() { } } /** - * - * *
      * Required. The ID of the instance to create.
      * 
* * string migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The migrationJobId to set. * @return This builder for chaining. */ - public Builder setMigrationJobId(java.lang.String value) { + public Builder setMigrationJobId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + migrationJobId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID of the instance to create.
      * 
* * string migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearMigrationJobId() { - + migrationJobId_ = getDefaultInstance().getMigrationJobId(); onChanged(); return this; } /** - * - * *
      * Required. The ID of the instance to create.
      * 
* * string migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for migrationJobId to set. * @return This builder for chaining. */ - public Builder setMigrationJobIdBytes(com.google.protobuf.ByteString value) { + public Builder setMigrationJobIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + migrationJobId_ = value; onChanged(); return this; @@ -967,64 +874,45 @@ public Builder setMigrationJobIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.clouddms.v1.MigrationJob migrationJob_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.MigrationJob, - com.google.cloud.clouddms.v1.MigrationJob.Builder, - com.google.cloud.clouddms.v1.MigrationJobOrBuilder> - migrationJobBuilder_; + com.google.cloud.clouddms.v1.MigrationJob, com.google.cloud.clouddms.v1.MigrationJob.Builder, com.google.cloud.clouddms.v1.MigrationJobOrBuilder> migrationJobBuilder_; /** - * - * *
      * Required. Represents a [migration
      * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
      * object.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the migrationJob field is set. */ public boolean hasMigrationJob() { return migrationJobBuilder_ != null || migrationJob_ != null; } /** - * - * *
      * Required. Represents a [migration
      * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
      * object.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The migrationJob. */ public com.google.cloud.clouddms.v1.MigrationJob getMigrationJob() { if (migrationJobBuilder_ == null) { - return migrationJob_ == null - ? com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() - : migrationJob_; + return migrationJob_ == null ? com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() : migrationJob_; } else { return migrationJobBuilder_.getMessage(); } } /** - * - * *
      * Required. Represents a [migration
      * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
      * object.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setMigrationJob(com.google.cloud.clouddms.v1.MigrationJob value) { if (migrationJobBuilder_ == null) { @@ -1040,17 +928,13 @@ public Builder setMigrationJob(com.google.cloud.clouddms.v1.MigrationJob value) return this; } /** - * - * *
      * Required. Represents a [migration
      * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
      * object.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setMigrationJob( com.google.cloud.clouddms.v1.MigrationJob.Builder builderForValue) { @@ -1064,25 +948,19 @@ public Builder setMigrationJob( return this; } /** - * - * *
      * Required. Represents a [migration
      * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
      * object.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeMigrationJob(com.google.cloud.clouddms.v1.MigrationJob value) { if (migrationJobBuilder_ == null) { if (migrationJob_ != null) { migrationJob_ = - com.google.cloud.clouddms.v1.MigrationJob.newBuilder(migrationJob_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.clouddms.v1.MigrationJob.newBuilder(migrationJob_).mergeFrom(value).buildPartial(); } else { migrationJob_ = value; } @@ -1094,17 +972,13 @@ public Builder mergeMigrationJob(com.google.cloud.clouddms.v1.MigrationJob value return this; } /** - * - * *
      * Required. Represents a [migration
      * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
      * object.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearMigrationJob() { if (migrationJobBuilder_ == null) { @@ -1118,70 +992,54 @@ public Builder clearMigrationJob() { return this; } /** - * - * *
      * Required. Represents a [migration
      * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
      * object.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.clouddms.v1.MigrationJob.Builder getMigrationJobBuilder() { - + onChanged(); return getMigrationJobFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Represents a [migration
      * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
      * object.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuilder() { if (migrationJobBuilder_ != null) { return migrationJobBuilder_.getMessageOrBuilder(); } else { - return migrationJob_ == null - ? com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() - : migrationJob_; + return migrationJob_ == null ? + com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() : migrationJob_; } } /** - * - * *
      * Required. Represents a [migration
      * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
      * object.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.MigrationJob, - com.google.cloud.clouddms.v1.MigrationJob.Builder, - com.google.cloud.clouddms.v1.MigrationJobOrBuilder> + com.google.cloud.clouddms.v1.MigrationJob, com.google.cloud.clouddms.v1.MigrationJob.Builder, com.google.cloud.clouddms.v1.MigrationJobOrBuilder> getMigrationJobFieldBuilder() { if (migrationJobBuilder_ == null) { - migrationJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.MigrationJob, - com.google.cloud.clouddms.v1.MigrationJob.Builder, - com.google.cloud.clouddms.v1.MigrationJobOrBuilder>( - getMigrationJob(), getParentForChildren(), isClean()); + migrationJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.MigrationJob, com.google.cloud.clouddms.v1.MigrationJob.Builder, com.google.cloud.clouddms.v1.MigrationJobOrBuilder>( + getMigrationJob(), + getParentForChildren(), + isClean()); migrationJob_ = null; } return migrationJobBuilder_; @@ -1189,8 +1047,6 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuild private java.lang.Object requestId_ = ""; /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1200,13 +1056,13 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuild
      * 
* * string request_id = 4; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1215,8 +1071,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1226,14 +1080,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1241,8 +1096,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1252,22 +1105,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1277,18 +1128,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1298,23 +1146,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1324,12 +1172,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.CreateMigrationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.CreateMigrationJobRequest) private static final com.google.cloud.clouddms.v1.CreateMigrationJobRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.CreateMigrationJobRequest(); } @@ -1338,16 +1186,16 @@ public static com.google.cloud.clouddms.v1.CreateMigrationJobRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateMigrationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateMigrationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMigrationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateMigrationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1362,4 +1210,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.clouddms.v1.CreateMigrationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequestOrBuilder.java similarity index 64% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequestOrBuilder.java index 5c20f7de..45344916 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequestOrBuilder.java @@ -1,132 +1,86 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface CreateMigrationJobRequestOrBuilder - extends +public interface CreateMigrationJobRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.CreateMigrationJobRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent, which owns this collection of migration jobs.
    * 
* - * - * string 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 parent, which owns this collection of migration jobs.
    * 
* - * - * string 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. The ID of the instance to create.
    * 
* * string migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The migrationJobId. */ java.lang.String getMigrationJobId(); /** - * - * *
    * Required. The ID of the instance to create.
    * 
* * string migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for migrationJobId. */ - com.google.protobuf.ByteString getMigrationJobIdBytes(); + com.google.protobuf.ByteString + getMigrationJobIdBytes(); /** - * - * *
    * Required. Represents a [migration
    * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
    * object.
    * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the migrationJob field is set. */ boolean hasMigrationJob(); /** - * - * *
    * Required. Represents a [migration
    * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
    * object.
    * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The migrationJob. */ com.google.cloud.clouddms.v1.MigrationJob getMigrationJob(); /** - * - * *
    * Required. Represents a [migration
    * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
    * object.
    * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuilder(); /** - * - * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -136,13 +90,10 @@ public interface CreateMigrationJobRequestOrBuilder
    * 
* * string request_id = 4; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -152,8 +103,8 @@ public interface CreateMigrationJobRequestOrBuilder
    * 
* * string request_id = 4; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEngine.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEngine.java similarity index 65% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEngine.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEngine.java index 61db75fd..ae8453dd 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEngine.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEngine.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/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * The database engine types.
  * 
* * Protobuf enum {@code google.cloud.clouddms.v1.DatabaseEngine} */ -public enum DatabaseEngine implements com.google.protobuf.ProtocolMessageEnum { +public enum DatabaseEngine + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * The source database engine of the migration job is unknown.
    * 
@@ -39,8 +21,6 @@ public enum DatabaseEngine implements com.google.protobuf.ProtocolMessageEnum { */ DATABASE_ENGINE_UNSPECIFIED(0), /** - * - * *
    * The source engine is MySQL.
    * 
@@ -49,8 +29,6 @@ public enum DatabaseEngine implements com.google.protobuf.ProtocolMessageEnum { */ MYSQL(1), /** - * - * *
    * The source engine is PostgreSQL.
    * 
@@ -62,8 +40,6 @@ public enum DatabaseEngine implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * The source database engine of the migration job is unknown.
    * 
@@ -72,8 +48,6 @@ public enum DatabaseEngine implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DATABASE_ENGINE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * The source engine is MySQL.
    * 
@@ -82,8 +56,6 @@ public enum DatabaseEngine implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MYSQL_VALUE = 1; /** - * - * *
    * The source engine is PostgreSQL.
    * 
@@ -92,6 +64,7 @@ public enum DatabaseEngine implements com.google.protobuf.ProtocolMessageEnum { */ public static final int POSTGRESQL_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -116,51 +89,49 @@ public static DatabaseEngine valueOf(int value) { */ public static DatabaseEngine forNumber(int value) { switch (value) { - case 0: - return DATABASE_ENGINE_UNSPECIFIED; - case 1: - return MYSQL; - case 2: - return POSTGRESQL; - default: - return null; + case 0: return DATABASE_ENGINE_UNSPECIFIED; + case 1: return MYSQL; + case 2: return POSTGRESQL; + 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 DatabaseEngine findValueByNumber(int number) { - return DatabaseEngine.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + DatabaseEngine> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DatabaseEngine findValueByNumber(int number) { + return DatabaseEngine.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.clouddms.v1.ClouddmsResourcesProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.getDescriptor().getEnumTypes().get(0); } private static final DatabaseEngine[] VALUES = values(); - public static DatabaseEngine valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DatabaseEngine 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; @@ -176,3 +147,4 @@ private DatabaseEngine(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.clouddms.v1.DatabaseEngine) } + diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseProvider.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseProvider.java similarity index 65% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseProvider.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseProvider.java index c17ee0c1..5ac0e809 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseProvider.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseProvider.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/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * The database providers.
  * 
* * Protobuf enum {@code google.cloud.clouddms.v1.DatabaseProvider} */ -public enum DatabaseProvider implements com.google.protobuf.ProtocolMessageEnum { +public enum DatabaseProvider + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * The database provider is unknown.
    * 
@@ -39,8 +21,6 @@ public enum DatabaseProvider implements com.google.protobuf.ProtocolMessageEnum */ DATABASE_PROVIDER_UNSPECIFIED(0), /** - * - * *
    * CloudSQL runs the database.
    * 
@@ -49,8 +29,6 @@ public enum DatabaseProvider implements com.google.protobuf.ProtocolMessageEnum */ CLOUDSQL(1), /** - * - * *
    * RDS runs the database.
    * 
@@ -62,8 +40,6 @@ public enum DatabaseProvider implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
    * The database provider is unknown.
    * 
@@ -72,8 +48,6 @@ public enum DatabaseProvider implements com.google.protobuf.ProtocolMessageEnum */ public static final int DATABASE_PROVIDER_UNSPECIFIED_VALUE = 0; /** - * - * *
    * CloudSQL runs the database.
    * 
@@ -82,8 +56,6 @@ public enum DatabaseProvider implements com.google.protobuf.ProtocolMessageEnum */ public static final int CLOUDSQL_VALUE = 1; /** - * - * *
    * RDS runs the database.
    * 
@@ -92,6 +64,7 @@ public enum DatabaseProvider implements com.google.protobuf.ProtocolMessageEnum */ public static final int RDS_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -116,51 +89,49 @@ public static DatabaseProvider valueOf(int value) { */ public static DatabaseProvider forNumber(int value) { switch (value) { - case 0: - return DATABASE_PROVIDER_UNSPECIFIED; - case 1: - return CLOUDSQL; - case 2: - return RDS; - default: - return null; + case 0: return DATABASE_PROVIDER_UNSPECIFIED; + case 1: return CLOUDSQL; + case 2: return RDS; + 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 DatabaseProvider findValueByNumber(int number) { - return DatabaseProvider.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + DatabaseProvider> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DatabaseProvider findValueByNumber(int number) { + return DatabaseProvider.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.clouddms.v1.ClouddmsResourcesProto.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.getDescriptor().getEnumTypes().get(1); } private static final DatabaseProvider[] VALUES = values(); - public static DatabaseProvider valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DatabaseProvider 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; @@ -176,3 +147,4 @@ private DatabaseProvider(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.clouddms.v1.DatabaseProvider) } + diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseType.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseType.java similarity index 68% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseType.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseType.java index 351b251a..067b266a 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseType.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseType.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/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * A message defining the database engine and provider.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.DatabaseType} */ -public final class DatabaseType extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DatabaseType extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.DatabaseType) DatabaseTypeOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DatabaseType.newBuilder() to construct. private DatabaseType(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DatabaseType() { provider_ = 0; engine_ = 0; @@ -44,15 +26,16 @@ private DatabaseType() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DatabaseType(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DatabaseType( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,128 +54,105 @@ private DatabaseType( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - provider_ = rawValue; - break; - } - case 16: - { - int rawValue = input.readEnum(); + provider_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); - engine_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + engine_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_DatabaseType_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_DatabaseType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_DatabaseType_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_DatabaseType_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.DatabaseType.class, - com.google.cloud.clouddms.v1.DatabaseType.Builder.class); + com.google.cloud.clouddms.v1.DatabaseType.class, com.google.cloud.clouddms.v1.DatabaseType.Builder.class); } public static final int PROVIDER_FIELD_NUMBER = 1; private int provider_; /** - * - * *
    * The database provider.
    * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 1; - * * @return The enum numeric value on the wire for provider. */ - @java.lang.Override - public int getProviderValue() { + @java.lang.Override public int getProviderValue() { return provider_; } /** - * - * *
    * The database provider.
    * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 1; - * * @return The provider. */ - @java.lang.Override - public com.google.cloud.clouddms.v1.DatabaseProvider getProvider() { + @java.lang.Override public com.google.cloud.clouddms.v1.DatabaseProvider getProvider() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.DatabaseProvider result = - com.google.cloud.clouddms.v1.DatabaseProvider.valueOf(provider_); + com.google.cloud.clouddms.v1.DatabaseProvider result = com.google.cloud.clouddms.v1.DatabaseProvider.valueOf(provider_); return result == null ? com.google.cloud.clouddms.v1.DatabaseProvider.UNRECOGNIZED : result; } public static final int ENGINE_FIELD_NUMBER = 2; private int engine_; /** - * - * *
    * The database engine.
    * 
* * .google.cloud.clouddms.v1.DatabaseEngine engine = 2; - * * @return The enum numeric value on the wire for engine. */ - @java.lang.Override - public int getEngineValue() { + @java.lang.Override public int getEngineValue() { return engine_; } /** - * - * *
    * The database engine.
    * 
* * .google.cloud.clouddms.v1.DatabaseEngine engine = 2; - * * @return The engine. */ - @java.lang.Override - public com.google.cloud.clouddms.v1.DatabaseEngine getEngine() { + @java.lang.Override public com.google.cloud.clouddms.v1.DatabaseEngine getEngine() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.DatabaseEngine result = - com.google.cloud.clouddms.v1.DatabaseEngine.valueOf(engine_); + com.google.cloud.clouddms.v1.DatabaseEngine result = com.google.cloud.clouddms.v1.DatabaseEngine.valueOf(engine_); return result == null ? com.google.cloud.clouddms.v1.DatabaseEngine.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,14 +164,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (provider_ - != com.google.cloud.clouddms.v1.DatabaseProvider.DATABASE_PROVIDER_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (provider_ != com.google.cloud.clouddms.v1.DatabaseProvider.DATABASE_PROVIDER_UNSPECIFIED.getNumber()) { output.writeEnum(1, provider_); } - if (engine_ - != com.google.cloud.clouddms.v1.DatabaseEngine.DATABASE_ENGINE_UNSPECIFIED.getNumber()) { + if (engine_ != com.google.cloud.clouddms.v1.DatabaseEngine.DATABASE_ENGINE_UNSPECIFIED.getNumber()) { output.writeEnum(2, engine_); } unknownFields.writeTo(output); @@ -223,14 +181,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (provider_ - != com.google.cloud.clouddms.v1.DatabaseProvider.DATABASE_PROVIDER_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, provider_); + if (provider_ != com.google.cloud.clouddms.v1.DatabaseProvider.DATABASE_PROVIDER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, provider_); } - if (engine_ - != com.google.cloud.clouddms.v1.DatabaseEngine.DATABASE_ENGINE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, engine_); + if (engine_ != com.google.cloud.clouddms.v1.DatabaseEngine.DATABASE_ENGINE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, engine_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -240,13 +197,12 @@ 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.clouddms.v1.DatabaseType)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.DatabaseType other = - (com.google.cloud.clouddms.v1.DatabaseType) obj; + com.google.cloud.clouddms.v1.DatabaseType other = (com.google.cloud.clouddms.v1.DatabaseType) obj; if (provider_ != other.provider_) return false; if (engine_ != other.engine_) return false; @@ -270,127 +226,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.clouddms.v1.DatabaseType parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.clouddms.v1.DatabaseType parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.DatabaseType 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.clouddms.v1.DatabaseType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.DatabaseType 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.clouddms.v1.DatabaseType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.DatabaseType 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.clouddms.v1.DatabaseType parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.DatabaseType 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.clouddms.v1.DatabaseType parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.DatabaseType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.DatabaseType 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.clouddms.v1.DatabaseType 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.clouddms.v1.DatabaseType 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.clouddms.v1.DatabaseType 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 message defining the database engine and provider.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.DatabaseType} */ - 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.clouddms.v1.DatabaseType) com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_DatabaseType_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_DatabaseType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_DatabaseType_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_DatabaseType_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.DatabaseType.class, - com.google.cloud.clouddms.v1.DatabaseType.Builder.class); + com.google.cloud.clouddms.v1.DatabaseType.class, com.google.cloud.clouddms.v1.DatabaseType.Builder.class); } // Construct using com.google.cloud.clouddms.v1.DatabaseType.newBuilder() @@ -398,15 +345,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -418,9 +366,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_DatabaseType_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_DatabaseType_descriptor; } @java.lang.Override @@ -439,8 +387,7 @@ public com.google.cloud.clouddms.v1.DatabaseType build() { @java.lang.Override public com.google.cloud.clouddms.v1.DatabaseType buildPartial() { - com.google.cloud.clouddms.v1.DatabaseType result = - new com.google.cloud.clouddms.v1.DatabaseType(this); + com.google.cloud.clouddms.v1.DatabaseType result = new com.google.cloud.clouddms.v1.DatabaseType(this); result.provider_ = provider_; result.engine_ = engine_; onBuilt(); @@ -451,39 +398,38 @@ public com.google.cloud.clouddms.v1.DatabaseType 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.clouddms.v1.DatabaseType) { - return mergeFrom((com.google.cloud.clouddms.v1.DatabaseType) other); + return mergeFrom((com.google.cloud.clouddms.v1.DatabaseType)other); } else { super.mergeFrom(other); return this; @@ -529,65 +475,51 @@ public Builder mergeFrom( private int provider_ = 0; /** - * - * *
      * The database provider.
      * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 1; - * * @return The enum numeric value on the wire for provider. */ - @java.lang.Override - public int getProviderValue() { + @java.lang.Override public int getProviderValue() { return provider_; } /** - * - * *
      * The database provider.
      * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 1; - * * @param value The enum numeric value on the wire for provider to set. * @return This builder for chaining. */ public Builder setProviderValue(int value) { - + provider_ = value; onChanged(); return this; } /** - * - * *
      * The database provider.
      * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 1; - * * @return The provider. */ @java.lang.Override public com.google.cloud.clouddms.v1.DatabaseProvider getProvider() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.DatabaseProvider result = - com.google.cloud.clouddms.v1.DatabaseProvider.valueOf(provider_); + com.google.cloud.clouddms.v1.DatabaseProvider result = com.google.cloud.clouddms.v1.DatabaseProvider.valueOf(provider_); return result == null ? com.google.cloud.clouddms.v1.DatabaseProvider.UNRECOGNIZED : result; } /** - * - * *
      * The database provider.
      * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 1; - * * @param value The provider to set. * @return This builder for chaining. */ @@ -595,24 +527,21 @@ public Builder setProvider(com.google.cloud.clouddms.v1.DatabaseProvider value) if (value == null) { throw new NullPointerException(); } - + provider_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The database provider.
      * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 1; - * * @return This builder for chaining. */ public Builder clearProvider() { - + provider_ = 0; onChanged(); return this; @@ -620,65 +549,51 @@ public Builder clearProvider() { private int engine_ = 0; /** - * - * *
      * The database engine.
      * 
* * .google.cloud.clouddms.v1.DatabaseEngine engine = 2; - * * @return The enum numeric value on the wire for engine. */ - @java.lang.Override - public int getEngineValue() { + @java.lang.Override public int getEngineValue() { return engine_; } /** - * - * *
      * The database engine.
      * 
* * .google.cloud.clouddms.v1.DatabaseEngine engine = 2; - * * @param value The enum numeric value on the wire for engine to set. * @return This builder for chaining. */ public Builder setEngineValue(int value) { - + engine_ = value; onChanged(); return this; } /** - * - * *
      * The database engine.
      * 
* * .google.cloud.clouddms.v1.DatabaseEngine engine = 2; - * * @return The engine. */ @java.lang.Override public com.google.cloud.clouddms.v1.DatabaseEngine getEngine() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.DatabaseEngine result = - com.google.cloud.clouddms.v1.DatabaseEngine.valueOf(engine_); + com.google.cloud.clouddms.v1.DatabaseEngine result = com.google.cloud.clouddms.v1.DatabaseEngine.valueOf(engine_); return result == null ? com.google.cloud.clouddms.v1.DatabaseEngine.UNRECOGNIZED : result; } /** - * - * *
      * The database engine.
      * 
* * .google.cloud.clouddms.v1.DatabaseEngine engine = 2; - * * @param value The engine to set. * @return This builder for chaining. */ @@ -686,31 +601,28 @@ public Builder setEngine(com.google.cloud.clouddms.v1.DatabaseEngine value) { if (value == null) { throw new NullPointerException(); } - + engine_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The database engine.
      * 
* * .google.cloud.clouddms.v1.DatabaseEngine engine = 2; - * * @return This builder for chaining. */ public Builder clearEngine() { - + engine_ = 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); } @@ -720,12 +632,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.DatabaseType) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.DatabaseType) private static final com.google.cloud.clouddms.v1.DatabaseType DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.DatabaseType(); } @@ -734,16 +646,16 @@ public static com.google.cloud.clouddms.v1.DatabaseType getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DatabaseType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DatabaseType(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatabaseType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DatabaseType(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -758,4 +670,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.DatabaseType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseTypeOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseTypeOrBuilder.java similarity index 63% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseTypeOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseTypeOrBuilder.java index be1b81a3..87d362d9 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseTypeOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseTypeOrBuilder.java @@ -1,74 +1,46 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; -public interface DatabaseTypeOrBuilder - extends +public interface DatabaseTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.DatabaseType) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The database provider.
    * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 1; - * * @return The enum numeric value on the wire for provider. */ int getProviderValue(); /** - * - * *
    * The database provider.
    * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 1; - * * @return The provider. */ com.google.cloud.clouddms.v1.DatabaseProvider getProvider(); /** - * - * *
    * The database engine.
    * 
* * .google.cloud.clouddms.v1.DatabaseEngine engine = 2; - * * @return The enum numeric value on the wire for engine. */ int getEngineValue(); /** - * - * *
    * The database engine.
    * 
* * .google.cloud.clouddms.v1.DatabaseEngine engine = 2; - * * @return The engine. */ com.google.cloud.clouddms.v1.DatabaseEngine getEngine(); diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequest.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequest.java similarity index 69% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequest.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequest.java index 7982f6a9..41deda40 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequest.java @@ -1,43 +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/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * Request message for 'DeleteConnectionProfile' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.DeleteConnectionProfileRequest} */ -public final class DeleteConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteConnectionProfileRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.DeleteConnectionProfileRequest) DeleteConnectionProfileRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteConnectionProfileRequest.newBuilder() to construct. - private DeleteConnectionProfileRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteConnectionProfileRequest() { name_ = ""; requestId_ = ""; @@ -45,15 +26,16 @@ private DeleteConnectionProfileRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteConnectionProfileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,72 +54,63 @@ private DeleteConnectionProfileRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - case 24: - { - force_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + requestId_ = s; + break; + } + case 24: { + + force_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.class, - com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.Builder.class); + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.class, com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the connection profile resource to delete.
    * 
* - * - * string name = 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 @@ -146,31 +119,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; } } /** - * - * *
    * Required. Name of the connection profile resource to delete.
    * 
* - * - * string name = 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 { @@ -181,8 +152,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** - * - * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -192,7 +161,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2; - * * @return The requestId. */ @java.lang.Override @@ -201,15 +169,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -219,15 +186,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -238,15 +206,12 @@ public com.google.protobuf.ByteString getRequestIdBytes() { public static final int FORCE_FIELD_NUMBER = 3; private boolean force_; /** - * - * *
    * In case of force delete, the CloudSQL replica database is also deleted
    * (only for CloudSQL connection profile).
    * 
* * bool force = 3; - * * @return The force. */ @java.lang.Override @@ -255,7 +220,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +231,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -293,7 +258,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, force_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -303,17 +269,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.clouddms.v1.DeleteConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest other = - (com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest) obj; + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest other = (com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; - if (getForce() != other.getForce()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (getForce() + != other.getForce()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -330,134 +298,125 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest 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.clouddms.v1.DeleteConnectionProfileRequest 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.clouddms.v1.DeleteConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest 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.clouddms.v1.DeleteConnectionProfileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest 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.clouddms.v1.DeleteConnectionProfileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest 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.clouddms.v1.DeleteConnectionProfileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest 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.clouddms.v1.DeleteConnectionProfileRequest 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.clouddms.v1.DeleteConnectionProfileRequest 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.clouddms.v1.DeleteConnectionProfileRequest prototype) { + public static Builder newBuilder(com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest 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 message for 'DeleteConnectionProfile' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.DeleteConnectionProfileRequest} */ - 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.clouddms.v1.DeleteConnectionProfileRequest) com.google.cloud.clouddms.v1.DeleteConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.class, - com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.Builder.class); + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.class, com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.newBuilder() @@ -465,15 +424,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -487,9 +447,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor; } @java.lang.Override @@ -508,8 +468,7 @@ public com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest buildPartial() { - com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest result = - new com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest(this); + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest result = new com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest(this); result.name_ = name_; result.requestId_ = requestId_; result.force_ = force_; @@ -521,39 +480,38 @@ public com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest 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.clouddms.v1.DeleteConnectionProfileRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest) other); + return mergeFrom((com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest)other); } else { super.mergeFrom(other); return this; @@ -561,8 +519,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest other) { - if (other == com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -593,8 +550,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -606,22 +562,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the connection profile resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -630,23 +582,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the connection profile resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -654,67 +603,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the connection profile resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the connection profile resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the connection profile resource to delete.
      * 
* - * - * 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; @@ -722,8 +658,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -733,13 +667,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -748,8 +682,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -759,14 +691,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -774,8 +707,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -785,22 +716,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -810,18 +739,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -831,32 +757,29 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * In case of force delete, the CloudSQL replica database is also deleted
      * (only for CloudSQL connection profile).
      * 
* * bool force = 3; - * * @return The force. */ @java.lang.Override @@ -864,45 +787,39 @@ public boolean getForce() { return force_; } /** - * - * *
      * In case of force delete, the CloudSQL replica database is also deleted
      * (only for CloudSQL connection profile).
      * 
* * bool force = 3; - * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; onChanged(); return this; } /** - * - * *
      * In case of force delete, the CloudSQL replica database is also deleted
      * (only for CloudSQL connection profile).
      * 
* * bool force = 3; - * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = 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); } @@ -912,12 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.DeleteConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.DeleteConnectionProfileRequest) private static final com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest(); } @@ -926,16 +843,16 @@ public static com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteConnectionProfileRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteConnectionProfileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -950,4 +867,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequestOrBuilder.java index 730faf52..7d2bd9e1 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequestOrBuilder.java @@ -1,60 +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/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface DeleteConnectionProfileRequestOrBuilder - extends +public interface DeleteConnectionProfileRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.DeleteConnectionProfileRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the connection profile resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Name of the connection profile resource to delete.
    * 
* - * - * string name = 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(); /** - * - * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -64,13 +37,10 @@ public interface DeleteConnectionProfileRequestOrBuilder
    * 
* * string request_id = 2; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -80,21 +50,18 @@ public interface DeleteConnectionProfileRequestOrBuilder
    * 
* * string request_id = 2; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); /** - * - * *
    * In case of force delete, the CloudSQL replica database is also deleted
    * (only for CloudSQL connection profile).
    * 
* * bool force = 3; - * * @return The force. */ boolean getForce(); diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequest.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequest.java similarity index 69% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequest.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequest.java index db26e30c..bcf2a329 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequest.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/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * Request message for 'DeleteMigrationJob' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.DeleteMigrationJobRequest} */ -public final class DeleteMigrationJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteMigrationJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.DeleteMigrationJobRequest) DeleteMigrationJobRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteMigrationJobRequest.newBuilder() to construct. private DeleteMigrationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteMigrationJobRequest() { name_ = ""; requestId_ = ""; @@ -44,15 +26,16 @@ private DeleteMigrationJobRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteMigrationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteMigrationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,72 +54,63 @@ private DeleteMigrationJobRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - case 24: - { - force_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + requestId_ = s; + break; + } + case 24: { + + force_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.class, - com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.class, com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the migration job resource to delete.
    * 
* - * - * string name = 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 @@ -145,31 +119,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; } } /** - * - * *
    * Required. Name of the migration job resource to delete.
    * 
* - * - * string name = 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 { @@ -180,8 +152,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** - * - * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -191,7 +161,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2; - * * @return The requestId. */ @java.lang.Override @@ -200,15 +169,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -218,15 +186,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -237,8 +206,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { public static final int FORCE_FIELD_NUMBER = 3; private boolean force_; /** - * - * *
    * The destination CloudSQL connection profile is always deleted with the
    * migration job. In case of force delete, the destination CloudSQL replica
@@ -246,7 +213,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
    * 
* * bool force = 3; - * * @return The force. */ @java.lang.Override @@ -255,7 +221,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,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 (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -293,7 +259,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, force_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -303,17 +270,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.clouddms.v1.DeleteMigrationJobRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.DeleteMigrationJobRequest other = - (com.google.cloud.clouddms.v1.DeleteMigrationJobRequest) obj; + com.google.cloud.clouddms.v1.DeleteMigrationJobRequest other = (com.google.cloud.clouddms.v1.DeleteMigrationJobRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; - if (getForce() != other.getForce()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (getForce() + != other.getForce()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -330,134 +299,125 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.clouddms.v1.DeleteMigrationJobRequest 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.clouddms.v1.DeleteMigrationJobRequest 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.clouddms.v1.DeleteMigrationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.DeleteMigrationJobRequest 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.clouddms.v1.DeleteMigrationJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.DeleteMigrationJobRequest 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.clouddms.v1.DeleteMigrationJobRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.DeleteMigrationJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.DeleteMigrationJobRequest 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.clouddms.v1.DeleteMigrationJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.DeleteMigrationJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.DeleteMigrationJobRequest 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.clouddms.v1.DeleteMigrationJobRequest 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.clouddms.v1.DeleteMigrationJobRequest 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.clouddms.v1.DeleteMigrationJobRequest prototype) { + public static Builder newBuilder(com.google.cloud.clouddms.v1.DeleteMigrationJobRequest 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 message for 'DeleteMigrationJob' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.DeleteMigrationJobRequest} */ - 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.clouddms.v1.DeleteMigrationJobRequest) com.google.cloud.clouddms.v1.DeleteMigrationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.class, - com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.class, com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.newBuilder() @@ -465,15 +425,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -487,9 +448,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_descriptor; } @java.lang.Override @@ -508,8 +469,7 @@ public com.google.cloud.clouddms.v1.DeleteMigrationJobRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.DeleteMigrationJobRequest buildPartial() { - com.google.cloud.clouddms.v1.DeleteMigrationJobRequest result = - new com.google.cloud.clouddms.v1.DeleteMigrationJobRequest(this); + com.google.cloud.clouddms.v1.DeleteMigrationJobRequest result = new com.google.cloud.clouddms.v1.DeleteMigrationJobRequest(this); result.name_ = name_; result.requestId_ = requestId_; result.force_ = force_; @@ -521,39 +481,38 @@ public com.google.cloud.clouddms.v1.DeleteMigrationJobRequest 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.clouddms.v1.DeleteMigrationJobRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.DeleteMigrationJobRequest) other); + return mergeFrom((com.google.cloud.clouddms.v1.DeleteMigrationJobRequest)other); } else { super.mergeFrom(other); return this; @@ -561,8 +520,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.DeleteMigrationJobRequest other) { - if (other == com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -593,8 +551,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.clouddms.v1.DeleteMigrationJobRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.clouddms.v1.DeleteMigrationJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -606,22 +563,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the migration job resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -630,23 +583,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the migration job resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -654,67 +604,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the migration job resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the migration job resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the migration job resource to delete.
      * 
* - * - * 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; @@ -722,8 +659,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -733,13 +668,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -748,8 +683,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -759,14 +692,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -774,8 +708,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -785,22 +717,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -810,18 +740,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -831,25 +758,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * The destination CloudSQL connection profile is always deleted with the
      * migration job. In case of force delete, the destination CloudSQL replica
@@ -857,7 +782,6 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) {
      * 
* * bool force = 3; - * * @return The force. */ @java.lang.Override @@ -865,8 +789,6 @@ public boolean getForce() { return force_; } /** - * - * *
      * The destination CloudSQL connection profile is always deleted with the
      * migration job. In case of force delete, the destination CloudSQL replica
@@ -874,19 +796,16 @@ public boolean getForce() {
      * 
* * bool force = 3; - * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; onChanged(); return this; } /** - * - * *
      * The destination CloudSQL connection profile is always deleted with the
      * migration job. In case of force delete, the destination CloudSQL replica
@@ -894,18 +813,17 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 3; - * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = 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); } @@ -915,12 +833,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.DeleteMigrationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.DeleteMigrationJobRequest) private static final com.google.cloud.clouddms.v1.DeleteMigrationJobRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.DeleteMigrationJobRequest(); } @@ -929,16 +847,16 @@ public static com.google.cloud.clouddms.v1.DeleteMigrationJobRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteMigrationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteMigrationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMigrationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteMigrationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -953,4 +871,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.clouddms.v1.DeleteMigrationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequestOrBuilder.java index 97d25bc4..8c70fc34 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequestOrBuilder.java @@ -1,60 +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/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface DeleteMigrationJobRequestOrBuilder - extends +public interface DeleteMigrationJobRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.DeleteMigrationJobRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the migration job resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Name of the migration job resource to delete.
    * 
* - * - * string name = 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(); /** - * - * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -64,13 +37,10 @@ public interface DeleteMigrationJobRequestOrBuilder
    * 
* * string request_id = 2; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -80,14 +50,12 @@ public interface DeleteMigrationJobRequestOrBuilder
    * 
* * string request_id = 2; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); /** - * - * *
    * The destination CloudSQL connection profile is always deleted with the
    * migration job. In case of force delete, the destination CloudSQL replica
@@ -95,7 +63,6 @@ public interface DeleteMigrationJobRequestOrBuilder
    * 
* * bool force = 3; - * * @return The force. */ boolean getForce(); diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequest.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequest.java similarity index 72% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequest.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequest.java index c9705631..89ce43d3 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequest.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/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * Request message for 'GenerateSshScript' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.GenerateSshScriptRequest} */ -public final class GenerateSshScriptRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GenerateSshScriptRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.GenerateSshScriptRequest) GenerateSshScriptRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GenerateSshScriptRequest.newBuilder() to construct. private GenerateSshScriptRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerateSshScriptRequest() { migrationJob_ = ""; vm_ = ""; @@ -44,15 +26,16 @@ private GenerateSshScriptRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GenerateSshScriptRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GenerateSshScriptRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,105 +54,92 @@ private GenerateSshScriptRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - migrationJob_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + migrationJob_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + vm_ = s; + break; + } + case 24: { - vm_ = s; - break; + vmPort_ = input.readInt32(); + break; + } + case 802: { + com.google.cloud.clouddms.v1.VmCreationConfig.Builder subBuilder = null; + if (vmConfigCase_ == 100) { + subBuilder = ((com.google.cloud.clouddms.v1.VmCreationConfig) vmConfig_).toBuilder(); } - case 24: - { - vmPort_ = input.readInt32(); - break; + vmConfig_ = + input.readMessage(com.google.cloud.clouddms.v1.VmCreationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.clouddms.v1.VmCreationConfig) vmConfig_); + vmConfig_ = subBuilder.buildPartial(); } - case 802: - { - com.google.cloud.clouddms.v1.VmCreationConfig.Builder subBuilder = null; - if (vmConfigCase_ == 100) { - subBuilder = - ((com.google.cloud.clouddms.v1.VmCreationConfig) vmConfig_).toBuilder(); - } - vmConfig_ = - input.readMessage( - com.google.cloud.clouddms.v1.VmCreationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.clouddms.v1.VmCreationConfig) vmConfig_); - vmConfig_ = subBuilder.buildPartial(); - } - vmConfigCase_ = 100; - break; + vmConfigCase_ = 100; + break; + } + case 810: { + com.google.cloud.clouddms.v1.VmSelectionConfig.Builder subBuilder = null; + if (vmConfigCase_ == 101) { + subBuilder = ((com.google.cloud.clouddms.v1.VmSelectionConfig) vmConfig_).toBuilder(); } - case 810: - { - com.google.cloud.clouddms.v1.VmSelectionConfig.Builder subBuilder = null; - if (vmConfigCase_ == 101) { - subBuilder = - ((com.google.cloud.clouddms.v1.VmSelectionConfig) vmConfig_).toBuilder(); - } - vmConfig_ = - input.readMessage( - com.google.cloud.clouddms.v1.VmSelectionConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.clouddms.v1.VmSelectionConfig) vmConfig_); - vmConfig_ = subBuilder.buildPartial(); - } - vmConfigCase_ = 101; - break; + vmConfig_ = + input.readMessage(com.google.cloud.clouddms.v1.VmSelectionConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.clouddms.v1.VmSelectionConfig) vmConfig_); + vmConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + vmConfigCase_ = 101; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.GenerateSshScriptRequest.class, - com.google.cloud.clouddms.v1.GenerateSshScriptRequest.Builder.class); + com.google.cloud.clouddms.v1.GenerateSshScriptRequest.class, com.google.cloud.clouddms.v1.GenerateSshScriptRequest.Builder.class); } private int vmConfigCase_ = 0; private java.lang.Object vmConfig_; - public enum VmConfigCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VM_CREATION_CONFIG(100), VM_SELECTION_CONFIG(101), VMCONFIG_NOT_SET(0); private final int value; - private VmConfigCase(int value) { this.value = value; } @@ -185,37 +155,31 @@ public static VmConfigCase valueOf(int value) { public static VmConfigCase forNumber(int value) { switch (value) { - case 100: - return VM_CREATION_CONFIG; - case 101: - return VM_SELECTION_CONFIG; - case 0: - return VMCONFIG_NOT_SET; - default: - return null; + case 100: return VM_CREATION_CONFIG; + case 101: return VM_SELECTION_CONFIG; + case 0: return VMCONFIG_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public VmConfigCase getVmConfigCase() { - return VmConfigCase.forNumber(vmConfigCase_); + public VmConfigCase + getVmConfigCase() { + return VmConfigCase.forNumber( + vmConfigCase_); } public static final int MIGRATION_JOB_FIELD_NUMBER = 1; private volatile java.lang.Object migrationJob_; /** - * - * *
    * Name of the migration job resource to generate the SSH script.
    * 
* * string migration_job = 1 [(.google.api.resource_reference) = { ... } - * * @return The migrationJob. */ @java.lang.Override @@ -224,29 +188,29 @@ public java.lang.String getMigrationJob() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); migrationJob_ = s; return s; } } /** - * - * *
    * Name of the migration job resource to generate the SSH script.
    * 
* * string migration_job = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for migrationJob. */ @java.lang.Override - public com.google.protobuf.ByteString getMigrationJobBytes() { + public com.google.protobuf.ByteString + getMigrationJobBytes() { java.lang.Object ref = migrationJob_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); migrationJob_ = b; return b; } else { @@ -257,14 +221,11 @@ public com.google.protobuf.ByteString getMigrationJobBytes() { public static final int VM_FIELD_NUMBER = 2; private volatile java.lang.Object vm_; /** - * - * *
    * Required. Bastion VM Instance name to use or to create.
    * 
* * string vm = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The vm. */ @java.lang.Override @@ -273,29 +234,29 @@ public java.lang.String getVm() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vm_ = s; return s; } } /** - * - * *
    * Required. Bastion VM Instance name to use or to create.
    * 
* * string vm = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for vm. */ @java.lang.Override - public com.google.protobuf.ByteString getVmBytes() { + public com.google.protobuf.ByteString + getVmBytes() { java.lang.Object ref = vm_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vm_ = b; return b; } else { @@ -305,14 +266,11 @@ public com.google.protobuf.ByteString getVmBytes() { public static final int VM_CREATION_CONFIG_FIELD_NUMBER = 100; /** - * - * *
    * The VM creation configuration
    * 
* * .google.cloud.clouddms.v1.VmCreationConfig vm_creation_config = 100; - * * @return Whether the vmCreationConfig field is set. */ @java.lang.Override @@ -320,26 +278,21 @@ public boolean hasVmCreationConfig() { return vmConfigCase_ == 100; } /** - * - * *
    * The VM creation configuration
    * 
* * .google.cloud.clouddms.v1.VmCreationConfig vm_creation_config = 100; - * * @return The vmCreationConfig. */ @java.lang.Override public com.google.cloud.clouddms.v1.VmCreationConfig getVmCreationConfig() { if (vmConfigCase_ == 100) { - return (com.google.cloud.clouddms.v1.VmCreationConfig) vmConfig_; + return (com.google.cloud.clouddms.v1.VmCreationConfig) vmConfig_; } return com.google.cloud.clouddms.v1.VmCreationConfig.getDefaultInstance(); } /** - * - * *
    * The VM creation configuration
    * 
@@ -349,21 +302,18 @@ public com.google.cloud.clouddms.v1.VmCreationConfig getVmCreationConfig() { @java.lang.Override public com.google.cloud.clouddms.v1.VmCreationConfigOrBuilder getVmCreationConfigOrBuilder() { if (vmConfigCase_ == 100) { - return (com.google.cloud.clouddms.v1.VmCreationConfig) vmConfig_; + return (com.google.cloud.clouddms.v1.VmCreationConfig) vmConfig_; } return com.google.cloud.clouddms.v1.VmCreationConfig.getDefaultInstance(); } public static final int VM_SELECTION_CONFIG_FIELD_NUMBER = 101; /** - * - * *
    * The VM selection configuration
    * 
* * .google.cloud.clouddms.v1.VmSelectionConfig vm_selection_config = 101; - * * @return Whether the vmSelectionConfig field is set. */ @java.lang.Override @@ -371,26 +321,21 @@ public boolean hasVmSelectionConfig() { return vmConfigCase_ == 101; } /** - * - * *
    * The VM selection configuration
    * 
* * .google.cloud.clouddms.v1.VmSelectionConfig vm_selection_config = 101; - * * @return The vmSelectionConfig. */ @java.lang.Override public com.google.cloud.clouddms.v1.VmSelectionConfig getVmSelectionConfig() { if (vmConfigCase_ == 101) { - return (com.google.cloud.clouddms.v1.VmSelectionConfig) vmConfig_; + return (com.google.cloud.clouddms.v1.VmSelectionConfig) vmConfig_; } return com.google.cloud.clouddms.v1.VmSelectionConfig.getDefaultInstance(); } /** - * - * *
    * The VM selection configuration
    * 
@@ -400,7 +345,7 @@ public com.google.cloud.clouddms.v1.VmSelectionConfig getVmSelectionConfig() { @java.lang.Override public com.google.cloud.clouddms.v1.VmSelectionConfigOrBuilder getVmSelectionConfigOrBuilder() { if (vmConfigCase_ == 101) { - return (com.google.cloud.clouddms.v1.VmSelectionConfig) vmConfig_; + return (com.google.cloud.clouddms.v1.VmSelectionConfig) vmConfig_; } return com.google.cloud.clouddms.v1.VmSelectionConfig.getDefaultInstance(); } @@ -408,14 +353,11 @@ public com.google.cloud.clouddms.v1.VmSelectionConfigOrBuilder getVmSelectionCon public static final int VM_PORT_FIELD_NUMBER = 3; private int vmPort_; /** - * - * *
    * The port that will be open on the bastion host
    * 
* * int32 vm_port = 3; - * * @return The vmPort. */ @java.lang.Override @@ -424,7 +366,6 @@ public int getVmPort() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -436,7 +377,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 (!getMigrationJobBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, migrationJob_); } @@ -468,17 +410,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vm_); } if (vmPort_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, vmPort_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, vmPort_); } if (vmConfigCase_ == 100) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 100, (com.google.cloud.clouddms.v1.VmCreationConfig) vmConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, (com.google.cloud.clouddms.v1.VmCreationConfig) vmConfig_); } if (vmConfigCase_ == 101) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 101, (com.google.cloud.clouddms.v1.VmSelectionConfig) vmConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(101, (com.google.cloud.clouddms.v1.VmSelectionConfig) vmConfig_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -488,24 +429,28 @@ 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.clouddms.v1.GenerateSshScriptRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.GenerateSshScriptRequest other = - (com.google.cloud.clouddms.v1.GenerateSshScriptRequest) obj; + com.google.cloud.clouddms.v1.GenerateSshScriptRequest other = (com.google.cloud.clouddms.v1.GenerateSshScriptRequest) obj; - if (!getMigrationJob().equals(other.getMigrationJob())) return false; - if (!getVm().equals(other.getVm())) return false; - if (getVmPort() != other.getVmPort()) return false; + if (!getMigrationJob() + .equals(other.getMigrationJob())) return false; + if (!getVm() + .equals(other.getVm())) return false; + if (getVmPort() + != other.getVmPort()) return false; if (!getVmConfigCase().equals(other.getVmConfigCase())) return false; switch (vmConfigCase_) { case 100: - if (!getVmCreationConfig().equals(other.getVmCreationConfig())) return false; + if (!getVmCreationConfig() + .equals(other.getVmCreationConfig())) return false; break; case 101: - if (!getVmSelectionConfig().equals(other.getVmSelectionConfig())) return false; + if (!getVmSelectionConfig() + .equals(other.getVmSelectionConfig())) return false; break; case 0: default: @@ -545,127 +490,117 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.GenerateSshScriptRequest 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.clouddms.v1.GenerateSshScriptRequest 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.clouddms.v1.GenerateSshScriptRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.GenerateSshScriptRequest 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.clouddms.v1.GenerateSshScriptRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.GenerateSshScriptRequest 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.clouddms.v1.GenerateSshScriptRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.GenerateSshScriptRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.GenerateSshScriptRequest 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.clouddms.v1.GenerateSshScriptRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.GenerateSshScriptRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.GenerateSshScriptRequest 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.clouddms.v1.GenerateSshScriptRequest 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.clouddms.v1.GenerateSshScriptRequest 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.clouddms.v1.GenerateSshScriptRequest prototype) { + public static Builder newBuilder(com.google.cloud.clouddms.v1.GenerateSshScriptRequest 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 message for 'GenerateSshScript' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.GenerateSshScriptRequest} */ - 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.clouddms.v1.GenerateSshScriptRequest) com.google.cloud.clouddms.v1.GenerateSshScriptRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.GenerateSshScriptRequest.class, - com.google.cloud.clouddms.v1.GenerateSshScriptRequest.Builder.class); + com.google.cloud.clouddms.v1.GenerateSshScriptRequest.class, com.google.cloud.clouddms.v1.GenerateSshScriptRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.GenerateSshScriptRequest.newBuilder() @@ -673,15 +608,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -697,9 +633,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_descriptor; } @java.lang.Override @@ -718,8 +654,7 @@ public com.google.cloud.clouddms.v1.GenerateSshScriptRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.GenerateSshScriptRequest buildPartial() { - com.google.cloud.clouddms.v1.GenerateSshScriptRequest result = - new com.google.cloud.clouddms.v1.GenerateSshScriptRequest(this); + com.google.cloud.clouddms.v1.GenerateSshScriptRequest result = new com.google.cloud.clouddms.v1.GenerateSshScriptRequest(this); result.migrationJob_ = migrationJob_; result.vm_ = vm_; if (vmConfigCase_ == 100) { @@ -746,39 +681,38 @@ public com.google.cloud.clouddms.v1.GenerateSshScriptRequest 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.clouddms.v1.GenerateSshScriptRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.GenerateSshScriptRequest) other); + return mergeFrom((com.google.cloud.clouddms.v1.GenerateSshScriptRequest)other); } else { super.mergeFrom(other); return this; @@ -786,8 +720,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.GenerateSshScriptRequest other) { - if (other == com.google.cloud.clouddms.v1.GenerateSshScriptRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.clouddms.v1.GenerateSshScriptRequest.getDefaultInstance()) return this; if (!other.getMigrationJob().isEmpty()) { migrationJob_ = other.migrationJob_; onChanged(); @@ -800,20 +733,17 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.GenerateSshScriptRequest o setVmPort(other.getVmPort()); } switch (other.getVmConfigCase()) { - case VM_CREATION_CONFIG: - { - mergeVmCreationConfig(other.getVmCreationConfig()); - break; - } - case VM_SELECTION_CONFIG: - { - mergeVmSelectionConfig(other.getVmSelectionConfig()); - break; - } - case VMCONFIG_NOT_SET: - { - break; - } + case VM_CREATION_CONFIG: { + mergeVmCreationConfig(other.getVmCreationConfig()); + break; + } + case VM_SELECTION_CONFIG: { + mergeVmSelectionConfig(other.getVmSelectionConfig()); + break; + } + case VMCONFIG_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -834,8 +764,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.clouddms.v1.GenerateSshScriptRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.clouddms.v1.GenerateSshScriptRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -844,12 +773,12 @@ public Builder mergeFrom( } return this; } - private int vmConfigCase_ = 0; private java.lang.Object vmConfig_; - - public VmConfigCase getVmConfigCase() { - return VmConfigCase.forNumber(vmConfigCase_); + public VmConfigCase + getVmConfigCase() { + return VmConfigCase.forNumber( + vmConfigCase_); } public Builder clearVmConfig() { @@ -859,22 +788,21 @@ public Builder clearVmConfig() { return this; } + private java.lang.Object migrationJob_ = ""; /** - * - * *
      * Name of the migration job resource to generate the SSH script.
      * 
* * string migration_job = 1 [(.google.api.resource_reference) = { ... } - * * @return The migrationJob. */ public java.lang.String getMigrationJob() { java.lang.Object ref = migrationJob_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); migrationJob_ = s; return s; @@ -883,21 +811,20 @@ public java.lang.String getMigrationJob() { } } /** - * - * *
      * Name of the migration job resource to generate the SSH script.
      * 
* * string migration_job = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for migrationJob. */ - public com.google.protobuf.ByteString getMigrationJobBytes() { + public com.google.protobuf.ByteString + getMigrationJobBytes() { java.lang.Object ref = migrationJob_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); migrationJob_ = b; return b; } else { @@ -905,61 +832,54 @@ public com.google.protobuf.ByteString getMigrationJobBytes() { } } /** - * - * *
      * Name of the migration job resource to generate the SSH script.
      * 
* * string migration_job = 1 [(.google.api.resource_reference) = { ... } - * * @param value The migrationJob to set. * @return This builder for chaining. */ - public Builder setMigrationJob(java.lang.String value) { + public Builder setMigrationJob( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + migrationJob_ = value; onChanged(); return this; } /** - * - * *
      * Name of the migration job resource to generate the SSH script.
      * 
* * string migration_job = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearMigrationJob() { - + migrationJob_ = getDefaultInstance().getMigrationJob(); onChanged(); return this; } /** - * - * *
      * Name of the migration job resource to generate the SSH script.
      * 
* * string migration_job = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for migrationJob to set. * @return This builder for chaining. */ - public Builder setMigrationJobBytes(com.google.protobuf.ByteString value) { + public Builder setMigrationJobBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + migrationJob_ = value; onChanged(); return this; @@ -967,20 +887,18 @@ public Builder setMigrationJobBytes(com.google.protobuf.ByteString value) { private java.lang.Object vm_ = ""; /** - * - * *
      * Required. Bastion VM Instance name to use or to create.
      * 
* * string vm = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The vm. */ public java.lang.String getVm() { java.lang.Object ref = vm_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vm_ = s; return s; @@ -989,21 +907,20 @@ public java.lang.String getVm() { } } /** - * - * *
      * Required. Bastion VM Instance name to use or to create.
      * 
* * string vm = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for vm. */ - public com.google.protobuf.ByteString getVmBytes() { + public com.google.protobuf.ByteString + getVmBytes() { java.lang.Object ref = vm_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vm_ = b; return b; } else { @@ -1011,80 +928,67 @@ public com.google.protobuf.ByteString getVmBytes() { } } /** - * - * *
      * Required. Bastion VM Instance name to use or to create.
      * 
* * string vm = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The vm to set. * @return This builder for chaining. */ - public Builder setVm(java.lang.String value) { + public Builder setVm( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vm_ = value; onChanged(); return this; } /** - * - * *
      * Required. Bastion VM Instance name to use or to create.
      * 
* * string vm = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearVm() { - + vm_ = getDefaultInstance().getVm(); onChanged(); return this; } /** - * - * *
      * Required. Bastion VM Instance name to use or to create.
      * 
* * string vm = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for vm to set. * @return This builder for chaining. */ - public Builder setVmBytes(com.google.protobuf.ByteString value) { + public Builder setVmBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vm_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.VmCreationConfig, - com.google.cloud.clouddms.v1.VmCreationConfig.Builder, - com.google.cloud.clouddms.v1.VmCreationConfigOrBuilder> - vmCreationConfigBuilder_; + com.google.cloud.clouddms.v1.VmCreationConfig, com.google.cloud.clouddms.v1.VmCreationConfig.Builder, com.google.cloud.clouddms.v1.VmCreationConfigOrBuilder> vmCreationConfigBuilder_; /** - * - * *
      * The VM creation configuration
      * 
* * .google.cloud.clouddms.v1.VmCreationConfig vm_creation_config = 100; - * * @return Whether the vmCreationConfig field is set. */ @java.lang.Override @@ -1092,14 +996,11 @@ public boolean hasVmCreationConfig() { return vmConfigCase_ == 100; } /** - * - * *
      * The VM creation configuration
      * 
* * .google.cloud.clouddms.v1.VmCreationConfig vm_creation_config = 100; - * * @return The vmCreationConfig. */ @java.lang.Override @@ -1117,8 +1018,6 @@ public com.google.cloud.clouddms.v1.VmCreationConfig getVmCreationConfig() { } } /** - * - * *
      * The VM creation configuration
      * 
@@ -1139,8 +1038,6 @@ public Builder setVmCreationConfig(com.google.cloud.clouddms.v1.VmCreationConfig return this; } /** - * - * *
      * The VM creation configuration
      * 
@@ -1159,8 +1056,6 @@ public Builder setVmCreationConfig( return this; } /** - * - * *
      * The VM creation configuration
      * 
@@ -1169,13 +1064,10 @@ public Builder setVmCreationConfig( */ public Builder mergeVmCreationConfig(com.google.cloud.clouddms.v1.VmCreationConfig value) { if (vmCreationConfigBuilder_ == null) { - if (vmConfigCase_ == 100 - && vmConfig_ != com.google.cloud.clouddms.v1.VmCreationConfig.getDefaultInstance()) { - vmConfig_ = - com.google.cloud.clouddms.v1.VmCreationConfig.newBuilder( - (com.google.cloud.clouddms.v1.VmCreationConfig) vmConfig_) - .mergeFrom(value) - .buildPartial(); + if (vmConfigCase_ == 100 && + vmConfig_ != com.google.cloud.clouddms.v1.VmCreationConfig.getDefaultInstance()) { + vmConfig_ = com.google.cloud.clouddms.v1.VmCreationConfig.newBuilder((com.google.cloud.clouddms.v1.VmCreationConfig) vmConfig_) + .mergeFrom(value).buildPartial(); } else { vmConfig_ = value; } @@ -1190,8 +1082,6 @@ public Builder mergeVmCreationConfig(com.google.cloud.clouddms.v1.VmCreationConf return this; } /** - * - * *
      * The VM creation configuration
      * 
@@ -1215,8 +1105,6 @@ public Builder clearVmCreationConfig() { return this; } /** - * - * *
      * The VM creation configuration
      * 
@@ -1227,8 +1115,6 @@ public com.google.cloud.clouddms.v1.VmCreationConfig.Builder getVmCreationConfig return getVmCreationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The VM creation configuration
      * 
@@ -1247,8 +1133,6 @@ public com.google.cloud.clouddms.v1.VmCreationConfigOrBuilder getVmCreationConfi } } /** - * - * *
      * The VM creation configuration
      * 
@@ -1256,44 +1140,32 @@ public com.google.cloud.clouddms.v1.VmCreationConfigOrBuilder getVmCreationConfi * .google.cloud.clouddms.v1.VmCreationConfig vm_creation_config = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.VmCreationConfig, - com.google.cloud.clouddms.v1.VmCreationConfig.Builder, - com.google.cloud.clouddms.v1.VmCreationConfigOrBuilder> + com.google.cloud.clouddms.v1.VmCreationConfig, com.google.cloud.clouddms.v1.VmCreationConfig.Builder, com.google.cloud.clouddms.v1.VmCreationConfigOrBuilder> getVmCreationConfigFieldBuilder() { if (vmCreationConfigBuilder_ == null) { if (!(vmConfigCase_ == 100)) { vmConfig_ = com.google.cloud.clouddms.v1.VmCreationConfig.getDefaultInstance(); } - vmCreationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.VmCreationConfig, - com.google.cloud.clouddms.v1.VmCreationConfig.Builder, - com.google.cloud.clouddms.v1.VmCreationConfigOrBuilder>( + vmCreationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.VmCreationConfig, com.google.cloud.clouddms.v1.VmCreationConfig.Builder, com.google.cloud.clouddms.v1.VmCreationConfigOrBuilder>( (com.google.cloud.clouddms.v1.VmCreationConfig) vmConfig_, getParentForChildren(), isClean()); vmConfig_ = null; } vmConfigCase_ = 100; - onChanged(); - ; + onChanged();; return vmCreationConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.VmSelectionConfig, - com.google.cloud.clouddms.v1.VmSelectionConfig.Builder, - com.google.cloud.clouddms.v1.VmSelectionConfigOrBuilder> - vmSelectionConfigBuilder_; + com.google.cloud.clouddms.v1.VmSelectionConfig, com.google.cloud.clouddms.v1.VmSelectionConfig.Builder, com.google.cloud.clouddms.v1.VmSelectionConfigOrBuilder> vmSelectionConfigBuilder_; /** - * - * *
      * The VM selection configuration
      * 
* * .google.cloud.clouddms.v1.VmSelectionConfig vm_selection_config = 101; - * * @return Whether the vmSelectionConfig field is set. */ @java.lang.Override @@ -1301,14 +1173,11 @@ public boolean hasVmSelectionConfig() { return vmConfigCase_ == 101; } /** - * - * *
      * The VM selection configuration
      * 
* * .google.cloud.clouddms.v1.VmSelectionConfig vm_selection_config = 101; - * * @return The vmSelectionConfig. */ @java.lang.Override @@ -1326,8 +1195,6 @@ public com.google.cloud.clouddms.v1.VmSelectionConfig getVmSelectionConfig() { } } /** - * - * *
      * The VM selection configuration
      * 
@@ -1348,8 +1215,6 @@ public Builder setVmSelectionConfig(com.google.cloud.clouddms.v1.VmSelectionConf return this; } /** - * - * *
      * The VM selection configuration
      * 
@@ -1368,8 +1233,6 @@ public Builder setVmSelectionConfig( return this; } /** - * - * *
      * The VM selection configuration
      * 
@@ -1378,13 +1241,10 @@ public Builder setVmSelectionConfig( */ public Builder mergeVmSelectionConfig(com.google.cloud.clouddms.v1.VmSelectionConfig value) { if (vmSelectionConfigBuilder_ == null) { - if (vmConfigCase_ == 101 - && vmConfig_ != com.google.cloud.clouddms.v1.VmSelectionConfig.getDefaultInstance()) { - vmConfig_ = - com.google.cloud.clouddms.v1.VmSelectionConfig.newBuilder( - (com.google.cloud.clouddms.v1.VmSelectionConfig) vmConfig_) - .mergeFrom(value) - .buildPartial(); + if (vmConfigCase_ == 101 && + vmConfig_ != com.google.cloud.clouddms.v1.VmSelectionConfig.getDefaultInstance()) { + vmConfig_ = com.google.cloud.clouddms.v1.VmSelectionConfig.newBuilder((com.google.cloud.clouddms.v1.VmSelectionConfig) vmConfig_) + .mergeFrom(value).buildPartial(); } else { vmConfig_ = value; } @@ -1399,8 +1259,6 @@ public Builder mergeVmSelectionConfig(com.google.cloud.clouddms.v1.VmSelectionCo return this; } /** - * - * *
      * The VM selection configuration
      * 
@@ -1424,8 +1282,6 @@ public Builder clearVmSelectionConfig() { return this; } /** - * - * *
      * The VM selection configuration
      * 
@@ -1436,8 +1292,6 @@ public com.google.cloud.clouddms.v1.VmSelectionConfig.Builder getVmSelectionConf return getVmSelectionConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The VM selection configuration
      * 
@@ -1456,8 +1310,6 @@ public com.google.cloud.clouddms.v1.VmSelectionConfigOrBuilder getVmSelectionCon } } /** - * - * *
      * The VM selection configuration
      * 
@@ -1465,40 +1317,31 @@ public com.google.cloud.clouddms.v1.VmSelectionConfigOrBuilder getVmSelectionCon * .google.cloud.clouddms.v1.VmSelectionConfig vm_selection_config = 101; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.VmSelectionConfig, - com.google.cloud.clouddms.v1.VmSelectionConfig.Builder, - com.google.cloud.clouddms.v1.VmSelectionConfigOrBuilder> + com.google.cloud.clouddms.v1.VmSelectionConfig, com.google.cloud.clouddms.v1.VmSelectionConfig.Builder, com.google.cloud.clouddms.v1.VmSelectionConfigOrBuilder> getVmSelectionConfigFieldBuilder() { if (vmSelectionConfigBuilder_ == null) { if (!(vmConfigCase_ == 101)) { vmConfig_ = com.google.cloud.clouddms.v1.VmSelectionConfig.getDefaultInstance(); } - vmSelectionConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.VmSelectionConfig, - com.google.cloud.clouddms.v1.VmSelectionConfig.Builder, - com.google.cloud.clouddms.v1.VmSelectionConfigOrBuilder>( + vmSelectionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.VmSelectionConfig, com.google.cloud.clouddms.v1.VmSelectionConfig.Builder, com.google.cloud.clouddms.v1.VmSelectionConfigOrBuilder>( (com.google.cloud.clouddms.v1.VmSelectionConfig) vmConfig_, getParentForChildren(), isClean()); vmConfig_ = null; } vmConfigCase_ = 101; - onChanged(); - ; + onChanged();; return vmSelectionConfigBuilder_; } - private int vmPort_; + private int vmPort_ ; /** - * - * *
      * The port that will be open on the bastion host
      * 
* * int32 vm_port = 3; - * * @return The vmPort. */ @java.lang.Override @@ -1506,43 +1349,37 @@ public int getVmPort() { return vmPort_; } /** - * - * *
      * The port that will be open on the bastion host
      * 
* * int32 vm_port = 3; - * * @param value The vmPort to set. * @return This builder for chaining. */ public Builder setVmPort(int value) { - + vmPort_ = value; onChanged(); return this; } /** - * - * *
      * The port that will be open on the bastion host
      * 
* * int32 vm_port = 3; - * * @return This builder for chaining. */ public Builder clearVmPort() { - + vmPort_ = 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); } @@ -1552,12 +1389,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.GenerateSshScriptRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.GenerateSshScriptRequest) private static final com.google.cloud.clouddms.v1.GenerateSshScriptRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.GenerateSshScriptRequest(); } @@ -1566,16 +1403,16 @@ public static com.google.cloud.clouddms.v1.GenerateSshScriptRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateSshScriptRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateSshScriptRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateSshScriptRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateSshScriptRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1590,4 +1427,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.GenerateSshScriptRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequestOrBuilder.java similarity index 76% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequestOrBuilder.java index c1a829a3..d9575fdb 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequestOrBuilder.java @@ -1,105 +1,71 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface GenerateSshScriptRequestOrBuilder - extends +public interface GenerateSshScriptRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.GenerateSshScriptRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Name of the migration job resource to generate the SSH script.
    * 
* * string migration_job = 1 [(.google.api.resource_reference) = { ... } - * * @return The migrationJob. */ java.lang.String getMigrationJob(); /** - * - * *
    * Name of the migration job resource to generate the SSH script.
    * 
* * string migration_job = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for migrationJob. */ - com.google.protobuf.ByteString getMigrationJobBytes(); + com.google.protobuf.ByteString + getMigrationJobBytes(); /** - * - * *
    * Required. Bastion VM Instance name to use or to create.
    * 
* * string vm = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The vm. */ java.lang.String getVm(); /** - * - * *
    * Required. Bastion VM Instance name to use or to create.
    * 
* * string vm = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for vm. */ - com.google.protobuf.ByteString getVmBytes(); + com.google.protobuf.ByteString + getVmBytes(); /** - * - * *
    * The VM creation configuration
    * 
* * .google.cloud.clouddms.v1.VmCreationConfig vm_creation_config = 100; - * * @return Whether the vmCreationConfig field is set. */ boolean hasVmCreationConfig(); /** - * - * *
    * The VM creation configuration
    * 
* * .google.cloud.clouddms.v1.VmCreationConfig vm_creation_config = 100; - * * @return The vmCreationConfig. */ com.google.cloud.clouddms.v1.VmCreationConfig getVmCreationConfig(); /** - * - * *
    * The VM creation configuration
    * 
@@ -109,32 +75,24 @@ public interface GenerateSshScriptRequestOrBuilder com.google.cloud.clouddms.v1.VmCreationConfigOrBuilder getVmCreationConfigOrBuilder(); /** - * - * *
    * The VM selection configuration
    * 
* * .google.cloud.clouddms.v1.VmSelectionConfig vm_selection_config = 101; - * * @return Whether the vmSelectionConfig field is set. */ boolean hasVmSelectionConfig(); /** - * - * *
    * The VM selection configuration
    * 
* * .google.cloud.clouddms.v1.VmSelectionConfig vm_selection_config = 101; - * * @return The vmSelectionConfig. */ com.google.cloud.clouddms.v1.VmSelectionConfig getVmSelectionConfig(); /** - * - * *
    * The VM selection configuration
    * 
@@ -144,14 +102,11 @@ public interface GenerateSshScriptRequestOrBuilder com.google.cloud.clouddms.v1.VmSelectionConfigOrBuilder getVmSelectionConfigOrBuilder(); /** - * - * *
    * The port that will be open on the bastion host
    * 
* * int32 vm_port = 3; - * * @return The vmPort. */ int getVmPort(); diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequest.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequest.java similarity index 64% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequest.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequest.java index 571e547f..c0b85dec 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * Request message for 'GetConnectionProfile' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.GetConnectionProfileRequest} */ -public final class GetConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetConnectionProfileRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.GetConnectionProfileRequest) GetConnectionProfileRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetConnectionProfileRequest.newBuilder() to construct. private GetConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetConnectionProfileRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetConnectionProfileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,52 @@ private GetConnectionProfileRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.GetConnectionProfileRequest.class, - com.google.cloud.clouddms.v1.GetConnectionProfileRequest.Builder.class); + com.google.cloud.clouddms.v1.GetConnectionProfileRequest.class, com.google.cloud.clouddms.v1.GetConnectionProfileRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the connection profile resource to get.
    * 
* - * - * string name = 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 @@ -132,31 +107,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; } } /** - * - * *
    * Required. Name of the connection profile resource to get.
    * 
* - * - * string name = 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 { @@ -165,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.clouddms.v1.GetConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.GetConnectionProfileRequest other = - (com.google.cloud.clouddms.v1.GetConnectionProfileRequest) obj; + com.google.cloud.clouddms.v1.GetConnectionProfileRequest other = (com.google.cloud.clouddms.v1.GetConnectionProfileRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,127 +202,117 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.GetConnectionProfileRequest 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.clouddms.v1.GetConnectionProfileRequest 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.clouddms.v1.GetConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.GetConnectionProfileRequest 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.clouddms.v1.GetConnectionProfileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.GetConnectionProfileRequest 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.clouddms.v1.GetConnectionProfileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.GetConnectionProfileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.GetConnectionProfileRequest 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.clouddms.v1.GetConnectionProfileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.GetConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.GetConnectionProfileRequest 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.clouddms.v1.GetConnectionProfileRequest 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.clouddms.v1.GetConnectionProfileRequest 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.clouddms.v1.GetConnectionProfileRequest prototype) { + public static Builder newBuilder(com.google.cloud.clouddms.v1.GetConnectionProfileRequest 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 message for 'GetConnectionProfile' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.GetConnectionProfileRequest} */ - 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.clouddms.v1.GetConnectionProfileRequest) com.google.cloud.clouddms.v1.GetConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.GetConnectionProfileRequest.class, - com.google.cloud.clouddms.v1.GetConnectionProfileRequest.Builder.class); + com.google.cloud.clouddms.v1.GetConnectionProfileRequest.class, com.google.cloud.clouddms.v1.GetConnectionProfileRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.GetConnectionProfileRequest.newBuilder() @@ -357,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_descriptor; } @java.lang.Override @@ -396,8 +360,7 @@ public com.google.cloud.clouddms.v1.GetConnectionProfileRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.GetConnectionProfileRequest buildPartial() { - com.google.cloud.clouddms.v1.GetConnectionProfileRequest result = - new com.google.cloud.clouddms.v1.GetConnectionProfileRequest(this); + com.google.cloud.clouddms.v1.GetConnectionProfileRequest result = new com.google.cloud.clouddms.v1.GetConnectionProfileRequest(this); result.name_ = name_; onBuilt(); return result; @@ -407,39 +370,38 @@ public com.google.cloud.clouddms.v1.GetConnectionProfileRequest 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.clouddms.v1.GetConnectionProfileRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.GetConnectionProfileRequest) other); + return mergeFrom((com.google.cloud.clouddms.v1.GetConnectionProfileRequest)other); } else { super.mergeFrom(other); return this; @@ -447,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.GetConnectionProfileRequest other) { - if (other == com.google.cloud.clouddms.v1.GetConnectionProfileRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.clouddms.v1.GetConnectionProfileRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -472,8 +433,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.clouddms.v1.GetConnectionProfileRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.clouddms.v1.GetConnectionProfileRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -485,22 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the connection profile resource to get.
      * 
* - * - * string name = 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; @@ -509,23 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the connection profile resource to get.
      * 
* - * - * string name = 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 { @@ -533,74 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the connection profile resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the connection profile resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the connection profile resource to get.
      * 
* - * - * 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); } @@ -610,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.GetConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.GetConnectionProfileRequest) private static final com.google.cloud.clouddms.v1.GetConnectionProfileRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.GetConnectionProfileRequest(); } @@ -624,16 +564,16 @@ public static com.google.cloud.clouddms.v1.GetConnectionProfileRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetConnectionProfileRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetConnectionProfileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -648,4 +588,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.clouddms.v1.GetConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequestOrBuilder.java new file mode 100644 index 00000000..1c03f762 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface GetConnectionProfileRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.GetConnectionProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the connection profile resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the connection profile resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequest.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequest.java similarity index 64% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequest.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequest.java index 31092fb4..2f6c3af8 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * Request message for 'GetMigrationJob' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.GetMigrationJobRequest} */ -public final class GetMigrationJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetMigrationJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.GetMigrationJobRequest) GetMigrationJobRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetMigrationJobRequest.newBuilder() to construct. private GetMigrationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetMigrationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetMigrationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetMigrationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,52 @@ private GetMigrationJobRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.GetMigrationJobRequest.class, - com.google.cloud.clouddms.v1.GetMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.GetMigrationJobRequest.class, com.google.cloud.clouddms.v1.GetMigrationJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the migration job resource to get.
    * 
* - * - * string name = 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 @@ -132,31 +107,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; } } /** - * - * *
    * Required. Name of the migration job resource to get.
    * 
* - * - * string name = 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 { @@ -165,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.clouddms.v1.GetMigrationJobRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.GetMigrationJobRequest other = - (com.google.cloud.clouddms.v1.GetMigrationJobRequest) obj; + com.google.cloud.clouddms.v1.GetMigrationJobRequest other = (com.google.cloud.clouddms.v1.GetMigrationJobRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,126 +202,117 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.GetMigrationJobRequest 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.clouddms.v1.GetMigrationJobRequest 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.clouddms.v1.GetMigrationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.GetMigrationJobRequest 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.clouddms.v1.GetMigrationJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.GetMigrationJobRequest 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.clouddms.v1.GetMigrationJobRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.GetMigrationJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.GetMigrationJobRequest 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.clouddms.v1.GetMigrationJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.GetMigrationJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.GetMigrationJobRequest 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.clouddms.v1.GetMigrationJobRequest 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.clouddms.v1.GetMigrationJobRequest 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.clouddms.v1.GetMigrationJobRequest 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 message for 'GetMigrationJob' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.GetMigrationJobRequest} */ - 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.clouddms.v1.GetMigrationJobRequest) com.google.cloud.clouddms.v1.GetMigrationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.GetMigrationJobRequest.class, - com.google.cloud.clouddms.v1.GetMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.GetMigrationJobRequest.class, com.google.cloud.clouddms.v1.GetMigrationJobRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.GetMigrationJobRequest.newBuilder() @@ -356,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_descriptor; } @java.lang.Override @@ -395,8 +360,7 @@ public com.google.cloud.clouddms.v1.GetMigrationJobRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.GetMigrationJobRequest buildPartial() { - com.google.cloud.clouddms.v1.GetMigrationJobRequest result = - new com.google.cloud.clouddms.v1.GetMigrationJobRequest(this); + com.google.cloud.clouddms.v1.GetMigrationJobRequest result = new com.google.cloud.clouddms.v1.GetMigrationJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -406,39 +370,38 @@ public com.google.cloud.clouddms.v1.GetMigrationJobRequest 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.clouddms.v1.GetMigrationJobRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.GetMigrationJobRequest) other); + return mergeFrom((com.google.cloud.clouddms.v1.GetMigrationJobRequest)other); } else { super.mergeFrom(other); return this; @@ -446,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.GetMigrationJobRequest other) { - if (other == com.google.cloud.clouddms.v1.GetMigrationJobRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.clouddms.v1.GetMigrationJobRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -471,8 +433,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.clouddms.v1.GetMigrationJobRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.clouddms.v1.GetMigrationJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -484,22 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the migration job resource to get.
      * 
* - * - * string name = 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; @@ -508,23 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the migration job resource to get.
      * 
* - * - * string name = 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 { @@ -532,74 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the migration job resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the migration job resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the migration job resource to get.
      * 
* - * - * 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); } @@ -609,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.GetMigrationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.GetMigrationJobRequest) private static final com.google.cloud.clouddms.v1.GetMigrationJobRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.GetMigrationJobRequest(); } @@ -623,16 +564,16 @@ public static com.google.cloud.clouddms.v1.GetMigrationJobRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetMigrationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetMigrationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMigrationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetMigrationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.GetMigrationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequestOrBuilder.java new file mode 100644 index 00000000..eb07ac0e --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface GetMigrationJobRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.GetMigrationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the migration job resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the migration job resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequest.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequest.java similarity index 73% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequest.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequest.java index 9409900e..19d38351 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequest.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/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * Request message for 'ListConnectionProfiles' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.ListConnectionProfilesRequest} */ -public final class ListConnectionProfilesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListConnectionProfilesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ListConnectionProfilesRequest) ListConnectionProfilesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListConnectionProfilesRequest.newBuilder() to construct. private ListConnectionProfilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListConnectionProfilesRequest() { parent_ = ""; pageToken_ = ""; @@ -46,15 +28,16 @@ private ListConnectionProfilesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListConnectionProfilesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListConnectionProfilesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,86 +56,75 @@ private ListConnectionProfilesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.class, - com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.Builder.class); + com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.class, com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent, which owns this collection of connection profiles.
    * 
* - * - * string 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 @@ -161,31 +133,29 @@ 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 parent, which owns this collection of connection profiles.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -196,8 +166,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of connection profiles to return. The service may return
    * fewer than this value. If unspecified, at most 50 connection profiles will
@@ -206,7 +174,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -217,8 +184,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A page token, received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -227,7 +192,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -236,15 +200,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; } } /** - * - * *
    * A page token, received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -253,15 +216,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 { @@ -272,8 +236,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * A filter expression that filters connection profiles listed in the
    * response. The expression must specify the field name, a comparison
@@ -287,7 +249,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -296,15 +257,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * A filter expression that filters connection profiles listed in the
    * response. The expression must specify the field name, a comparison
@@ -318,15 +278,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -337,14 +298,11 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
    * the order by fields for the result.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -353,29 +311,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * the order by fields for the result.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -384,7 +342,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -396,7 +353,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -425,7 +383,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!getPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -444,19 +403,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.clouddms.v1.ListConnectionProfilesRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.ListConnectionProfilesRequest other = - (com.google.cloud.clouddms.v1.ListConnectionProfilesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.clouddms.v1.ListConnectionProfilesRequest other = (com.google.cloud.clouddms.v1.ListConnectionProfilesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -484,127 +447,117 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.ListConnectionProfilesRequest 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.clouddms.v1.ListConnectionProfilesRequest 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.clouddms.v1.ListConnectionProfilesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.ListConnectionProfilesRequest 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.clouddms.v1.ListConnectionProfilesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.ListConnectionProfilesRequest 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.clouddms.v1.ListConnectionProfilesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.ListConnectionProfilesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.ListConnectionProfilesRequest 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.clouddms.v1.ListConnectionProfilesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.ListConnectionProfilesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.ListConnectionProfilesRequest 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.clouddms.v1.ListConnectionProfilesRequest 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.clouddms.v1.ListConnectionProfilesRequest 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.clouddms.v1.ListConnectionProfilesRequest prototype) { + public static Builder newBuilder(com.google.cloud.clouddms.v1.ListConnectionProfilesRequest 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 message for 'ListConnectionProfiles' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.ListConnectionProfilesRequest} */ - 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.clouddms.v1.ListConnectionProfilesRequest) com.google.cloud.clouddms.v1.ListConnectionProfilesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.class, - com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.Builder.class); + com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.class, com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.newBuilder() @@ -612,15 +565,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -638,9 +592,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor; } @java.lang.Override @@ -659,8 +613,7 @@ public com.google.cloud.clouddms.v1.ListConnectionProfilesRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.ListConnectionProfilesRequest buildPartial() { - com.google.cloud.clouddms.v1.ListConnectionProfilesRequest result = - new com.google.cloud.clouddms.v1.ListConnectionProfilesRequest(this); + com.google.cloud.clouddms.v1.ListConnectionProfilesRequest result = new com.google.cloud.clouddms.v1.ListConnectionProfilesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -674,39 +627,38 @@ public com.google.cloud.clouddms.v1.ListConnectionProfilesRequest 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.clouddms.v1.ListConnectionProfilesRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.ListConnectionProfilesRequest) other); + return mergeFrom((com.google.cloud.clouddms.v1.ListConnectionProfilesRequest)other); } else { super.mergeFrom(other); return this; @@ -714,8 +666,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.ListConnectionProfilesRequest other) { - if (other == com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -754,8 +705,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.clouddms.v1.ListConnectionProfilesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.clouddms.v1.ListConnectionProfilesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -767,22 +717,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent, which owns this collection of connection profiles.
      * 
* - * - * string 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; @@ -791,23 +737,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent, which owns this collection of connection profiles.
      * 
* - * - * string 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 { @@ -815,76 +758,61 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent, which owns this collection of connection profiles.
      * 
* - * - * 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 parent, which owns this collection of connection profiles.
      * 
* - * - * string 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 parent, which owns this collection of connection profiles.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of connection profiles to return. The service may return
      * fewer than this value. If unspecified, at most 50 connection profiles will
@@ -893,7 +821,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -901,8 +828,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of connection profiles to return. The service may return
      * fewer than this value. If unspecified, at most 50 connection profiles will
@@ -911,19 +836,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of connection profiles to return. The service may return
      * fewer than this value. If unspecified, at most 50 connection profiles will
@@ -932,11 +854,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -944,8 +865,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -954,13 +873,13 @@ public Builder clearPageSize() {
      * 
* * 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; @@ -969,8 +888,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -979,14 +896,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 { @@ -994,8 +912,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -1004,22 +920,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; } /** - * - * *
      * A page token, received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -1028,18 +942,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; } /** - * - * *
      * A page token, received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -1048,16 +959,16 @@ 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; @@ -1065,8 +976,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * A filter expression that filters connection profiles listed in the
      * response. The expression must specify the field name, a comparison
@@ -1080,13 +989,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1095,8 +1004,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * A filter expression that filters connection profiles listed in the
      * response. The expression must specify the field name, a comparison
@@ -1110,14 +1017,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1125,8 +1033,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * A filter expression that filters connection profiles listed in the
      * response. The expression must specify the field name, a comparison
@@ -1140,22 +1046,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * A filter expression that filters connection profiles listed in the
      * response. The expression must specify the field name, a comparison
@@ -1169,18 +1073,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * A filter expression that filters connection profiles listed in the
      * response. The expression must specify the field name, a comparison
@@ -1194,16 +1095,16 @@ public Builder clearFilter() {
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1211,20 +1112,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * the order by fields for the result.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1233,21 +1132,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * the order by fields for the result.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1255,68 +1153,61 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * the order by fields for the result.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * the order by fields for the result.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * the order by fields for the result.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = 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); } @@ -1326,12 +1217,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.ListConnectionProfilesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ListConnectionProfilesRequest) private static final com.google.cloud.clouddms.v1.ListConnectionProfilesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ListConnectionProfilesRequest(); } @@ -1340,16 +1231,16 @@ public static com.google.cloud.clouddms.v1.ListConnectionProfilesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectionProfilesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListConnectionProfilesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectionProfilesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListConnectionProfilesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1364,4 +1255,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.clouddms.v1.ListConnectionProfilesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequestOrBuilder.java similarity index 74% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequestOrBuilder.java index 92ea3aef..1508da1a 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequestOrBuilder.java @@ -1,60 +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/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface ListConnectionProfilesRequestOrBuilder - extends +public interface ListConnectionProfilesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ListConnectionProfilesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent, which owns this collection of connection profiles.
    * 
* - * - * string 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 parent, which owns this collection of connection profiles.
    * 
* - * - * string 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(); /** - * - * *
    * The maximum number of connection profiles to return. The service may return
    * fewer than this value. If unspecified, at most 50 connection profiles will
@@ -63,14 +36,11 @@ public interface ListConnectionProfilesRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -79,13 +49,10 @@ public interface ListConnectionProfilesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -94,14 +61,12 @@ public interface ListConnectionProfilesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * A filter expression that filters connection profiles listed in the
    * response. The expression must specify the field name, a comparison
@@ -115,13 +80,10 @@ public interface ListConnectionProfilesRequestOrBuilder
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * A filter expression that filters connection profiles listed in the
    * response. The expression must specify the field name, a comparison
@@ -135,33 +97,28 @@ public interface ListConnectionProfilesRequestOrBuilder
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * the order by fields for the result.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * the order by fields for the result.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponse.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponse.java similarity index 74% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponse.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponse.java index c0acb73c..e55c5c30 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponse.java @@ -1,43 +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/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * Response message for 'ListConnectionProfiles' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.ListConnectionProfilesResponse} */ -public final class ListConnectionProfilesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListConnectionProfilesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ListConnectionProfilesResponse) ListConnectionProfilesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListConnectionProfilesResponse.newBuilder() to construct. - private ListConnectionProfilesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListConnectionProfilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListConnectionProfilesResponse() { connectionProfiles_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -46,15 +27,16 @@ private ListConnectionProfilesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListConnectionProfilesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListConnectionProfilesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,48 +56,44 @@ private ListConnectionProfilesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - connectionProfiles_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - connectionProfiles_.add( - input.readMessage( - com.google.cloud.clouddms.v1.ConnectionProfile.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + connectionProfiles_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + connectionProfiles_.add( + input.readMessage(com.google.cloud.clouddms.v1.ConnectionProfile.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { connectionProfiles_ = java.util.Collections.unmodifiableList(connectionProfiles_); @@ -127,27 +105,22 @@ private ListConnectionProfilesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.class, - com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.Builder.class); + com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.class, com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.Builder.class); } public static final int CONNECTION_PROFILES_FIELD_NUMBER = 1; private java.util.List connectionProfiles_; /** - * - * *
    * The response list of connection profiles.
    * 
@@ -155,13 +128,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.clouddms.v1.ConnectionProfile connection_profiles = 1; */ @java.lang.Override - public java.util.List - getConnectionProfilesList() { + public java.util.List getConnectionProfilesList() { return connectionProfiles_; } /** - * - * *
    * The response list of connection profiles.
    * 
@@ -169,13 +139,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.clouddms.v1.ConnectionProfile connection_profiles = 1; */ @java.lang.Override - public java.util.List + public java.util.List getConnectionProfilesOrBuilderList() { return connectionProfiles_; } /** - * - * *
    * The response list of connection profiles.
    * 
@@ -187,8 +155,6 @@ public int getConnectionProfilesCount() { return connectionProfiles_.size(); } /** - * - * *
    * The response list of connection profiles.
    * 
@@ -200,8 +166,6 @@ public com.google.cloud.clouddms.v1.ConnectionProfile getConnectionProfiles(int return connectionProfiles_.get(index); } /** - * - * *
    * The response list of connection profiles.
    * 
@@ -217,15 +181,12 @@ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProf public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -234,30 +195,30 @@ 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; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @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 { @@ -268,42 +229,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -311,23 +264,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -339,7 +289,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 < connectionProfiles_.size(); i++) { output.writeMessage(1, connectionProfiles_.get(i)); } @@ -359,8 +310,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < connectionProfiles_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, connectionProfiles_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, connectionProfiles_.get(i)); } if (!getNextPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -381,17 +332,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.clouddms.v1.ListConnectionProfilesResponse)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.ListConnectionProfilesResponse other = - (com.google.cloud.clouddms.v1.ListConnectionProfilesResponse) obj; + com.google.cloud.clouddms.v1.ListConnectionProfilesResponse other = (com.google.cloud.clouddms.v1.ListConnectionProfilesResponse) obj; - if (!getConnectionProfilesList().equals(other.getConnectionProfilesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getConnectionProfilesList() + .equals(other.getConnectionProfilesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -419,127 +372,117 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.ListConnectionProfilesResponse 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.clouddms.v1.ListConnectionProfilesResponse 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.clouddms.v1.ListConnectionProfilesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.ListConnectionProfilesResponse 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.clouddms.v1.ListConnectionProfilesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.ListConnectionProfilesResponse 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.clouddms.v1.ListConnectionProfilesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.ListConnectionProfilesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.ListConnectionProfilesResponse 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.clouddms.v1.ListConnectionProfilesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.ListConnectionProfilesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.ListConnectionProfilesResponse 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.clouddms.v1.ListConnectionProfilesResponse 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.clouddms.v1.ListConnectionProfilesResponse 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.clouddms.v1.ListConnectionProfilesResponse prototype) { + public static Builder newBuilder(com.google.cloud.clouddms.v1.ListConnectionProfilesResponse 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; } /** - * - * *
    * Response message for 'ListConnectionProfiles' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.ListConnectionProfilesResponse} */ - 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.clouddms.v1.ListConnectionProfilesResponse) com.google.cloud.clouddms.v1.ListConnectionProfilesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.class, - com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.Builder.class); + com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.class, com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.Builder.class); } // Construct using com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.newBuilder() @@ -547,17 +490,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) { getConnectionProfilesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -575,9 +518,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_descriptor; } @java.lang.Override @@ -596,8 +539,7 @@ public com.google.cloud.clouddms.v1.ListConnectionProfilesResponse build() { @java.lang.Override public com.google.cloud.clouddms.v1.ListConnectionProfilesResponse buildPartial() { - com.google.cloud.clouddms.v1.ListConnectionProfilesResponse result = - new com.google.cloud.clouddms.v1.ListConnectionProfilesResponse(this); + com.google.cloud.clouddms.v1.ListConnectionProfilesResponse result = new com.google.cloud.clouddms.v1.ListConnectionProfilesResponse(this); int from_bitField0_ = bitField0_; if (connectionProfilesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -622,39 +564,38 @@ public com.google.cloud.clouddms.v1.ListConnectionProfilesResponse 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.clouddms.v1.ListConnectionProfilesResponse) { - return mergeFrom((com.google.cloud.clouddms.v1.ListConnectionProfilesResponse) other); + return mergeFrom((com.google.cloud.clouddms.v1.ListConnectionProfilesResponse)other); } else { super.mergeFrom(other); return this; @@ -662,8 +603,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.ListConnectionProfilesResponse other) { - if (other == com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.getDefaultInstance()) return this; if (connectionProfilesBuilder_ == null) { if (!other.connectionProfiles_.isEmpty()) { if (connectionProfiles_.isEmpty()) { @@ -682,10 +622,9 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.ListConnectionProfilesResp connectionProfilesBuilder_ = null; connectionProfiles_ = other.connectionProfiles_; bitField0_ = (bitField0_ & ~0x00000001); - connectionProfilesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getConnectionProfilesFieldBuilder() - : null; + connectionProfilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConnectionProfilesFieldBuilder() : null; } else { connectionProfilesBuilder_.addAllMessages(other.connectionProfiles_); } @@ -724,8 +663,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.clouddms.v1.ListConnectionProfilesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.clouddms.v1.ListConnectionProfilesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -734,38 +672,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List connectionProfiles_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureConnectionProfilesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - connectionProfiles_ = - new java.util.ArrayList( - connectionProfiles_); + connectionProfiles_ = new java.util.ArrayList(connectionProfiles_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.clouddms.v1.ConnectionProfile, - com.google.cloud.clouddms.v1.ConnectionProfile.Builder, - com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder> - connectionProfilesBuilder_; + com.google.cloud.clouddms.v1.ConnectionProfile, com.google.cloud.clouddms.v1.ConnectionProfile.Builder, com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder> connectionProfilesBuilder_; /** - * - * *
      * The response list of connection profiles.
      * 
* * repeated .google.cloud.clouddms.v1.ConnectionProfile connection_profiles = 1; */ - public java.util.List - getConnectionProfilesList() { + public java.util.List getConnectionProfilesList() { if (connectionProfilesBuilder_ == null) { return java.util.Collections.unmodifiableList(connectionProfiles_); } else { @@ -773,8 +701,6 @@ private void ensureConnectionProfilesIsMutable() { } } /** - * - * *
      * The response list of connection profiles.
      * 
@@ -789,8 +715,6 @@ public int getConnectionProfilesCount() { } } /** - * - * *
      * The response list of connection profiles.
      * 
@@ -805,8 +729,6 @@ public com.google.cloud.clouddms.v1.ConnectionProfile getConnectionProfiles(int } } /** - * - * *
      * The response list of connection profiles.
      * 
@@ -828,8 +750,6 @@ public Builder setConnectionProfiles( return this; } /** - * - * *
      * The response list of connection profiles.
      * 
@@ -848,8 +768,6 @@ public Builder setConnectionProfiles( return this; } /** - * - * *
      * The response list of connection profiles.
      * 
@@ -870,8 +788,6 @@ public Builder addConnectionProfiles(com.google.cloud.clouddms.v1.ConnectionProf return this; } /** - * - * *
      * The response list of connection profiles.
      * 
@@ -893,8 +809,6 @@ public Builder addConnectionProfiles( return this; } /** - * - * *
      * The response list of connection profiles.
      * 
@@ -913,8 +827,6 @@ public Builder addConnectionProfiles( return this; } /** - * - * *
      * The response list of connection profiles.
      * 
@@ -933,8 +845,6 @@ public Builder addConnectionProfiles( return this; } /** - * - * *
      * The response list of connection profiles.
      * 
@@ -945,7 +855,8 @@ public Builder addAllConnectionProfiles( java.lang.Iterable values) { if (connectionProfilesBuilder_ == null) { ensureConnectionProfilesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connectionProfiles_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, connectionProfiles_); onChanged(); } else { connectionProfilesBuilder_.addAllMessages(values); @@ -953,8 +864,6 @@ public Builder addAllConnectionProfiles( return this; } /** - * - * *
      * The response list of connection profiles.
      * 
@@ -972,8 +881,6 @@ public Builder clearConnectionProfiles() { return this; } /** - * - * *
      * The response list of connection profiles.
      * 
@@ -991,8 +898,6 @@ public Builder removeConnectionProfiles(int index) { return this; } /** - * - * *
      * The response list of connection profiles.
      * 
@@ -1004,8 +909,6 @@ public com.google.cloud.clouddms.v1.ConnectionProfile.Builder getConnectionProfi return getConnectionProfilesFieldBuilder().getBuilder(index); } /** - * - * *
      * The response list of connection profiles.
      * 
@@ -1015,22 +918,19 @@ public com.google.cloud.clouddms.v1.ConnectionProfile.Builder getConnectionProfi public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProfilesOrBuilder( int index) { if (connectionProfilesBuilder_ == null) { - return connectionProfiles_.get(index); - } else { + return connectionProfiles_.get(index); } else { return connectionProfilesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The response list of connection profiles.
      * 
* * repeated .google.cloud.clouddms.v1.ConnectionProfile connection_profiles = 1; */ - public java.util.List - getConnectionProfilesOrBuilderList() { + public java.util.List + getConnectionProfilesOrBuilderList() { if (connectionProfilesBuilder_ != null) { return connectionProfilesBuilder_.getMessageOrBuilderList(); } else { @@ -1038,8 +938,6 @@ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProf } } /** - * - * *
      * The response list of connection profiles.
      * 
@@ -1047,12 +945,10 @@ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProf * repeated .google.cloud.clouddms.v1.ConnectionProfile connection_profiles = 1; */ public com.google.cloud.clouddms.v1.ConnectionProfile.Builder addConnectionProfilesBuilder() { - return getConnectionProfilesFieldBuilder() - .addBuilder(com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance()); + return getConnectionProfilesFieldBuilder().addBuilder( + com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance()); } /** - * - * *
      * The response list of connection profiles.
      * 
@@ -1061,34 +957,26 @@ public com.google.cloud.clouddms.v1.ConnectionProfile.Builder addConnectionProfi */ public com.google.cloud.clouddms.v1.ConnectionProfile.Builder addConnectionProfilesBuilder( int index) { - return getConnectionProfilesFieldBuilder() - .addBuilder(index, com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance()); + return getConnectionProfilesFieldBuilder().addBuilder( + index, com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance()); } /** - * - * *
      * The response list of connection profiles.
      * 
* * repeated .google.cloud.clouddms.v1.ConnectionProfile connection_profiles = 1; */ - public java.util.List - getConnectionProfilesBuilderList() { + public java.util.List + getConnectionProfilesBuilderList() { return getConnectionProfilesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.clouddms.v1.ConnectionProfile, - com.google.cloud.clouddms.v1.ConnectionProfile.Builder, - com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder> + com.google.cloud.clouddms.v1.ConnectionProfile, com.google.cloud.clouddms.v1.ConnectionProfile.Builder, com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder> getConnectionProfilesFieldBuilder() { if (connectionProfilesBuilder_ == null) { - connectionProfilesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.clouddms.v1.ConnectionProfile, - com.google.cloud.clouddms.v1.ConnectionProfile.Builder, - com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder>( + connectionProfilesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.ConnectionProfile, com.google.cloud.clouddms.v1.ConnectionProfile.Builder, com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder>( connectionProfiles_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1100,21 +988,19 @@ public com.google.cloud.clouddms.v1.ConnectionProfile.Builder addConnectionProfi private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @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; @@ -1123,22 +1009,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @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 { @@ -1146,115 +1031,98 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @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; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1262,90 +1130,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1355,30 +1213,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.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); } @@ -1388,12 +1244,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.ListConnectionProfilesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ListConnectionProfilesResponse) private static final com.google.cloud.clouddms.v1.ListConnectionProfilesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ListConnectionProfilesResponse(); } @@ -1402,16 +1258,16 @@ public static com.google.cloud.clouddms.v1.ListConnectionProfilesResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectionProfilesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListConnectionProfilesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectionProfilesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListConnectionProfilesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1426,4 +1282,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.clouddms.v1.ListConnectionProfilesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponseOrBuilder.java similarity index 74% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponseOrBuilder.java index 9497172a..cc778ad6 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponseOrBuilder.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/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface ListConnectionProfilesResponseOrBuilder - extends +public interface ListConnectionProfilesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ListConnectionProfilesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The response list of connection profiles.
    * 
* * repeated .google.cloud.clouddms.v1.ConnectionProfile connection_profiles = 1; */ - java.util.List getConnectionProfilesList(); + java.util.List + getConnectionProfilesList(); /** - * - * *
    * The response list of connection profiles.
    * 
@@ -44,8 +25,6 @@ public interface ListConnectionProfilesResponseOrBuilder */ com.google.cloud.clouddms.v1.ConnectionProfile getConnectionProfiles(int index); /** - * - * *
    * The response list of connection profiles.
    * 
@@ -54,102 +33,84 @@ public interface ListConnectionProfilesResponseOrBuilder */ int getConnectionProfilesCount(); /** - * - * *
    * The response list of connection profiles.
    * 
* * repeated .google.cloud.clouddms.v1.ConnectionProfile connection_profiles = 1; */ - java.util.List + java.util.List getConnectionProfilesOrBuilderList(); /** - * - * *
    * The response list of connection profiles.
    * 
* * repeated .google.cloud.clouddms.v1.ConnectionProfile connection_profiles = 1; */ - com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProfilesOrBuilder(int index); + com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProfilesOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequest.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequest.java similarity index 74% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequest.java index a9b51092..e6143b73 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequest.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/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * Retrieve a list of all migration jobs in a given project and location.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.ListMigrationJobsRequest} */ -public final class ListMigrationJobsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListMigrationJobsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ListMigrationJobsRequest) ListMigrationJobsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListMigrationJobsRequest.newBuilder() to construct. private ListMigrationJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListMigrationJobsRequest() { parent_ = ""; pageToken_ = ""; @@ -46,15 +28,16 @@ private ListMigrationJobsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListMigrationJobsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListMigrationJobsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,86 +56,75 @@ private ListMigrationJobsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.ListMigrationJobsRequest.class, - com.google.cloud.clouddms.v1.ListMigrationJobsRequest.Builder.class); + com.google.cloud.clouddms.v1.ListMigrationJobsRequest.class, com.google.cloud.clouddms.v1.ListMigrationJobsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent, which owns this collection of migrationJobs.
    * 
* - * - * string 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 @@ -161,31 +133,29 @@ 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 parent, which owns this collection of migrationJobs.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -196,8 +166,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of migration jobs to return. The service may return
    * fewer than this value. If unspecified, at most 50 migration jobs will be
@@ -206,7 +174,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -217,8 +184,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The nextPageToken value received in the previous call to
    * migrationJobs.list, used in the subsequent request to retrieve the next
@@ -228,7 +193,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -237,15 +201,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; } } /** - * - * *
    * The nextPageToken value received in the previous call to
    * migrationJobs.list, used in the subsequent request to retrieve the next
@@ -255,15 +218,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 { @@ -274,8 +238,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * A filter expression that filters migration jobs listed in the response.
    * The expression must specify the field name, a comparison operator, and the
@@ -289,7 +251,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -298,15 +259,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * A filter expression that filters migration jobs listed in the response.
    * The expression must specify the field name, a comparison operator, and the
@@ -320,15 +280,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -339,15 +300,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
    * Sort the results based on the migration job name.
    * Valid values are: "name", "name asc", and "name desc".
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -356,30 +314,30 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Sort the results based on the migration job name.
    * Valid values are: "name", "name asc", and "name desc".
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -388,7 +346,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -400,7 +357,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -429,7 +387,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!getPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -448,19 +407,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.clouddms.v1.ListMigrationJobsRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.ListMigrationJobsRequest other = - (com.google.cloud.clouddms.v1.ListMigrationJobsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.clouddms.v1.ListMigrationJobsRequest other = (com.google.cloud.clouddms.v1.ListMigrationJobsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -488,127 +451,117 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.ListMigrationJobsRequest 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.clouddms.v1.ListMigrationJobsRequest 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.clouddms.v1.ListMigrationJobsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.ListMigrationJobsRequest 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.clouddms.v1.ListMigrationJobsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.ListMigrationJobsRequest 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.clouddms.v1.ListMigrationJobsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.ListMigrationJobsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.ListMigrationJobsRequest 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.clouddms.v1.ListMigrationJobsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.ListMigrationJobsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.ListMigrationJobsRequest 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.clouddms.v1.ListMigrationJobsRequest 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.clouddms.v1.ListMigrationJobsRequest 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.clouddms.v1.ListMigrationJobsRequest prototype) { + public static Builder newBuilder(com.google.cloud.clouddms.v1.ListMigrationJobsRequest 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; } /** - * - * *
    * Retrieve a list of all migration jobs in a given project and location.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.ListMigrationJobsRequest} */ - 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.clouddms.v1.ListMigrationJobsRequest) com.google.cloud.clouddms.v1.ListMigrationJobsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.ListMigrationJobsRequest.class, - com.google.cloud.clouddms.v1.ListMigrationJobsRequest.Builder.class); + com.google.cloud.clouddms.v1.ListMigrationJobsRequest.class, com.google.cloud.clouddms.v1.ListMigrationJobsRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.ListMigrationJobsRequest.newBuilder() @@ -616,15 +569,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -642,9 +596,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_descriptor; } @java.lang.Override @@ -663,8 +617,7 @@ public com.google.cloud.clouddms.v1.ListMigrationJobsRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.ListMigrationJobsRequest buildPartial() { - com.google.cloud.clouddms.v1.ListMigrationJobsRequest result = - new com.google.cloud.clouddms.v1.ListMigrationJobsRequest(this); + com.google.cloud.clouddms.v1.ListMigrationJobsRequest result = new com.google.cloud.clouddms.v1.ListMigrationJobsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -678,39 +631,38 @@ public com.google.cloud.clouddms.v1.ListMigrationJobsRequest 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.clouddms.v1.ListMigrationJobsRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.ListMigrationJobsRequest) other); + return mergeFrom((com.google.cloud.clouddms.v1.ListMigrationJobsRequest)other); } else { super.mergeFrom(other); return this; @@ -718,8 +670,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.ListMigrationJobsRequest other) { - if (other == com.google.cloud.clouddms.v1.ListMigrationJobsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.clouddms.v1.ListMigrationJobsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -758,8 +709,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.clouddms.v1.ListMigrationJobsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.clouddms.v1.ListMigrationJobsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -771,22 +721,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent, which owns this collection of migrationJobs.
      * 
* - * - * string 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; @@ -795,23 +741,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent, which owns this collection of migrationJobs.
      * 
* - * - * string 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 { @@ -819,76 +762,61 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent, which owns this collection of migrationJobs.
      * 
* - * - * 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 parent, which owns this collection of migrationJobs.
      * 
* - * - * string 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 parent, which owns this collection of migrationJobs.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of migration jobs to return. The service may return
      * fewer than this value. If unspecified, at most 50 migration jobs will be
@@ -897,7 +825,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -905,8 +832,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of migration jobs to return. The service may return
      * fewer than this value. If unspecified, at most 50 migration jobs will be
@@ -915,19 +840,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of migration jobs to return. The service may return
      * fewer than this value. If unspecified, at most 50 migration jobs will be
@@ -936,11 +858,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -948,8 +869,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The nextPageToken value received in the previous call to
      * migrationJobs.list, used in the subsequent request to retrieve the next
@@ -959,13 +878,13 @@ public Builder clearPageSize() {
      * 
* * 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; @@ -974,8 +893,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The nextPageToken value received in the previous call to
      * migrationJobs.list, used in the subsequent request to retrieve the next
@@ -985,14 +902,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 { @@ -1000,8 +918,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The nextPageToken value received in the previous call to
      * migrationJobs.list, used in the subsequent request to retrieve the next
@@ -1011,22 +927,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; } /** - * - * *
      * The nextPageToken value received in the previous call to
      * migrationJobs.list, used in the subsequent request to retrieve the next
@@ -1036,18 +950,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; } /** - * - * *
      * The nextPageToken value received in the previous call to
      * migrationJobs.list, used in the subsequent request to retrieve the next
@@ -1057,16 +968,16 @@ 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; @@ -1074,8 +985,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * A filter expression that filters migration jobs listed in the response.
      * The expression must specify the field name, a comparison operator, and the
@@ -1089,13 +998,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1104,8 +1013,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * A filter expression that filters migration jobs listed in the response.
      * The expression must specify the field name, a comparison operator, and the
@@ -1119,14 +1026,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1134,8 +1042,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * A filter expression that filters migration jobs listed in the response.
      * The expression must specify the field name, a comparison operator, and the
@@ -1149,22 +1055,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * A filter expression that filters migration jobs listed in the response.
      * The expression must specify the field name, a comparison operator, and the
@@ -1178,18 +1082,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * A filter expression that filters migration jobs listed in the response.
      * The expression must specify the field name, a comparison operator, and the
@@ -1203,16 +1104,16 @@ public Builder clearFilter() {
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1220,21 +1121,19 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Sort the results based on the migration job name.
      * Valid values are: "name", "name asc", and "name desc".
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1243,22 +1142,21 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Sort the results based on the migration job name.
      * Valid values are: "name", "name asc", and "name desc".
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1266,71 +1164,64 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Sort the results based on the migration job name.
      * Valid values are: "name", "name asc", and "name desc".
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * Sort the results based on the migration job name.
      * Valid values are: "name", "name asc", and "name desc".
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Sort the results based on the migration job name.
      * Valid values are: "name", "name asc", and "name desc".
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = 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); } @@ -1340,12 +1231,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.ListMigrationJobsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ListMigrationJobsRequest) private static final com.google.cloud.clouddms.v1.ListMigrationJobsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ListMigrationJobsRequest(); } @@ -1354,16 +1245,16 @@ public static com.google.cloud.clouddms.v1.ListMigrationJobsRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMigrationJobsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListMigrationJobsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMigrationJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMigrationJobsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1378,4 +1269,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.ListMigrationJobsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequestOrBuilder.java similarity index 75% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequestOrBuilder.java index 95bc7bfb..0fd2dfe7 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequestOrBuilder.java @@ -1,60 +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/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface ListMigrationJobsRequestOrBuilder - extends +public interface ListMigrationJobsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ListMigrationJobsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent, which owns this collection of migrationJobs.
    * 
* - * - * string 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 parent, which owns this collection of migrationJobs.
    * 
* - * - * string 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(); /** - * - * *
    * The maximum number of migration jobs to return. The service may return
    * fewer than this value. If unspecified, at most 50 migration jobs will be
@@ -63,14 +36,11 @@ public interface ListMigrationJobsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The nextPageToken value received in the previous call to
    * migrationJobs.list, used in the subsequent request to retrieve the next
@@ -80,13 +50,10 @@ public interface ListMigrationJobsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The nextPageToken value received in the previous call to
    * migrationJobs.list, used in the subsequent request to retrieve the next
@@ -96,14 +63,12 @@ public interface ListMigrationJobsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * A filter expression that filters migration jobs listed in the response.
    * The expression must specify the field name, a comparison operator, and the
@@ -117,13 +82,10 @@ public interface ListMigrationJobsRequestOrBuilder
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * A filter expression that filters migration jobs listed in the response.
    * The expression must specify the field name, a comparison operator, and the
@@ -137,35 +99,30 @@ public interface ListMigrationJobsRequestOrBuilder
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Sort the results based on the migration job name.
    * Valid values are: "name", "name asc", and "name desc".
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Sort the results based on the migration job name.
    * Valid values are: "name", "name asc", and "name desc".
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponse.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponse.java similarity index 74% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponse.java index 223e06cb..b2919ab5 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponse.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/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * Response message for 'ListMigrationJobs' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.ListMigrationJobsResponse} */ -public final class ListMigrationJobsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListMigrationJobsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ListMigrationJobsResponse) ListMigrationJobsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListMigrationJobsResponse.newBuilder() to construct. private ListMigrationJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListMigrationJobsResponse() { migrationJobs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListMigrationJobsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListMigrationJobsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListMigrationJobsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,48 +56,44 @@ private ListMigrationJobsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - migrationJobs_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - migrationJobs_.add( - input.readMessage( - com.google.cloud.clouddms.v1.MigrationJob.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + migrationJobs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + migrationJobs_.add( + input.readMessage(com.google.cloud.clouddms.v1.MigrationJob.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { migrationJobs_ = java.util.Collections.unmodifiableList(migrationJobs_); @@ -126,27 +105,22 @@ private ListMigrationJobsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.ListMigrationJobsResponse.class, - com.google.cloud.clouddms.v1.ListMigrationJobsResponse.Builder.class); + com.google.cloud.clouddms.v1.ListMigrationJobsResponse.class, com.google.cloud.clouddms.v1.ListMigrationJobsResponse.Builder.class); } public static final int MIGRATION_JOBS_FIELD_NUMBER = 1; private java.util.List migrationJobs_; /** - * - * *
    * The list of migration jobs objects.
    * 
@@ -158,8 +132,6 @@ public java.util.List getMigrationJob return migrationJobs_; } /** - * - * *
    * The list of migration jobs objects.
    * 
@@ -167,13 +139,11 @@ public java.util.List getMigrationJob * repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getMigrationJobsOrBuilderList() { return migrationJobs_; } /** - * - * *
    * The list of migration jobs objects.
    * 
@@ -185,8 +155,6 @@ public int getMigrationJobsCount() { return migrationJobs_.size(); } /** - * - * *
    * The list of migration jobs objects.
    * 
@@ -198,8 +166,6 @@ public com.google.cloud.clouddms.v1.MigrationJob getMigrationJobs(int index) { return migrationJobs_.get(index); } /** - * - * *
    * The list of migration jobs objects.
    * 
@@ -207,22 +173,20 @@ public com.google.cloud.clouddms.v1.MigrationJob getMigrationJobs(int index) { * repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1; */ @java.lang.Override - public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobsOrBuilder(int index) { + public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobsOrBuilder( + int index) { return migrationJobs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -231,30 +195,30 @@ 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; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @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 { @@ -265,42 +229,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -308,23 +264,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -336,7 +289,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 < migrationJobs_.size(); i++) { output.writeMessage(1, migrationJobs_.get(i)); } @@ -356,7 +310,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < migrationJobs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, migrationJobs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, migrationJobs_.get(i)); } if (!getNextPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -377,17 +332,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.clouddms.v1.ListMigrationJobsResponse)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.ListMigrationJobsResponse other = - (com.google.cloud.clouddms.v1.ListMigrationJobsResponse) obj; + com.google.cloud.clouddms.v1.ListMigrationJobsResponse other = (com.google.cloud.clouddms.v1.ListMigrationJobsResponse) obj; - if (!getMigrationJobsList().equals(other.getMigrationJobsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getMigrationJobsList() + .equals(other.getMigrationJobsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -415,127 +372,117 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.ListMigrationJobsResponse 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.clouddms.v1.ListMigrationJobsResponse 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.clouddms.v1.ListMigrationJobsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.ListMigrationJobsResponse 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.clouddms.v1.ListMigrationJobsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.ListMigrationJobsResponse 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.clouddms.v1.ListMigrationJobsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.ListMigrationJobsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.ListMigrationJobsResponse 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.clouddms.v1.ListMigrationJobsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.ListMigrationJobsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.ListMigrationJobsResponse 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.clouddms.v1.ListMigrationJobsResponse 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.clouddms.v1.ListMigrationJobsResponse 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.clouddms.v1.ListMigrationJobsResponse prototype) { + public static Builder newBuilder(com.google.cloud.clouddms.v1.ListMigrationJobsResponse 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; } /** - * - * *
    * Response message for 'ListMigrationJobs' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.ListMigrationJobsResponse} */ - 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.clouddms.v1.ListMigrationJobsResponse) com.google.cloud.clouddms.v1.ListMigrationJobsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.ListMigrationJobsResponse.class, - com.google.cloud.clouddms.v1.ListMigrationJobsResponse.Builder.class); + com.google.cloud.clouddms.v1.ListMigrationJobsResponse.class, com.google.cloud.clouddms.v1.ListMigrationJobsResponse.Builder.class); } // Construct using com.google.cloud.clouddms.v1.ListMigrationJobsResponse.newBuilder() @@ -543,17 +490,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) { getMigrationJobsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -571,9 +518,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_descriptor; } @java.lang.Override @@ -592,8 +539,7 @@ public com.google.cloud.clouddms.v1.ListMigrationJobsResponse build() { @java.lang.Override public com.google.cloud.clouddms.v1.ListMigrationJobsResponse buildPartial() { - com.google.cloud.clouddms.v1.ListMigrationJobsResponse result = - new com.google.cloud.clouddms.v1.ListMigrationJobsResponse(this); + com.google.cloud.clouddms.v1.ListMigrationJobsResponse result = new com.google.cloud.clouddms.v1.ListMigrationJobsResponse(this); int from_bitField0_ = bitField0_; if (migrationJobsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -618,39 +564,38 @@ public com.google.cloud.clouddms.v1.ListMigrationJobsResponse 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.clouddms.v1.ListMigrationJobsResponse) { - return mergeFrom((com.google.cloud.clouddms.v1.ListMigrationJobsResponse) other); + return mergeFrom((com.google.cloud.clouddms.v1.ListMigrationJobsResponse)other); } else { super.mergeFrom(other); return this; @@ -658,8 +603,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.ListMigrationJobsResponse other) { - if (other == com.google.cloud.clouddms.v1.ListMigrationJobsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.clouddms.v1.ListMigrationJobsResponse.getDefaultInstance()) return this; if (migrationJobsBuilder_ == null) { if (!other.migrationJobs_.isEmpty()) { if (migrationJobs_.isEmpty()) { @@ -678,10 +622,9 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.ListMigrationJobsResponse migrationJobsBuilder_ = null; migrationJobs_ = other.migrationJobs_; bitField0_ = (bitField0_ & ~0x00000001); - migrationJobsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMigrationJobsFieldBuilder() - : null; + migrationJobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMigrationJobsFieldBuilder() : null; } else { migrationJobsBuilder_.addAllMessages(other.migrationJobs_); } @@ -720,8 +663,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.clouddms.v1.ListMigrationJobsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.clouddms.v1.ListMigrationJobsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -730,29 +672,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List migrationJobs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMigrationJobsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - migrationJobs_ = - new java.util.ArrayList(migrationJobs_); + migrationJobs_ = new java.util.ArrayList(migrationJobs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.clouddms.v1.MigrationJob, - com.google.cloud.clouddms.v1.MigrationJob.Builder, - com.google.cloud.clouddms.v1.MigrationJobOrBuilder> - migrationJobsBuilder_; + com.google.cloud.clouddms.v1.MigrationJob, com.google.cloud.clouddms.v1.MigrationJob.Builder, com.google.cloud.clouddms.v1.MigrationJobOrBuilder> migrationJobsBuilder_; /** - * - * *
      * The list of migration jobs objects.
      * 
@@ -767,8 +701,6 @@ public java.util.List getMigrationJob } } /** - * - * *
      * The list of migration jobs objects.
      * 
@@ -783,8 +715,6 @@ public int getMigrationJobsCount() { } } /** - * - * *
      * The list of migration jobs objects.
      * 
@@ -799,15 +729,14 @@ public com.google.cloud.clouddms.v1.MigrationJob getMigrationJobs(int index) { } } /** - * - * *
      * The list of migration jobs objects.
      * 
* * repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1; */ - public Builder setMigrationJobs(int index, com.google.cloud.clouddms.v1.MigrationJob value) { + public Builder setMigrationJobs( + int index, com.google.cloud.clouddms.v1.MigrationJob value) { if (migrationJobsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -821,8 +750,6 @@ public Builder setMigrationJobs(int index, com.google.cloud.clouddms.v1.Migratio return this; } /** - * - * *
      * The list of migration jobs objects.
      * 
@@ -841,8 +768,6 @@ public Builder setMigrationJobs( return this; } /** - * - * *
      * The list of migration jobs objects.
      * 
@@ -863,15 +788,14 @@ public Builder addMigrationJobs(com.google.cloud.clouddms.v1.MigrationJob value) return this; } /** - * - * *
      * The list of migration jobs objects.
      * 
* * repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1; */ - public Builder addMigrationJobs(int index, com.google.cloud.clouddms.v1.MigrationJob value) { + public Builder addMigrationJobs( + int index, com.google.cloud.clouddms.v1.MigrationJob value) { if (migrationJobsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -885,8 +809,6 @@ public Builder addMigrationJobs(int index, com.google.cloud.clouddms.v1.Migratio return this; } /** - * - * *
      * The list of migration jobs objects.
      * 
@@ -905,8 +827,6 @@ public Builder addMigrationJobs( return this; } /** - * - * *
      * The list of migration jobs objects.
      * 
@@ -925,8 +845,6 @@ public Builder addMigrationJobs( return this; } /** - * - * *
      * The list of migration jobs objects.
      * 
@@ -937,7 +855,8 @@ public Builder addAllMigrationJobs( java.lang.Iterable values) { if (migrationJobsBuilder_ == null) { ensureMigrationJobsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, migrationJobs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, migrationJobs_); onChanged(); } else { migrationJobsBuilder_.addAllMessages(values); @@ -945,8 +864,6 @@ public Builder addAllMigrationJobs( return this; } /** - * - * *
      * The list of migration jobs objects.
      * 
@@ -964,8 +881,6 @@ public Builder clearMigrationJobs() { return this; } /** - * - * *
      * The list of migration jobs objects.
      * 
@@ -983,44 +898,39 @@ public Builder removeMigrationJobs(int index) { return this; } /** - * - * *
      * The list of migration jobs objects.
      * 
* * repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1; */ - public com.google.cloud.clouddms.v1.MigrationJob.Builder getMigrationJobsBuilder(int index) { + public com.google.cloud.clouddms.v1.MigrationJob.Builder getMigrationJobsBuilder( + int index) { return getMigrationJobsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of migration jobs objects.
      * 
* * repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1; */ - public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobsOrBuilder(int index) { + public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobsOrBuilder( + int index) { if (migrationJobsBuilder_ == null) { - return migrationJobs_.get(index); - } else { + return migrationJobs_.get(index); } else { return migrationJobsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of migration jobs objects.
      * 
* * repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1; */ - public java.util.List - getMigrationJobsOrBuilderList() { + public java.util.List + getMigrationJobsOrBuilderList() { if (migrationJobsBuilder_ != null) { return migrationJobsBuilder_.getMessageOrBuilderList(); } else { @@ -1028,8 +938,6 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobsOrBuil } } /** - * - * *
      * The list of migration jobs objects.
      * 
@@ -1037,47 +945,38 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobsOrBuil * repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1; */ public com.google.cloud.clouddms.v1.MigrationJob.Builder addMigrationJobsBuilder() { - return getMigrationJobsFieldBuilder() - .addBuilder(com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance()); + return getMigrationJobsFieldBuilder().addBuilder( + com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance()); } /** - * - * *
      * The list of migration jobs objects.
      * 
* * repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1; */ - public com.google.cloud.clouddms.v1.MigrationJob.Builder addMigrationJobsBuilder(int index) { - return getMigrationJobsFieldBuilder() - .addBuilder(index, com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance()); + public com.google.cloud.clouddms.v1.MigrationJob.Builder addMigrationJobsBuilder( + int index) { + return getMigrationJobsFieldBuilder().addBuilder( + index, com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance()); } /** - * - * *
      * The list of migration jobs objects.
      * 
* * repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1; */ - public java.util.List - getMigrationJobsBuilderList() { + public java.util.List + getMigrationJobsBuilderList() { return getMigrationJobsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.clouddms.v1.MigrationJob, - com.google.cloud.clouddms.v1.MigrationJob.Builder, - com.google.cloud.clouddms.v1.MigrationJobOrBuilder> + com.google.cloud.clouddms.v1.MigrationJob, com.google.cloud.clouddms.v1.MigrationJob.Builder, com.google.cloud.clouddms.v1.MigrationJobOrBuilder> getMigrationJobsFieldBuilder() { if (migrationJobsBuilder_ == null) { - migrationJobsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.clouddms.v1.MigrationJob, - com.google.cloud.clouddms.v1.MigrationJob.Builder, - com.google.cloud.clouddms.v1.MigrationJobOrBuilder>( + migrationJobsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.MigrationJob, com.google.cloud.clouddms.v1.MigrationJob.Builder, com.google.cloud.clouddms.v1.MigrationJobOrBuilder>( migrationJobs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1089,21 +988,19 @@ public com.google.cloud.clouddms.v1.MigrationJob.Builder addMigrationJobsBuilder private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @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; @@ -1112,22 +1009,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @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 { @@ -1135,115 +1031,98 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @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; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1251,90 +1130,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1344,30 +1213,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.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); } @@ -1377,12 +1244,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.ListMigrationJobsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ListMigrationJobsResponse) private static final com.google.cloud.clouddms.v1.ListMigrationJobsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ListMigrationJobsResponse(); } @@ -1391,16 +1258,16 @@ public static com.google.cloud.clouddms.v1.ListMigrationJobsResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMigrationJobsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListMigrationJobsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMigrationJobsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMigrationJobsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1415,4 +1282,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.clouddms.v1.ListMigrationJobsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponseOrBuilder.java similarity index 72% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponseOrBuilder.java index d9cf91e3..45782d7b 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponseOrBuilder.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/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface ListMigrationJobsResponseOrBuilder - extends +public interface ListMigrationJobsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ListMigrationJobsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of migration jobs objects.
    * 
* * repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1; */ - java.util.List getMigrationJobsList(); + java.util.List + getMigrationJobsList(); /** - * - * *
    * The list of migration jobs objects.
    * 
@@ -44,8 +25,6 @@ public interface ListMigrationJobsResponseOrBuilder */ com.google.cloud.clouddms.v1.MigrationJob getMigrationJobs(int index); /** - * - * *
    * The list of migration jobs objects.
    * 
@@ -54,102 +33,84 @@ public interface ListMigrationJobsResponseOrBuilder */ int getMigrationJobsCount(); /** - * - * *
    * The list of migration jobs objects.
    * 
* * repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1; */ - java.util.List + java.util.List getMigrationJobsOrBuilderList(); /** - * - * *
    * The list of migration jobs objects.
    * 
* * repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1; */ - com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobsOrBuilder(int index); + com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobsOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/LocationName.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/LocationName.java similarity index 100% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/LocationName.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/LocationName.java diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJob.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJob.java similarity index 71% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJob.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJob.java index 94736a47..f469c0b0 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJob.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJob.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/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * Represents a Database Migration Service migration job object.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.MigrationJob} */ -public final class MigrationJob extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MigrationJob extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.MigrationJob) MigrationJobOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MigrationJob.newBuilder() to construct. private MigrationJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MigrationJob() { name_ = ""; displayName_ = ""; @@ -50,15 +32,16 @@ private MigrationJob() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MigrationJob(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private MigrationJob( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -78,298 +61,254 @@ private MigrationJob( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 48: - { - int rawValue = input.readEnum(); + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - state_ = rawValue; - break; - } - case 56: - { - int rawValue = input.readEnum(); + displayName_ = s; + break; + } + case 48: { + int rawValue = input.readEnum(); - phase_ = rawValue; - break; - } - case 64: - { - int rawValue = input.readEnum(); + state_ = rawValue; + break; + } + case 56: { + int rawValue = input.readEnum(); - type_ = rawValue; - break; + phase_ = rawValue; + break; + } + case 64: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + dumpPath_ = s; + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + source_ = s; + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + + destination_ = s; + break; + } + case 98: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (duration_ != null) { + subBuilder = duration_.toBuilder(); + } + duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(duration_); + duration_ = subBuilder.buildPartial(); } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - dumpPath_ = s; - break; + break; + } + case 106: { + com.google.rpc.Status.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = subBuilder.buildPartial(); } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - source_ = s; - break; + break; + } + case 114: { + com.google.cloud.clouddms.v1.DatabaseType.Builder subBuilder = null; + if (sourceDatabase_ != null) { + subBuilder = sourceDatabase_.toBuilder(); + } + sourceDatabase_ = input.readMessage(com.google.cloud.clouddms.v1.DatabaseType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sourceDatabase_); + sourceDatabase_ = subBuilder.buildPartial(); } - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); - destination_ = s; - break; + break; + } + case 122: { + com.google.cloud.clouddms.v1.DatabaseType.Builder subBuilder = null; + if (destinationDatabase_ != null) { + subBuilder = destinationDatabase_.toBuilder(); } - case 98: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (duration_ != null) { - subBuilder = duration_.toBuilder(); - } - duration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(duration_); - duration_ = subBuilder.buildPartial(); - } - - break; + destinationDatabase_ = input.readMessage(com.google.cloud.clouddms.v1.DatabaseType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(destinationDatabase_); + destinationDatabase_ = subBuilder.buildPartial(); } - case 106: - { - com.google.rpc.Status.Builder subBuilder = null; - if (error_ != null) { - subBuilder = error_.toBuilder(); - } - error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(error_); - error_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 130: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 114: - { - com.google.cloud.clouddms.v1.DatabaseType.Builder subBuilder = null; - if (sourceDatabase_ != null) { - subBuilder = sourceDatabase_.toBuilder(); - } - sourceDatabase_ = - input.readMessage( - com.google.cloud.clouddms.v1.DatabaseType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sourceDatabase_); - sourceDatabase_ = subBuilder.buildPartial(); - } - - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - case 122: - { - com.google.cloud.clouddms.v1.DatabaseType.Builder subBuilder = null; - if (destinationDatabase_ != null) { - subBuilder = destinationDatabase_.toBuilder(); - } - destinationDatabase_ = - input.readMessage( - com.google.cloud.clouddms.v1.DatabaseType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(destinationDatabase_); - destinationDatabase_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 810: { + com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder subBuilder = null; + if (connectivityCase_ == 101) { + subBuilder = ((com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_).toBuilder(); } - case 130: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; + connectivity_ = + input.readMessage(com.google.cloud.clouddms.v1.ReverseSshConnectivity.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_); + connectivity_ = subBuilder.buildPartial(); } - case 810: - { - com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder subBuilder = null; - if (connectivityCase_ == 101) { - subBuilder = - ((com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_) - .toBuilder(); - } - connectivity_ = - input.readMessage( - com.google.cloud.clouddms.v1.ReverseSshConnectivity.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_); - connectivity_ = subBuilder.buildPartial(); - } - connectivityCase_ = 101; - break; + connectivityCase_ = 101; + break; + } + case 818: { + com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder subBuilder = null; + if (connectivityCase_ == 102) { + subBuilder = ((com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_).toBuilder(); } - case 818: - { - com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder subBuilder = null; - if (connectivityCase_ == 102) { - subBuilder = - ((com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_) - .toBuilder(); - } - connectivity_ = - input.readMessage( - com.google.cloud.clouddms.v1.VpcPeeringConnectivity.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_); - connectivity_ = subBuilder.buildPartial(); - } - connectivityCase_ = 102; - break; + connectivity_ = + input.readMessage(com.google.cloud.clouddms.v1.VpcPeeringConnectivity.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_); + connectivity_ = subBuilder.buildPartial(); + } + connectivityCase_ = 102; + break; + } + case 826: { + com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder subBuilder = null; + if (connectivityCase_ == 103) { + subBuilder = ((com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_).toBuilder(); } - case 826: - { - com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder subBuilder = null; - if (connectivityCase_ == 103) { - subBuilder = - ((com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_).toBuilder(); - } - connectivity_ = - input.readMessage( - com.google.cloud.clouddms.v1.StaticIpConnectivity.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_); - connectivity_ = subBuilder.buildPartial(); - } - connectivityCase_ = 103; - break; + connectivity_ = + input.readMessage(com.google.cloud.clouddms.v1.StaticIpConnectivity.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_); + connectivity_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + connectivityCase_ = 103; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_MigrationJob_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MigrationJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.MigrationJob.class, - com.google.cloud.clouddms.v1.MigrationJob.Builder.class); + com.google.cloud.clouddms.v1.MigrationJob.class, com.google.cloud.clouddms.v1.MigrationJob.Builder.class); } /** - * - * *
    * The current migration job states.
    * 
* * Protobuf enum {@code google.cloud.clouddms.v1.MigrationJob.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The state of the migration job is unknown.
      * 
@@ -378,8 +317,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The migration job is down for maintenance.
      * 
@@ -388,8 +325,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ MAINTENANCE(1), /** - * - * *
      * The migration job is in draft mode and no resources are created.
      * 
@@ -398,8 +333,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DRAFT(2), /** - * - * *
      * The migration job is being created.
      * 
@@ -408,8 +341,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(3), /** - * - * *
      * The migration job is created, not started and is fully editable.
      * 
@@ -418,8 +349,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ NOT_STARTED(4), /** - * - * *
      * The migration job is running.
      * 
@@ -428,8 +357,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(5), /** - * - * *
      * The migration job failed.
      * 
@@ -438,8 +365,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(6), /** - * - * *
      * The migration job has been completed.
      * 
@@ -448,8 +373,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ COMPLETED(7), /** - * - * *
      * The migration job is being deleted.
      * 
@@ -458,8 +381,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(8), /** - * - * *
      * The migration job is being stopped.
      * 
@@ -468,8 +389,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STOPPING(9), /** - * - * *
      * The migration job is currently stopped.
      * 
@@ -478,8 +397,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STOPPED(10), /** - * - * *
      * The migration job has been deleted.
      * 
@@ -488,8 +405,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DELETED(11), /** - * - * *
      * The migration job is being updated.
      * 
@@ -498,8 +413,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ UPDATING(12), /** - * - * *
      * The migration job is starting.
      * 
@@ -508,8 +421,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STARTING(13), /** - * - * *
      * The migration job is restarting.
      * 
@@ -518,8 +429,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RESTARTING(14), /** - * - * *
      * The migration job is resuming.
      * 
@@ -531,8 +440,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The state of the migration job is unknown.
      * 
@@ -541,8 +448,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The migration job is down for maintenance.
      * 
@@ -551,8 +456,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MAINTENANCE_VALUE = 1; /** - * - * *
      * The migration job is in draft mode and no resources are created.
      * 
@@ -561,8 +464,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DRAFT_VALUE = 2; /** - * - * *
      * The migration job is being created.
      * 
@@ -571,8 +472,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 3; /** - * - * *
      * The migration job is created, not started and is fully editable.
      * 
@@ -581,8 +480,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOT_STARTED_VALUE = 4; /** - * - * *
      * The migration job is running.
      * 
@@ -591,8 +488,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 5; /** - * - * *
      * The migration job failed.
      * 
@@ -601,8 +496,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 6; /** - * - * *
      * The migration job has been completed.
      * 
@@ -611,8 +504,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMPLETED_VALUE = 7; /** - * - * *
      * The migration job is being deleted.
      * 
@@ -621,8 +512,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 8; /** - * - * *
      * The migration job is being stopped.
      * 
@@ -631,8 +520,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STOPPING_VALUE = 9; /** - * - * *
      * The migration job is currently stopped.
      * 
@@ -641,8 +528,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STOPPED_VALUE = 10; /** - * - * *
      * The migration job has been deleted.
      * 
@@ -651,8 +536,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETED_VALUE = 11; /** - * - * *
      * The migration job is being updated.
      * 
@@ -661,8 +544,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATING_VALUE = 12; /** - * - * *
      * The migration job is starting.
      * 
@@ -671,8 +552,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STARTING_VALUE = 13; /** - * - * *
      * The migration job is restarting.
      * 
@@ -681,8 +560,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RESTARTING_VALUE = 14; /** - * - * *
      * The migration job is resuming.
      * 
@@ -691,6 +568,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RESUMING_VALUE = 15; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -715,75 +593,62 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return MAINTENANCE; - case 2: - return DRAFT; - case 3: - return CREATING; - case 4: - return NOT_STARTED; - case 5: - return RUNNING; - case 6: - return FAILED; - case 7: - return COMPLETED; - case 8: - return DELETING; - case 9: - return STOPPING; - case 10: - return STOPPED; - case 11: - return DELETED; - case 12: - return UPDATING; - case 13: - return STARTING; - case 14: - return RESTARTING; - case 15: - return RESUMING; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + case 0: return STATE_UNSPECIFIED; + case 1: return MAINTENANCE; + case 2: return DRAFT; + case 3: return CREATING; + case 4: return NOT_STARTED; + case 5: return RUNNING; + case 6: return FAILED; + case 7: return COMPLETED; + case 8: return DELETING; + case 9: return STOPPING; + case 10: return STOPPED; + case 11: return DELETED; + case 12: return UPDATING; + case 13: return STARTING; + case 14: return RESTARTING; + case 15: return RESUMING; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.clouddms.v1.MigrationJob.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -801,18 +666,15 @@ private State(int value) { } /** - * - * *
    * The current migration job phase.
    * 
* * Protobuf enum {@code google.cloud.clouddms.v1.MigrationJob.Phase} */ - public enum Phase implements com.google.protobuf.ProtocolMessageEnum { + public enum Phase + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The phase of the migration job is unknown.
      * 
@@ -821,8 +683,6 @@ public enum Phase implements com.google.protobuf.ProtocolMessageEnum { */ PHASE_UNSPECIFIED(0), /** - * - * *
      * The migration job is in the full dump phase.
      * 
@@ -831,8 +691,6 @@ public enum Phase implements com.google.protobuf.ProtocolMessageEnum { */ FULL_DUMP(1), /** - * - * *
      * The migration job is CDC phase.
      * 
@@ -841,8 +699,6 @@ public enum Phase implements com.google.protobuf.ProtocolMessageEnum { */ CDC(2), /** - * - * *
      * The migration job is running the promote phase.
      * 
@@ -851,8 +707,6 @@ public enum Phase implements com.google.protobuf.ProtocolMessageEnum { */ PROMOTE_IN_PROGRESS(3), /** - * - * *
      * Only RDS flow - waiting for source writes to stop
      * 
@@ -861,8 +715,6 @@ public enum Phase implements com.google.protobuf.ProtocolMessageEnum { */ WAITING_FOR_SOURCE_WRITES_TO_STOP(4), /** - * - * *
      * Only RDS flow - the sources writes stopped, waiting for dump to begin
      * 
@@ -874,8 +726,6 @@ public enum Phase implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The phase of the migration job is unknown.
      * 
@@ -884,8 +734,6 @@ public enum Phase implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PHASE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The migration job is in the full dump phase.
      * 
@@ -894,8 +742,6 @@ public enum Phase implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FULL_DUMP_VALUE = 1; /** - * - * *
      * The migration job is CDC phase.
      * 
@@ -904,8 +750,6 @@ public enum Phase implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CDC_VALUE = 2; /** - * - * *
      * The migration job is running the promote phase.
      * 
@@ -914,8 +758,6 @@ public enum Phase implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROMOTE_IN_PROGRESS_VALUE = 3; /** - * - * *
      * Only RDS flow - waiting for source writes to stop
      * 
@@ -924,8 +766,6 @@ public enum Phase implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WAITING_FOR_SOURCE_WRITES_TO_STOP_VALUE = 4; /** - * - * *
      * Only RDS flow - the sources writes stopped, waiting for dump to begin
      * 
@@ -934,6 +774,7 @@ public enum Phase implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PREPARING_THE_DUMP_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -958,55 +799,52 @@ public static Phase valueOf(int value) { */ public static Phase forNumber(int value) { switch (value) { - case 0: - return PHASE_UNSPECIFIED; - case 1: - return FULL_DUMP; - case 2: - return CDC; - case 3: - return PROMOTE_IN_PROGRESS; - case 4: - return WAITING_FOR_SOURCE_WRITES_TO_STOP; - case 5: - return PREPARING_THE_DUMP; - default: - return null; + case 0: return PHASE_UNSPECIFIED; + case 1: return FULL_DUMP; + case 2: return CDC; + case 3: return PROMOTE_IN_PROGRESS; + case 4: return WAITING_FOR_SOURCE_WRITES_TO_STOP; + case 5: return PREPARING_THE_DUMP; + 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< + Phase> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Phase findValueByNumber(int number) { + return Phase.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Phase findValueByNumber(int number) { - return Phase.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() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.clouddms.v1.MigrationJob.getDescriptor().getEnumTypes().get(1); } private static final Phase[] VALUES = values(); - public static Phase valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Phase 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; @@ -1024,18 +862,15 @@ private Phase(int value) { } /** - * - * *
    * The type of migration job (one-time or continuous).
    * 
* * Protobuf enum {@code google.cloud.clouddms.v1.MigrationJob.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The type of the migration job is unknown.
      * 
@@ -1044,8 +879,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * *
      * The migration job is a one time migration.
      * 
@@ -1054,8 +887,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ ONE_TIME(1), /** - * - * *
      * The migration job is a continuous migration.
      * 
@@ -1067,8 +898,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The type of the migration job is unknown.
      * 
@@ -1077,8 +906,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The migration job is a one time migration.
      * 
@@ -1087,8 +914,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ONE_TIME_VALUE = 1; /** - * - * *
      * The migration job is a continuous migration.
      * 
@@ -1097,6 +922,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONTINUOUS_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1121,49 +947,49 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return ONE_TIME; - case 2: - return CONTINUOUS; - default: - return null; + case 0: return TYPE_UNSPECIFIED; + case 1: return ONE_TIME; + case 2: return CONTINUOUS; + 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< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.clouddms.v1.MigrationJob.getDescriptor().getEnumTypes().get(2); } 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; @@ -1182,17 +1008,14 @@ private Type(int value) { private int connectivityCase_ = 0; private java.lang.Object connectivity_; - public enum ConnectivityCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { REVERSE_SSH_CONNECTIVITY(101), VPC_PEERING_CONNECTIVITY(102), STATIC_IP_CONNECTIVITY(103), CONNECTIVITY_NOT_SET(0); private final int value; - private ConnectivityCase(int value) { this.value = value; } @@ -1208,40 +1031,33 @@ public static ConnectivityCase valueOf(int value) { public static ConnectivityCase forNumber(int value) { switch (value) { - case 101: - return REVERSE_SSH_CONNECTIVITY; - case 102: - return VPC_PEERING_CONNECTIVITY; - case 103: - return STATIC_IP_CONNECTIVITY; - case 0: - return CONNECTIVITY_NOT_SET; - default: - return null; + case 101: return REVERSE_SSH_CONNECTIVITY; + case 102: return VPC_PEERING_CONNECTIVITY; + case 103: return STATIC_IP_CONNECTIVITY; + case 0: return CONNECTIVITY_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ConnectivityCase getConnectivityCase() { - return ConnectivityCase.forNumber(connectivityCase_); + public ConnectivityCase + getConnectivityCase() { + return ConnectivityCase.forNumber( + connectivityCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The name (URI) of this migration job resource, in the form of:
    * projects/{project}/locations/{location}/instances/{instance}.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -1250,30 +1066,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The name (URI) of this migration job resource, in the form of:
    * projects/{project}/locations/{location}/instances/{instance}.
    * 
* * 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 { @@ -1284,17 +1100,13 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The timestamp when the migration job resource was created.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -1302,17 +1114,13 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The timestamp when the migration job resource was created.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -1320,16 +1128,13 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The timestamp when the migration job resource was created.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1339,17 +1144,13 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The timestamp when the migration job resource was last updated.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1357,17 +1158,13 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The timestamp when the migration job resource was last updated.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -1375,16 +1172,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The timestamp when the migration job resource was last updated.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1392,23 +1186,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -1417,8 +1212,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * The resource labels for migration job to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -1428,22 +1221,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4;
    */
+
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * The resource labels for migration job to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -1454,12 +1247,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * The resource labels for migration job to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -1470,16 +1262,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * The resource labels for migration job to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -1490,11 +1282,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1504,14 +1297,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int DISPLAY_NAME_FIELD_NUMBER = 5;
   private volatile java.lang.Object displayName_;
   /**
-   *
-   *
    * 
    * The migration job display name.
    * 
* * string display_name = 5; - * * @return The displayName. */ @java.lang.Override @@ -1520,29 +1310,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; } } /** - * - * *
    * The migration job display name.
    * 
* * string display_name = 5; - * * @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 { @@ -1553,131 +1343,93 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int STATE_FIELD_NUMBER = 6; private int state_; /** - * - * *
    * The current migration job state.
    * 
* * .google.cloud.clouddms.v1.MigrationJob.State state = 6; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The current migration job state.
    * 
* * .google.cloud.clouddms.v1.MigrationJob.State state = 6; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.clouddms.v1.MigrationJob.State getState() { + @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJob.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.MigrationJob.State result = - com.google.cloud.clouddms.v1.MigrationJob.State.valueOf(state_); + com.google.cloud.clouddms.v1.MigrationJob.State result = com.google.cloud.clouddms.v1.MigrationJob.State.valueOf(state_); return result == null ? com.google.cloud.clouddms.v1.MigrationJob.State.UNRECOGNIZED : result; } public static final int PHASE_FIELD_NUMBER = 7; private int phase_; /** - * - * *
    * Output only. The current migration job phase.
    * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for phase. */ - @java.lang.Override - public int getPhaseValue() { + @java.lang.Override public int getPhaseValue() { return phase_; } /** - * - * *
    * Output only. The current migration job phase.
    * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The phase. */ - @java.lang.Override - public com.google.cloud.clouddms.v1.MigrationJob.Phase getPhase() { + @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJob.Phase getPhase() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.MigrationJob.Phase result = - com.google.cloud.clouddms.v1.MigrationJob.Phase.valueOf(phase_); + com.google.cloud.clouddms.v1.MigrationJob.Phase result = com.google.cloud.clouddms.v1.MigrationJob.Phase.valueOf(phase_); return result == null ? com.google.cloud.clouddms.v1.MigrationJob.Phase.UNRECOGNIZED : result; } public static final int TYPE_FIELD_NUMBER = 8; private int type_; /** - * - * *
    * Required. The migration job type.
    * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
    * Required. The migration job type.
    * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; * @return The type. */ - @java.lang.Override - public com.google.cloud.clouddms.v1.MigrationJob.Type getType() { + @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJob.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.MigrationJob.Type result = - com.google.cloud.clouddms.v1.MigrationJob.Type.valueOf(type_); + com.google.cloud.clouddms.v1.MigrationJob.Type result = com.google.cloud.clouddms.v1.MigrationJob.Type.valueOf(type_); return result == null ? com.google.cloud.clouddms.v1.MigrationJob.Type.UNRECOGNIZED : result; } public static final int DUMP_PATH_FIELD_NUMBER = 9; private volatile java.lang.Object dumpPath_; /** - * - * *
    * The path to the dump file in Google Cloud Storage,
    * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
    * 
* * string dump_path = 9; - * * @return The dumpPath. */ @java.lang.Override @@ -1686,30 +1438,30 @@ public java.lang.String getDumpPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dumpPath_ = s; return s; } } /** - * - * *
    * The path to the dump file in Google Cloud Storage,
    * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
    * 
* * string dump_path = 9; - * * @return The bytes for dumpPath. */ @java.lang.Override - public com.google.protobuf.ByteString getDumpPathBytes() { + public com.google.protobuf.ByteString + getDumpPathBytes() { java.lang.Object ref = dumpPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dumpPath_ = b; return b; } else { @@ -1720,14 +1472,11 @@ public com.google.protobuf.ByteString getDumpPathBytes() { public static final int SOURCE_FIELD_NUMBER = 10; private volatile java.lang.Object source_; /** - * - * *
    * Required. The resource name (URI) of the source connection profile.
    * 
* * string source = 10 [(.google.api.field_behavior) = REQUIRED]; - * * @return The source. */ @java.lang.Override @@ -1736,29 +1485,29 @@ public java.lang.String getSource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); source_ = s; return s; } } /** - * - * *
    * Required. The resource name (URI) of the source connection profile.
    * 
* * string source = 10 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for source. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceBytes() { + public com.google.protobuf.ByteString + getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); source_ = b; return b; } else { @@ -1769,14 +1518,11 @@ public com.google.protobuf.ByteString getSourceBytes() { public static final int DESTINATION_FIELD_NUMBER = 11; private volatile java.lang.Object destination_; /** - * - * *
    * Required. The resource name (URI) of the destination connection profile.
    * 
* * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; - * * @return The destination. */ @java.lang.Override @@ -1785,29 +1531,29 @@ public java.lang.String getDestination() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destination_ = s; return s; } } /** - * - * *
    * Required. The resource name (URI) of the destination connection profile.
    * 
* * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for destination. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationBytes() { + public com.google.protobuf.ByteString + getDestinationBytes() { java.lang.Object 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); destination_ = b; return b; } else { @@ -1817,15 +1563,12 @@ public com.google.protobuf.ByteString getDestinationBytes() { public static final int REVERSE_SSH_CONNECTIVITY_FIELD_NUMBER = 101; /** - * - * *
    * The details needed to communicate to the source over Reverse SSH
    * tunnel connectivity.
    * 
* * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; - * * @return Whether the reverseSshConnectivity field is set. */ @java.lang.Override @@ -1833,27 +1576,22 @@ public boolean hasReverseSshConnectivity() { return connectivityCase_ == 101; } /** - * - * *
    * The details needed to communicate to the source over Reverse SSH
    * tunnel connectivity.
    * 
* * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; - * * @return The reverseSshConnectivity. */ @java.lang.Override public com.google.cloud.clouddms.v1.ReverseSshConnectivity getReverseSshConnectivity() { if (connectivityCase_ == 101) { - return (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_; + return (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_; } return com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance(); } /** - * - * *
    * The details needed to communicate to the source over Reverse SSH
    * tunnel connectivity.
@@ -1862,24 +1600,20 @@ public com.google.cloud.clouddms.v1.ReverseSshConnectivity getReverseSshConnecti
    * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101;
    */
   @java.lang.Override
-  public com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder
-      getReverseSshConnectivityOrBuilder() {
+  public com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder getReverseSshConnectivityOrBuilder() {
     if (connectivityCase_ == 101) {
-      return (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_;
+       return (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_;
     }
     return com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance();
   }
 
   public static final int VPC_PEERING_CONNECTIVITY_FIELD_NUMBER = 102;
   /**
-   *
-   *
    * 
    * The details of the VPC network that the source database is located in.
    * 
* * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; - * * @return Whether the vpcPeeringConnectivity field is set. */ @java.lang.Override @@ -1887,26 +1621,21 @@ public boolean hasVpcPeeringConnectivity() { return connectivityCase_ == 102; } /** - * - * *
    * The details of the VPC network that the source database is located in.
    * 
* * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; - * * @return The vpcPeeringConnectivity. */ @java.lang.Override public com.google.cloud.clouddms.v1.VpcPeeringConnectivity getVpcPeeringConnectivity() { if (connectivityCase_ == 102) { - return (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_; + return (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_; } return com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance(); } /** - * - * *
    * The details of the VPC network that the source database is located in.
    * 
@@ -1914,24 +1643,20 @@ public com.google.cloud.clouddms.v1.VpcPeeringConnectivity getVpcPeeringConnecti * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; */ @java.lang.Override - public com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder - getVpcPeeringConnectivityOrBuilder() { + public com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder getVpcPeeringConnectivityOrBuilder() { if (connectivityCase_ == 102) { - return (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_; + return (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_; } return com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance(); } public static final int STATIC_IP_CONNECTIVITY_FIELD_NUMBER = 103; /** - * - * *
    * static ip connectivity data (default, no additional details needed).
    * 
* * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; - * * @return Whether the staticIpConnectivity field is set. */ @java.lang.Override @@ -1939,26 +1664,21 @@ public boolean hasStaticIpConnectivity() { return connectivityCase_ == 103; } /** - * - * *
    * static ip connectivity data (default, no additional details needed).
    * 
* * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; - * * @return The staticIpConnectivity. */ @java.lang.Override public com.google.cloud.clouddms.v1.StaticIpConnectivity getStaticIpConnectivity() { if (connectivityCase_ == 103) { - return (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_; + return (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_; } return com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance(); } /** - * - * *
    * static ip connectivity data (default, no additional details needed).
    * 
@@ -1966,10 +1686,9 @@ public com.google.cloud.clouddms.v1.StaticIpConnectivity getStaticIpConnectivity * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; */ @java.lang.Override - public com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder - getStaticIpConnectivityOrBuilder() { + public com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder getStaticIpConnectivityOrBuilder() { if (connectivityCase_ == 103) { - return (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_; + return (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_; } return com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance(); } @@ -1977,16 +1696,12 @@ public com.google.cloud.clouddms.v1.StaticIpConnectivity getStaticIpConnectivity public static final int DURATION_FIELD_NUMBER = 12; private com.google.protobuf.Duration duration_; /** - * - * *
    * Output only. The duration of the migration job (in seconds). A duration in seconds
    * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
    * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the duration field is set. */ @java.lang.Override @@ -1994,16 +1709,12 @@ public boolean hasDuration() { return duration_ != null; } /** - * - * *
    * Output only. The duration of the migration job (in seconds). A duration in seconds
    * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
    * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The duration. */ @java.lang.Override @@ -2011,15 +1722,12 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** - * - * *
    * Output only. The duration of the migration job (in seconds). A duration in seconds
    * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
    * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { @@ -2029,14 +1737,11 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { public static final int ERROR_FIELD_NUMBER = 13; private com.google.rpc.Status error_; /** - * - * *
    * Output only. The error details in case of state FAILED.
    * 
* * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the error field is set. */ @java.lang.Override @@ -2044,14 +1749,11 @@ public boolean hasError() { return error_ != null; } /** - * - * *
    * Output only. The error details in case of state FAILED.
    * 
* * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The error. */ @java.lang.Override @@ -2059,8 +1761,6 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** - * - * *
    * Output only. The error details in case of state FAILED.
    * 
@@ -2075,14 +1775,11 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { public static final int SOURCE_DATABASE_FIELD_NUMBER = 14; private com.google.cloud.clouddms.v1.DatabaseType sourceDatabase_; /** - * - * *
    * The database engine type and provider of the source.
    * 
* * .google.cloud.clouddms.v1.DatabaseType source_database = 14; - * * @return Whether the sourceDatabase field is set. */ @java.lang.Override @@ -2090,25 +1787,18 @@ public boolean hasSourceDatabase() { return sourceDatabase_ != null; } /** - * - * *
    * The database engine type and provider of the source.
    * 
* * .google.cloud.clouddms.v1.DatabaseType source_database = 14; - * * @return The sourceDatabase. */ @java.lang.Override public com.google.cloud.clouddms.v1.DatabaseType getSourceDatabase() { - return sourceDatabase_ == null - ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() - : sourceDatabase_; + return sourceDatabase_ == null ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() : sourceDatabase_; } /** - * - * *
    * The database engine type and provider of the source.
    * 
@@ -2123,14 +1813,11 @@ public com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder getSourceDatabaseOrBui public static final int DESTINATION_DATABASE_FIELD_NUMBER = 15; private com.google.cloud.clouddms.v1.DatabaseType destinationDatabase_; /** - * - * *
    * The database engine type and provider of the destination.
    * 
* * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; - * * @return Whether the destinationDatabase field is set. */ @java.lang.Override @@ -2138,25 +1825,18 @@ public boolean hasDestinationDatabase() { return destinationDatabase_ != null; } /** - * - * *
    * The database engine type and provider of the destination.
    * 
* * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; - * * @return The destinationDatabase. */ @java.lang.Override public com.google.cloud.clouddms.v1.DatabaseType getDestinationDatabase() { - return destinationDatabase_ == null - ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() - : destinationDatabase_; + return destinationDatabase_ == null ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() : destinationDatabase_; } /** - * - * *
    * The database engine type and provider of the destination.
    * 
@@ -2171,15 +1851,11 @@ public com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder getDestinationDatabase public static final int END_TIME_FIELD_NUMBER = 16; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. If the migration job is completed, the time when it was completed.
    * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -2187,15 +1863,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. If the migration job is completed, the time when it was completed.
    * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -2203,14 +1875,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. If the migration job is completed, the time when it was completed.
    * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -2218,7 +1887,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2230,7 +1898,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -2240,8 +1909,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (!getDisplayNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } @@ -2300,32 +1973,37 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); } if (!getDisplayNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } if (state_ != com.google.cloud.clouddms.v1.MigrationJob.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, state_); } if (phase_ != com.google.cloud.clouddms.v1.MigrationJob.Phase.PHASE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, phase_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, phase_); } if (type_ != com.google.cloud.clouddms.v1.MigrationJob.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, type_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, type_); } if (!getDumpPathBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, dumpPath_); @@ -2337,35 +2015,36 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, destination_); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getDuration()); } if (error_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getError()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getError()); } if (sourceDatabase_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getSourceDatabase()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getSourceDatabase()); } if (destinationDatabase_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(15, getDestinationDatabase()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getDestinationDatabase()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getEndTime()); } if (connectivityCase_ == 101) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 101, (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(101, (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_); } if (connectivityCase_ == 102) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 102, (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(102, (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_); } if (connectivityCase_ == 103) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 103, (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(103, (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2375,61 +2054,76 @@ 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.clouddms.v1.MigrationJob)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.MigrationJob other = - (com.google.cloud.clouddms.v1.MigrationJob) obj; + com.google.cloud.clouddms.v1.MigrationJob other = (com.google.cloud.clouddms.v1.MigrationJob) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) 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 (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (state_ != other.state_) return false; if (phase_ != other.phase_) return false; if (type_ != other.type_) return false; - if (!getDumpPath().equals(other.getDumpPath())) return false; - if (!getSource().equals(other.getSource())) return false; - if (!getDestination().equals(other.getDestination())) return false; + if (!getDumpPath() + .equals(other.getDumpPath())) return false; + if (!getSource() + .equals(other.getSource())) return false; + if (!getDestination() + .equals(other.getDestination())) return false; if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { - if (!getDuration().equals(other.getDuration())) return false; + if (!getDuration() + .equals(other.getDuration())) return false; } if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError().equals(other.getError())) return false; + if (!getError() + .equals(other.getError())) return false; } if (hasSourceDatabase() != other.hasSourceDatabase()) return false; if (hasSourceDatabase()) { - if (!getSourceDatabase().equals(other.getSourceDatabase())) return false; + if (!getSourceDatabase() + .equals(other.getSourceDatabase())) return false; } if (hasDestinationDatabase() != other.hasDestinationDatabase()) return false; if (hasDestinationDatabase()) { - if (!getDestinationDatabase().equals(other.getDestinationDatabase())) return false; + if (!getDestinationDatabase() + .equals(other.getDestinationDatabase())) 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 (!getConnectivityCase().equals(other.getConnectivityCase())) return false; switch (connectivityCase_) { case 101: - if (!getReverseSshConnectivity().equals(other.getReverseSshConnectivity())) return false; + if (!getReverseSshConnectivity() + .equals(other.getReverseSshConnectivity())) return false; break; case 102: - if (!getVpcPeeringConnectivity().equals(other.getVpcPeeringConnectivity())) return false; + if (!getVpcPeeringConnectivity() + .equals(other.getVpcPeeringConnectivity())) return false; break; case 103: - if (!getStaticIpConnectivity().equals(other.getStaticIpConnectivity())) return false; + if (!getStaticIpConnectivity() + .equals(other.getStaticIpConnectivity())) return false; break; case 0: default: @@ -2514,147 +2208,140 @@ public int hashCode() { return hash; } - public static com.google.cloud.clouddms.v1.MigrationJob parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.clouddms.v1.MigrationJob parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.MigrationJob 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.clouddms.v1.MigrationJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.MigrationJob 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.clouddms.v1.MigrationJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.MigrationJob 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.clouddms.v1.MigrationJob parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.MigrationJob 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.clouddms.v1.MigrationJob parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.MigrationJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.MigrationJob 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.clouddms.v1.MigrationJob 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.clouddms.v1.MigrationJob 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.clouddms.v1.MigrationJob 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 Database Migration Service migration job object.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.MigrationJob} */ - 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.clouddms.v1.MigrationJob) com.google.cloud.clouddms.v1.MigrationJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 4: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_MigrationJob_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MigrationJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.MigrationJob.class, - com.google.cloud.clouddms.v1.MigrationJob.Builder.class); + com.google.cloud.clouddms.v1.MigrationJob.class, com.google.cloud.clouddms.v1.MigrationJob.Builder.class); } // Construct using com.google.cloud.clouddms.v1.MigrationJob.newBuilder() @@ -2662,15 +2349,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2739,9 +2427,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor; } @java.lang.Override @@ -2760,8 +2448,7 @@ public com.google.cloud.clouddms.v1.MigrationJob build() { @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJob buildPartial() { - com.google.cloud.clouddms.v1.MigrationJob result = - new com.google.cloud.clouddms.v1.MigrationJob(this); + com.google.cloud.clouddms.v1.MigrationJob result = new com.google.cloud.clouddms.v1.MigrationJob(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (createTimeBuilder_ == null) { @@ -2838,39 +2525,38 @@ public com.google.cloud.clouddms.v1.MigrationJob 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.clouddms.v1.MigrationJob) { - return mergeFrom((com.google.cloud.clouddms.v1.MigrationJob) other); + return mergeFrom((com.google.cloud.clouddms.v1.MigrationJob)other); } else { super.mergeFrom(other); return this; @@ -2889,7 +2575,8 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.MigrationJob other) { if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; onChanged(); @@ -2931,25 +2618,21 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.MigrationJob other) { mergeEndTime(other.getEndTime()); } switch (other.getConnectivityCase()) { - case REVERSE_SSH_CONNECTIVITY: - { - mergeReverseSshConnectivity(other.getReverseSshConnectivity()); - break; - } - case VPC_PEERING_CONNECTIVITY: - { - mergeVpcPeeringConnectivity(other.getVpcPeeringConnectivity()); - break; - } - case STATIC_IP_CONNECTIVITY: - { - mergeStaticIpConnectivity(other.getStaticIpConnectivity()); - break; - } - case CONNECTIVITY_NOT_SET: - { - break; - } + case REVERSE_SSH_CONNECTIVITY: { + mergeReverseSshConnectivity(other.getReverseSshConnectivity()); + break; + } + case VPC_PEERING_CONNECTIVITY: { + mergeVpcPeeringConnectivity(other.getVpcPeeringConnectivity()); + break; + } + case STATIC_IP_CONNECTIVITY: { + mergeStaticIpConnectivity(other.getStaticIpConnectivity()); + break; + } + case CONNECTIVITY_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -2979,12 +2662,12 @@ public Builder mergeFrom( } return this; } - private int connectivityCase_ = 0; private java.lang.Object connectivity_; - - public ConnectivityCase getConnectivityCase() { - return ConnectivityCase.forNumber(connectivityCase_); + public ConnectivityCase + getConnectivityCase() { + return ConnectivityCase.forNumber( + connectivityCase_); } public Builder clearConnectivity() { @@ -2998,21 +2681,19 @@ public Builder clearConnectivity() { private java.lang.Object name_ = ""; /** - * - * *
      * The name (URI) of this migration job resource, in the form of:
      * projects/{project}/locations/{location}/instances/{instance}.
      * 
* * 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; @@ -3021,22 +2702,21 @@ public java.lang.String getName() { } } /** - * - * *
      * The name (URI) of this migration job resource, in the form of:
      * projects/{project}/locations/{location}/instances/{instance}.
      * 
* * 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 { @@ -3044,64 +2724,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name (URI) of this migration job resource, in the form of:
      * projects/{project}/locations/{location}/instances/{instance}.
      * 
* * 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 (URI) of this migration job resource, in the form of:
      * projects/{project}/locations/{location}/instances/{instance}.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The name (URI) of this migration job resource, in the form of:
      * projects/{project}/locations/{location}/instances/{instance}.
      * 
* * 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; @@ -3109,64 +2782,45 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The timestamp when the migration job resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The timestamp when the migration job resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp when the migration job resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3182,19 +2836,16 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the migration job resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -3205,23 +2856,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when the migration job resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3233,17 +2880,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the migration job resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -3257,70 +2900,54 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The timestamp when the migration job resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when the migration job resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The timestamp when the migration job resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3328,64 +2955,45 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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. The timestamp when the migration job resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The timestamp when the migration job resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.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. The timestamp when the migration job resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3401,19 +3009,16 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the migration job resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.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(); @@ -3424,23 +3029,19 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when the migration job resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.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; } @@ -3452,17 +3053,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the migration job resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -3476,90 +3073,75 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The timestamp when the migration job resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when the migration job resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.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. The timestamp when the migration job resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.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_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3571,8 +3153,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * The resource labels for migration job to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -3582,22 +3162,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4;
      */
+
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * The resource labels for migration job to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -3608,12 +3188,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * The resource labels for migration job to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -3624,17 +3203,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * The resource labels for migration job to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -3645,11 +3223,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -3657,12 +3236,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * The resource labels for migration job to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -3672,21 +3250,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+    getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * The resource labels for migration job to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -3696,19 +3276,16 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 4;
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * The resource labels for migration job to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -3718,27 +3295,28 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 4;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private java.lang.Object displayName_ = "";
     /**
-     *
-     *
      * 
      * The migration job display name.
      * 
* * string display_name = 5; - * * @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; @@ -3747,21 +3325,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * The migration job display name.
      * 
* * string display_name = 5; - * * @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 { @@ -3769,61 +3346,54 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * The migration job display name.
      * 
* * string display_name = 5; - * * @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; } /** - * - * *
      * The migration job display name.
      * 
* * string display_name = 5; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * The migration job display name.
      * 
* * string display_name = 5; - * * @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; @@ -3831,65 +3401,51 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The current migration job state.
      * 
* * .google.cloud.clouddms.v1.MigrationJob.State state = 6; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The current migration job state.
      * 
* * .google.cloud.clouddms.v1.MigrationJob.State state = 6; - * * @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; } /** - * - * *
      * The current migration job state.
      * 
* * .google.cloud.clouddms.v1.MigrationJob.State state = 6; - * * @return The state. */ @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJob.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.MigrationJob.State result = - com.google.cloud.clouddms.v1.MigrationJob.State.valueOf(state_); + com.google.cloud.clouddms.v1.MigrationJob.State result = com.google.cloud.clouddms.v1.MigrationJob.State.valueOf(state_); return result == null ? com.google.cloud.clouddms.v1.MigrationJob.State.UNRECOGNIZED : result; } /** - * - * *
      * The current migration job state.
      * 
* * .google.cloud.clouddms.v1.MigrationJob.State state = 6; - * * @param value The state to set. * @return This builder for chaining. */ @@ -3897,24 +3453,21 @@ public Builder setState(com.google.cloud.clouddms.v1.MigrationJob.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The current migration job state.
      * 
* * .google.cloud.clouddms.v1.MigrationJob.State state = 6; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -3922,73 +3475,51 @@ public Builder clearState() { private int phase_ = 0; /** - * - * *
      * Output only. The current migration job phase.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for phase. */ - @java.lang.Override - public int getPhaseValue() { + @java.lang.Override public int getPhaseValue() { return phase_; } /** - * - * *
      * Output only. The current migration job phase.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for phase to set. * @return This builder for chaining. */ public Builder setPhaseValue(int value) { - + phase_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The current migration job phase.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The phase. */ @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJob.Phase getPhase() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.MigrationJob.Phase result = - com.google.cloud.clouddms.v1.MigrationJob.Phase.valueOf(phase_); + com.google.cloud.clouddms.v1.MigrationJob.Phase result = com.google.cloud.clouddms.v1.MigrationJob.Phase.valueOf(phase_); return result == null ? com.google.cloud.clouddms.v1.MigrationJob.Phase.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current migration job phase.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The phase to set. * @return This builder for chaining. */ @@ -3996,26 +3527,21 @@ public Builder setPhase(com.google.cloud.clouddms.v1.MigrationJob.Phase value) { if (value == null) { throw new NullPointerException(); } - + phase_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The current migration job phase.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearPhase() { - + phase_ = 0; onChanged(); return this; @@ -4023,73 +3549,51 @@ public Builder clearPhase() { private int type_ = 0; /** - * - * *
      * Required. The migration job type.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * Required. The migration job type.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; * @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; } /** - * - * *
      * Required. The migration job type.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; * @return The type. */ @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJob.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.MigrationJob.Type result = - com.google.cloud.clouddms.v1.MigrationJob.Type.valueOf(type_); + com.google.cloud.clouddms.v1.MigrationJob.Type result = com.google.cloud.clouddms.v1.MigrationJob.Type.valueOf(type_); return result == null ? com.google.cloud.clouddms.v1.MigrationJob.Type.UNRECOGNIZED : result; } /** - * - * *
      * Required. The migration job type.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; * @param value The type to set. * @return This builder for chaining. */ @@ -4097,26 +3601,21 @@ public Builder setType(com.google.cloud.clouddms.v1.MigrationJob.Type value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. The migration job type.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -4124,21 +3623,19 @@ public Builder clearType() { private java.lang.Object dumpPath_ = ""; /** - * - * *
      * The path to the dump file in Google Cloud Storage,
      * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
      * 
* * string dump_path = 9; - * * @return The dumpPath. */ public java.lang.String getDumpPath() { java.lang.Object ref = dumpPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dumpPath_ = s; return s; @@ -4147,22 +3644,21 @@ public java.lang.String getDumpPath() { } } /** - * - * *
      * The path to the dump file in Google Cloud Storage,
      * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
      * 
* * string dump_path = 9; - * * @return The bytes for dumpPath. */ - public com.google.protobuf.ByteString getDumpPathBytes() { + public com.google.protobuf.ByteString + getDumpPathBytes() { java.lang.Object ref = dumpPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dumpPath_ = b; return b; } else { @@ -4170,64 +3666,57 @@ public com.google.protobuf.ByteString getDumpPathBytes() { } } /** - * - * *
      * The path to the dump file in Google Cloud Storage,
      * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
      * 
* * string dump_path = 9; - * * @param value The dumpPath to set. * @return This builder for chaining. */ - public Builder setDumpPath(java.lang.String value) { + public Builder setDumpPath( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dumpPath_ = value; onChanged(); return this; } /** - * - * *
      * The path to the dump file in Google Cloud Storage,
      * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
      * 
* * string dump_path = 9; - * * @return This builder for chaining. */ public Builder clearDumpPath() { - + dumpPath_ = getDefaultInstance().getDumpPath(); onChanged(); return this; } /** - * - * *
      * The path to the dump file in Google Cloud Storage,
      * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
      * 
* * string dump_path = 9; - * * @param value The bytes for dumpPath to set. * @return This builder for chaining. */ - public Builder setDumpPathBytes(com.google.protobuf.ByteString value) { + public Builder setDumpPathBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dumpPath_ = value; onChanged(); return this; @@ -4235,20 +3724,18 @@ public Builder setDumpPathBytes(com.google.protobuf.ByteString value) { private java.lang.Object source_ = ""; /** - * - * *
      * Required. The resource name (URI) of the source connection profile.
      * 
* * string source = 10 [(.google.api.field_behavior) = REQUIRED]; - * * @return The source. */ public java.lang.String getSource() { java.lang.Object ref = source_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); source_ = s; return s; @@ -4257,21 +3744,20 @@ public java.lang.String getSource() { } } /** - * - * *
      * Required. The resource name (URI) of the source connection profile.
      * 
* * string source = 10 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for source. */ - public com.google.protobuf.ByteString getSourceBytes() { + public com.google.protobuf.ByteString + getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); source_ = b; return b; } else { @@ -4279,61 +3765,54 @@ public com.google.protobuf.ByteString getSourceBytes() { } } /** - * - * *
      * Required. The resource name (URI) of the source connection profile.
      * 
* * string source = 10 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The source to set. * @return This builder for chaining. */ - public Builder setSource(java.lang.String value) { + public Builder setSource( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + source_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name (URI) of the source connection profile.
      * 
* * string source = 10 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSource() { - + source_ = getDefaultInstance().getSource(); onChanged(); return this; } /** - * - * *
      * Required. The resource name (URI) of the source connection profile.
      * 
* * string source = 10 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for source to set. * @return This builder for chaining. */ - public Builder setSourceBytes(com.google.protobuf.ByteString value) { + public Builder setSourceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + source_ = value; onChanged(); return this; @@ -4341,20 +3820,18 @@ public Builder setSourceBytes(com.google.protobuf.ByteString value) { private java.lang.Object destination_ = ""; /** - * - * *
      * Required. The resource name (URI) of the destination connection profile.
      * 
* * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; - * * @return The destination. */ public java.lang.String getDestination() { java.lang.Object 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(); destination_ = s; return s; @@ -4363,21 +3840,20 @@ public java.lang.String getDestination() { } } /** - * - * *
      * Required. The resource name (URI) of the destination connection profile.
      * 
* * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for destination. */ - public com.google.protobuf.ByteString getDestinationBytes() { + public com.google.protobuf.ByteString + getDestinationBytes() { java.lang.Object 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); destination_ = b; return b; } else { @@ -4385,81 +3861,68 @@ public com.google.protobuf.ByteString getDestinationBytes() { } } /** - * - * *
      * Required. The resource name (URI) of the destination connection profile.
      * 
* * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The destination to set. * @return This builder for chaining. */ - public Builder setDestination(java.lang.String value) { + public Builder setDestination( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + destination_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name (URI) of the destination connection profile.
      * 
* * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDestination() { - + destination_ = getDefaultInstance().getDestination(); onChanged(); return this; } /** - * - * *
      * Required. The resource name (URI) of the destination connection profile.
      * 
* * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for destination to set. * @return This builder for chaining. */ - public Builder setDestinationBytes(com.google.protobuf.ByteString value) { + public Builder setDestinationBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destination_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.ReverseSshConnectivity, - com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder, - com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder> - reverseSshConnectivityBuilder_; + com.google.cloud.clouddms.v1.ReverseSshConnectivity, com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder, com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder> reverseSshConnectivityBuilder_; /** - * - * *
      * The details needed to communicate to the source over Reverse SSH
      * tunnel connectivity.
      * 
* * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; - * * @return Whether the reverseSshConnectivity field is set. */ @java.lang.Override @@ -4467,15 +3930,12 @@ public boolean hasReverseSshConnectivity() { return connectivityCase_ == 101; } /** - * - * *
      * The details needed to communicate to the source over Reverse SSH
      * tunnel connectivity.
      * 
* * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; - * * @return The reverseSshConnectivity. */ @java.lang.Override @@ -4493,8 +3953,6 @@ public com.google.cloud.clouddms.v1.ReverseSshConnectivity getReverseSshConnecti } } /** - * - * *
      * The details needed to communicate to the source over Reverse SSH
      * tunnel connectivity.
@@ -4502,8 +3960,7 @@ public com.google.cloud.clouddms.v1.ReverseSshConnectivity getReverseSshConnecti
      *
      * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101;
      */
-    public Builder setReverseSshConnectivity(
-        com.google.cloud.clouddms.v1.ReverseSshConnectivity value) {
+    public Builder setReverseSshConnectivity(com.google.cloud.clouddms.v1.ReverseSshConnectivity value) {
       if (reverseSshConnectivityBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -4517,8 +3974,6 @@ public Builder setReverseSshConnectivity(
       return this;
     }
     /**
-     *
-     *
      * 
      * The details needed to communicate to the source over Reverse SSH
      * tunnel connectivity.
@@ -4538,8 +3993,6 @@ public Builder setReverseSshConnectivity(
       return this;
     }
     /**
-     *
-     *
      * 
      * The details needed to communicate to the source over Reverse SSH
      * tunnel connectivity.
@@ -4547,17 +4000,12 @@ public Builder setReverseSshConnectivity(
      *
      * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101;
      */
-    public Builder mergeReverseSshConnectivity(
-        com.google.cloud.clouddms.v1.ReverseSshConnectivity value) {
+    public Builder mergeReverseSshConnectivity(com.google.cloud.clouddms.v1.ReverseSshConnectivity value) {
       if (reverseSshConnectivityBuilder_ == null) {
-        if (connectivityCase_ == 101
-            && connectivity_
-                != com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance()) {
-          connectivity_ =
-              com.google.cloud.clouddms.v1.ReverseSshConnectivity.newBuilder(
-                      (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (connectivityCase_ == 101 &&
+            connectivity_ != com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance()) {
+          connectivity_ = com.google.cloud.clouddms.v1.ReverseSshConnectivity.newBuilder((com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_)
+              .mergeFrom(value).buildPartial();
         } else {
           connectivity_ = value;
         }
@@ -4572,8 +4020,6 @@ public Builder mergeReverseSshConnectivity(
       return this;
     }
     /**
-     *
-     *
      * 
      * The details needed to communicate to the source over Reverse SSH
      * tunnel connectivity.
@@ -4598,8 +4044,6 @@ public Builder clearReverseSshConnectivity() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The details needed to communicate to the source over Reverse SSH
      * tunnel connectivity.
@@ -4607,13 +4051,10 @@ public Builder clearReverseSshConnectivity() {
      *
      * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101;
      */
-    public com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder
-        getReverseSshConnectivityBuilder() {
+    public com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder getReverseSshConnectivityBuilder() {
       return getReverseSshConnectivityFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The details needed to communicate to the source over Reverse SSH
      * tunnel connectivity.
@@ -4622,8 +4063,7 @@ public Builder clearReverseSshConnectivity() {
      * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101;
      */
     @java.lang.Override
-    public com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder
-        getReverseSshConnectivityOrBuilder() {
+    public com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder getReverseSshConnectivityOrBuilder() {
       if ((connectivityCase_ == 101) && (reverseSshConnectivityBuilder_ != null)) {
         return reverseSshConnectivityBuilder_.getMessageOrBuilder();
       } else {
@@ -4634,8 +4074,6 @@ public Builder clearReverseSshConnectivity() {
       }
     }
     /**
-     *
-     *
      * 
      * The details needed to communicate to the source over Reverse SSH
      * tunnel connectivity.
@@ -4644,44 +4082,32 @@ public Builder clearReverseSshConnectivity() {
      * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.clouddms.v1.ReverseSshConnectivity,
-            com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder,
-            com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder>
+        com.google.cloud.clouddms.v1.ReverseSshConnectivity, com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder, com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder> 
         getReverseSshConnectivityFieldBuilder() {
       if (reverseSshConnectivityBuilder_ == null) {
         if (!(connectivityCase_ == 101)) {
           connectivity_ = com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance();
         }
-        reverseSshConnectivityBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.clouddms.v1.ReverseSshConnectivity,
-                com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder,
-                com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder>(
+        reverseSshConnectivityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.clouddms.v1.ReverseSshConnectivity, com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder, com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder>(
                 (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_,
                 getParentForChildren(),
                 isClean());
         connectivity_ = null;
       }
       connectivityCase_ = 101;
-      onChanged();
-      ;
+      onChanged();;
       return reverseSshConnectivityBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.clouddms.v1.VpcPeeringConnectivity,
-            com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder,
-            com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder>
-        vpcPeeringConnectivityBuilder_;
+        com.google.cloud.clouddms.v1.VpcPeeringConnectivity, com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder, com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder> vpcPeeringConnectivityBuilder_;
     /**
-     *
-     *
      * 
      * The details of the VPC network that the source database is located in.
      * 
* * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; - * * @return Whether the vpcPeeringConnectivity field is set. */ @java.lang.Override @@ -4689,14 +4115,11 @@ public boolean hasVpcPeeringConnectivity() { return connectivityCase_ == 102; } /** - * - * *
      * The details of the VPC network that the source database is located in.
      * 
* * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; - * * @return The vpcPeeringConnectivity. */ @java.lang.Override @@ -4714,16 +4137,13 @@ public com.google.cloud.clouddms.v1.VpcPeeringConnectivity getVpcPeeringConnecti } } /** - * - * *
      * The details of the VPC network that the source database is located in.
      * 
* * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; */ - public Builder setVpcPeeringConnectivity( - com.google.cloud.clouddms.v1.VpcPeeringConnectivity value) { + public Builder setVpcPeeringConnectivity(com.google.cloud.clouddms.v1.VpcPeeringConnectivity value) { if (vpcPeeringConnectivityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4737,8 +4157,6 @@ public Builder setVpcPeeringConnectivity( return this; } /** - * - * *
      * The details of the VPC network that the source database is located in.
      * 
@@ -4757,25 +4175,18 @@ public Builder setVpcPeeringConnectivity( return this; } /** - * - * *
      * The details of the VPC network that the source database is located in.
      * 
* * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; */ - public Builder mergeVpcPeeringConnectivity( - com.google.cloud.clouddms.v1.VpcPeeringConnectivity value) { + public Builder mergeVpcPeeringConnectivity(com.google.cloud.clouddms.v1.VpcPeeringConnectivity value) { if (vpcPeeringConnectivityBuilder_ == null) { - if (connectivityCase_ == 102 - && connectivity_ - != com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance()) { - connectivity_ = - com.google.cloud.clouddms.v1.VpcPeeringConnectivity.newBuilder( - (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_) - .mergeFrom(value) - .buildPartial(); + if (connectivityCase_ == 102 && + connectivity_ != com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance()) { + connectivity_ = com.google.cloud.clouddms.v1.VpcPeeringConnectivity.newBuilder((com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_) + .mergeFrom(value).buildPartial(); } else { connectivity_ = value; } @@ -4790,8 +4201,6 @@ public Builder mergeVpcPeeringConnectivity( return this; } /** - * - * *
      * The details of the VPC network that the source database is located in.
      * 
@@ -4815,21 +4224,16 @@ public Builder clearVpcPeeringConnectivity() { return this; } /** - * - * *
      * The details of the VPC network that the source database is located in.
      * 
* * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; */ - public com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder - getVpcPeeringConnectivityBuilder() { + public com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder getVpcPeeringConnectivityBuilder() { return getVpcPeeringConnectivityFieldBuilder().getBuilder(); } /** - * - * *
      * The details of the VPC network that the source database is located in.
      * 
@@ -4837,8 +4241,7 @@ public Builder clearVpcPeeringConnectivity() { * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; */ @java.lang.Override - public com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder - getVpcPeeringConnectivityOrBuilder() { + public com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder getVpcPeeringConnectivityOrBuilder() { if ((connectivityCase_ == 102) && (vpcPeeringConnectivityBuilder_ != null)) { return vpcPeeringConnectivityBuilder_.getMessageOrBuilder(); } else { @@ -4849,8 +4252,6 @@ public Builder clearVpcPeeringConnectivity() { } } /** - * - * *
      * The details of the VPC network that the source database is located in.
      * 
@@ -4858,44 +4259,32 @@ public Builder clearVpcPeeringConnectivity() { * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.VpcPeeringConnectivity, - com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder, - com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder> + com.google.cloud.clouddms.v1.VpcPeeringConnectivity, com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder, com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder> getVpcPeeringConnectivityFieldBuilder() { if (vpcPeeringConnectivityBuilder_ == null) { if (!(connectivityCase_ == 102)) { connectivity_ = com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance(); } - vpcPeeringConnectivityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.VpcPeeringConnectivity, - com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder, - com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder>( + vpcPeeringConnectivityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.VpcPeeringConnectivity, com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder, com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder>( (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_, getParentForChildren(), isClean()); connectivity_ = null; } connectivityCase_ = 102; - onChanged(); - ; + onChanged();; return vpcPeeringConnectivityBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.StaticIpConnectivity, - com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder, - com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder> - staticIpConnectivityBuilder_; + com.google.cloud.clouddms.v1.StaticIpConnectivity, com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder, com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder> staticIpConnectivityBuilder_; /** - * - * *
      * static ip connectivity data (default, no additional details needed).
      * 
* * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; - * * @return Whether the staticIpConnectivity field is set. */ @java.lang.Override @@ -4903,14 +4292,11 @@ public boolean hasStaticIpConnectivity() { return connectivityCase_ == 103; } /** - * - * *
      * static ip connectivity data (default, no additional details needed).
      * 
* * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; - * * @return The staticIpConnectivity. */ @java.lang.Override @@ -4928,16 +4314,13 @@ public com.google.cloud.clouddms.v1.StaticIpConnectivity getStaticIpConnectivity } } /** - * - * *
      * static ip connectivity data (default, no additional details needed).
      * 
* * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; */ - public Builder setStaticIpConnectivity( - com.google.cloud.clouddms.v1.StaticIpConnectivity value) { + public Builder setStaticIpConnectivity(com.google.cloud.clouddms.v1.StaticIpConnectivity value) { if (staticIpConnectivityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4951,8 +4334,6 @@ public Builder setStaticIpConnectivity( return this; } /** - * - * *
      * static ip connectivity data (default, no additional details needed).
      * 
@@ -4971,25 +4352,18 @@ public Builder setStaticIpConnectivity( return this; } /** - * - * *
      * static ip connectivity data (default, no additional details needed).
      * 
* * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; */ - public Builder mergeStaticIpConnectivity( - com.google.cloud.clouddms.v1.StaticIpConnectivity value) { + public Builder mergeStaticIpConnectivity(com.google.cloud.clouddms.v1.StaticIpConnectivity value) { if (staticIpConnectivityBuilder_ == null) { - if (connectivityCase_ == 103 - && connectivity_ - != com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance()) { - connectivity_ = - com.google.cloud.clouddms.v1.StaticIpConnectivity.newBuilder( - (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_) - .mergeFrom(value) - .buildPartial(); + if (connectivityCase_ == 103 && + connectivity_ != com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance()) { + connectivity_ = com.google.cloud.clouddms.v1.StaticIpConnectivity.newBuilder((com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_) + .mergeFrom(value).buildPartial(); } else { connectivity_ = value; } @@ -5004,8 +4378,6 @@ public Builder mergeStaticIpConnectivity( return this; } /** - * - * *
      * static ip connectivity data (default, no additional details needed).
      * 
@@ -5029,21 +4401,16 @@ public Builder clearStaticIpConnectivity() { return this; } /** - * - * *
      * static ip connectivity data (default, no additional details needed).
      * 
* * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; */ - public com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder - getStaticIpConnectivityBuilder() { + public com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder getStaticIpConnectivityBuilder() { return getStaticIpConnectivityFieldBuilder().getBuilder(); } /** - * - * *
      * static ip connectivity data (default, no additional details needed).
      * 
@@ -5051,8 +4418,7 @@ public Builder clearStaticIpConnectivity() { * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; */ @java.lang.Override - public com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder - getStaticIpConnectivityOrBuilder() { + public com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder getStaticIpConnectivityOrBuilder() { if ((connectivityCase_ == 103) && (staticIpConnectivityBuilder_ != null)) { return staticIpConnectivityBuilder_.getMessageOrBuilder(); } else { @@ -5063,8 +4429,6 @@ public Builder clearStaticIpConnectivity() { } } /** - * - * *
      * static ip connectivity data (default, no additional details needed).
      * 
@@ -5072,63 +4436,46 @@ public Builder clearStaticIpConnectivity() { * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.StaticIpConnectivity, - com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder, - com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder> + com.google.cloud.clouddms.v1.StaticIpConnectivity, com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder, com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder> getStaticIpConnectivityFieldBuilder() { if (staticIpConnectivityBuilder_ == null) { if (!(connectivityCase_ == 103)) { connectivity_ = com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance(); } - staticIpConnectivityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.StaticIpConnectivity, - com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder, - com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder>( + staticIpConnectivityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.StaticIpConnectivity, com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder, com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder>( (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_, getParentForChildren(), isClean()); connectivity_ = null; } connectivityCase_ = 103; - onChanged(); - ; + onChanged();; return staticIpConnectivityBuilder_; } private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - durationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; /** - * - * *
      * Output only. The duration of the migration job (in seconds). A duration in seconds
      * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the duration field is set. */ public boolean hasDuration() { return durationBuilder_ != null || duration_ != null; } /** - * - * *
      * Output only. The duration of the migration job (in seconds). A duration in seconds
      * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -5139,15 +4486,12 @@ public com.google.protobuf.Duration getDuration() { } } /** - * - * *
      * Output only. The duration of the migration job (in seconds). A duration in seconds
      * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { @@ -5163,17 +4507,15 @@ public Builder setDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Output only. The duration of the migration job (in seconds). A duration in seconds
      * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); onChanged(); @@ -5184,21 +4526,18 @@ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) return this; } /** - * - * *
      * Output only. The duration of the migration job (in seconds). A duration in seconds
      * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (duration_ != null) { duration_ = - com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); } else { duration_ = value; } @@ -5210,15 +4549,12 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Output only. The duration of the migration job (in seconds). A duration in seconds
      * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDuration() { if (durationBuilder_ == null) { @@ -5232,62 +4568,51 @@ public Builder clearDuration() { return this; } /** - * - * *
      * Output only. The duration of the migration job (in seconds). A duration in seconds
      * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Duration.Builder getDurationBuilder() { - + onChanged(); return getDurationFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The duration of the migration job (in seconds). A duration in seconds
      * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** - * - * *
      * Output only. The duration of the migration job (in seconds). A duration in seconds
      * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getDurationFieldBuilder() { if (durationBuilder_ == null) { - durationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getDuration(), getParentForChildren(), isClean()); + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); duration_ = null; } return durationBuilder_; @@ -5295,31 +4620,24 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; /** - * - * *
      * Output only. The error details in case of state FAILED.
      * 
* * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** - * - * *
      * Output only. The error details in case of state FAILED.
      * 
* * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The error. */ public com.google.rpc.Status getError() { @@ -5330,8 +4648,6 @@ public com.google.rpc.Status getError() { } } /** - * - * *
      * Output only. The error details in case of state FAILED.
      * 
@@ -5352,15 +4668,14 @@ public Builder setError(com.google.rpc.Status value) { return this; } /** - * - * *
      * Output only. The error details in case of state FAILED.
      * 
* * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setError(com.google.rpc.Status.Builder builderForValue) { + public Builder setError( + com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); @@ -5371,8 +4686,6 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
      * Output only. The error details in case of state FAILED.
      * 
@@ -5382,7 +4695,8 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { if (error_ != null) { - error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + error_ = + com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } @@ -5394,8 +4708,6 @@ public Builder mergeError(com.google.rpc.Status value) { return this; } /** - * - * *
      * Output only. The error details in case of state FAILED.
      * 
@@ -5414,8 +4726,6 @@ public Builder clearError() { return this; } /** - * - * *
      * Output only. The error details in case of state FAILED.
      * 
@@ -5423,13 +4733,11 @@ public Builder clearError() { * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - + onChanged(); return getErrorFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The error details in case of state FAILED.
      * 
@@ -5440,12 +4748,11 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { - return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + return error_ == null ? + com.google.rpc.Status.getDefaultInstance() : error_; } } /** - * - * *
      * Output only. The error details in case of state FAILED.
      * 
@@ -5453,14 +4760,14 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getErrorFieldBuilder() { if (errorBuilder_ == null) { - errorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getError(), + getParentForChildren(), + isClean()); error_ = null; } return errorBuilder_; @@ -5468,47 +4775,34 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { private com.google.cloud.clouddms.v1.DatabaseType sourceDatabase_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.DatabaseType, - com.google.cloud.clouddms.v1.DatabaseType.Builder, - com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder> - sourceDatabaseBuilder_; + com.google.cloud.clouddms.v1.DatabaseType, com.google.cloud.clouddms.v1.DatabaseType.Builder, com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder> sourceDatabaseBuilder_; /** - * - * *
      * The database engine type and provider of the source.
      * 
* * .google.cloud.clouddms.v1.DatabaseType source_database = 14; - * * @return Whether the sourceDatabase field is set. */ public boolean hasSourceDatabase() { return sourceDatabaseBuilder_ != null || sourceDatabase_ != null; } /** - * - * *
      * The database engine type and provider of the source.
      * 
* * .google.cloud.clouddms.v1.DatabaseType source_database = 14; - * * @return The sourceDatabase. */ public com.google.cloud.clouddms.v1.DatabaseType getSourceDatabase() { if (sourceDatabaseBuilder_ == null) { - return sourceDatabase_ == null - ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() - : sourceDatabase_; + return sourceDatabase_ == null ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() : sourceDatabase_; } else { return sourceDatabaseBuilder_.getMessage(); } } /** - * - * *
      * The database engine type and provider of the source.
      * 
@@ -5529,8 +4823,6 @@ public Builder setSourceDatabase(com.google.cloud.clouddms.v1.DatabaseType value return this; } /** - * - * *
      * The database engine type and provider of the source.
      * 
@@ -5549,8 +4841,6 @@ public Builder setSourceDatabase( return this; } /** - * - * *
      * The database engine type and provider of the source.
      * 
@@ -5561,9 +4851,7 @@ public Builder mergeSourceDatabase(com.google.cloud.clouddms.v1.DatabaseType val if (sourceDatabaseBuilder_ == null) { if (sourceDatabase_ != null) { sourceDatabase_ = - com.google.cloud.clouddms.v1.DatabaseType.newBuilder(sourceDatabase_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.clouddms.v1.DatabaseType.newBuilder(sourceDatabase_).mergeFrom(value).buildPartial(); } else { sourceDatabase_ = value; } @@ -5575,8 +4863,6 @@ public Builder mergeSourceDatabase(com.google.cloud.clouddms.v1.DatabaseType val return this; } /** - * - * *
      * The database engine type and provider of the source.
      * 
@@ -5595,8 +4881,6 @@ public Builder clearSourceDatabase() { return this; } /** - * - * *
      * The database engine type and provider of the source.
      * 
@@ -5604,13 +4888,11 @@ public Builder clearSourceDatabase() { * .google.cloud.clouddms.v1.DatabaseType source_database = 14; */ public com.google.cloud.clouddms.v1.DatabaseType.Builder getSourceDatabaseBuilder() { - + onChanged(); return getSourceDatabaseFieldBuilder().getBuilder(); } /** - * - * *
      * The database engine type and provider of the source.
      * 
@@ -5621,14 +4903,11 @@ public com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder getSourceDatabaseOrBui if (sourceDatabaseBuilder_ != null) { return sourceDatabaseBuilder_.getMessageOrBuilder(); } else { - return sourceDatabase_ == null - ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() - : sourceDatabase_; + return sourceDatabase_ == null ? + com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() : sourceDatabase_; } } /** - * - * *
      * The database engine type and provider of the source.
      * 
@@ -5636,17 +4915,14 @@ public com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder getSourceDatabaseOrBui * .google.cloud.clouddms.v1.DatabaseType source_database = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.DatabaseType, - com.google.cloud.clouddms.v1.DatabaseType.Builder, - com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder> + com.google.cloud.clouddms.v1.DatabaseType, com.google.cloud.clouddms.v1.DatabaseType.Builder, com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder> getSourceDatabaseFieldBuilder() { if (sourceDatabaseBuilder_ == null) { - sourceDatabaseBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.DatabaseType, - com.google.cloud.clouddms.v1.DatabaseType.Builder, - com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder>( - getSourceDatabase(), getParentForChildren(), isClean()); + sourceDatabaseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.DatabaseType, com.google.cloud.clouddms.v1.DatabaseType.Builder, com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder>( + getSourceDatabase(), + getParentForChildren(), + isClean()); sourceDatabase_ = null; } return sourceDatabaseBuilder_; @@ -5654,47 +4930,34 @@ public com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder getSourceDatabaseOrBui private com.google.cloud.clouddms.v1.DatabaseType destinationDatabase_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.DatabaseType, - com.google.cloud.clouddms.v1.DatabaseType.Builder, - com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder> - destinationDatabaseBuilder_; + com.google.cloud.clouddms.v1.DatabaseType, com.google.cloud.clouddms.v1.DatabaseType.Builder, com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder> destinationDatabaseBuilder_; /** - * - * *
      * The database engine type and provider of the destination.
      * 
* * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; - * * @return Whether the destinationDatabase field is set. */ public boolean hasDestinationDatabase() { return destinationDatabaseBuilder_ != null || destinationDatabase_ != null; } /** - * - * *
      * The database engine type and provider of the destination.
      * 
* * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; - * * @return The destinationDatabase. */ public com.google.cloud.clouddms.v1.DatabaseType getDestinationDatabase() { if (destinationDatabaseBuilder_ == null) { - return destinationDatabase_ == null - ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() - : destinationDatabase_; + return destinationDatabase_ == null ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() : destinationDatabase_; } else { return destinationDatabaseBuilder_.getMessage(); } } /** - * - * *
      * The database engine type and provider of the destination.
      * 
@@ -5715,8 +4978,6 @@ public Builder setDestinationDatabase(com.google.cloud.clouddms.v1.DatabaseType return this; } /** - * - * *
      * The database engine type and provider of the destination.
      * 
@@ -5735,8 +4996,6 @@ public Builder setDestinationDatabase( return this; } /** - * - * *
      * The database engine type and provider of the destination.
      * 
@@ -5747,9 +5006,7 @@ public Builder mergeDestinationDatabase(com.google.cloud.clouddms.v1.DatabaseTyp if (destinationDatabaseBuilder_ == null) { if (destinationDatabase_ != null) { destinationDatabase_ = - com.google.cloud.clouddms.v1.DatabaseType.newBuilder(destinationDatabase_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.clouddms.v1.DatabaseType.newBuilder(destinationDatabase_).mergeFrom(value).buildPartial(); } else { destinationDatabase_ = value; } @@ -5761,8 +5018,6 @@ public Builder mergeDestinationDatabase(com.google.cloud.clouddms.v1.DatabaseTyp return this; } /** - * - * *
      * The database engine type and provider of the destination.
      * 
@@ -5781,8 +5036,6 @@ public Builder clearDestinationDatabase() { return this; } /** - * - * *
      * The database engine type and provider of the destination.
      * 
@@ -5790,13 +5043,11 @@ public Builder clearDestinationDatabase() { * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; */ public com.google.cloud.clouddms.v1.DatabaseType.Builder getDestinationDatabaseBuilder() { - + onChanged(); return getDestinationDatabaseFieldBuilder().getBuilder(); } /** - * - * *
      * The database engine type and provider of the destination.
      * 
@@ -5807,14 +5058,11 @@ public com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder getDestinationDatabase if (destinationDatabaseBuilder_ != null) { return destinationDatabaseBuilder_.getMessageOrBuilder(); } else { - return destinationDatabase_ == null - ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() - : destinationDatabase_; + return destinationDatabase_ == null ? + com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() : destinationDatabase_; } } /** - * - * *
      * The database engine type and provider of the destination.
      * 
@@ -5822,17 +5070,14 @@ public com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder getDestinationDatabase * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.DatabaseType, - com.google.cloud.clouddms.v1.DatabaseType.Builder, - com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder> + com.google.cloud.clouddms.v1.DatabaseType, com.google.cloud.clouddms.v1.DatabaseType.Builder, com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder> getDestinationDatabaseFieldBuilder() { if (destinationDatabaseBuilder_ == null) { - destinationDatabaseBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.DatabaseType, - com.google.cloud.clouddms.v1.DatabaseType.Builder, - com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder>( - getDestinationDatabase(), getParentForChildren(), isClean()); + destinationDatabaseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.DatabaseType, com.google.cloud.clouddms.v1.DatabaseType.Builder, com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder>( + getDestinationDatabase(), + getParentForChildren(), + isClean()); destinationDatabase_ = null; } return destinationDatabaseBuilder_; @@ -5840,35 +5085,24 @@ public com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder getDestinationDatabase 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. If the migration job is completed, the time when it was completed.
      * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Output only. If the migration job is completed, the time when it was completed.
      * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -5879,14 +5113,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. If the migration job is completed, the time when it was completed.
      * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -5902,16 +5133,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. If the migration job is completed, the time when it was completed.
      * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 16 [(.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(); @@ -5922,20 +5151,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. If the migration job is completed, the time when it was completed.
      * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 16 [(.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; } @@ -5947,14 +5173,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. If the migration job is completed, the time when it was completed.
      * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -5968,66 +5191,55 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. If the migration job is completed, the time when it was completed.
      * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. If the migration job is completed, the time when it was completed.
      * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 16 [(.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. If the migration job is completed, the time when it was completed.
      * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 16 [(.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_; } - @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); } @@ -6037,12 +5249,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.MigrationJob) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.MigrationJob) private static final com.google.cloud.clouddms.v1.MigrationJob DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.MigrationJob(); } @@ -6051,16 +5263,16 @@ public static com.google.cloud.clouddms.v1.MigrationJob getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MigrationJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MigrationJob(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MigrationJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MigrationJob(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6075,4 +5287,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.MigrationJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobName.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobName.java similarity index 100% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobName.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobName.java diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobOrBuilder.java similarity index 83% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobOrBuilder.java index a376a31d..505ed9b6 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobOrBuilder.java @@ -1,146 +1,101 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; -public interface MigrationJobOrBuilder - extends +public interface MigrationJobOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.MigrationJob) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name (URI) of this migration job resource, in the form of:
    * projects/{project}/locations/{location}/instances/{instance}.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name (URI) of this migration job resource, in the form of:
    * projects/{project}/locations/{location}/instances/{instance}.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The timestamp when the migration job resource was created.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The timestamp when the migration job resource was created.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The timestamp when the migration job resource was created.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The timestamp when the migration job resource was last updated.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The timestamp when the migration job resource was last updated.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The timestamp when the migration job resource was last updated.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * The resource labels for migration job to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -152,8 +107,6 @@ public interface MigrationJobOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * The resource labels for migration job to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -163,13 +116,15 @@ public interface MigrationJobOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * The resource labels for migration job to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -179,10 +134,9 @@ public interface MigrationJobOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * The resource labels for migration job to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -192,10 +146,11 @@ public interface MigrationJobOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * The resource labels for migration job to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -205,222 +160,170 @@ public interface MigrationJobOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * The migration job display name.
    * 
* * string display_name = 5; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * The migration job display name.
    * 
* * string display_name = 5; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * The current migration job state.
    * 
* * .google.cloud.clouddms.v1.MigrationJob.State state = 6; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The current migration job state.
    * 
* * .google.cloud.clouddms.v1.MigrationJob.State state = 6; - * * @return The state. */ com.google.cloud.clouddms.v1.MigrationJob.State getState(); /** - * - * *
    * Output only. The current migration job phase.
    * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for phase. */ int getPhaseValue(); /** - * - * *
    * Output only. The current migration job phase.
    * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The phase. */ com.google.cloud.clouddms.v1.MigrationJob.Phase getPhase(); /** - * - * *
    * Required. The migration job type.
    * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
    * Required. The migration job type.
    * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; * @return The type. */ com.google.cloud.clouddms.v1.MigrationJob.Type getType(); /** - * - * *
    * The path to the dump file in Google Cloud Storage,
    * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
    * 
* * string dump_path = 9; - * * @return The dumpPath. */ java.lang.String getDumpPath(); /** - * - * *
    * The path to the dump file in Google Cloud Storage,
    * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
    * 
* * string dump_path = 9; - * * @return The bytes for dumpPath. */ - com.google.protobuf.ByteString getDumpPathBytes(); + com.google.protobuf.ByteString + getDumpPathBytes(); /** - * - * *
    * Required. The resource name (URI) of the source connection profile.
    * 
* * string source = 10 [(.google.api.field_behavior) = REQUIRED]; - * * @return The source. */ java.lang.String getSource(); /** - * - * *
    * Required. The resource name (URI) of the source connection profile.
    * 
* * string source = 10 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for source. */ - com.google.protobuf.ByteString getSourceBytes(); + com.google.protobuf.ByteString + getSourceBytes(); /** - * - * *
    * Required. The resource name (URI) of the destination connection profile.
    * 
* * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; - * * @return The destination. */ java.lang.String getDestination(); /** - * - * *
    * Required. The resource name (URI) of the destination connection profile.
    * 
* * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for destination. */ - com.google.protobuf.ByteString getDestinationBytes(); + com.google.protobuf.ByteString + getDestinationBytes(); /** - * - * *
    * The details needed to communicate to the source over Reverse SSH
    * tunnel connectivity.
    * 
* * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; - * * @return Whether the reverseSshConnectivity field is set. */ boolean hasReverseSshConnectivity(); /** - * - * *
    * The details needed to communicate to the source over Reverse SSH
    * tunnel connectivity.
    * 
* * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; - * * @return The reverseSshConnectivity. */ com.google.cloud.clouddms.v1.ReverseSshConnectivity getReverseSshConnectivity(); /** - * - * *
    * The details needed to communicate to the source over Reverse SSH
    * tunnel connectivity.
@@ -431,32 +334,24 @@ public interface MigrationJobOrBuilder
   com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder getReverseSshConnectivityOrBuilder();
 
   /**
-   *
-   *
    * 
    * The details of the VPC network that the source database is located in.
    * 
* * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; - * * @return Whether the vpcPeeringConnectivity field is set. */ boolean hasVpcPeeringConnectivity(); /** - * - * *
    * The details of the VPC network that the source database is located in.
    * 
* * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; - * * @return The vpcPeeringConnectivity. */ com.google.cloud.clouddms.v1.VpcPeeringConnectivity getVpcPeeringConnectivity(); /** - * - * *
    * The details of the VPC network that the source database is located in.
    * 
@@ -466,32 +361,24 @@ public interface MigrationJobOrBuilder com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder getVpcPeeringConnectivityOrBuilder(); /** - * - * *
    * static ip connectivity data (default, no additional details needed).
    * 
* * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; - * * @return Whether the staticIpConnectivity field is set. */ boolean hasStaticIpConnectivity(); /** - * - * *
    * static ip connectivity data (default, no additional details needed).
    * 
* * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; - * * @return The staticIpConnectivity. */ com.google.cloud.clouddms.v1.StaticIpConnectivity getStaticIpConnectivity(); /** - * - * *
    * static ip connectivity data (default, no additional details needed).
    * 
@@ -501,73 +388,54 @@ public interface MigrationJobOrBuilder com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder getStaticIpConnectivityOrBuilder(); /** - * - * *
    * Output only. The duration of the migration job (in seconds). A duration in seconds
    * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
    * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the duration field is set. */ boolean hasDuration(); /** - * - * *
    * Output only. The duration of the migration job (in seconds). A duration in seconds
    * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
    * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The duration. */ com.google.protobuf.Duration getDuration(); /** - * - * *
    * Output only. The duration of the migration job (in seconds). A duration in seconds
    * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
    * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); /** - * - * *
    * Output only. The error details in case of state FAILED.
    * 
* * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
    * Output only. The error details in case of state FAILED.
    * 
* * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The error. */ com.google.rpc.Status getError(); /** - * - * *
    * Output only. The error details in case of state FAILED.
    * 
@@ -577,32 +445,24 @@ public interface MigrationJobOrBuilder com.google.rpc.StatusOrBuilder getErrorOrBuilder(); /** - * - * *
    * The database engine type and provider of the source.
    * 
* * .google.cloud.clouddms.v1.DatabaseType source_database = 14; - * * @return Whether the sourceDatabase field is set. */ boolean hasSourceDatabase(); /** - * - * *
    * The database engine type and provider of the source.
    * 
* * .google.cloud.clouddms.v1.DatabaseType source_database = 14; - * * @return The sourceDatabase. */ com.google.cloud.clouddms.v1.DatabaseType getSourceDatabase(); /** - * - * *
    * The database engine type and provider of the source.
    * 
@@ -612,32 +472,24 @@ public interface MigrationJobOrBuilder com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder getSourceDatabaseOrBuilder(); /** - * - * *
    * The database engine type and provider of the destination.
    * 
* * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; - * * @return Whether the destinationDatabase field is set. */ boolean hasDestinationDatabase(); /** - * - * *
    * The database engine type and provider of the destination.
    * 
* * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; - * * @return The destinationDatabase. */ com.google.cloud.clouddms.v1.DatabaseType getDestinationDatabase(); /** - * - * *
    * The database engine type and provider of the destination.
    * 
@@ -647,40 +499,29 @@ public interface MigrationJobOrBuilder com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder getDestinationDatabaseOrBuilder(); /** - * - * *
    * Output only. If the migration job is completed, the time when it was completed.
    * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. If the migration job is completed, the time when it was completed.
    * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. If the migration job is completed, the time when it was completed.
    * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationError.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationError.java similarity index 71% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationError.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationError.java index c6366a75..416ec9c1 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationError.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationError.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/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * Error message of a verification Migration job.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.MigrationJobVerificationError} */ -public final class MigrationJobVerificationError extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MigrationJobVerificationError extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.MigrationJobVerificationError) MigrationJobVerificationErrorOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MigrationJobVerificationError.newBuilder() to construct. private MigrationJobVerificationError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MigrationJobVerificationError() { errorCode_ = 0; errorMessage_ = ""; @@ -45,15 +27,16 @@ private MigrationJobVerificationError() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MigrationJobVerificationError(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private MigrationJobVerificationError( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,74 +55,66 @@ private MigrationJobVerificationError( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - errorCode_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + errorCode_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - errorMessage_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + errorMessage_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - errorDetailMessage_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + errorDetailMessage_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.MigrationJobVerificationError.class, - com.google.cloud.clouddms.v1.MigrationJobVerificationError.Builder.class); + com.google.cloud.clouddms.v1.MigrationJobVerificationError.class, com.google.cloud.clouddms.v1.MigrationJobVerificationError.Builder.class); } /** - * - * *
    * A general error code describing the type of error that occurred.
    * 
* * Protobuf enum {@code google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode} */ - public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { + public enum ErrorCode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * An unknown error occurred
      * 
@@ -148,8 +123,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ ERROR_CODE_UNSPECIFIED(0), /** - * - * *
      * We failed to connect to one of the connection profile.
      * 
@@ -158,8 +131,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ CONNECTION_FAILURE(1), /** - * - * *
      * We failed to authenticate to one of the connection profile.
      * 
@@ -168,8 +139,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ AUTHENTICATION_FAILURE(2), /** - * - * *
      * One of the involved connection profiles has an invalid configuration.
      * 
@@ -178,8 +147,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ INVALID_CONNECTION_PROFILE_CONFIG(3), /** - * - * *
      * The versions of the source and the destination are incompatible.
      * 
@@ -188,8 +155,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ VERSION_INCOMPATIBILITY(4), /** - * - * *
      * The types of the source and the destination are incompatible.
      * 
@@ -198,8 +163,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ CONNECTION_PROFILE_TYPES_INCOMPATIBILITY(5), /** - * - * *
      * No pglogical extension installed on databases, applicable for postgres.
      * 
@@ -208,8 +171,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ NO_PGLOGICAL_INSTALLED(7), /** - * - * *
      * pglogical node already exists on databases, applicable for postgres.
      * 
@@ -218,8 +179,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ PGLOGICAL_NODE_ALREADY_EXISTS(8), /** - * - * *
      * The value of parameter wal_level is not set to logical.
      * 
@@ -228,8 +187,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ INVALID_WAL_LEVEL(9), /** - * - * *
      * The value of parameter shared_preload_libraries does not include
      * pglogical.
@@ -239,8 +196,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum {
      */
     INVALID_SHARED_PRELOAD_LIBRARY(10),
     /**
-     *
-     *
      * 
      * The value of parameter max_replication_slots is not sufficient.
      * 
@@ -249,8 +204,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ INSUFFICIENT_MAX_REPLICATION_SLOTS(11), /** - * - * *
      * The value of parameter max_wal_senders is not sufficient.
      * 
@@ -259,8 +212,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ INSUFFICIENT_MAX_WAL_SENDERS(12), /** - * - * *
      * The value of parameter max_worker_processes is not sufficient.
      * 
@@ -269,8 +220,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ INSUFFICIENT_MAX_WORKER_PROCESSES(13), /** - * - * *
      * Extensions installed are either not supported or having unsupported
      * versions.
@@ -280,8 +229,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum {
      */
     UNSUPPORTED_EXTENSIONS(14),
     /**
-     *
-     *
      * 
      * Unsupported migration type.
      * 
@@ -290,8 +237,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ UNSUPPORTED_MIGRATION_TYPE(15), /** - * - * *
      * Invalid RDS logical replication.
      * 
@@ -300,8 +245,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ INVALID_RDS_LOGICAL_REPLICATION(16), /** - * - * *
      * The gtid_mode is not supported, applicable for MySQL.
      * 
@@ -310,8 +253,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ UNSUPPORTED_GTID_MODE(17), /** - * - * *
      * The table definition is not support due to missing primary key or replica
      * identity.
@@ -321,8 +262,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum {
      */
     UNSUPPORTED_TABLE_DEFINITION(18),
     /**
-     *
-     *
      * 
      * The definer is not supported.
      * 
@@ -331,8 +270,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ UNSUPPORTED_DEFINER(19), /** - * - * *
      * Migration is already running at the time of restart request.
      * 
@@ -344,8 +281,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * An unknown error occurred
      * 
@@ -354,8 +289,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * We failed to connect to one of the connection profile.
      * 
@@ -364,8 +297,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONNECTION_FAILURE_VALUE = 1; /** - * - * *
      * We failed to authenticate to one of the connection profile.
      * 
@@ -374,8 +305,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AUTHENTICATION_FAILURE_VALUE = 2; /** - * - * *
      * One of the involved connection profiles has an invalid configuration.
      * 
@@ -384,8 +313,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INVALID_CONNECTION_PROFILE_CONFIG_VALUE = 3; /** - * - * *
      * The versions of the source and the destination are incompatible.
      * 
@@ -394,8 +321,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VERSION_INCOMPATIBILITY_VALUE = 4; /** - * - * *
      * The types of the source and the destination are incompatible.
      * 
@@ -404,8 +329,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONNECTION_PROFILE_TYPES_INCOMPATIBILITY_VALUE = 5; /** - * - * *
      * No pglogical extension installed on databases, applicable for postgres.
      * 
@@ -414,8 +337,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NO_PGLOGICAL_INSTALLED_VALUE = 7; /** - * - * *
      * pglogical node already exists on databases, applicable for postgres.
      * 
@@ -424,8 +345,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PGLOGICAL_NODE_ALREADY_EXISTS_VALUE = 8; /** - * - * *
      * The value of parameter wal_level is not set to logical.
      * 
@@ -434,8 +353,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INVALID_WAL_LEVEL_VALUE = 9; /** - * - * *
      * The value of parameter shared_preload_libraries does not include
      * pglogical.
@@ -445,8 +362,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int INVALID_SHARED_PRELOAD_LIBRARY_VALUE = 10;
     /**
-     *
-     *
      * 
      * The value of parameter max_replication_slots is not sufficient.
      * 
@@ -455,8 +370,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INSUFFICIENT_MAX_REPLICATION_SLOTS_VALUE = 11; /** - * - * *
      * The value of parameter max_wal_senders is not sufficient.
      * 
@@ -465,8 +378,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INSUFFICIENT_MAX_WAL_SENDERS_VALUE = 12; /** - * - * *
      * The value of parameter max_worker_processes is not sufficient.
      * 
@@ -475,8 +386,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INSUFFICIENT_MAX_WORKER_PROCESSES_VALUE = 13; /** - * - * *
      * Extensions installed are either not supported or having unsupported
      * versions.
@@ -486,8 +395,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int UNSUPPORTED_EXTENSIONS_VALUE = 14;
     /**
-     *
-     *
      * 
      * Unsupported migration type.
      * 
@@ -496,8 +403,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNSUPPORTED_MIGRATION_TYPE_VALUE = 15; /** - * - * *
      * Invalid RDS logical replication.
      * 
@@ -506,8 +411,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INVALID_RDS_LOGICAL_REPLICATION_VALUE = 16; /** - * - * *
      * The gtid_mode is not supported, applicable for MySQL.
      * 
@@ -516,8 +419,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNSUPPORTED_GTID_MODE_VALUE = 17; /** - * - * *
      * The table definition is not support due to missing primary key or replica
      * identity.
@@ -527,8 +428,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int UNSUPPORTED_TABLE_DEFINITION_VALUE = 18;
     /**
-     *
-     *
      * 
      * The definer is not supported.
      * 
@@ -537,8 +436,6 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNSUPPORTED_DEFINER_VALUE = 19; /** - * - * *
      * Migration is already running at the time of restart request.
      * 
@@ -547,6 +444,7 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANT_RESTART_RUNNING_MIGRATION_VALUE = 21; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -571,85 +469,66 @@ public static ErrorCode valueOf(int value) { */ public static ErrorCode forNumber(int value) { switch (value) { - case 0: - return ERROR_CODE_UNSPECIFIED; - case 1: - return CONNECTION_FAILURE; - case 2: - return AUTHENTICATION_FAILURE; - case 3: - return INVALID_CONNECTION_PROFILE_CONFIG; - case 4: - return VERSION_INCOMPATIBILITY; - case 5: - return CONNECTION_PROFILE_TYPES_INCOMPATIBILITY; - case 7: - return NO_PGLOGICAL_INSTALLED; - case 8: - return PGLOGICAL_NODE_ALREADY_EXISTS; - case 9: - return INVALID_WAL_LEVEL; - case 10: - return INVALID_SHARED_PRELOAD_LIBRARY; - case 11: - return INSUFFICIENT_MAX_REPLICATION_SLOTS; - case 12: - return INSUFFICIENT_MAX_WAL_SENDERS; - case 13: - return INSUFFICIENT_MAX_WORKER_PROCESSES; - case 14: - return UNSUPPORTED_EXTENSIONS; - case 15: - return UNSUPPORTED_MIGRATION_TYPE; - case 16: - return INVALID_RDS_LOGICAL_REPLICATION; - case 17: - return UNSUPPORTED_GTID_MODE; - case 18: - return UNSUPPORTED_TABLE_DEFINITION; - case 19: - return UNSUPPORTED_DEFINER; - case 21: - return CANT_RESTART_RUNNING_MIGRATION; - default: - return null; + case 0: return ERROR_CODE_UNSPECIFIED; + case 1: return CONNECTION_FAILURE; + case 2: return AUTHENTICATION_FAILURE; + case 3: return INVALID_CONNECTION_PROFILE_CONFIG; + case 4: return VERSION_INCOMPATIBILITY; + case 5: return CONNECTION_PROFILE_TYPES_INCOMPATIBILITY; + case 7: return NO_PGLOGICAL_INSTALLED; + case 8: return PGLOGICAL_NODE_ALREADY_EXISTS; + case 9: return INVALID_WAL_LEVEL; + case 10: return INVALID_SHARED_PRELOAD_LIBRARY; + case 11: return INSUFFICIENT_MAX_REPLICATION_SLOTS; + case 12: return INSUFFICIENT_MAX_WAL_SENDERS; + case 13: return INSUFFICIENT_MAX_WORKER_PROCESSES; + case 14: return UNSUPPORTED_EXTENSIONS; + case 15: return UNSUPPORTED_MIGRATION_TYPE; + case 16: return INVALID_RDS_LOGICAL_REPLICATION; + case 17: return UNSUPPORTED_GTID_MODE; + case 18: return UNSUPPORTED_TABLE_DEFINITION; + case 19: return UNSUPPORTED_DEFINER; + case 21: return CANT_RESTART_RUNNING_MIGRATION; + 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< + ErrorCode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ErrorCode findValueByNumber(int number) { + return ErrorCode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ErrorCode findValueByNumber(int number) { - return ErrorCode.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.clouddms.v1.MigrationJobVerificationError.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.MigrationJobVerificationError.getDescriptor().getEnumTypes().get(0); } private static final ErrorCode[] VALUES = values(); - public static ErrorCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ErrorCode 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; @@ -669,56 +548,38 @@ private ErrorCode(int value) { public static final int ERROR_CODE_FIELD_NUMBER = 1; private int errorCode_; /** - * - * *
    * Output only. An instance of ErrorCode specifying the error that occurred.
    * 
* - * - * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for errorCode. */ - @java.lang.Override - public int getErrorCodeValue() { + @java.lang.Override public int getErrorCodeValue() { return errorCode_; } /** - * - * *
    * Output only. An instance of ErrorCode specifying the error that occurred.
    * 
* - * - * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The errorCode. */ - @java.lang.Override - public com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode getErrorCode() { + @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode getErrorCode() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode result = - com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode.valueOf(errorCode_); - return result == null - ? com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode.UNRECOGNIZED - : result; + com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode result = com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode.valueOf(errorCode_); + return result == null ? com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode.UNRECOGNIZED : result; } public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object errorMessage_; /** - * - * *
    * Output only. A formatted message with further details about the error and a CTA.
    * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The errorMessage. */ @java.lang.Override @@ -727,29 +588,29 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** - * - * *
    * Output only. A formatted message with further details about the error and a CTA.
    * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -760,14 +621,11 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { public static final int ERROR_DETAIL_MESSAGE_FIELD_NUMBER = 3; private volatile java.lang.Object errorDetailMessage_; /** - * - * *
    * Output only. A specific detailed error message, if supplied by the engine.
    * 
* * string error_detail_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The errorDetailMessage. */ @java.lang.Override @@ -776,29 +634,29 @@ public java.lang.String getErrorDetailMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorDetailMessage_ = s; return s; } } /** - * - * *
    * Output only. A specific detailed error message, if supplied by the engine.
    * 
* * string error_detail_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for errorDetailMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getErrorDetailMessageBytes() { + public com.google.protobuf.ByteString + getErrorDetailMessageBytes() { java.lang.Object ref = errorDetailMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorDetailMessage_ = b; return b; } else { @@ -807,7 +665,6 @@ public com.google.protobuf.ByteString getErrorDetailMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -819,11 +676,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (errorCode_ - != com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode - .ERROR_CODE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (errorCode_ != com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode.ERROR_CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, errorCode_); } if (!getErrorMessageBytes().isEmpty()) { @@ -841,11 +696,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (errorCode_ - != com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode - .ERROR_CODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, errorCode_); + if (errorCode_ != com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode.ERROR_CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, errorCode_); } if (!getErrorMessageBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); @@ -861,17 +714,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.clouddms.v1.MigrationJobVerificationError)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.MigrationJobVerificationError other = - (com.google.cloud.clouddms.v1.MigrationJobVerificationError) obj; + com.google.cloud.clouddms.v1.MigrationJobVerificationError other = (com.google.cloud.clouddms.v1.MigrationJobVerificationError) obj; if (errorCode_ != other.errorCode_) return false; - if (!getErrorMessage().equals(other.getErrorMessage())) return false; - if (!getErrorDetailMessage().equals(other.getErrorDetailMessage())) return false; + if (!getErrorMessage() + .equals(other.getErrorMessage())) return false; + if (!getErrorDetailMessage() + .equals(other.getErrorDetailMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -895,127 +749,117 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.MigrationJobVerificationError 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.clouddms.v1.MigrationJobVerificationError 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.clouddms.v1.MigrationJobVerificationError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.MigrationJobVerificationError 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.clouddms.v1.MigrationJobVerificationError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.MigrationJobVerificationError 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.clouddms.v1.MigrationJobVerificationError parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.MigrationJobVerificationError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.MigrationJobVerificationError 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.clouddms.v1.MigrationJobVerificationError parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.MigrationJobVerificationError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.MigrationJobVerificationError 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.clouddms.v1.MigrationJobVerificationError 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.clouddms.v1.MigrationJobVerificationError 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.clouddms.v1.MigrationJobVerificationError prototype) { + public static Builder newBuilder(com.google.cloud.clouddms.v1.MigrationJobVerificationError 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; } /** - * - * *
    * Error message of a verification Migration job.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.MigrationJobVerificationError} */ - 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.clouddms.v1.MigrationJobVerificationError) com.google.cloud.clouddms.v1.MigrationJobVerificationErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.MigrationJobVerificationError.class, - com.google.cloud.clouddms.v1.MigrationJobVerificationError.Builder.class); + com.google.cloud.clouddms.v1.MigrationJobVerificationError.class, com.google.cloud.clouddms.v1.MigrationJobVerificationError.Builder.class); } // Construct using com.google.cloud.clouddms.v1.MigrationJobVerificationError.newBuilder() @@ -1023,15 +867,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1045,9 +890,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_descriptor; } @java.lang.Override @@ -1066,8 +911,7 @@ public com.google.cloud.clouddms.v1.MigrationJobVerificationError build() { @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJobVerificationError buildPartial() { - com.google.cloud.clouddms.v1.MigrationJobVerificationError result = - new com.google.cloud.clouddms.v1.MigrationJobVerificationError(this); + com.google.cloud.clouddms.v1.MigrationJobVerificationError result = new com.google.cloud.clouddms.v1.MigrationJobVerificationError(this); result.errorCode_ = errorCode_; result.errorMessage_ = errorMessage_; result.errorDetailMessage_ = errorDetailMessage_; @@ -1079,39 +923,38 @@ public com.google.cloud.clouddms.v1.MigrationJobVerificationError 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.clouddms.v1.MigrationJobVerificationError) { - return mergeFrom((com.google.cloud.clouddms.v1.MigrationJobVerificationError) other); + return mergeFrom((com.google.cloud.clouddms.v1.MigrationJobVerificationError)other); } else { super.mergeFrom(other); return this; @@ -1119,8 +962,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.MigrationJobVerificationError other) { - if (other == com.google.cloud.clouddms.v1.MigrationJobVerificationError.getDefaultInstance()) - return this; + if (other == com.google.cloud.clouddms.v1.MigrationJobVerificationError.getDefaultInstance()) return this; if (other.errorCode_ != 0) { setErrorCodeValue(other.getErrorCodeValue()); } @@ -1151,8 +993,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.clouddms.v1.MigrationJobVerificationError) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.clouddms.v1.MigrationJobVerificationError) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1164,103 +1005,73 @@ public Builder mergeFrom( private int errorCode_ = 0; /** - * - * *
      * Output only. An instance of ErrorCode specifying the error that occurred.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for errorCode. */ - @java.lang.Override - public int getErrorCodeValue() { + @java.lang.Override public int getErrorCodeValue() { return errorCode_; } /** - * - * *
      * Output only. An instance of ErrorCode specifying the error that occurred.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for errorCode to set. * @return This builder for chaining. */ public Builder setErrorCodeValue(int value) { - + errorCode_ = value; onChanged(); return this; } /** - * - * *
      * Output only. An instance of ErrorCode specifying the error that occurred.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The errorCode. */ @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode getErrorCode() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode result = - com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode.valueOf(errorCode_); - return result == null - ? com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode.UNRECOGNIZED - : result; + com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode result = com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode.valueOf(errorCode_); + return result == null ? com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode.UNRECOGNIZED : result; } /** - * - * *
      * Output only. An instance of ErrorCode specifying the error that occurred.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The errorCode to set. * @return This builder for chaining. */ - public Builder setErrorCode( - com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode value) { + public Builder setErrorCode(com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode value) { if (value == null) { throw new NullPointerException(); } - + errorCode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. An instance of ErrorCode specifying the error that occurred.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearErrorCode() { - + errorCode_ = 0; onChanged(); return this; @@ -1268,20 +1079,18 @@ public Builder clearErrorCode() { private java.lang.Object errorMessage_ = ""; /** - * - * *
      * Output only. A formatted message with further details about the error and a CTA.
      * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -1290,21 +1099,20 @@ public java.lang.String getErrorMessage() { } } /** - * - * *
      * Output only. A formatted message with further details about the error and a CTA.
      * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -1312,61 +1120,54 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } } /** - * - * *
      * Output only. A formatted message with further details about the error and a CTA.
      * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage(java.lang.String value) { + public Builder setErrorMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + errorMessage_ = value; onChanged(); return this; } /** - * - * *
      * Output only. A formatted message with further details about the error and a CTA.
      * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearErrorMessage() { - + errorMessage_ = getDefaultInstance().getErrorMessage(); onChanged(); return this; } /** - * - * *
      * Output only. A formatted message with further details about the error and a CTA.
      * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + public Builder setErrorMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; onChanged(); return this; @@ -1374,20 +1175,18 @@ public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { private java.lang.Object errorDetailMessage_ = ""; /** - * - * *
      * Output only. A specific detailed error message, if supplied by the engine.
      * 
* * string error_detail_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The errorDetailMessage. */ public java.lang.String getErrorDetailMessage() { java.lang.Object ref = errorDetailMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorDetailMessage_ = s; return s; @@ -1396,21 +1195,20 @@ public java.lang.String getErrorDetailMessage() { } } /** - * - * *
      * Output only. A specific detailed error message, if supplied by the engine.
      * 
* * string error_detail_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for errorDetailMessage. */ - public com.google.protobuf.ByteString getErrorDetailMessageBytes() { + public com.google.protobuf.ByteString + getErrorDetailMessageBytes() { java.lang.Object ref = errorDetailMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorDetailMessage_ = b; return b; } else { @@ -1418,68 +1216,61 @@ public com.google.protobuf.ByteString getErrorDetailMessageBytes() { } } /** - * - * *
      * Output only. A specific detailed error message, if supplied by the engine.
      * 
* * string error_detail_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The errorDetailMessage to set. * @return This builder for chaining. */ - public Builder setErrorDetailMessage(java.lang.String value) { + public Builder setErrorDetailMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + errorDetailMessage_ = value; onChanged(); return this; } /** - * - * *
      * Output only. A specific detailed error message, if supplied by the engine.
      * 
* * string error_detail_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearErrorDetailMessage() { - + errorDetailMessage_ = getDefaultInstance().getErrorDetailMessage(); onChanged(); return this; } /** - * - * *
      * Output only. A specific detailed error message, if supplied by the engine.
      * 
* * string error_detail_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for errorDetailMessage to set. * @return This builder for chaining. */ - public Builder setErrorDetailMessageBytes(com.google.protobuf.ByteString value) { + public Builder setErrorDetailMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorDetailMessage_ = 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); } @@ -1489,12 +1280,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.MigrationJobVerificationError) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.MigrationJobVerificationError) private static final com.google.cloud.clouddms.v1.MigrationJobVerificationError DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.MigrationJobVerificationError(); } @@ -1503,16 +1294,16 @@ public static com.google.cloud.clouddms.v1.MigrationJobVerificationError getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MigrationJobVerificationError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MigrationJobVerificationError(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MigrationJobVerificationError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MigrationJobVerificationError(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1527,4 +1318,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.clouddms.v1.MigrationJobVerificationError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationErrorOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationErrorOrBuilder.java similarity index 61% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationErrorOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationErrorOrBuilder.java index d82156b7..28d1e369 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationErrorOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationErrorOrBuilder.java @@ -1,104 +1,68 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; -public interface MigrationJobVerificationErrorOrBuilder - extends +public interface MigrationJobVerificationErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.MigrationJobVerificationError) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. An instance of ErrorCode specifying the error that occurred.
    * 
* - * - * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for errorCode. */ int getErrorCodeValue(); /** - * - * *
    * Output only. An instance of ErrorCode specifying the error that occurred.
    * 
* - * - * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The errorCode. */ com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode getErrorCode(); /** - * - * *
    * Output only. A formatted message with further details about the error and a CTA.
    * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** - * - * *
    * Output only. A formatted message with further details about the error and a CTA.
    * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for errorMessage. */ - com.google.protobuf.ByteString getErrorMessageBytes(); + com.google.protobuf.ByteString + getErrorMessageBytes(); /** - * - * *
    * Output only. A specific detailed error message, if supplied by the engine.
    * 
* * string error_detail_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The errorDetailMessage. */ java.lang.String getErrorDetailMessage(); /** - * - * *
    * Output only. A specific detailed error message, if supplied by the engine.
    * 
* * string error_detail_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for errorDetailMessage. */ - com.google.protobuf.ByteString getErrorDetailMessageBytes(); + com.google.protobuf.ByteString + getErrorDetailMessageBytes(); } diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfile.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfile.java similarity index 72% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfile.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfile.java index 1ba3c9ed..2d08dc72 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfile.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfile.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/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * Specifies connection parameters required specifically for MySQL databases.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.MySqlConnectionProfile} */ -public final class MySqlConnectionProfile extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MySqlConnectionProfile extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.MySqlConnectionProfile) MySqlConnectionProfileOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MySqlConnectionProfile.newBuilder() to construct. private MySqlConnectionProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MySqlConnectionProfile() { host_ = ""; username_ = ""; @@ -46,15 +28,16 @@ private MySqlConnectionProfile() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MySqlConnectionProfile(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private MySqlConnectionProfile( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,105 +56,93 @@ private MySqlConnectionProfile( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - host_ = s; - break; - } - case 16: - { - port_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + host_ = s; + break; + } + case 16: { - username_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + port_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - case 40: - { - passwordSet_ = input.readBool(); - break; + username_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = s; + break; + } + case 40: { + + passwordSet_ = input.readBool(); + break; + } + case 50: { + com.google.cloud.clouddms.v1.SslConfig.Builder subBuilder = null; + if (ssl_ != null) { + subBuilder = ssl_.toBuilder(); } - case 50: - { - com.google.cloud.clouddms.v1.SslConfig.Builder subBuilder = null; - if (ssl_ != null) { - subBuilder = ssl_.toBuilder(); - } - ssl_ = - input.readMessage( - com.google.cloud.clouddms.v1.SslConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(ssl_); - ssl_ = subBuilder.buildPartial(); - } - - break; + ssl_ = input.readMessage(com.google.cloud.clouddms.v1.SslConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(ssl_); + ssl_ = subBuilder.buildPartial(); } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - cloudSqlId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + cloudSqlId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.MySqlConnectionProfile.class, - com.google.cloud.clouddms.v1.MySqlConnectionProfile.Builder.class); + com.google.cloud.clouddms.v1.MySqlConnectionProfile.class, com.google.cloud.clouddms.v1.MySqlConnectionProfile.Builder.class); } public static final int HOST_FIELD_NUMBER = 1; private volatile java.lang.Object host_; /** - * - * *
    * Required. The IP or hostname of the source MySQL database.
    * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The host. */ @java.lang.Override @@ -180,29 +151,29 @@ public java.lang.String getHost() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } } /** - * - * *
    * Required. The IP or hostname of the source MySQL database.
    * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for host. */ @java.lang.Override - public com.google.protobuf.ByteString getHostBytes() { + public com.google.protobuf.ByteString + getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); host_ = b; return b; } else { @@ -213,14 +184,11 @@ public com.google.protobuf.ByteString getHostBytes() { public static final int PORT_FIELD_NUMBER = 2; private int port_; /** - * - * *
    * Required. The network port of the source MySQL database.
    * 
* * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The port. */ @java.lang.Override @@ -231,15 +199,12 @@ public int getPort() { public static final int USERNAME_FIELD_NUMBER = 3; private volatile java.lang.Object username_; /** - * - * *
    * Required. The username that Database Migration Service will use to connect to the
    * database. The value is encrypted when stored in Database Migration Service.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ @java.lang.Override @@ -248,30 +213,30 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** - * - * *
    * Required. The username that Database Migration Service will use to connect to the
    * database. The value is encrypted when stored in Database Migration Service.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -282,18 +247,13 @@ public com.google.protobuf.ByteString getUsernameBytes() { public static final int PASSWORD_FIELD_NUMBER = 4; private volatile java.lang.Object password_; /** - * - * *
    * Required. Input only. The password for the user that Database Migration Service will be using to
    * connect to the database. This field is not returned on request, and the
    * value is encrypted when stored in Database Migration Service.
    * 
* - * - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * - * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * @return The password. */ @java.lang.Override @@ -302,33 +262,31 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** - * - * *
    * Required. Input only. The password for the user that Database Migration Service will be using to
    * connect to the database. This field is not returned on request, and the
    * value is encrypted when stored in Database Migration Service.
    * 
* - * - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * - * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -339,14 +297,11 @@ public com.google.protobuf.ByteString getPasswordBytes() { public static final int PASSWORD_SET_FIELD_NUMBER = 5; private boolean passwordSet_; /** - * - * *
    * Output only. Indicates If this connection profile password is stored.
    * 
* * bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The passwordSet. */ @java.lang.Override @@ -357,14 +312,11 @@ public boolean getPasswordSet() { public static final int SSL_FIELD_NUMBER = 6; private com.google.cloud.clouddms.v1.SslConfig ssl_; /** - * - * *
    * SSL configuration for the destination to connect to the source database.
    * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; - * * @return Whether the ssl field is set. */ @java.lang.Override @@ -372,14 +324,11 @@ public boolean hasSsl() { return ssl_ != null; } /** - * - * *
    * SSL configuration for the destination to connect to the source database.
    * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; - * * @return The ssl. */ @java.lang.Override @@ -387,8 +336,6 @@ public com.google.cloud.clouddms.v1.SslConfig getSsl() { return ssl_ == null ? com.google.cloud.clouddms.v1.SslConfig.getDefaultInstance() : ssl_; } /** - * - * *
    * SSL configuration for the destination to connect to the source database.
    * 
@@ -403,15 +350,12 @@ public com.google.cloud.clouddms.v1.SslConfigOrBuilder getSslOrBuilder() { public static final int CLOUD_SQL_ID_FIELD_NUMBER = 7; private volatile java.lang.Object cloudSqlId_; /** - * - * *
    * If the source is a Cloud SQL database, use this field to
    * provide the Cloud SQL instance ID of the source.
    * 
* * string cloud_sql_id = 7; - * * @return The cloudSqlId. */ @java.lang.Override @@ -420,30 +364,30 @@ public java.lang.String getCloudSqlId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudSqlId_ = s; return s; } } /** - * - * *
    * If the source is a Cloud SQL database, use this field to
    * provide the Cloud SQL instance ID of the source.
    * 
* * string cloud_sql_id = 7; - * * @return The bytes for cloudSqlId. */ @java.lang.Override - public com.google.protobuf.ByteString getCloudSqlIdBytes() { + public com.google.protobuf.ByteString + getCloudSqlIdBytes() { java.lang.Object ref = cloudSqlId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cloudSqlId_ = b; return b; } else { @@ -452,7 +396,6 @@ public com.google.protobuf.ByteString getCloudSqlIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -464,7 +407,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 (!getHostBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, host_); } @@ -499,7 +443,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, host_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, port_); } if (!getUsernameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); @@ -508,10 +453,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, password_); } if (passwordSet_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, passwordSet_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, passwordSet_); } if (ssl_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSsl()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getSsl()); } if (!getCloudSqlIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, cloudSqlId_); @@ -524,24 +471,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.clouddms.v1.MySqlConnectionProfile)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.MySqlConnectionProfile other = - (com.google.cloud.clouddms.v1.MySqlConnectionProfile) obj; - - if (!getHost().equals(other.getHost())) return false; - if (getPort() != other.getPort()) return false; - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) return false; - if (getPasswordSet() != other.getPasswordSet()) return false; + com.google.cloud.clouddms.v1.MySqlConnectionProfile other = (com.google.cloud.clouddms.v1.MySqlConnectionProfile) obj; + + if (!getHost() + .equals(other.getHost())) return false; + if (getPort() + != other.getPort()) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; + if (getPasswordSet() + != other.getPasswordSet()) return false; if (hasSsl() != other.hasSsl()) return false; if (hasSsl()) { - if (!getSsl().equals(other.getSsl())) return false; + if (!getSsl() + .equals(other.getSsl())) return false; } - if (!getCloudSqlId().equals(other.getCloudSqlId())) return false; + if (!getCloudSqlId() + .equals(other.getCloudSqlId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -562,7 +515,8 @@ public int hashCode() { hash = (37 * hash) + PASSWORD_FIELD_NUMBER; hash = (53 * hash) + getPassword().hashCode(); hash = (37 * hash) + PASSWORD_SET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPasswordSet()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPasswordSet()); if (hasSsl()) { hash = (37 * hash) + SSL_FIELD_NUMBER; hash = (53 * hash) + getSsl().hashCode(); @@ -575,126 +529,117 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.MySqlConnectionProfile 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.clouddms.v1.MySqlConnectionProfile 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.clouddms.v1.MySqlConnectionProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.MySqlConnectionProfile 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.clouddms.v1.MySqlConnectionProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.MySqlConnectionProfile 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.clouddms.v1.MySqlConnectionProfile parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.MySqlConnectionProfile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.MySqlConnectionProfile 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.clouddms.v1.MySqlConnectionProfile parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.MySqlConnectionProfile parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.MySqlConnectionProfile 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.clouddms.v1.MySqlConnectionProfile 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.clouddms.v1.MySqlConnectionProfile 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.clouddms.v1.MySqlConnectionProfile 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; } /** - * - * *
    * Specifies connection parameters required specifically for MySQL databases.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.MySqlConnectionProfile} */ - 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.clouddms.v1.MySqlConnectionProfile) com.google.cloud.clouddms.v1.MySqlConnectionProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.MySqlConnectionProfile.class, - com.google.cloud.clouddms.v1.MySqlConnectionProfile.Builder.class); + com.google.cloud.clouddms.v1.MySqlConnectionProfile.class, com.google.cloud.clouddms.v1.MySqlConnectionProfile.Builder.class); } // Construct using com.google.cloud.clouddms.v1.MySqlConnectionProfile.newBuilder() @@ -702,15 +647,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -736,9 +682,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_descriptor; } @java.lang.Override @@ -757,8 +703,7 @@ public com.google.cloud.clouddms.v1.MySqlConnectionProfile build() { @java.lang.Override public com.google.cloud.clouddms.v1.MySqlConnectionProfile buildPartial() { - com.google.cloud.clouddms.v1.MySqlConnectionProfile result = - new com.google.cloud.clouddms.v1.MySqlConnectionProfile(this); + com.google.cloud.clouddms.v1.MySqlConnectionProfile result = new com.google.cloud.clouddms.v1.MySqlConnectionProfile(this); result.host_ = host_; result.port_ = port_; result.username_ = username_; @@ -778,39 +723,38 @@ public com.google.cloud.clouddms.v1.MySqlConnectionProfile 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.clouddms.v1.MySqlConnectionProfile) { - return mergeFrom((com.google.cloud.clouddms.v1.MySqlConnectionProfile) other); + return mergeFrom((com.google.cloud.clouddms.v1.MySqlConnectionProfile)other); } else { super.mergeFrom(other); return this; @@ -818,8 +762,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.MySqlConnectionProfile other) { - if (other == com.google.cloud.clouddms.v1.MySqlConnectionProfile.getDefaultInstance()) - return this; + if (other == com.google.cloud.clouddms.v1.MySqlConnectionProfile.getDefaultInstance()) return this; if (!other.getHost().isEmpty()) { host_ = other.host_; onChanged(); @@ -864,8 +807,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.clouddms.v1.MySqlConnectionProfile) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.clouddms.v1.MySqlConnectionProfile) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -877,20 +819,18 @@ public Builder mergeFrom( private java.lang.Object host_ = ""; /** - * - * *
      * Required. The IP or hostname of the source MySQL database.
      * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The host. */ public java.lang.String getHost() { java.lang.Object ref = host_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; @@ -899,21 +839,20 @@ public java.lang.String getHost() { } } /** - * - * *
      * Required. The IP or hostname of the source MySQL database.
      * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for host. */ - public com.google.protobuf.ByteString getHostBytes() { + public com.google.protobuf.ByteString + getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); host_ = b; return b; } else { @@ -921,76 +860,66 @@ public com.google.protobuf.ByteString getHostBytes() { } } /** - * - * *
      * Required. The IP or hostname of the source MySQL database.
      * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The host to set. * @return This builder for chaining. */ - public Builder setHost(java.lang.String value) { + public Builder setHost( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + host_ = value; onChanged(); return this; } /** - * - * *
      * Required. The IP or hostname of the source MySQL database.
      * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearHost() { - + host_ = getDefaultInstance().getHost(); onChanged(); return this; } /** - * - * *
      * Required. The IP or hostname of the source MySQL database.
      * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for host to set. * @return This builder for chaining. */ - public Builder setHostBytes(com.google.protobuf.ByteString value) { + public Builder setHostBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + host_ = value; onChanged(); return this; } - private int port_; + private int port_ ; /** - * - * *
      * Required. The network port of the source MySQL database.
      * 
* * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The port. */ @java.lang.Override @@ -998,36 +927,30 @@ public int getPort() { return port_; } /** - * - * *
      * Required. The network port of the source MySQL database.
      * 
* * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { - + port_ = value; onChanged(); return this; } /** - * - * *
      * Required. The network port of the source MySQL database.
      * 
* * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPort() { - + port_ = 0; onChanged(); return this; @@ -1035,21 +958,19 @@ public Builder clearPort() { private java.lang.Object username_ = ""; /** - * - * *
      * Required. The username that Database Migration Service will use to connect to the
      * database. The value is encrypted when stored in Database Migration Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -1058,22 +979,21 @@ public java.lang.String getUsername() { } } /** - * - * *
      * Required. The username that Database Migration Service will use to connect to the
      * database. The value is encrypted when stored in Database Migration Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -1081,64 +1001,57 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
      * Required. The username that Database Migration Service will use to connect to the
      * database. The value is encrypted when stored in Database Migration Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { + public Builder setUsername( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** - * - * *
      * Required. The username that Database Migration Service will use to connect to the
      * database. The value is encrypted when stored in Database Migration Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** - * - * *
      * Required. The username that Database Migration Service will use to connect to the
      * database. The value is encrypted when stored in Database Migration Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -1146,24 +1059,20 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { private java.lang.Object password_ = ""; /** - * - * *
      * Required. Input only. The password for the user that Database Migration Service will be using to
      * connect to the database. This field is not returned on request, and the
      * value is encrypted when stored in Database Migration Service.
      * 
* - * - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * - * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -1172,25 +1081,22 @@ public java.lang.String getPassword() { } } /** - * - * *
      * Required. Input only. The password for the user that Database Migration Service will be using to
      * connect to the database. This field is not returned on request, and the
      * value is encrypted when stored in Database Migration Service.
      * 
* - * - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * - * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -1198,88 +1104,72 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
      * Required. Input only. The password for the user that Database Migration Service will be using to
      * connect to the database. This field is not returned on request, and the
      * value is encrypted when stored in Database Migration Service.
      * 
* - * - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * - * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { + public Builder setPassword( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** - * - * *
      * Required. Input only. The password for the user that Database Migration Service will be using to
      * connect to the database. This field is not returned on request, and the
      * value is encrypted when stored in Database Migration Service.
      * 
* - * - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * - * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** - * - * *
      * Required. Input only. The password for the user that Database Migration Service will be using to
      * connect to the database. This field is not returned on request, and the
      * value is encrypted when stored in Database Migration Service.
      * 
* - * - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * - * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; } - private boolean passwordSet_; + private boolean passwordSet_ ; /** - * - * *
      * Output only. Indicates If this connection profile password is stored.
      * 
* * bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The passwordSet. */ @java.lang.Override @@ -1287,36 +1177,30 @@ public boolean getPasswordSet() { return passwordSet_; } /** - * - * *
      * Output only. Indicates If this connection profile password is stored.
      * 
* * bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The passwordSet to set. * @return This builder for chaining. */ public Builder setPasswordSet(boolean value) { - + passwordSet_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Indicates If this connection profile password is stored.
      * 
* * bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearPasswordSet() { - + passwordSet_ = false; onChanged(); return this; @@ -1324,33 +1208,24 @@ public Builder clearPasswordSet() { private com.google.cloud.clouddms.v1.SslConfig ssl_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.SslConfig, - com.google.cloud.clouddms.v1.SslConfig.Builder, - com.google.cloud.clouddms.v1.SslConfigOrBuilder> - sslBuilder_; + com.google.cloud.clouddms.v1.SslConfig, com.google.cloud.clouddms.v1.SslConfig.Builder, com.google.cloud.clouddms.v1.SslConfigOrBuilder> sslBuilder_; /** - * - * *
      * SSL configuration for the destination to connect to the source database.
      * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; - * * @return Whether the ssl field is set. */ public boolean hasSsl() { return sslBuilder_ != null || ssl_ != null; } /** - * - * *
      * SSL configuration for the destination to connect to the source database.
      * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; - * * @return The ssl. */ public com.google.cloud.clouddms.v1.SslConfig getSsl() { @@ -1361,8 +1236,6 @@ public com.google.cloud.clouddms.v1.SslConfig getSsl() { } } /** - * - * *
      * SSL configuration for the destination to connect to the source database.
      * 
@@ -1383,15 +1256,14 @@ public Builder setSsl(com.google.cloud.clouddms.v1.SslConfig value) { return this; } /** - * - * *
      * SSL configuration for the destination to connect to the source database.
      * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; */ - public Builder setSsl(com.google.cloud.clouddms.v1.SslConfig.Builder builderForValue) { + public Builder setSsl( + com.google.cloud.clouddms.v1.SslConfig.Builder builderForValue) { if (sslBuilder_ == null) { ssl_ = builderForValue.build(); onChanged(); @@ -1402,8 +1274,6 @@ public Builder setSsl(com.google.cloud.clouddms.v1.SslConfig.Builder builderForV return this; } /** - * - * *
      * SSL configuration for the destination to connect to the source database.
      * 
@@ -1414,9 +1284,7 @@ public Builder mergeSsl(com.google.cloud.clouddms.v1.SslConfig value) { if (sslBuilder_ == null) { if (ssl_ != null) { ssl_ = - com.google.cloud.clouddms.v1.SslConfig.newBuilder(ssl_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.clouddms.v1.SslConfig.newBuilder(ssl_).mergeFrom(value).buildPartial(); } else { ssl_ = value; } @@ -1428,8 +1296,6 @@ public Builder mergeSsl(com.google.cloud.clouddms.v1.SslConfig value) { return this; } /** - * - * *
      * SSL configuration for the destination to connect to the source database.
      * 
@@ -1448,8 +1314,6 @@ public Builder clearSsl() { return this; } /** - * - * *
      * SSL configuration for the destination to connect to the source database.
      * 
@@ -1457,13 +1321,11 @@ public Builder clearSsl() { * .google.cloud.clouddms.v1.SslConfig ssl = 6; */ public com.google.cloud.clouddms.v1.SslConfig.Builder getSslBuilder() { - + onChanged(); return getSslFieldBuilder().getBuilder(); } /** - * - * *
      * SSL configuration for the destination to connect to the source database.
      * 
@@ -1474,12 +1336,11 @@ public com.google.cloud.clouddms.v1.SslConfigOrBuilder getSslOrBuilder() { if (sslBuilder_ != null) { return sslBuilder_.getMessageOrBuilder(); } else { - return ssl_ == null ? com.google.cloud.clouddms.v1.SslConfig.getDefaultInstance() : ssl_; + return ssl_ == null ? + com.google.cloud.clouddms.v1.SslConfig.getDefaultInstance() : ssl_; } } /** - * - * *
      * SSL configuration for the destination to connect to the source database.
      * 
@@ -1487,17 +1348,14 @@ public com.google.cloud.clouddms.v1.SslConfigOrBuilder getSslOrBuilder() { * .google.cloud.clouddms.v1.SslConfig ssl = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.SslConfig, - com.google.cloud.clouddms.v1.SslConfig.Builder, - com.google.cloud.clouddms.v1.SslConfigOrBuilder> + com.google.cloud.clouddms.v1.SslConfig, com.google.cloud.clouddms.v1.SslConfig.Builder, com.google.cloud.clouddms.v1.SslConfigOrBuilder> getSslFieldBuilder() { if (sslBuilder_ == null) { - sslBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.SslConfig, - com.google.cloud.clouddms.v1.SslConfig.Builder, - com.google.cloud.clouddms.v1.SslConfigOrBuilder>( - getSsl(), getParentForChildren(), isClean()); + sslBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SslConfig, com.google.cloud.clouddms.v1.SslConfig.Builder, com.google.cloud.clouddms.v1.SslConfigOrBuilder>( + getSsl(), + getParentForChildren(), + isClean()); ssl_ = null; } return sslBuilder_; @@ -1505,21 +1363,19 @@ public com.google.cloud.clouddms.v1.SslConfigOrBuilder getSslOrBuilder() { private java.lang.Object cloudSqlId_ = ""; /** - * - * *
      * If the source is a Cloud SQL database, use this field to
      * provide the Cloud SQL instance ID of the source.
      * 
* * string cloud_sql_id = 7; - * * @return The cloudSqlId. */ public java.lang.String getCloudSqlId() { java.lang.Object ref = cloudSqlId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudSqlId_ = s; return s; @@ -1528,22 +1384,21 @@ public java.lang.String getCloudSqlId() { } } /** - * - * *
      * If the source is a Cloud SQL database, use this field to
      * provide the Cloud SQL instance ID of the source.
      * 
* * string cloud_sql_id = 7; - * * @return The bytes for cloudSqlId. */ - public com.google.protobuf.ByteString getCloudSqlIdBytes() { + public com.google.protobuf.ByteString + getCloudSqlIdBytes() { java.lang.Object ref = cloudSqlId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cloudSqlId_ = b; return b; } else { @@ -1551,71 +1406,64 @@ public com.google.protobuf.ByteString getCloudSqlIdBytes() { } } /** - * - * *
      * If the source is a Cloud SQL database, use this field to
      * provide the Cloud SQL instance ID of the source.
      * 
* * string cloud_sql_id = 7; - * * @param value The cloudSqlId to set. * @return This builder for chaining. */ - public Builder setCloudSqlId(java.lang.String value) { + public Builder setCloudSqlId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cloudSqlId_ = value; onChanged(); return this; } /** - * - * *
      * If the source is a Cloud SQL database, use this field to
      * provide the Cloud SQL instance ID of the source.
      * 
* * string cloud_sql_id = 7; - * * @return This builder for chaining. */ public Builder clearCloudSqlId() { - + cloudSqlId_ = getDefaultInstance().getCloudSqlId(); onChanged(); return this; } /** - * - * *
      * If the source is a Cloud SQL database, use this field to
      * provide the Cloud SQL instance ID of the source.
      * 
* * string cloud_sql_id = 7; - * * @param value The bytes for cloudSqlId to set. * @return This builder for chaining. */ - public Builder setCloudSqlIdBytes(com.google.protobuf.ByteString value) { + public Builder setCloudSqlIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cloudSqlId_ = 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); } @@ -1625,12 +1473,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.MySqlConnectionProfile) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.MySqlConnectionProfile) private static final com.google.cloud.clouddms.v1.MySqlConnectionProfile DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.MySqlConnectionProfile(); } @@ -1639,16 +1487,16 @@ public static com.google.cloud.clouddms.v1.MySqlConnectionProfile getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MySqlConnectionProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MySqlConnectionProfile(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MySqlConnectionProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MySqlConnectionProfile(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1663,4 +1511,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.MySqlConnectionProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfileOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfileOrBuilder.java similarity index 74% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfileOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfileOrBuilder.java index 98886b9e..2de6b894 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfileOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfileOrBuilder.java @@ -1,166 +1,117 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; -public interface MySqlConnectionProfileOrBuilder - extends +public interface MySqlConnectionProfileOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.MySqlConnectionProfile) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The IP or hostname of the source MySQL database.
    * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The host. */ java.lang.String getHost(); /** - * - * *
    * Required. The IP or hostname of the source MySQL database.
    * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for host. */ - com.google.protobuf.ByteString getHostBytes(); + com.google.protobuf.ByteString + getHostBytes(); /** - * - * *
    * Required. The network port of the source MySQL database.
    * 
* * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The port. */ int getPort(); /** - * - * *
    * Required. The username that Database Migration Service will use to connect to the
    * database. The value is encrypted when stored in Database Migration Service.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
    * Required. The username that Database Migration Service will use to connect to the
    * database. The value is encrypted when stored in Database Migration Service.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
    * Required. Input only. The password for the user that Database Migration Service will be using to
    * connect to the database. This field is not returned on request, and the
    * value is encrypted when stored in Database Migration Service.
    * 
* - * - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * - * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * @return The password. */ java.lang.String getPassword(); /** - * - * *
    * Required. Input only. The password for the user that Database Migration Service will be using to
    * connect to the database. This field is not returned on request, and the
    * value is encrypted when stored in Database Migration Service.
    * 
* - * - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * - * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); /** - * - * *
    * Output only. Indicates If this connection profile password is stored.
    * 
* * bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The passwordSet. */ boolean getPasswordSet(); /** - * - * *
    * SSL configuration for the destination to connect to the source database.
    * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; - * * @return Whether the ssl field is set. */ boolean hasSsl(); /** - * - * *
    * SSL configuration for the destination to connect to the source database.
    * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; - * * @return The ssl. */ com.google.cloud.clouddms.v1.SslConfig getSsl(); /** - * - * *
    * SSL configuration for the destination to connect to the source database.
    * 
@@ -170,29 +121,24 @@ public interface MySqlConnectionProfileOrBuilder com.google.cloud.clouddms.v1.SslConfigOrBuilder getSslOrBuilder(); /** - * - * *
    * If the source is a Cloud SQL database, use this field to
    * provide the Cloud SQL instance ID of the source.
    * 
* * string cloud_sql_id = 7; - * * @return The cloudSqlId. */ java.lang.String getCloudSqlId(); /** - * - * *
    * If the source is a Cloud SQL database, use this field to
    * provide the Cloud SQL instance ID of the source.
    * 
* * string cloud_sql_id = 7; - * * @return The bytes for cloudSqlId. */ - com.google.protobuf.ByteString getCloudSqlIdBytes(); + com.google.protobuf.ByteString + getCloudSqlIdBytes(); } diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadata.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadata.java similarity index 71% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadata.java index ed2f0cf1..3905de3c 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadata.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/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,15 +28,16 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,115 +56,101 @@ private OperationMetadata( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - target_ = s; - break; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - statusMessage_ = s; - break; - } - case 48: - { - requestedCancellation_ = input.readBool(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + target_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + verb_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + statusMessage_ = s; + break; + } + case 48: { + + requestedCancellation_ = input.readBool(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + apiVersion_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.OperationMetadata.class, - com.google.cloud.clouddms.v1.OperationMetadata.Builder.class); + com.google.cloud.clouddms.v1.OperationMetadata.class, com.google.cloud.clouddms.v1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -189,15 +158,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -205,14 +170,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -222,15 +184,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -238,15 +196,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -254,14 +208,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -271,14 +222,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -287,29 +235,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -320,14 +268,11 @@ public com.google.protobuf.ByteString getTargetBytes() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -336,29 +281,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -369,14 +314,11 @@ public com.google.protobuf.ByteString getVerbBytes() { public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; private volatile java.lang.Object statusMessage_; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -385,29 +327,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -418,8 +360,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -428,7 +368,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -439,14 +378,11 @@ public boolean getRequestedCancellation() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -455,29 +391,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -486,7 +422,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -498,7 +433,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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -530,10 +466,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!getTargetBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -545,7 +483,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, requestedCancellation_); } if (!getApiVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -558,27 +497,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.clouddms.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.OperationMetadata other = - (com.google.cloud.clouddms.v1.OperationMetadata) obj; + com.google.cloud.clouddms.v1.OperationMetadata other = (com.google.cloud.clouddms.v1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() != other.getRequestedCancellation()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusMessage() + .equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() + != other.getRequestedCancellation()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -605,7 +550,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -613,127 +559,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.clouddms.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.clouddms.v1.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.OperationMetadata 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.clouddms.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.OperationMetadata 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.clouddms.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.OperationMetadata 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.clouddms.v1.OperationMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.OperationMetadata 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.clouddms.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.OperationMetadata 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.clouddms.v1.OperationMetadata 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.clouddms.v1.OperationMetadata 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.clouddms.v1.OperationMetadata 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 the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.OperationMetadata} */ - 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.clouddms.v1.OperationMetadata) com.google.cloud.clouddms.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.OperationMetadata.class, - com.google.cloud.clouddms.v1.OperationMetadata.Builder.class); + com.google.cloud.clouddms.v1.OperationMetadata.class, com.google.cloud.clouddms.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.clouddms.v1.OperationMetadata.newBuilder() @@ -741,15 +678,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -779,9 +717,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -800,8 +738,7 @@ public com.google.cloud.clouddms.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.clouddms.v1.OperationMetadata buildPartial() { - com.google.cloud.clouddms.v1.OperationMetadata result = - new com.google.cloud.clouddms.v1.OperationMetadata(this); + com.google.cloud.clouddms.v1.OperationMetadata result = new com.google.cloud.clouddms.v1.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -825,39 +762,38 @@ public com.google.cloud.clouddms.v1.OperationMetadata 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.clouddms.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.clouddms.v1.OperationMetadata) other); + return mergeFrom((com.google.cloud.clouddms.v1.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -922,58 +858,39 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -989,17 +906,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1010,21 +924,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1036,15 +946,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1058,64 +964,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1123,35 +1013,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1162,14 +1041,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1185,16 +1061,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.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(); @@ -1205,20 +1079,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.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; } @@ -1230,14 +1101,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1251,59 +1119,48 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.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. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.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_; @@ -1311,20 +1168,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1333,21 +1188,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1355,61 +1209,54 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { + public Builder setTarget( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1417,20 +1264,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1439,21 +1284,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1461,61 +1305,54 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { + public Builder setVerb( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1523,20 +1360,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1545,21 +1380,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1567,70 +1401,61 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage(java.lang.String value) { + public Builder setStatusMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusMessage_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; onChanged(); return this; } - private boolean requestedCancellation_; + private boolean requestedCancellation_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1639,7 +1464,6 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -1647,8 +1471,6 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1657,19 +1479,16 @@ public boolean getRequestedCancellation() {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1678,11 +1497,10 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { - + requestedCancellation_ = false; onChanged(); return this; @@ -1690,20 +1508,18 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1712,21 +1528,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1734,68 +1549,61 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { + public Builder setApiVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = 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); } @@ -1805,12 +1613,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.OperationMetadata) private static final com.google.cloud.clouddms.v1.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.OperationMetadata(); } @@ -1819,16 +1627,16 @@ public static com.google.cloud.clouddms.v1.OperationMetadata getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1843,4 +1651,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadataOrBuilder.java similarity index 75% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadataOrBuilder.java index 5e175b93..77045b7e 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadataOrBuilder.java @@ -1,182 +1,127 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -185,33 +130,27 @@ public interface OperationMetadataOrBuilder
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfile.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfile.java similarity index 72% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfile.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfile.java index b5f98fc3..aab5b30e 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfile.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfile.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/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * Specifies connection parameters required specifically for PostgreSQL
  * databases.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.clouddms.v1.PostgreSqlConnectionProfile}
  */
-public final class PostgreSqlConnectionProfile extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class PostgreSqlConnectionProfile extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.PostgreSqlConnectionProfile)
     PostgreSqlConnectionProfileOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use PostgreSqlConnectionProfile.newBuilder() to construct.
   private PostgreSqlConnectionProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private PostgreSqlConnectionProfile() {
     host_ = "";
     username_ = "";
@@ -47,15 +29,16 @@ private PostgreSqlConnectionProfile() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new PostgreSqlConnectionProfile();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private PostgreSqlConnectionProfile(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,105 +57,93 @@ private PostgreSqlConnectionProfile(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              host_ = s;
-              break;
-            }
-          case 16:
-            {
-              port_ = input.readInt32();
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            host_ = s;
+            break;
+          }
+          case 16: {
 
-              username_ = s;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            port_ = input.readInt32();
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              password_ = s;
-              break;
-            }
-          case 40:
-            {
-              passwordSet_ = input.readBool();
-              break;
+            username_ = s;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            password_ = s;
+            break;
+          }
+          case 40: {
+
+            passwordSet_ = input.readBool();
+            break;
+          }
+          case 50: {
+            com.google.cloud.clouddms.v1.SslConfig.Builder subBuilder = null;
+            if (ssl_ != null) {
+              subBuilder = ssl_.toBuilder();
             }
-          case 50:
-            {
-              com.google.cloud.clouddms.v1.SslConfig.Builder subBuilder = null;
-              if (ssl_ != null) {
-                subBuilder = ssl_.toBuilder();
-              }
-              ssl_ =
-                  input.readMessage(
-                      com.google.cloud.clouddms.v1.SslConfig.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(ssl_);
-                ssl_ = subBuilder.buildPartial();
-              }
-
-              break;
+            ssl_ = input.readMessage(com.google.cloud.clouddms.v1.SslConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(ssl_);
+              ssl_ = subBuilder.buildPartial();
             }
-          case 58:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              cloudSqlId_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            break;
+          }
+          case 58: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            cloudSqlId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
-        .internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
-        .internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_fieldAccessorTable
+    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.class,
-            com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder.class);
+            com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.class, com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder.class);
   }
 
   public static final int HOST_FIELD_NUMBER = 1;
   private volatile java.lang.Object host_;
   /**
-   *
-   *
    * 
    * Required. The IP or hostname of the source PostgreSQL database.
    * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The host. */ @java.lang.Override @@ -181,29 +152,29 @@ public java.lang.String getHost() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } } /** - * - * *
    * Required. The IP or hostname of the source PostgreSQL database.
    * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for host. */ @java.lang.Override - public com.google.protobuf.ByteString getHostBytes() { + public com.google.protobuf.ByteString + getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); host_ = b; return b; } else { @@ -214,14 +185,11 @@ public com.google.protobuf.ByteString getHostBytes() { public static final int PORT_FIELD_NUMBER = 2; private int port_; /** - * - * *
    * Required. The network port of the source PostgreSQL database.
    * 
* * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The port. */ @java.lang.Override @@ -232,15 +200,12 @@ public int getPort() { public static final int USERNAME_FIELD_NUMBER = 3; private volatile java.lang.Object username_; /** - * - * *
    * Required. The username that Database Migration Service will use to connect to the
    * database. The value is encrypted when stored in Database Migration Service.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ @java.lang.Override @@ -249,30 +214,30 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** - * - * *
    * Required. The username that Database Migration Service will use to connect to the
    * database. The value is encrypted when stored in Database Migration Service.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -283,18 +248,13 @@ public com.google.protobuf.ByteString getUsernameBytes() { public static final int PASSWORD_FIELD_NUMBER = 4; private volatile java.lang.Object password_; /** - * - * *
    * Required. Input only. The password for the user that Database Migration Service will be using to
    * connect to the database. This field is not returned on request, and the
    * value is encrypted when stored in Database Migration Service.
    * 
* - * - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * - * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * @return The password. */ @java.lang.Override @@ -303,33 +263,31 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** - * - * *
    * Required. Input only. The password for the user that Database Migration Service will be using to
    * connect to the database. This field is not returned on request, and the
    * value is encrypted when stored in Database Migration Service.
    * 
* - * - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * - * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -340,14 +298,11 @@ public com.google.protobuf.ByteString getPasswordBytes() { public static final int PASSWORD_SET_FIELD_NUMBER = 5; private boolean passwordSet_; /** - * - * *
    * Output only. Indicates If this connection profile password is stored.
    * 
* * bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The passwordSet. */ @java.lang.Override @@ -358,14 +313,11 @@ public boolean getPasswordSet() { public static final int SSL_FIELD_NUMBER = 6; private com.google.cloud.clouddms.v1.SslConfig ssl_; /** - * - * *
    * SSL configuration for the destination to connect to the source database.
    * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; - * * @return Whether the ssl field is set. */ @java.lang.Override @@ -373,14 +325,11 @@ public boolean hasSsl() { return ssl_ != null; } /** - * - * *
    * SSL configuration for the destination to connect to the source database.
    * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; - * * @return The ssl. */ @java.lang.Override @@ -388,8 +337,6 @@ public com.google.cloud.clouddms.v1.SslConfig getSsl() { return ssl_ == null ? com.google.cloud.clouddms.v1.SslConfig.getDefaultInstance() : ssl_; } /** - * - * *
    * SSL configuration for the destination to connect to the source database.
    * 
@@ -404,15 +351,12 @@ public com.google.cloud.clouddms.v1.SslConfigOrBuilder getSslOrBuilder() { public static final int CLOUD_SQL_ID_FIELD_NUMBER = 7; private volatile java.lang.Object cloudSqlId_; /** - * - * *
    * If the source is a Cloud SQL database, use this field to
    * provide the Cloud SQL instance ID of the source.
    * 
* * string cloud_sql_id = 7; - * * @return The cloudSqlId. */ @java.lang.Override @@ -421,30 +365,30 @@ public java.lang.String getCloudSqlId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudSqlId_ = s; return s; } } /** - * - * *
    * If the source is a Cloud SQL database, use this field to
    * provide the Cloud SQL instance ID of the source.
    * 
* * string cloud_sql_id = 7; - * * @return The bytes for cloudSqlId. */ @java.lang.Override - public com.google.protobuf.ByteString getCloudSqlIdBytes() { + public com.google.protobuf.ByteString + getCloudSqlIdBytes() { java.lang.Object ref = cloudSqlId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cloudSqlId_ = b; return b; } else { @@ -453,7 +397,6 @@ public com.google.protobuf.ByteString getCloudSqlIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -465,7 +408,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 (!getHostBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, host_); } @@ -500,7 +444,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, host_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, port_); } if (!getUsernameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); @@ -509,10 +454,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, password_); } if (passwordSet_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, passwordSet_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, passwordSet_); } if (ssl_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSsl()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getSsl()); } if (!getCloudSqlIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, cloudSqlId_); @@ -525,24 +472,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile other = - (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) obj; - - if (!getHost().equals(other.getHost())) return false; - if (getPort() != other.getPort()) return false; - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) return false; - if (getPasswordSet() != other.getPasswordSet()) return false; + com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile other = (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) obj; + + if (!getHost() + .equals(other.getHost())) return false; + if (getPort() + != other.getPort()) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; + if (getPasswordSet() + != other.getPasswordSet()) return false; if (hasSsl() != other.hasSsl()) return false; if (hasSsl()) { - if (!getSsl().equals(other.getSsl())) return false; + if (!getSsl() + .equals(other.getSsl())) return false; } - if (!getCloudSqlId().equals(other.getCloudSqlId())) return false; + if (!getCloudSqlId() + .equals(other.getCloudSqlId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -563,7 +516,8 @@ public int hashCode() { hash = (37 * hash) + PASSWORD_FIELD_NUMBER; hash = (53 * hash) + getPassword().hashCode(); hash = (37 * hash) + PASSWORD_SET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPasswordSet()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPasswordSet()); if (hasSsl()) { hash = (37 * hash) + SSL_FIELD_NUMBER; hash = (53 * hash) + getSsl().hashCode(); @@ -576,104 +530,96 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile 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.clouddms.v1.PostgreSqlConnectionProfile 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.clouddms.v1.PostgreSqlConnectionProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile 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.clouddms.v1.PostgreSqlConnectionProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile 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.clouddms.v1.PostgreSqlConnectionProfile parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile 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.clouddms.v1.PostgreSqlConnectionProfile parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile 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.clouddms.v1.PostgreSqlConnectionProfile 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.clouddms.v1.PostgreSqlConnectionProfile 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.clouddms.v1.PostgreSqlConnectionProfile prototype) { + public static Builder newBuilder(com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile 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; } /** - * - * *
    * Specifies connection parameters required specifically for PostgreSQL
    * databases.
@@ -681,23 +627,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.clouddms.v1.PostgreSqlConnectionProfile}
    */
-  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.clouddms.v1.PostgreSqlConnectionProfile)
       com.google.cloud.clouddms.v1.PostgreSqlConnectionProfileOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
-          .internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
-          .internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_fieldAccessorTable
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.class,
-              com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder.class);
+              com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.class, com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder.class);
     }
 
     // Construct using com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.newBuilder()
@@ -705,15 +649,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -739,9 +684,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
-          .internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_descriptor;
     }
 
     @java.lang.Override
@@ -760,8 +705,7 @@ public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile build() {
 
     @java.lang.Override
     public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile buildPartial() {
-      com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile result =
-          new com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile(this);
+      com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile result = new com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile(this);
       result.host_ = host_;
       result.port_ = port_;
       result.username_ = username_;
@@ -781,39 +725,38 @@ public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile 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.clouddms.v1.PostgreSqlConnectionProfile) {
-        return mergeFrom((com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) other);
+        return mergeFrom((com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -821,8 +764,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile other) {
-      if (other == com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.getDefaultInstance()) return this;
       if (!other.getHost().isEmpty()) {
         host_ = other.host_;
         onChanged();
@@ -867,8 +809,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -880,20 +821,18 @@ public Builder mergeFrom(
 
     private java.lang.Object host_ = "";
     /**
-     *
-     *
      * 
      * Required. The IP or hostname of the source PostgreSQL database.
      * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The host. */ public java.lang.String getHost() { java.lang.Object ref = host_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; @@ -902,21 +841,20 @@ public java.lang.String getHost() { } } /** - * - * *
      * Required. The IP or hostname of the source PostgreSQL database.
      * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for host. */ - public com.google.protobuf.ByteString getHostBytes() { + public com.google.protobuf.ByteString + getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); host_ = b; return b; } else { @@ -924,76 +862,66 @@ public com.google.protobuf.ByteString getHostBytes() { } } /** - * - * *
      * Required. The IP or hostname of the source PostgreSQL database.
      * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The host to set. * @return This builder for chaining. */ - public Builder setHost(java.lang.String value) { + public Builder setHost( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + host_ = value; onChanged(); return this; } /** - * - * *
      * Required. The IP or hostname of the source PostgreSQL database.
      * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearHost() { - + host_ = getDefaultInstance().getHost(); onChanged(); return this; } /** - * - * *
      * Required. The IP or hostname of the source PostgreSQL database.
      * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for host to set. * @return This builder for chaining. */ - public Builder setHostBytes(com.google.protobuf.ByteString value) { + public Builder setHostBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + host_ = value; onChanged(); return this; } - private int port_; + private int port_ ; /** - * - * *
      * Required. The network port of the source PostgreSQL database.
      * 
* * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The port. */ @java.lang.Override @@ -1001,36 +929,30 @@ public int getPort() { return port_; } /** - * - * *
      * Required. The network port of the source PostgreSQL database.
      * 
* * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { - + port_ = value; onChanged(); return this; } /** - * - * *
      * Required. The network port of the source PostgreSQL database.
      * 
* * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPort() { - + port_ = 0; onChanged(); return this; @@ -1038,21 +960,19 @@ public Builder clearPort() { private java.lang.Object username_ = ""; /** - * - * *
      * Required. The username that Database Migration Service will use to connect to the
      * database. The value is encrypted when stored in Database Migration Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -1061,22 +981,21 @@ public java.lang.String getUsername() { } } /** - * - * *
      * Required. The username that Database Migration Service will use to connect to the
      * database. The value is encrypted when stored in Database Migration Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -1084,64 +1003,57 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
      * Required. The username that Database Migration Service will use to connect to the
      * database. The value is encrypted when stored in Database Migration Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { + public Builder setUsername( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** - * - * *
      * Required. The username that Database Migration Service will use to connect to the
      * database. The value is encrypted when stored in Database Migration Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** - * - * *
      * Required. The username that Database Migration Service will use to connect to the
      * database. The value is encrypted when stored in Database Migration Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -1149,24 +1061,20 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { private java.lang.Object password_ = ""; /** - * - * *
      * Required. Input only. The password for the user that Database Migration Service will be using to
      * connect to the database. This field is not returned on request, and the
      * value is encrypted when stored in Database Migration Service.
      * 
* - * - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * - * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -1175,25 +1083,22 @@ public java.lang.String getPassword() { } } /** - * - * *
      * Required. Input only. The password for the user that Database Migration Service will be using to
      * connect to the database. This field is not returned on request, and the
      * value is encrypted when stored in Database Migration Service.
      * 
* - * - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * - * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -1201,88 +1106,72 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
      * Required. Input only. The password for the user that Database Migration Service will be using to
      * connect to the database. This field is not returned on request, and the
      * value is encrypted when stored in Database Migration Service.
      * 
* - * - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * - * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { + public Builder setPassword( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** - * - * *
      * Required. Input only. The password for the user that Database Migration Service will be using to
      * connect to the database. This field is not returned on request, and the
      * value is encrypted when stored in Database Migration Service.
      * 
* - * - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * - * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** - * - * *
      * Required. Input only. The password for the user that Database Migration Service will be using to
      * connect to the database. This field is not returned on request, and the
      * value is encrypted when stored in Database Migration Service.
      * 
* - * - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * - * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; } - private boolean passwordSet_; + private boolean passwordSet_ ; /** - * - * *
      * Output only. Indicates If this connection profile password is stored.
      * 
* * bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The passwordSet. */ @java.lang.Override @@ -1290,36 +1179,30 @@ public boolean getPasswordSet() { return passwordSet_; } /** - * - * *
      * Output only. Indicates If this connection profile password is stored.
      * 
* * bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The passwordSet to set. * @return This builder for chaining. */ public Builder setPasswordSet(boolean value) { - + passwordSet_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Indicates If this connection profile password is stored.
      * 
* * bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearPasswordSet() { - + passwordSet_ = false; onChanged(); return this; @@ -1327,33 +1210,24 @@ public Builder clearPasswordSet() { private com.google.cloud.clouddms.v1.SslConfig ssl_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.SslConfig, - com.google.cloud.clouddms.v1.SslConfig.Builder, - com.google.cloud.clouddms.v1.SslConfigOrBuilder> - sslBuilder_; + com.google.cloud.clouddms.v1.SslConfig, com.google.cloud.clouddms.v1.SslConfig.Builder, com.google.cloud.clouddms.v1.SslConfigOrBuilder> sslBuilder_; /** - * - * *
      * SSL configuration for the destination to connect to the source database.
      * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; - * * @return Whether the ssl field is set. */ public boolean hasSsl() { return sslBuilder_ != null || ssl_ != null; } /** - * - * *
      * SSL configuration for the destination to connect to the source database.
      * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; - * * @return The ssl. */ public com.google.cloud.clouddms.v1.SslConfig getSsl() { @@ -1364,8 +1238,6 @@ public com.google.cloud.clouddms.v1.SslConfig getSsl() { } } /** - * - * *
      * SSL configuration for the destination to connect to the source database.
      * 
@@ -1386,15 +1258,14 @@ public Builder setSsl(com.google.cloud.clouddms.v1.SslConfig value) { return this; } /** - * - * *
      * SSL configuration for the destination to connect to the source database.
      * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; */ - public Builder setSsl(com.google.cloud.clouddms.v1.SslConfig.Builder builderForValue) { + public Builder setSsl( + com.google.cloud.clouddms.v1.SslConfig.Builder builderForValue) { if (sslBuilder_ == null) { ssl_ = builderForValue.build(); onChanged(); @@ -1405,8 +1276,6 @@ public Builder setSsl(com.google.cloud.clouddms.v1.SslConfig.Builder builderForV return this; } /** - * - * *
      * SSL configuration for the destination to connect to the source database.
      * 
@@ -1417,9 +1286,7 @@ public Builder mergeSsl(com.google.cloud.clouddms.v1.SslConfig value) { if (sslBuilder_ == null) { if (ssl_ != null) { ssl_ = - com.google.cloud.clouddms.v1.SslConfig.newBuilder(ssl_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.clouddms.v1.SslConfig.newBuilder(ssl_).mergeFrom(value).buildPartial(); } else { ssl_ = value; } @@ -1431,8 +1298,6 @@ public Builder mergeSsl(com.google.cloud.clouddms.v1.SslConfig value) { return this; } /** - * - * *
      * SSL configuration for the destination to connect to the source database.
      * 
@@ -1451,8 +1316,6 @@ public Builder clearSsl() { return this; } /** - * - * *
      * SSL configuration for the destination to connect to the source database.
      * 
@@ -1460,13 +1323,11 @@ public Builder clearSsl() { * .google.cloud.clouddms.v1.SslConfig ssl = 6; */ public com.google.cloud.clouddms.v1.SslConfig.Builder getSslBuilder() { - + onChanged(); return getSslFieldBuilder().getBuilder(); } /** - * - * *
      * SSL configuration for the destination to connect to the source database.
      * 
@@ -1477,12 +1338,11 @@ public com.google.cloud.clouddms.v1.SslConfigOrBuilder getSslOrBuilder() { if (sslBuilder_ != null) { return sslBuilder_.getMessageOrBuilder(); } else { - return ssl_ == null ? com.google.cloud.clouddms.v1.SslConfig.getDefaultInstance() : ssl_; + return ssl_ == null ? + com.google.cloud.clouddms.v1.SslConfig.getDefaultInstance() : ssl_; } } /** - * - * *
      * SSL configuration for the destination to connect to the source database.
      * 
@@ -1490,17 +1350,14 @@ public com.google.cloud.clouddms.v1.SslConfigOrBuilder getSslOrBuilder() { * .google.cloud.clouddms.v1.SslConfig ssl = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.SslConfig, - com.google.cloud.clouddms.v1.SslConfig.Builder, - com.google.cloud.clouddms.v1.SslConfigOrBuilder> + com.google.cloud.clouddms.v1.SslConfig, com.google.cloud.clouddms.v1.SslConfig.Builder, com.google.cloud.clouddms.v1.SslConfigOrBuilder> getSslFieldBuilder() { if (sslBuilder_ == null) { - sslBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.SslConfig, - com.google.cloud.clouddms.v1.SslConfig.Builder, - com.google.cloud.clouddms.v1.SslConfigOrBuilder>( - getSsl(), getParentForChildren(), isClean()); + sslBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SslConfig, com.google.cloud.clouddms.v1.SslConfig.Builder, com.google.cloud.clouddms.v1.SslConfigOrBuilder>( + getSsl(), + getParentForChildren(), + isClean()); ssl_ = null; } return sslBuilder_; @@ -1508,21 +1365,19 @@ public com.google.cloud.clouddms.v1.SslConfigOrBuilder getSslOrBuilder() { private java.lang.Object cloudSqlId_ = ""; /** - * - * *
      * If the source is a Cloud SQL database, use this field to
      * provide the Cloud SQL instance ID of the source.
      * 
* * string cloud_sql_id = 7; - * * @return The cloudSqlId. */ public java.lang.String getCloudSqlId() { java.lang.Object ref = cloudSqlId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudSqlId_ = s; return s; @@ -1531,22 +1386,21 @@ public java.lang.String getCloudSqlId() { } } /** - * - * *
      * If the source is a Cloud SQL database, use this field to
      * provide the Cloud SQL instance ID of the source.
      * 
* * string cloud_sql_id = 7; - * * @return The bytes for cloudSqlId. */ - public com.google.protobuf.ByteString getCloudSqlIdBytes() { + public com.google.protobuf.ByteString + getCloudSqlIdBytes() { java.lang.Object ref = cloudSqlId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cloudSqlId_ = b; return b; } else { @@ -1554,71 +1408,64 @@ public com.google.protobuf.ByteString getCloudSqlIdBytes() { } } /** - * - * *
      * If the source is a Cloud SQL database, use this field to
      * provide the Cloud SQL instance ID of the source.
      * 
* * string cloud_sql_id = 7; - * * @param value The cloudSqlId to set. * @return This builder for chaining. */ - public Builder setCloudSqlId(java.lang.String value) { + public Builder setCloudSqlId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cloudSqlId_ = value; onChanged(); return this; } /** - * - * *
      * If the source is a Cloud SQL database, use this field to
      * provide the Cloud SQL instance ID of the source.
      * 
* * string cloud_sql_id = 7; - * * @return This builder for chaining. */ public Builder clearCloudSqlId() { - + cloudSqlId_ = getDefaultInstance().getCloudSqlId(); onChanged(); return this; } /** - * - * *
      * If the source is a Cloud SQL database, use this field to
      * provide the Cloud SQL instance ID of the source.
      * 
* * string cloud_sql_id = 7; - * * @param value The bytes for cloudSqlId to set. * @return This builder for chaining. */ - public Builder setCloudSqlIdBytes(com.google.protobuf.ByteString value) { + public Builder setCloudSqlIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cloudSqlId_ = 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); } @@ -1628,12 +1475,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.PostgreSqlConnectionProfile) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.PostgreSqlConnectionProfile) private static final com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile(); } @@ -1642,16 +1489,16 @@ public static com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PostgreSqlConnectionProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PostgreSqlConnectionProfile(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgreSqlConnectionProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PostgreSqlConnectionProfile(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1666,4 +1513,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfileOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfileOrBuilder.java similarity index 74% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfileOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfileOrBuilder.java index 2d7a74b6..b9c6f0e9 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfileOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfileOrBuilder.java @@ -1,166 +1,117 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; -public interface PostgreSqlConnectionProfileOrBuilder - extends +public interface PostgreSqlConnectionProfileOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.PostgreSqlConnectionProfile) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The IP or hostname of the source PostgreSQL database.
    * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The host. */ java.lang.String getHost(); /** - * - * *
    * Required. The IP or hostname of the source PostgreSQL database.
    * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for host. */ - com.google.protobuf.ByteString getHostBytes(); + com.google.protobuf.ByteString + getHostBytes(); /** - * - * *
    * Required. The network port of the source PostgreSQL database.
    * 
* * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The port. */ int getPort(); /** - * - * *
    * Required. The username that Database Migration Service will use to connect to the
    * database. The value is encrypted when stored in Database Migration Service.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
    * Required. The username that Database Migration Service will use to connect to the
    * database. The value is encrypted when stored in Database Migration Service.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
    * Required. Input only. The password for the user that Database Migration Service will be using to
    * connect to the database. This field is not returned on request, and the
    * value is encrypted when stored in Database Migration Service.
    * 
* - * - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * - * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * @return The password. */ java.lang.String getPassword(); /** - * - * *
    * Required. Input only. The password for the user that Database Migration Service will be using to
    * connect to the database. This field is not returned on request, and the
    * value is encrypted when stored in Database Migration Service.
    * 
* - * - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * - * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); /** - * - * *
    * Output only. Indicates If this connection profile password is stored.
    * 
* * bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The passwordSet. */ boolean getPasswordSet(); /** - * - * *
    * SSL configuration for the destination to connect to the source database.
    * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; - * * @return Whether the ssl field is set. */ boolean hasSsl(); /** - * - * *
    * SSL configuration for the destination to connect to the source database.
    * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; - * * @return The ssl. */ com.google.cloud.clouddms.v1.SslConfig getSsl(); /** - * - * *
    * SSL configuration for the destination to connect to the source database.
    * 
@@ -170,29 +121,24 @@ public interface PostgreSqlConnectionProfileOrBuilder com.google.cloud.clouddms.v1.SslConfigOrBuilder getSslOrBuilder(); /** - * - * *
    * If the source is a Cloud SQL database, use this field to
    * provide the Cloud SQL instance ID of the source.
    * 
* * string cloud_sql_id = 7; - * * @return The cloudSqlId. */ java.lang.String getCloudSqlId(); /** - * - * *
    * If the source is a Cloud SQL database, use this field to
    * provide the Cloud SQL instance ID of the source.
    * 
* * string cloud_sql_id = 7; - * * @return The bytes for cloudSqlId. */ - com.google.protobuf.ByteString getCloudSqlIdBytes(); + com.google.protobuf.ByteString + getCloudSqlIdBytes(); } diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequest.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequest.java similarity index 67% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequest.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequest.java index 286b98dd..c3c7a787 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * Request message for 'PromoteMigrationJob' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.PromoteMigrationJobRequest} */ -public final class PromoteMigrationJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PromoteMigrationJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.PromoteMigrationJobRequest) PromoteMigrationJobRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PromoteMigrationJobRequest.newBuilder() to construct. private PromoteMigrationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PromoteMigrationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PromoteMigrationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PromoteMigrationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,58 +53,52 @@ private PromoteMigrationJobRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.class, - com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.class, com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Name of the migration job resource to promote.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ @java.lang.Override @@ -130,29 +107,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; } } /** - * - * *
    * Name of the migration job resource to promote.
    * 
* * string name = 1 [(.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 { @@ -161,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -197,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.clouddms.v1.PromoteMigrationJobRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.PromoteMigrationJobRequest other = - (com.google.cloud.clouddms.v1.PromoteMigrationJobRequest) obj; + com.google.cloud.clouddms.v1.PromoteMigrationJobRequest other = (com.google.cloud.clouddms.v1.PromoteMigrationJobRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -225,127 +202,117 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.PromoteMigrationJobRequest 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.clouddms.v1.PromoteMigrationJobRequest 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.clouddms.v1.PromoteMigrationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.PromoteMigrationJobRequest 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.clouddms.v1.PromoteMigrationJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.PromoteMigrationJobRequest 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.clouddms.v1.PromoteMigrationJobRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.PromoteMigrationJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.PromoteMigrationJobRequest 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.clouddms.v1.PromoteMigrationJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.PromoteMigrationJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.PromoteMigrationJobRequest 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.clouddms.v1.PromoteMigrationJobRequest 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.clouddms.v1.PromoteMigrationJobRequest 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.clouddms.v1.PromoteMigrationJobRequest prototype) { + public static Builder newBuilder(com.google.cloud.clouddms.v1.PromoteMigrationJobRequest 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 message for 'PromoteMigrationJob' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.PromoteMigrationJobRequest} */ - 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.clouddms.v1.PromoteMigrationJobRequest) com.google.cloud.clouddms.v1.PromoteMigrationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.class, - com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.class, com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.newBuilder() @@ -353,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -371,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_descriptor; } @java.lang.Override @@ -392,8 +360,7 @@ public com.google.cloud.clouddms.v1.PromoteMigrationJobRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.PromoteMigrationJobRequest buildPartial() { - com.google.cloud.clouddms.v1.PromoteMigrationJobRequest result = - new com.google.cloud.clouddms.v1.PromoteMigrationJobRequest(this); + com.google.cloud.clouddms.v1.PromoteMigrationJobRequest result = new com.google.cloud.clouddms.v1.PromoteMigrationJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -403,39 +370,38 @@ public com.google.cloud.clouddms.v1.PromoteMigrationJobRequest 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.clouddms.v1.PromoteMigrationJobRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.PromoteMigrationJobRequest) other); + return mergeFrom((com.google.cloud.clouddms.v1.PromoteMigrationJobRequest)other); } else { super.mergeFrom(other); return this; @@ -443,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.PromoteMigrationJobRequest other) { - if (other == com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -468,8 +433,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.clouddms.v1.PromoteMigrationJobRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.clouddms.v1.PromoteMigrationJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -481,20 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Name of the migration job resource to promote.
      * 
* * string name = 1 [(.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; @@ -503,21 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Name of the migration job resource to promote.
      * 
* * string name = 1 [(.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 { @@ -525,68 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Name of the migration job resource to promote.
      * 
* * string name = 1 [(.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; } /** - * - * *
      * Name of the migration job resource to promote.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Name of the migration job resource to promote.
      * 
* * string name = 1 [(.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); } @@ -596,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.PromoteMigrationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.PromoteMigrationJobRequest) private static final com.google.cloud.clouddms.v1.PromoteMigrationJobRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.PromoteMigrationJobRequest(); } @@ -610,16 +564,16 @@ public static com.google.cloud.clouddms.v1.PromoteMigrationJobRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PromoteMigrationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PromoteMigrationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PromoteMigrationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PromoteMigrationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -634,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.clouddms.v1.PromoteMigrationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequestOrBuilder.java new file mode 100644 index 00000000..92885f4d --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface PromoteMigrationJobRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.PromoteMigrationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Name of the migration job resource to promote.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Name of the migration job resource to promote.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequest.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequest.java similarity index 67% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequest.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequest.java index 5ee44016..35a889d3 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * Request message for 'RestartMigrationJob' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.RestartMigrationJobRequest} */ -public final class RestartMigrationJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RestartMigrationJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.RestartMigrationJobRequest) RestartMigrationJobRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RestartMigrationJobRequest.newBuilder() to construct. private RestartMigrationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RestartMigrationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RestartMigrationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RestartMigrationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,58 +53,52 @@ private RestartMigrationJobRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.RestartMigrationJobRequest.class, - com.google.cloud.clouddms.v1.RestartMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.RestartMigrationJobRequest.class, com.google.cloud.clouddms.v1.RestartMigrationJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Name of the migration job resource to restart.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ @java.lang.Override @@ -130,29 +107,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; } } /** - * - * *
    * Name of the migration job resource to restart.
    * 
* * string name = 1 [(.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 { @@ -161,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -197,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.clouddms.v1.RestartMigrationJobRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.RestartMigrationJobRequest other = - (com.google.cloud.clouddms.v1.RestartMigrationJobRequest) obj; + com.google.cloud.clouddms.v1.RestartMigrationJobRequest other = (com.google.cloud.clouddms.v1.RestartMigrationJobRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -225,127 +202,117 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.RestartMigrationJobRequest 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.clouddms.v1.RestartMigrationJobRequest 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.clouddms.v1.RestartMigrationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.RestartMigrationJobRequest 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.clouddms.v1.RestartMigrationJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.RestartMigrationJobRequest 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.clouddms.v1.RestartMigrationJobRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.RestartMigrationJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.RestartMigrationJobRequest 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.clouddms.v1.RestartMigrationJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.RestartMigrationJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.RestartMigrationJobRequest 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.clouddms.v1.RestartMigrationJobRequest 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.clouddms.v1.RestartMigrationJobRequest 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.clouddms.v1.RestartMigrationJobRequest prototype) { + public static Builder newBuilder(com.google.cloud.clouddms.v1.RestartMigrationJobRequest 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 message for 'RestartMigrationJob' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.RestartMigrationJobRequest} */ - 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.clouddms.v1.RestartMigrationJobRequest) com.google.cloud.clouddms.v1.RestartMigrationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.RestartMigrationJobRequest.class, - com.google.cloud.clouddms.v1.RestartMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.RestartMigrationJobRequest.class, com.google.cloud.clouddms.v1.RestartMigrationJobRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.RestartMigrationJobRequest.newBuilder() @@ -353,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -371,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_descriptor; } @java.lang.Override @@ -392,8 +360,7 @@ public com.google.cloud.clouddms.v1.RestartMigrationJobRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.RestartMigrationJobRequest buildPartial() { - com.google.cloud.clouddms.v1.RestartMigrationJobRequest result = - new com.google.cloud.clouddms.v1.RestartMigrationJobRequest(this); + com.google.cloud.clouddms.v1.RestartMigrationJobRequest result = new com.google.cloud.clouddms.v1.RestartMigrationJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -403,39 +370,38 @@ public com.google.cloud.clouddms.v1.RestartMigrationJobRequest 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.clouddms.v1.RestartMigrationJobRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.RestartMigrationJobRequest) other); + return mergeFrom((com.google.cloud.clouddms.v1.RestartMigrationJobRequest)other); } else { super.mergeFrom(other); return this; @@ -443,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.RestartMigrationJobRequest other) { - if (other == com.google.cloud.clouddms.v1.RestartMigrationJobRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.clouddms.v1.RestartMigrationJobRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -468,8 +433,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.clouddms.v1.RestartMigrationJobRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.clouddms.v1.RestartMigrationJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -481,20 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Name of the migration job resource to restart.
      * 
* * string name = 1 [(.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; @@ -503,21 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Name of the migration job resource to restart.
      * 
* * string name = 1 [(.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 { @@ -525,68 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Name of the migration job resource to restart.
      * 
* * string name = 1 [(.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; } /** - * - * *
      * Name of the migration job resource to restart.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Name of the migration job resource to restart.
      * 
* * string name = 1 [(.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); } @@ -596,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.RestartMigrationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.RestartMigrationJobRequest) private static final com.google.cloud.clouddms.v1.RestartMigrationJobRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.RestartMigrationJobRequest(); } @@ -610,16 +564,16 @@ public static com.google.cloud.clouddms.v1.RestartMigrationJobRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RestartMigrationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RestartMigrationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestartMigrationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RestartMigrationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -634,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.clouddms.v1.RestartMigrationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequestOrBuilder.java new file mode 100644 index 00000000..20bad1a6 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface RestartMigrationJobRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.RestartMigrationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Name of the migration job resource to restart.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Name of the migration job resource to restart.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequest.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequest.java similarity index 68% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequest.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequest.java index 81b9ccc3..df9b496f 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * Request message for 'ResumeMigrationJob' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.ResumeMigrationJobRequest} */ -public final class ResumeMigrationJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ResumeMigrationJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ResumeMigrationJobRequest) ResumeMigrationJobRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ResumeMigrationJobRequest.newBuilder() to construct. private ResumeMigrationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ResumeMigrationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ResumeMigrationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ResumeMigrationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,58 +53,52 @@ private ResumeMigrationJobRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.class, - com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.class, com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Name of the migration job resource to resume.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ @java.lang.Override @@ -130,29 +107,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; } } /** - * - * *
    * Name of the migration job resource to resume.
    * 
* * string name = 1 [(.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 { @@ -161,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -197,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.clouddms.v1.ResumeMigrationJobRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.ResumeMigrationJobRequest other = - (com.google.cloud.clouddms.v1.ResumeMigrationJobRequest) obj; + com.google.cloud.clouddms.v1.ResumeMigrationJobRequest other = (com.google.cloud.clouddms.v1.ResumeMigrationJobRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -225,127 +202,117 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.ResumeMigrationJobRequest 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.clouddms.v1.ResumeMigrationJobRequest 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.clouddms.v1.ResumeMigrationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.ResumeMigrationJobRequest 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.clouddms.v1.ResumeMigrationJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.ResumeMigrationJobRequest 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.clouddms.v1.ResumeMigrationJobRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.ResumeMigrationJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.ResumeMigrationJobRequest 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.clouddms.v1.ResumeMigrationJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.ResumeMigrationJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.ResumeMigrationJobRequest 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.clouddms.v1.ResumeMigrationJobRequest 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.clouddms.v1.ResumeMigrationJobRequest 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.clouddms.v1.ResumeMigrationJobRequest prototype) { + public static Builder newBuilder(com.google.cloud.clouddms.v1.ResumeMigrationJobRequest 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 message for 'ResumeMigrationJob' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.ResumeMigrationJobRequest} */ - 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.clouddms.v1.ResumeMigrationJobRequest) com.google.cloud.clouddms.v1.ResumeMigrationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.class, - com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.class, com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.newBuilder() @@ -353,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -371,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_descriptor; } @java.lang.Override @@ -392,8 +360,7 @@ public com.google.cloud.clouddms.v1.ResumeMigrationJobRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.ResumeMigrationJobRequest buildPartial() { - com.google.cloud.clouddms.v1.ResumeMigrationJobRequest result = - new com.google.cloud.clouddms.v1.ResumeMigrationJobRequest(this); + com.google.cloud.clouddms.v1.ResumeMigrationJobRequest result = new com.google.cloud.clouddms.v1.ResumeMigrationJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -403,39 +370,38 @@ public com.google.cloud.clouddms.v1.ResumeMigrationJobRequest 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.clouddms.v1.ResumeMigrationJobRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.ResumeMigrationJobRequest) other); + return mergeFrom((com.google.cloud.clouddms.v1.ResumeMigrationJobRequest)other); } else { super.mergeFrom(other); return this; @@ -443,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.ResumeMigrationJobRequest other) { - if (other == com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -468,8 +433,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.clouddms.v1.ResumeMigrationJobRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.clouddms.v1.ResumeMigrationJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -481,20 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Name of the migration job resource to resume.
      * 
* * string name = 1 [(.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; @@ -503,21 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Name of the migration job resource to resume.
      * 
* * string name = 1 [(.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 { @@ -525,68 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Name of the migration job resource to resume.
      * 
* * string name = 1 [(.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; } /** - * - * *
      * Name of the migration job resource to resume.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Name of the migration job resource to resume.
      * 
* * string name = 1 [(.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); } @@ -596,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.ResumeMigrationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ResumeMigrationJobRequest) private static final com.google.cloud.clouddms.v1.ResumeMigrationJobRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ResumeMigrationJobRequest(); } @@ -610,16 +564,16 @@ public static com.google.cloud.clouddms.v1.ResumeMigrationJobRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResumeMigrationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResumeMigrationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResumeMigrationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResumeMigrationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -634,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.clouddms.v1.ResumeMigrationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequestOrBuilder.java new file mode 100644 index 00000000..e1573e46 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface ResumeMigrationJobRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ResumeMigrationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Name of the migration job resource to resume.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Name of the migration job resource to resume.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivity.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivity.java similarity index 72% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivity.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivity.java index f61f8a7a..9bc75249 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivity.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivity.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/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * The details needed to configure a reverse SSH tunnel between the source and
  * destination databases. These details will be used when calling the
@@ -32,16 +15,15 @@
  *
  * Protobuf type {@code google.cloud.clouddms.v1.ReverseSshConnectivity}
  */
-public final class ReverseSshConnectivity extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ReverseSshConnectivity extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ReverseSshConnectivity)
     ReverseSshConnectivityOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ReverseSshConnectivity.newBuilder() to construct.
   private ReverseSshConnectivity(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ReverseSshConnectivity() {
     vmIp_ = "";
     vm_ = "";
@@ -50,15 +32,16 @@ private ReverseSshConnectivity() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ReverseSshConnectivity();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ReverseSshConnectivity(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -77,78 +60,70 @@ private ReverseSshConnectivity(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              vmIp_ = s;
-              break;
-            }
-          case 16:
-            {
-              vmPort_ = input.readInt32();
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            vmIp_ = s;
+            break;
+          }
+          case 16: {
 
-              vm_ = s;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            vmPort_ = input.readInt32();
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              vpc_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            vm_ = s;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            vpc_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
-        .internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
-        .internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_fieldAccessorTable
+    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.clouddms.v1.ReverseSshConnectivity.class,
-            com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder.class);
+            com.google.cloud.clouddms.v1.ReverseSshConnectivity.class, com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder.class);
   }
 
   public static final int VM_IP_FIELD_NUMBER = 1;
   private volatile java.lang.Object vmIp_;
   /**
-   *
-   *
    * 
    * Required. The IP of the virtual machine (Compute Engine) used as the bastion server
    * for the SSH tunnel.
    * 
* * string vm_ip = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The vmIp. */ @java.lang.Override @@ -157,30 +132,30 @@ public java.lang.String getVmIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vmIp_ = s; return s; } } /** - * - * *
    * Required. The IP of the virtual machine (Compute Engine) used as the bastion server
    * for the SSH tunnel.
    * 
* * string vm_ip = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for vmIp. */ @java.lang.Override - public com.google.protobuf.ByteString getVmIpBytes() { + public com.google.protobuf.ByteString + getVmIpBytes() { java.lang.Object ref = vmIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vmIp_ = b; return b; } else { @@ -191,15 +166,12 @@ public com.google.protobuf.ByteString getVmIpBytes() { public static final int VM_PORT_FIELD_NUMBER = 2; private int vmPort_; /** - * - * *
    * Required. The forwarding port of the virtual machine (Compute Engine) used as the
    * bastion server for the SSH tunnel.
    * 
* * int32 vm_port = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The vmPort. */ @java.lang.Override @@ -210,15 +182,12 @@ public int getVmPort() { public static final int VM_FIELD_NUMBER = 3; private volatile java.lang.Object vm_; /** - * - * *
    * The name of the virtual machine (Compute Engine) used as the bastion server
    * for the SSH tunnel.
    * 
* * string vm = 3; - * * @return The vm. */ @java.lang.Override @@ -227,30 +196,30 @@ public java.lang.String getVm() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vm_ = s; return s; } } /** - * - * *
    * The name of the virtual machine (Compute Engine) used as the bastion server
    * for the SSH tunnel.
    * 
* * string vm = 3; - * * @return The bytes for vm. */ @java.lang.Override - public com.google.protobuf.ByteString getVmBytes() { + public com.google.protobuf.ByteString + getVmBytes() { java.lang.Object ref = vm_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vm_ = b; return b; } else { @@ -261,14 +230,11 @@ public com.google.protobuf.ByteString getVmBytes() { public static final int VPC_FIELD_NUMBER = 4; private volatile java.lang.Object vpc_; /** - * - * *
    * The name of the VPC to peer with the Cloud SQL private network.
    * 
* * string vpc = 4; - * * @return The vpc. */ @java.lang.Override @@ -277,29 +243,29 @@ public java.lang.String getVpc() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpc_ = s; return s; } } /** - * - * *
    * The name of the VPC to peer with the Cloud SQL private network.
    * 
* * string vpc = 4; - * * @return The bytes for vpc. */ @java.lang.Override - public com.google.protobuf.ByteString getVpcBytes() { + public com.google.protobuf.ByteString + getVpcBytes() { java.lang.Object ref = vpc_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vpc_ = b; return b; } else { @@ -308,7 +274,6 @@ public com.google.protobuf.ByteString getVpcBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -320,7 +285,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 (!getVmIpBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, vmIp_); } @@ -346,7 +312,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, vmIp_); } if (vmPort_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, vmPort_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, vmPort_); } if (!getVmBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, vm_); @@ -362,18 +329,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.clouddms.v1.ReverseSshConnectivity)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.ReverseSshConnectivity other = - (com.google.cloud.clouddms.v1.ReverseSshConnectivity) obj; - - if (!getVmIp().equals(other.getVmIp())) return false; - if (getVmPort() != other.getVmPort()) return false; - if (!getVm().equals(other.getVm())) return false; - if (!getVpc().equals(other.getVpc())) return false; + com.google.cloud.clouddms.v1.ReverseSshConnectivity other = (com.google.cloud.clouddms.v1.ReverseSshConnectivity) obj; + + if (!getVmIp() + .equals(other.getVmIp())) return false; + if (getVmPort() + != other.getVmPort()) return false; + if (!getVm() + .equals(other.getVm())) return false; + if (!getVpc() + .equals(other.getVpc())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -399,103 +369,96 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.ReverseSshConnectivity 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.clouddms.v1.ReverseSshConnectivity 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.clouddms.v1.ReverseSshConnectivity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.ReverseSshConnectivity 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.clouddms.v1.ReverseSshConnectivity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.ReverseSshConnectivity 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.clouddms.v1.ReverseSshConnectivity parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.ReverseSshConnectivity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.ReverseSshConnectivity 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.clouddms.v1.ReverseSshConnectivity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.ReverseSshConnectivity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.ReverseSshConnectivity 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.clouddms.v1.ReverseSshConnectivity 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.clouddms.v1.ReverseSshConnectivity 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.clouddms.v1.ReverseSshConnectivity 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 details needed to configure a reverse SSH tunnel between the source and
    * destination databases. These details will be used when calling the
@@ -507,23 +470,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.clouddms.v1.ReverseSshConnectivity}
    */
-  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.clouddms.v1.ReverseSshConnectivity)
       com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
-          .internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
-          .internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_fieldAccessorTable
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.clouddms.v1.ReverseSshConnectivity.class,
-              com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder.class);
+              com.google.cloud.clouddms.v1.ReverseSshConnectivity.class, com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder.class);
     }
 
     // Construct using com.google.cloud.clouddms.v1.ReverseSshConnectivity.newBuilder()
@@ -531,15 +492,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -555,9 +517,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
-          .internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_descriptor;
     }
 
     @java.lang.Override
@@ -576,8 +538,7 @@ public com.google.cloud.clouddms.v1.ReverseSshConnectivity build() {
 
     @java.lang.Override
     public com.google.cloud.clouddms.v1.ReverseSshConnectivity buildPartial() {
-      com.google.cloud.clouddms.v1.ReverseSshConnectivity result =
-          new com.google.cloud.clouddms.v1.ReverseSshConnectivity(this);
+      com.google.cloud.clouddms.v1.ReverseSshConnectivity result = new com.google.cloud.clouddms.v1.ReverseSshConnectivity(this);
       result.vmIp_ = vmIp_;
       result.vmPort_ = vmPort_;
       result.vm_ = vm_;
@@ -590,39 +551,38 @@ public com.google.cloud.clouddms.v1.ReverseSshConnectivity 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.clouddms.v1.ReverseSshConnectivity) {
-        return mergeFrom((com.google.cloud.clouddms.v1.ReverseSshConnectivity) other);
+        return mergeFrom((com.google.cloud.clouddms.v1.ReverseSshConnectivity)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -630,8 +590,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.clouddms.v1.ReverseSshConnectivity other) {
-      if (other == com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance()) return this;
       if (!other.getVmIp().isEmpty()) {
         vmIp_ = other.vmIp_;
         onChanged();
@@ -666,8 +625,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.clouddms.v1.ReverseSshConnectivity) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.clouddms.v1.ReverseSshConnectivity) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -679,21 +637,19 @@ public Builder mergeFrom(
 
     private java.lang.Object vmIp_ = "";
     /**
-     *
-     *
      * 
      * Required. The IP of the virtual machine (Compute Engine) used as the bastion server
      * for the SSH tunnel.
      * 
* * string vm_ip = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The vmIp. */ public java.lang.String getVmIp() { java.lang.Object ref = vmIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vmIp_ = s; return s; @@ -702,22 +658,21 @@ public java.lang.String getVmIp() { } } /** - * - * *
      * Required. The IP of the virtual machine (Compute Engine) used as the bastion server
      * for the SSH tunnel.
      * 
* * string vm_ip = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for vmIp. */ - public com.google.protobuf.ByteString getVmIpBytes() { + public com.google.protobuf.ByteString + getVmIpBytes() { java.lang.Object ref = vmIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vmIp_ = b; return b; } else { @@ -725,80 +680,70 @@ public com.google.protobuf.ByteString getVmIpBytes() { } } /** - * - * *
      * Required. The IP of the virtual machine (Compute Engine) used as the bastion server
      * for the SSH tunnel.
      * 
* * string vm_ip = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The vmIp to set. * @return This builder for chaining. */ - public Builder setVmIp(java.lang.String value) { + public Builder setVmIp( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vmIp_ = value; onChanged(); return this; } /** - * - * *
      * Required. The IP of the virtual machine (Compute Engine) used as the bastion server
      * for the SSH tunnel.
      * 
* * string vm_ip = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearVmIp() { - + vmIp_ = getDefaultInstance().getVmIp(); onChanged(); return this; } /** - * - * *
      * Required. The IP of the virtual machine (Compute Engine) used as the bastion server
      * for the SSH tunnel.
      * 
* * string vm_ip = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for vmIp to set. * @return This builder for chaining. */ - public Builder setVmIpBytes(com.google.protobuf.ByteString value) { + public Builder setVmIpBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmIp_ = value; onChanged(); return this; } - private int vmPort_; + private int vmPort_ ; /** - * - * *
      * Required. The forwarding port of the virtual machine (Compute Engine) used as the
      * bastion server for the SSH tunnel.
      * 
* * int32 vm_port = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The vmPort. */ @java.lang.Override @@ -806,38 +751,32 @@ public int getVmPort() { return vmPort_; } /** - * - * *
      * Required. The forwarding port of the virtual machine (Compute Engine) used as the
      * bastion server for the SSH tunnel.
      * 
* * int32 vm_port = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The vmPort to set. * @return This builder for chaining. */ public Builder setVmPort(int value) { - + vmPort_ = value; onChanged(); return this; } /** - * - * *
      * Required. The forwarding port of the virtual machine (Compute Engine) used as the
      * bastion server for the SSH tunnel.
      * 
* * int32 vm_port = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearVmPort() { - + vmPort_ = 0; onChanged(); return this; @@ -845,21 +784,19 @@ public Builder clearVmPort() { private java.lang.Object vm_ = ""; /** - * - * *
      * The name of the virtual machine (Compute Engine) used as the bastion server
      * for the SSH tunnel.
      * 
* * string vm = 3; - * * @return The vm. */ public java.lang.String getVm() { java.lang.Object ref = vm_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vm_ = s; return s; @@ -868,22 +805,21 @@ public java.lang.String getVm() { } } /** - * - * *
      * The name of the virtual machine (Compute Engine) used as the bastion server
      * for the SSH tunnel.
      * 
* * string vm = 3; - * * @return The bytes for vm. */ - public com.google.protobuf.ByteString getVmBytes() { + public com.google.protobuf.ByteString + getVmBytes() { java.lang.Object ref = vm_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vm_ = b; return b; } else { @@ -891,64 +827,57 @@ public com.google.protobuf.ByteString getVmBytes() { } } /** - * - * *
      * The name of the virtual machine (Compute Engine) used as the bastion server
      * for the SSH tunnel.
      * 
* * string vm = 3; - * * @param value The vm to set. * @return This builder for chaining. */ - public Builder setVm(java.lang.String value) { + public Builder setVm( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vm_ = value; onChanged(); return this; } /** - * - * *
      * The name of the virtual machine (Compute Engine) used as the bastion server
      * for the SSH tunnel.
      * 
* * string vm = 3; - * * @return This builder for chaining. */ public Builder clearVm() { - + vm_ = getDefaultInstance().getVm(); onChanged(); return this; } /** - * - * *
      * The name of the virtual machine (Compute Engine) used as the bastion server
      * for the SSH tunnel.
      * 
* * string vm = 3; - * * @param value The bytes for vm to set. * @return This builder for chaining. */ - public Builder setVmBytes(com.google.protobuf.ByteString value) { + public Builder setVmBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vm_ = value; onChanged(); return this; @@ -956,20 +885,18 @@ public Builder setVmBytes(com.google.protobuf.ByteString value) { private java.lang.Object vpc_ = ""; /** - * - * *
      * The name of the VPC to peer with the Cloud SQL private network.
      * 
* * string vpc = 4; - * * @return The vpc. */ public java.lang.String getVpc() { java.lang.Object ref = vpc_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpc_ = s; return s; @@ -978,21 +905,20 @@ public java.lang.String getVpc() { } } /** - * - * *
      * The name of the VPC to peer with the Cloud SQL private network.
      * 
* * string vpc = 4; - * * @return The bytes for vpc. */ - public com.google.protobuf.ByteString getVpcBytes() { + public com.google.protobuf.ByteString + getVpcBytes() { java.lang.Object ref = vpc_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vpc_ = b; return b; } else { @@ -1000,68 +926,61 @@ public com.google.protobuf.ByteString getVpcBytes() { } } /** - * - * *
      * The name of the VPC to peer with the Cloud SQL private network.
      * 
* * string vpc = 4; - * * @param value The vpc to set. * @return This builder for chaining. */ - public Builder setVpc(java.lang.String value) { + public Builder setVpc( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vpc_ = value; onChanged(); return this; } /** - * - * *
      * The name of the VPC to peer with the Cloud SQL private network.
      * 
* * string vpc = 4; - * * @return This builder for chaining. */ public Builder clearVpc() { - + vpc_ = getDefaultInstance().getVpc(); onChanged(); return this; } /** - * - * *
      * The name of the VPC to peer with the Cloud SQL private network.
      * 
* * string vpc = 4; - * * @param value The bytes for vpc to set. * @return This builder for chaining. */ - public Builder setVpcBytes(com.google.protobuf.ByteString value) { + public Builder setVpcBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vpc_ = 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); } @@ -1071,12 +990,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.ReverseSshConnectivity) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ReverseSshConnectivity) private static final com.google.cloud.clouddms.v1.ReverseSshConnectivity DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ReverseSshConnectivity(); } @@ -1085,16 +1004,16 @@ public static com.google.cloud.clouddms.v1.ReverseSshConnectivity getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReverseSshConnectivity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReverseSshConnectivity(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReverseSshConnectivity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReverseSshConnectivity(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1109,4 +1028,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.ReverseSshConnectivity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivityOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivityOrBuilder.java similarity index 68% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivityOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivityOrBuilder.java index e018c513..02f62b19 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivityOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivityOrBuilder.java @@ -1,118 +1,84 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; -public interface ReverseSshConnectivityOrBuilder - extends +public interface ReverseSshConnectivityOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ReverseSshConnectivity) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The IP of the virtual machine (Compute Engine) used as the bastion server
    * for the SSH tunnel.
    * 
* * string vm_ip = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The vmIp. */ java.lang.String getVmIp(); /** - * - * *
    * Required. The IP of the virtual machine (Compute Engine) used as the bastion server
    * for the SSH tunnel.
    * 
* * string vm_ip = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for vmIp. */ - com.google.protobuf.ByteString getVmIpBytes(); + com.google.protobuf.ByteString + getVmIpBytes(); /** - * - * *
    * Required. The forwarding port of the virtual machine (Compute Engine) used as the
    * bastion server for the SSH tunnel.
    * 
* * int32 vm_port = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The vmPort. */ int getVmPort(); /** - * - * *
    * The name of the virtual machine (Compute Engine) used as the bastion server
    * for the SSH tunnel.
    * 
* * string vm = 3; - * * @return The vm. */ java.lang.String getVm(); /** - * - * *
    * The name of the virtual machine (Compute Engine) used as the bastion server
    * for the SSH tunnel.
    * 
* * string vm = 3; - * * @return The bytes for vm. */ - com.google.protobuf.ByteString getVmBytes(); + com.google.protobuf.ByteString + getVmBytes(); /** - * - * *
    * The name of the VPC to peer with the Cloud SQL private network.
    * 
* * string vpc = 4; - * * @return The vpc. */ java.lang.String getVpc(); /** - * - * *
    * The name of the VPC to peer with the Cloud SQL private network.
    * 
* * string vpc = 4; - * * @return The bytes for vpc. */ - com.google.protobuf.ByteString getVpcBytes(); + com.google.protobuf.ByteString + getVpcBytes(); } diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntry.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntry.java similarity index 72% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntry.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntry.java index cc1a882a..54bd2213 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntry.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntry.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/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * An entry for an Access Control list.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.SqlAclEntry} */ -public final class SqlAclEntry extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SqlAclEntry extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.SqlAclEntry) SqlAclEntryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SqlAclEntry.newBuilder() to construct. private SqlAclEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SqlAclEntry() { value_ = ""; label_ = ""; @@ -44,15 +26,16 @@ private SqlAclEntry() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SqlAclEntry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SqlAclEntry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,96 +54,87 @@ private SqlAclEntry( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + value_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - label_ = s; - break; + label_ = s; + break; + } + case 82: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (expirationCase_ == 10) { + subBuilder = ((com.google.protobuf.Timestamp) expiration_).toBuilder(); } - case 82: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (expirationCase_ == 10) { - subBuilder = ((com.google.protobuf.Timestamp) expiration_).toBuilder(); - } - expiration_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Timestamp) expiration_); - expiration_ = subBuilder.buildPartial(); - } - expirationCase_ = 10; - break; + expiration_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Timestamp) expiration_); + expiration_ = subBuilder.buildPartial(); } - case 90: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (expirationCase_ == 11) { - subBuilder = ((com.google.protobuf.Duration) expiration_).toBuilder(); - } - expiration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Duration) expiration_); - expiration_ = subBuilder.buildPartial(); - } - expirationCase_ = 11; - break; + expirationCase_ = 10; + break; + } + case 90: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (expirationCase_ == 11) { + subBuilder = ((com.google.protobuf.Duration) expiration_).toBuilder(); + } + expiration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Duration) expiration_); + expiration_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + expirationCase_ = 11; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_SqlAclEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SqlAclEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_SqlAclEntry_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SqlAclEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.SqlAclEntry.class, - com.google.cloud.clouddms.v1.SqlAclEntry.Builder.class); + com.google.cloud.clouddms.v1.SqlAclEntry.class, com.google.cloud.clouddms.v1.SqlAclEntry.Builder.class); } private int expirationCase_ = 0; private java.lang.Object expiration_; - public enum ExpirationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { EXPIRE_TIME(10), TTL(11), EXPIRATION_NOT_SET(0); private final int value; - private ExpirationCase(int value) { this.value = value; } @@ -176,37 +150,31 @@ public static ExpirationCase valueOf(int value) { public static ExpirationCase forNumber(int value) { switch (value) { - case 10: - return EXPIRE_TIME; - case 11: - return TTL; - case 0: - return EXPIRATION_NOT_SET; - default: - return null; + case 10: return EXPIRE_TIME; + case 11: return TTL; + case 0: return EXPIRATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ExpirationCase getExpirationCase() { - return ExpirationCase.forNumber(expirationCase_); + public ExpirationCase + getExpirationCase() { + return ExpirationCase.forNumber( + expirationCase_); } public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** - * - * *
    * The allowlisted value for the access control list.
    * 
* * string value = 1; - * * @return The value. */ @java.lang.Override @@ -215,29 +183,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** - * - * *
    * The allowlisted value for the access control list.
    * 
* * string value = 1; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -247,8 +215,6 @@ public com.google.protobuf.ByteString getValueBytes() { public static final int EXPIRE_TIME_FIELD_NUMBER = 10; /** - * - * *
    * The time when this access control entry expires in
    * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -256,7 +222,6 @@ public com.google.protobuf.ByteString getValueBytes() {
    * 
* * .google.protobuf.Timestamp expire_time = 10; - * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -264,8 +229,6 @@ public boolean hasExpireTime() { return expirationCase_ == 10; } /** - * - * *
    * The time when this access control entry expires in
    * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -273,19 +236,16 @@ public boolean hasExpireTime() {
    * 
* * .google.protobuf.Timestamp expire_time = 10; - * * @return The expireTime. */ @java.lang.Override public com.google.protobuf.Timestamp getExpireTime() { if (expirationCase_ == 10) { - return (com.google.protobuf.Timestamp) expiration_; + return (com.google.protobuf.Timestamp) expiration_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** - * - * *
    * The time when this access control entry expires in
    * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -297,21 +257,18 @@ public com.google.protobuf.Timestamp getExpireTime() {
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
     if (expirationCase_ == 10) {
-      return (com.google.protobuf.Timestamp) expiration_;
+       return (com.google.protobuf.Timestamp) expiration_;
     }
     return com.google.protobuf.Timestamp.getDefaultInstance();
   }
 
   public static final int TTL_FIELD_NUMBER = 11;
   /**
-   *
-   *
    * 
    * Input only. The time-to-leave of this access control entry.
    * 
* * .google.protobuf.Duration ttl = 11 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return Whether the ttl field is set. */ @java.lang.Override @@ -319,26 +276,21 @@ public boolean hasTtl() { return expirationCase_ == 11; } /** - * - * *
    * Input only. The time-to-leave of this access control entry.
    * 
* * .google.protobuf.Duration ttl = 11 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The ttl. */ @java.lang.Override public com.google.protobuf.Duration getTtl() { if (expirationCase_ == 11) { - return (com.google.protobuf.Duration) expiration_; + return (com.google.protobuf.Duration) expiration_; } return com.google.protobuf.Duration.getDefaultInstance(); } /** - * - * *
    * Input only. The time-to-leave of this access control entry.
    * 
@@ -348,7 +300,7 @@ public com.google.protobuf.Duration getTtl() { @java.lang.Override public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { if (expirationCase_ == 11) { - return (com.google.protobuf.Duration) expiration_; + return (com.google.protobuf.Duration) expiration_; } return com.google.protobuf.Duration.getDefaultInstance(); } @@ -356,14 +308,11 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { public static final int LABEL_FIELD_NUMBER = 3; private volatile java.lang.Object label_; /** - * - * *
    * A label to identify this entry.
    * 
* * string label = 3; - * * @return The label. */ @java.lang.Override @@ -372,29 +321,29 @@ public java.lang.String getLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** - * - * *
    * A label to identify this entry.
    * 
* * string label = 3; - * * @return The bytes for label. */ @java.lang.Override - public com.google.protobuf.ByteString getLabelBytes() { + public com.google.protobuf.ByteString + getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); label_ = b; return b; } else { @@ -403,7 +352,6 @@ public com.google.protobuf.ByteString getLabelBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -415,7 +363,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 (!getValueBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } @@ -444,14 +393,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, label_); } if (expirationCase_ == 10) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, (com.google.protobuf.Timestamp) expiration_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (com.google.protobuf.Timestamp) expiration_); } if (expirationCase_ == 11) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, (com.google.protobuf.Duration) expiration_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, (com.google.protobuf.Duration) expiration_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -461,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.clouddms.v1.SqlAclEntry)) { return super.equals(obj); } com.google.cloud.clouddms.v1.SqlAclEntry other = (com.google.cloud.clouddms.v1.SqlAclEntry) obj; - if (!getValue().equals(other.getValue())) return false; - if (!getLabel().equals(other.getLabel())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (!getLabel() + .equals(other.getLabel())) return false; if (!getExpirationCase().equals(other.getExpirationCase())) return false; switch (expirationCase_) { case 10: - if (!getExpireTime().equals(other.getExpireTime())) return false; + if (!getExpireTime() + .equals(other.getExpireTime())) return false; break; case 11: - if (!getTtl().equals(other.getTtl())) return false; + if (!getTtl() + .equals(other.getTtl())) return false; break; case 0: default: @@ -513,127 +464,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.clouddms.v1.SqlAclEntry parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.clouddms.v1.SqlAclEntry parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.SqlAclEntry 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.clouddms.v1.SqlAclEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.SqlAclEntry 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.clouddms.v1.SqlAclEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.SqlAclEntry 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.clouddms.v1.SqlAclEntry parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.SqlAclEntry 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.clouddms.v1.SqlAclEntry parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.SqlAclEntry parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.SqlAclEntry 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.clouddms.v1.SqlAclEntry 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.clouddms.v1.SqlAclEntry 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.clouddms.v1.SqlAclEntry 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; } /** - * - * *
    * An entry for an Access Control list.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.SqlAclEntry} */ - 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.clouddms.v1.SqlAclEntry) com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_SqlAclEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SqlAclEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_SqlAclEntry_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SqlAclEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.SqlAclEntry.class, - com.google.cloud.clouddms.v1.SqlAclEntry.Builder.class); + com.google.cloud.clouddms.v1.SqlAclEntry.class, com.google.cloud.clouddms.v1.SqlAclEntry.Builder.class); } // Construct using com.google.cloud.clouddms.v1.SqlAclEntry.newBuilder() @@ -641,15 +583,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -663,9 +606,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_SqlAclEntry_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SqlAclEntry_descriptor; } @java.lang.Override @@ -684,8 +627,7 @@ public com.google.cloud.clouddms.v1.SqlAclEntry build() { @java.lang.Override public com.google.cloud.clouddms.v1.SqlAclEntry buildPartial() { - com.google.cloud.clouddms.v1.SqlAclEntry result = - new com.google.cloud.clouddms.v1.SqlAclEntry(this); + com.google.cloud.clouddms.v1.SqlAclEntry result = new com.google.cloud.clouddms.v1.SqlAclEntry(this); result.value_ = value_; if (expirationCase_ == 10) { if (expireTimeBuilder_ == null) { @@ -711,39 +653,38 @@ public com.google.cloud.clouddms.v1.SqlAclEntry 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.clouddms.v1.SqlAclEntry) { - return mergeFrom((com.google.cloud.clouddms.v1.SqlAclEntry) other); + return mergeFrom((com.google.cloud.clouddms.v1.SqlAclEntry)other); } else { super.mergeFrom(other); return this; @@ -761,20 +702,17 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.SqlAclEntry other) { onChanged(); } switch (other.getExpirationCase()) { - case EXPIRE_TIME: - { - mergeExpireTime(other.getExpireTime()); - break; - } - case TTL: - { - mergeTtl(other.getTtl()); - break; - } - case EXPIRATION_NOT_SET: - { - break; - } + case EXPIRE_TIME: { + mergeExpireTime(other.getExpireTime()); + break; + } + case TTL: { + mergeTtl(other.getTtl()); + break; + } + case EXPIRATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -804,12 +742,12 @@ public Builder mergeFrom( } return this; } - private int expirationCase_ = 0; private java.lang.Object expiration_; - - public ExpirationCase getExpirationCase() { - return ExpirationCase.forNumber(expirationCase_); + public ExpirationCase + getExpirationCase() { + return ExpirationCase.forNumber( + expirationCase_); } public Builder clearExpiration() { @@ -819,22 +757,21 @@ public Builder clearExpiration() { return this; } + private java.lang.Object value_ = ""; /** - * - * *
      * The allowlisted value for the access control list.
      * 
* * string value = 1; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -843,21 +780,20 @@ public java.lang.String getValue() { } } /** - * - * *
      * The allowlisted value for the access control list.
      * 
* * string value = 1; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -865,74 +801,62 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
      * The allowlisted value for the access control list.
      * 
* * string value = 1; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
      * The allowlisted value for the access control list.
      * 
* * string value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
      * The allowlisted value for the access control list.
      * 
* * string value = 1; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * *
      * The time when this access control entry expires in
      * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -940,7 +864,6 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Timestamp expire_time = 10; - * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -948,8 +871,6 @@ public boolean hasExpireTime() { return expirationCase_ == 10; } /** - * - * *
      * The time when this access control entry expires in
      * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -957,7 +878,6 @@ public boolean hasExpireTime() {
      * 
* * .google.protobuf.Timestamp expire_time = 10; - * * @return The expireTime. */ @java.lang.Override @@ -975,8 +895,6 @@ public com.google.protobuf.Timestamp getExpireTime() { } } /** - * - * *
      * The time when this access control entry expires in
      * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -999,8 +917,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when this access control entry expires in
      * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -1009,7 +925,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp expire_time = 10;
      */
-    public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setExpireTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (expireTimeBuilder_ == null) {
         expiration_ = builderForValue.build();
         onChanged();
@@ -1020,8 +937,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when this access control entry expires in
      * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -1032,12 +947,10 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal
      */
     public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       if (expireTimeBuilder_ == null) {
-        if (expirationCase_ == 10
-            && expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
-          expiration_ =
-              com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (expirationCase_ == 10 &&
+            expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          expiration_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_)
+              .mergeFrom(value).buildPartial();
         } else {
           expiration_ = value;
         }
@@ -1052,8 +965,6 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when this access control entry expires in
      * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -1079,8 +990,6 @@ public Builder clearExpireTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when this access control entry expires in
      * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -1093,8 +1002,6 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
       return getExpireTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time when this access control entry expires in
      * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -1115,8 +1022,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * The time when this access control entry expires in
      * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -1126,42 +1031,32 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * .google.protobuf.Timestamp expire_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> 
         getExpireTimeFieldBuilder() {
       if (expireTimeBuilder_ == null) {
         if (!(expirationCase_ == 10)) {
           expiration_ = com.google.protobuf.Timestamp.getDefaultInstance();
         }
-        expireTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                (com.google.protobuf.Timestamp) expiration_, getParentForChildren(), isClean());
+        expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                (com.google.protobuf.Timestamp) expiration_,
+                getParentForChildren(),
+                isClean());
         expiration_ = null;
       }
       expirationCase_ = 10;
-      onChanged();
-      ;
+      onChanged();;
       return expireTimeBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        ttlBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_;
     /**
-     *
-     *
      * 
      * Input only. The time-to-leave of this access control entry.
      * 
* * .google.protobuf.Duration ttl = 11 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return Whether the ttl field is set. */ @java.lang.Override @@ -1169,14 +1064,11 @@ public boolean hasTtl() { return expirationCase_ == 11; } /** - * - * *
      * Input only. The time-to-leave of this access control entry.
      * 
* * .google.protobuf.Duration ttl = 11 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The ttl. */ @java.lang.Override @@ -1194,8 +1086,6 @@ public com.google.protobuf.Duration getTtl() { } } /** - * - * *
      * Input only. The time-to-leave of this access control entry.
      * 
@@ -1216,15 +1106,14 @@ public Builder setTtl(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Input only. The time-to-leave of this access control entry.
      * 
* * .google.protobuf.Duration ttl = 11 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTtl( + com.google.protobuf.Duration.Builder builderForValue) { if (ttlBuilder_ == null) { expiration_ = builderForValue.build(); onChanged(); @@ -1235,8 +1124,6 @@ public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) { return this; } /** - * - * *
      * Input only. The time-to-leave of this access control entry.
      * 
@@ -1245,12 +1132,10 @@ public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) { */ public Builder mergeTtl(com.google.protobuf.Duration value) { if (ttlBuilder_ == null) { - if (expirationCase_ == 11 - && expiration_ != com.google.protobuf.Duration.getDefaultInstance()) { - expiration_ = - com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_) - .mergeFrom(value) - .buildPartial(); + if (expirationCase_ == 11 && + expiration_ != com.google.protobuf.Duration.getDefaultInstance()) { + expiration_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_) + .mergeFrom(value).buildPartial(); } else { expiration_ = value; } @@ -1265,8 +1150,6 @@ public Builder mergeTtl(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Input only. The time-to-leave of this access control entry.
      * 
@@ -1290,8 +1173,6 @@ public Builder clearTtl() { return this; } /** - * - * *
      * Input only. The time-to-leave of this access control entry.
      * 
@@ -1302,8 +1183,6 @@ public com.google.protobuf.Duration.Builder getTtlBuilder() { return getTtlFieldBuilder().getBuilder(); } /** - * - * *
      * Input only. The time-to-leave of this access control entry.
      * 
@@ -1322,8 +1201,6 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { } } /** - * - * *
      * Input only. The time-to-leave of this access control entry.
      * 
@@ -1331,44 +1208,38 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { * .google.protobuf.Duration ttl = 11 [(.google.api.field_behavior) = INPUT_ONLY]; */ 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> getTtlFieldBuilder() { if (ttlBuilder_ == null) { if (!(expirationCase_ == 11)) { expiration_ = com.google.protobuf.Duration.getDefaultInstance(); } - ttlBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - (com.google.protobuf.Duration) expiration_, getParentForChildren(), isClean()); + ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + (com.google.protobuf.Duration) expiration_, + getParentForChildren(), + isClean()); expiration_ = null; } expirationCase_ = 11; - onChanged(); - ; + onChanged();; return ttlBuilder_; } private java.lang.Object label_ = ""; /** - * - * *
      * A label to identify this entry.
      * 
* * string label = 3; - * * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; @@ -1377,21 +1248,20 @@ public java.lang.String getLabel() { } } /** - * - * *
      * A label to identify this entry.
      * 
* * string label = 3; - * * @return The bytes for label. */ - public com.google.protobuf.ByteString getLabelBytes() { + public com.google.protobuf.ByteString + getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); label_ = b; return b; } else { @@ -1399,68 +1269,61 @@ public com.google.protobuf.ByteString getLabelBytes() { } } /** - * - * *
      * A label to identify this entry.
      * 
* * string label = 3; - * * @param value The label to set. * @return This builder for chaining. */ - public Builder setLabel(java.lang.String value) { + public Builder setLabel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + label_ = value; onChanged(); return this; } /** - * - * *
      * A label to identify this entry.
      * 
* * string label = 3; - * * @return This builder for chaining. */ public Builder clearLabel() { - + label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** - * - * *
      * A label to identify this entry.
      * 
* * string label = 3; - * * @param value The bytes for label to set. * @return This builder for chaining. */ - public Builder setLabelBytes(com.google.protobuf.ByteString value) { + public Builder setLabelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + label_ = 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); } @@ -1470,12 +1333,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.SqlAclEntry) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.SqlAclEntry) private static final com.google.cloud.clouddms.v1.SqlAclEntry DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.SqlAclEntry(); } @@ -1484,16 +1347,16 @@ public static com.google.cloud.clouddms.v1.SqlAclEntry getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SqlAclEntry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SqlAclEntry(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SqlAclEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SqlAclEntry(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1508,4 +1371,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.SqlAclEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntryOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntryOrBuilder.java similarity index 76% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntryOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntryOrBuilder.java index 807531b7..692916c3 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntryOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntryOrBuilder.java @@ -1,56 +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/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; -public interface SqlAclEntryOrBuilder - extends +public interface SqlAclEntryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.SqlAclEntry) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The allowlisted value for the access control list.
    * 
* * string value = 1; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
    * The allowlisted value for the access control list.
    * 
* * string value = 1; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); /** - * - * *
    * The time when this access control entry expires in
    * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -58,13 +35,10 @@ public interface SqlAclEntryOrBuilder
    * 
* * .google.protobuf.Timestamp expire_time = 10; - * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * The time when this access control entry expires in
    * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -72,13 +46,10 @@ public interface SqlAclEntryOrBuilder
    * 
* * .google.protobuf.Timestamp expire_time = 10; - * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * The time when this access control entry expires in
    * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -90,32 +61,24 @@ public interface SqlAclEntryOrBuilder
   com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Input only. The time-to-leave of this access control entry.
    * 
* * .google.protobuf.Duration ttl = 11 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return Whether the ttl field is set. */ boolean hasTtl(); /** - * - * *
    * Input only. The time-to-leave of this access control entry.
    * 
* * .google.protobuf.Duration ttl = 11 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The ttl. */ com.google.protobuf.Duration getTtl(); /** - * - * *
    * Input only. The time-to-leave of this access control entry.
    * 
@@ -125,29 +88,24 @@ public interface SqlAclEntryOrBuilder com.google.protobuf.DurationOrBuilder getTtlOrBuilder(); /** - * - * *
    * A label to identify this entry.
    * 
* * string label = 3; - * * @return The label. */ java.lang.String getLabel(); /** - * - * *
    * A label to identify this entry.
    * 
* * string label = 3; - * * @return The bytes for label. */ - com.google.protobuf.ByteString getLabelBytes(); + com.google.protobuf.ByteString + getLabelBytes(); public com.google.cloud.clouddms.v1.SqlAclEntry.ExpirationCase getExpirationCase(); } diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfig.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfig.java similarity index 78% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfig.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfig.java index 822d98db..a94de500 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfig.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/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * IP Management configuration.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.SqlIpConfig} */ -public final class SqlIpConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SqlIpConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.SqlIpConfig) SqlIpConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SqlIpConfig.newBuilder() to construct. private SqlIpConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SqlIpConfig() { privateNetwork_ = ""; authorizedNetworks_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private SqlIpConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SqlIpConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SqlIpConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,68 +55,61 @@ private SqlIpConfig( case 0: done = true; break; - case 10: - { - com.google.protobuf.BoolValue.Builder subBuilder = null; - if (enableIpv4_ != null) { - subBuilder = enableIpv4_.toBuilder(); - } - enableIpv4_ = - input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(enableIpv4_); - enableIpv4_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (enableIpv4_ != null) { + subBuilder = enableIpv4_.toBuilder(); } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - privateNetwork_ = s; - break; + enableIpv4_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(enableIpv4_); + enableIpv4_ = subBuilder.buildPartial(); } - case 26: - { - com.google.protobuf.BoolValue.Builder subBuilder = null; - if (requireSsl_ != null) { - subBuilder = requireSsl_.toBuilder(); - } - requireSsl_ = - input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(requireSsl_); - requireSsl_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + privateNetwork_ = s; + break; + } + case 26: { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (requireSsl_ != null) { + subBuilder = requireSsl_.toBuilder(); } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - authorizedNetworks_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - authorizedNetworks_.add( - input.readMessage( - com.google.cloud.clouddms.v1.SqlAclEntry.parser(), extensionRegistry)); - break; + requireSsl_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requireSsl_); + requireSsl_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + authorizedNetworks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + authorizedNetworks_.add( + input.readMessage(com.google.cloud.clouddms.v1.SqlAclEntry.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { authorizedNetworks_ = java.util.Collections.unmodifiableList(authorizedNetworks_); @@ -142,33 +118,27 @@ private SqlIpConfig( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_SqlIpConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SqlIpConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_SqlIpConfig_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SqlIpConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.SqlIpConfig.class, - com.google.cloud.clouddms.v1.SqlIpConfig.Builder.class); + com.google.cloud.clouddms.v1.SqlIpConfig.class, com.google.cloud.clouddms.v1.SqlIpConfig.Builder.class); } public static final int ENABLE_IPV4_FIELD_NUMBER = 1; private com.google.protobuf.BoolValue enableIpv4_; /** - * - * *
    * Whether the instance should be assigned an IPv4 address or not.
    * 
* * .google.protobuf.BoolValue enable_ipv4 = 1; - * * @return Whether the enableIpv4 field is set. */ @java.lang.Override @@ -176,14 +146,11 @@ public boolean hasEnableIpv4() { return enableIpv4_ != null; } /** - * - * *
    * Whether the instance should be assigned an IPv4 address or not.
    * 
* * .google.protobuf.BoolValue enable_ipv4 = 1; - * * @return The enableIpv4. */ @java.lang.Override @@ -191,8 +158,6 @@ public com.google.protobuf.BoolValue getEnableIpv4() { return enableIpv4_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableIpv4_; } /** - * - * *
    * Whether the instance should be assigned an IPv4 address or not.
    * 
@@ -207,8 +172,6 @@ public com.google.protobuf.BoolValueOrBuilder getEnableIpv4OrBuilder() { public static final int PRIVATE_NETWORK_FIELD_NUMBER = 2; private volatile java.lang.Object privateNetwork_; /** - * - * *
    * The resource link for the VPC network from which the Cloud SQL instance is
    * accessible for private IP. For example,
@@ -217,7 +180,6 @@ public com.google.protobuf.BoolValueOrBuilder getEnableIpv4OrBuilder() {
    * 
* * string private_network = 2; - * * @return The privateNetwork. */ @java.lang.Override @@ -226,15 +188,14 @@ public java.lang.String getPrivateNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateNetwork_ = s; return s; } } /** - * - * *
    * The resource link for the VPC network from which the Cloud SQL instance is
    * accessible for private IP. For example,
@@ -243,15 +204,16 @@ public java.lang.String getPrivateNetwork() {
    * 
* * string private_network = 2; - * * @return The bytes for privateNetwork. */ @java.lang.Override - public com.google.protobuf.ByteString getPrivateNetworkBytes() { + public com.google.protobuf.ByteString + getPrivateNetworkBytes() { java.lang.Object ref = privateNetwork_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); privateNetwork_ = b; return b; } else { @@ -262,14 +224,11 @@ public com.google.protobuf.ByteString getPrivateNetworkBytes() { public static final int REQUIRE_SSL_FIELD_NUMBER = 3; private com.google.protobuf.BoolValue requireSsl_; /** - * - * *
    * Whether SSL connections over IP should be enforced or not.
    * 
* * .google.protobuf.BoolValue require_ssl = 3; - * * @return Whether the requireSsl field is set. */ @java.lang.Override @@ -277,14 +236,11 @@ public boolean hasRequireSsl() { return requireSsl_ != null; } /** - * - * *
    * Whether SSL connections over IP should be enforced or not.
    * 
* * .google.protobuf.BoolValue require_ssl = 3; - * * @return The requireSsl. */ @java.lang.Override @@ -292,8 +248,6 @@ public com.google.protobuf.BoolValue getRequireSsl() { return requireSsl_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : requireSsl_; } /** - * - * *
    * Whether SSL connections over IP should be enforced or not.
    * 
@@ -308,8 +262,6 @@ public com.google.protobuf.BoolValueOrBuilder getRequireSslOrBuilder() { public static final int AUTHORIZED_NETWORKS_FIELD_NUMBER = 4; private java.util.List authorizedNetworks_; /** - * - * *
    * The list of external networks that are allowed to connect to the instance
    * using the IP. See
@@ -324,8 +276,6 @@ public java.util.List getAuthorizedNet
     return authorizedNetworks_;
   }
   /**
-   *
-   *
    * 
    * The list of external networks that are allowed to connect to the instance
    * using the IP. See
@@ -336,13 +286,11 @@ public java.util.List getAuthorizedNet
    * repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getAuthorizedNetworksOrBuilderList() {
     return authorizedNetworks_;
   }
   /**
-   *
-   *
    * 
    * The list of external networks that are allowed to connect to the instance
    * using the IP. See
@@ -357,8 +305,6 @@ public int getAuthorizedNetworksCount() {
     return authorizedNetworks_.size();
   }
   /**
-   *
-   *
    * 
    * The list of external networks that are allowed to connect to the instance
    * using the IP. See
@@ -373,8 +319,6 @@ public com.google.cloud.clouddms.v1.SqlAclEntry getAuthorizedNetworks(int index)
     return authorizedNetworks_.get(index);
   }
   /**
-   *
-   *
    * 
    * The list of external networks that are allowed to connect to the instance
    * using the IP. See
@@ -391,7 +335,6 @@ public com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder getAuthorizedNetworksOr
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -403,7 +346,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 (enableIpv4_ != null) {
       output.writeMessage(1, getEnableIpv4());
     }
@@ -426,17 +370,19 @@ public int getSerializedSize() {
 
     size = 0;
     if (enableIpv4_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEnableIpv4());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getEnableIpv4());
     }
     if (!getPrivateNetworkBytes().isEmpty()) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, privateNetwork_);
     }
     if (requireSsl_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequireSsl());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getRequireSsl());
     }
     for (int i = 0; i < authorizedNetworks_.size(); i++) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(4, authorizedNetworks_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, authorizedNetworks_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -446,7 +392,7 @@ 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.clouddms.v1.SqlIpConfig)) {
       return super.equals(obj);
@@ -455,14 +401,18 @@ public boolean equals(final java.lang.Object obj) {
 
     if (hasEnableIpv4() != other.hasEnableIpv4()) return false;
     if (hasEnableIpv4()) {
-      if (!getEnableIpv4().equals(other.getEnableIpv4())) return false;
+      if (!getEnableIpv4()
+          .equals(other.getEnableIpv4())) return false;
     }
-    if (!getPrivateNetwork().equals(other.getPrivateNetwork())) return false;
+    if (!getPrivateNetwork()
+        .equals(other.getPrivateNetwork())) return false;
     if (hasRequireSsl() != other.hasRequireSsl()) return false;
     if (hasRequireSsl()) {
-      if (!getRequireSsl().equals(other.getRequireSsl())) return false;
+      if (!getRequireSsl()
+          .equals(other.getRequireSsl())) return false;
     }
-    if (!getAuthorizedNetworksList().equals(other.getAuthorizedNetworksList())) return false;
+    if (!getAuthorizedNetworksList()
+        .equals(other.getAuthorizedNetworksList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -493,127 +443,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.clouddms.v1.SqlIpConfig parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.clouddms.v1.SqlIpConfig parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.clouddms.v1.SqlIpConfig 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.clouddms.v1.SqlIpConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.clouddms.v1.SqlIpConfig 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.clouddms.v1.SqlIpConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.clouddms.v1.SqlIpConfig 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.clouddms.v1.SqlIpConfig parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.clouddms.v1.SqlIpConfig 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.clouddms.v1.SqlIpConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.clouddms.v1.SqlIpConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.clouddms.v1.SqlIpConfig 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.clouddms.v1.SqlIpConfig 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.clouddms.v1.SqlIpConfig 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.clouddms.v1.SqlIpConfig 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;
   }
   /**
-   *
-   *
    * 
    * IP Management configuration.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.SqlIpConfig} */ - 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.clouddms.v1.SqlIpConfig) com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_SqlIpConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SqlIpConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_SqlIpConfig_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SqlIpConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.SqlIpConfig.class, - com.google.cloud.clouddms.v1.SqlIpConfig.Builder.class); + com.google.cloud.clouddms.v1.SqlIpConfig.class, com.google.cloud.clouddms.v1.SqlIpConfig.Builder.class); } // Construct using com.google.cloud.clouddms.v1.SqlIpConfig.newBuilder() @@ -621,17 +562,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) { getAuthorizedNetworksFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -659,9 +600,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_SqlIpConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SqlIpConfig_descriptor; } @java.lang.Override @@ -680,8 +621,7 @@ public com.google.cloud.clouddms.v1.SqlIpConfig build() { @java.lang.Override public com.google.cloud.clouddms.v1.SqlIpConfig buildPartial() { - com.google.cloud.clouddms.v1.SqlIpConfig result = - new com.google.cloud.clouddms.v1.SqlIpConfig(this); + com.google.cloud.clouddms.v1.SqlIpConfig result = new com.google.cloud.clouddms.v1.SqlIpConfig(this); int from_bitField0_ = bitField0_; if (enableIpv4Builder_ == null) { result.enableIpv4_ = enableIpv4_; @@ -711,39 +651,38 @@ public com.google.cloud.clouddms.v1.SqlIpConfig 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.clouddms.v1.SqlIpConfig) { - return mergeFrom((com.google.cloud.clouddms.v1.SqlIpConfig) other); + return mergeFrom((com.google.cloud.clouddms.v1.SqlIpConfig)other); } else { super.mergeFrom(other); return this; @@ -780,10 +719,9 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.SqlIpConfig other) { authorizedNetworksBuilder_ = null; authorizedNetworks_ = other.authorizedNetworks_; bitField0_ = (bitField0_ & ~0x00000001); - authorizedNetworksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAuthorizedNetworksFieldBuilder() - : null; + authorizedNetworksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAuthorizedNetworksFieldBuilder() : null; } else { authorizedNetworksBuilder_.addAllMessages(other.authorizedNetworks_); } @@ -817,52 +755,38 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.protobuf.BoolValue enableIpv4_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - enableIpv4Builder_; + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableIpv4Builder_; /** - * - * *
      * Whether the instance should be assigned an IPv4 address or not.
      * 
* * .google.protobuf.BoolValue enable_ipv4 = 1; - * * @return Whether the enableIpv4 field is set. */ public boolean hasEnableIpv4() { return enableIpv4Builder_ != null || enableIpv4_ != null; } /** - * - * *
      * Whether the instance should be assigned an IPv4 address or not.
      * 
* * .google.protobuf.BoolValue enable_ipv4 = 1; - * * @return The enableIpv4. */ public com.google.protobuf.BoolValue getEnableIpv4() { if (enableIpv4Builder_ == null) { - return enableIpv4_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : enableIpv4_; + return enableIpv4_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableIpv4_; } else { return enableIpv4Builder_.getMessage(); } } /** - * - * *
      * Whether the instance should be assigned an IPv4 address or not.
      * 
@@ -883,15 +807,14 @@ public Builder setEnableIpv4(com.google.protobuf.BoolValue value) { return this; } /** - * - * *
      * Whether the instance should be assigned an IPv4 address or not.
      * 
* * .google.protobuf.BoolValue enable_ipv4 = 1; */ - public Builder setEnableIpv4(com.google.protobuf.BoolValue.Builder builderForValue) { + public Builder setEnableIpv4( + com.google.protobuf.BoolValue.Builder builderForValue) { if (enableIpv4Builder_ == null) { enableIpv4_ = builderForValue.build(); onChanged(); @@ -902,8 +825,6 @@ public Builder setEnableIpv4(com.google.protobuf.BoolValue.Builder builderForVal return this; } /** - * - * *
      * Whether the instance should be assigned an IPv4 address or not.
      * 
@@ -914,7 +835,7 @@ public Builder mergeEnableIpv4(com.google.protobuf.BoolValue value) { if (enableIpv4Builder_ == null) { if (enableIpv4_ != null) { enableIpv4_ = - com.google.protobuf.BoolValue.newBuilder(enableIpv4_).mergeFrom(value).buildPartial(); + com.google.protobuf.BoolValue.newBuilder(enableIpv4_).mergeFrom(value).buildPartial(); } else { enableIpv4_ = value; } @@ -926,8 +847,6 @@ public Builder mergeEnableIpv4(com.google.protobuf.BoolValue value) { return this; } /** - * - * *
      * Whether the instance should be assigned an IPv4 address or not.
      * 
@@ -946,8 +865,6 @@ public Builder clearEnableIpv4() { return this; } /** - * - * *
      * Whether the instance should be assigned an IPv4 address or not.
      * 
@@ -955,13 +872,11 @@ public Builder clearEnableIpv4() { * .google.protobuf.BoolValue enable_ipv4 = 1; */ public com.google.protobuf.BoolValue.Builder getEnableIpv4Builder() { - + onChanged(); return getEnableIpv4FieldBuilder().getBuilder(); } /** - * - * *
      * Whether the instance should be assigned an IPv4 address or not.
      * 
@@ -972,14 +887,11 @@ public com.google.protobuf.BoolValueOrBuilder getEnableIpv4OrBuilder() { if (enableIpv4Builder_ != null) { return enableIpv4Builder_.getMessageOrBuilder(); } else { - return enableIpv4_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : enableIpv4_; + return enableIpv4_ == null ? + com.google.protobuf.BoolValue.getDefaultInstance() : enableIpv4_; } } /** - * - * *
      * Whether the instance should be assigned an IPv4 address or not.
      * 
@@ -987,17 +899,14 @@ public com.google.protobuf.BoolValueOrBuilder getEnableIpv4OrBuilder() { * .google.protobuf.BoolValue enable_ipv4 = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getEnableIpv4FieldBuilder() { if (enableIpv4Builder_ == null) { - enableIpv4Builder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder>( - getEnableIpv4(), getParentForChildren(), isClean()); + enableIpv4Builder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( + getEnableIpv4(), + getParentForChildren(), + isClean()); enableIpv4_ = null; } return enableIpv4Builder_; @@ -1005,8 +914,6 @@ public com.google.protobuf.BoolValueOrBuilder getEnableIpv4OrBuilder() { private java.lang.Object privateNetwork_ = ""; /** - * - * *
      * The resource link for the VPC network from which the Cloud SQL instance is
      * accessible for private IP. For example,
@@ -1015,13 +922,13 @@ public com.google.protobuf.BoolValueOrBuilder getEnableIpv4OrBuilder() {
      * 
* * string private_network = 2; - * * @return The privateNetwork. */ public java.lang.String getPrivateNetwork() { java.lang.Object ref = privateNetwork_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateNetwork_ = s; return s; @@ -1030,8 +937,6 @@ public java.lang.String getPrivateNetwork() { } } /** - * - * *
      * The resource link for the VPC network from which the Cloud SQL instance is
      * accessible for private IP. For example,
@@ -1040,14 +945,15 @@ public java.lang.String getPrivateNetwork() {
      * 
* * string private_network = 2; - * * @return The bytes for privateNetwork. */ - public com.google.protobuf.ByteString getPrivateNetworkBytes() { + public com.google.protobuf.ByteString + getPrivateNetworkBytes() { java.lang.Object ref = privateNetwork_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); privateNetwork_ = b; return b; } else { @@ -1055,8 +961,6 @@ public com.google.protobuf.ByteString getPrivateNetworkBytes() { } } /** - * - * *
      * The resource link for the VPC network from which the Cloud SQL instance is
      * accessible for private IP. For example,
@@ -1065,22 +969,20 @@ public com.google.protobuf.ByteString getPrivateNetworkBytes() {
      * 
* * string private_network = 2; - * * @param value The privateNetwork to set. * @return This builder for chaining. */ - public Builder setPrivateNetwork(java.lang.String value) { + public Builder setPrivateNetwork( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + privateNetwork_ = value; onChanged(); return this; } /** - * - * *
      * The resource link for the VPC network from which the Cloud SQL instance is
      * accessible for private IP. For example,
@@ -1089,18 +991,15 @@ public Builder setPrivateNetwork(java.lang.String value) {
      * 
* * string private_network = 2; - * * @return This builder for chaining. */ public Builder clearPrivateNetwork() { - + privateNetwork_ = getDefaultInstance().getPrivateNetwork(); onChanged(); return this; } /** - * - * *
      * The resource link for the VPC network from which the Cloud SQL instance is
      * accessible for private IP. For example,
@@ -1109,16 +1008,16 @@ public Builder clearPrivateNetwork() {
      * 
* * string private_network = 2; - * * @param value The bytes for privateNetwork to set. * @return This builder for chaining. */ - public Builder setPrivateNetworkBytes(com.google.protobuf.ByteString value) { + public Builder setPrivateNetworkBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + privateNetwork_ = value; onChanged(); return this; @@ -1126,47 +1025,34 @@ public Builder setPrivateNetworkBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.BoolValue requireSsl_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - requireSslBuilder_; + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> requireSslBuilder_; /** - * - * *
      * Whether SSL connections over IP should be enforced or not.
      * 
* * .google.protobuf.BoolValue require_ssl = 3; - * * @return Whether the requireSsl field is set. */ public boolean hasRequireSsl() { return requireSslBuilder_ != null || requireSsl_ != null; } /** - * - * *
      * Whether SSL connections over IP should be enforced or not.
      * 
* * .google.protobuf.BoolValue require_ssl = 3; - * * @return The requireSsl. */ public com.google.protobuf.BoolValue getRequireSsl() { if (requireSslBuilder_ == null) { - return requireSsl_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : requireSsl_; + return requireSsl_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : requireSsl_; } else { return requireSslBuilder_.getMessage(); } } /** - * - * *
      * Whether SSL connections over IP should be enforced or not.
      * 
@@ -1187,15 +1073,14 @@ public Builder setRequireSsl(com.google.protobuf.BoolValue value) { return this; } /** - * - * *
      * Whether SSL connections over IP should be enforced or not.
      * 
* * .google.protobuf.BoolValue require_ssl = 3; */ - public Builder setRequireSsl(com.google.protobuf.BoolValue.Builder builderForValue) { + public Builder setRequireSsl( + com.google.protobuf.BoolValue.Builder builderForValue) { if (requireSslBuilder_ == null) { requireSsl_ = builderForValue.build(); onChanged(); @@ -1206,8 +1091,6 @@ public Builder setRequireSsl(com.google.protobuf.BoolValue.Builder builderForVal return this; } /** - * - * *
      * Whether SSL connections over IP should be enforced or not.
      * 
@@ -1218,7 +1101,7 @@ public Builder mergeRequireSsl(com.google.protobuf.BoolValue value) { if (requireSslBuilder_ == null) { if (requireSsl_ != null) { requireSsl_ = - com.google.protobuf.BoolValue.newBuilder(requireSsl_).mergeFrom(value).buildPartial(); + com.google.protobuf.BoolValue.newBuilder(requireSsl_).mergeFrom(value).buildPartial(); } else { requireSsl_ = value; } @@ -1230,8 +1113,6 @@ public Builder mergeRequireSsl(com.google.protobuf.BoolValue value) { return this; } /** - * - * *
      * Whether SSL connections over IP should be enforced or not.
      * 
@@ -1250,8 +1131,6 @@ public Builder clearRequireSsl() { return this; } /** - * - * *
      * Whether SSL connections over IP should be enforced or not.
      * 
@@ -1259,13 +1138,11 @@ public Builder clearRequireSsl() { * .google.protobuf.BoolValue require_ssl = 3; */ public com.google.protobuf.BoolValue.Builder getRequireSslBuilder() { - + onChanged(); return getRequireSslFieldBuilder().getBuilder(); } /** - * - * *
      * Whether SSL connections over IP should be enforced or not.
      * 
@@ -1276,14 +1153,11 @@ public com.google.protobuf.BoolValueOrBuilder getRequireSslOrBuilder() { if (requireSslBuilder_ != null) { return requireSslBuilder_.getMessageOrBuilder(); } else { - return requireSsl_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : requireSsl_; + return requireSsl_ == null ? + com.google.protobuf.BoolValue.getDefaultInstance() : requireSsl_; } } /** - * - * *
      * Whether SSL connections over IP should be enforced or not.
      * 
@@ -1291,42 +1165,32 @@ public com.google.protobuf.BoolValueOrBuilder getRequireSslOrBuilder() { * .google.protobuf.BoolValue require_ssl = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getRequireSslFieldBuilder() { if (requireSslBuilder_ == null) { - requireSslBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder>( - getRequireSsl(), getParentForChildren(), isClean()); + requireSslBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( + getRequireSsl(), + getParentForChildren(), + isClean()); requireSsl_ = null; } return requireSslBuilder_; } private java.util.List authorizedNetworks_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAuthorizedNetworksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - authorizedNetworks_ = - new java.util.ArrayList(authorizedNetworks_); + authorizedNetworks_ = new java.util.ArrayList(authorizedNetworks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.clouddms.v1.SqlAclEntry, - com.google.cloud.clouddms.v1.SqlAclEntry.Builder, - com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder> - authorizedNetworksBuilder_; + com.google.cloud.clouddms.v1.SqlAclEntry, com.google.cloud.clouddms.v1.SqlAclEntry.Builder, com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder> authorizedNetworksBuilder_; /** - * - * *
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1344,8 +1208,6 @@ public java.util.List getAuthorizedNet
       }
     }
     /**
-     *
-     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1363,8 +1225,6 @@ public int getAuthorizedNetworksCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1382,8 +1242,6 @@ public com.google.cloud.clouddms.v1.SqlAclEntry getAuthorizedNetworks(int index)
       }
     }
     /**
-     *
-     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1408,8 +1266,6 @@ public Builder setAuthorizedNetworks(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1431,8 +1287,6 @@ public Builder setAuthorizedNetworks(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1456,8 +1310,6 @@ public Builder addAuthorizedNetworks(com.google.cloud.clouddms.v1.SqlAclEntry va
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1482,8 +1334,6 @@ public Builder addAuthorizedNetworks(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1505,8 +1355,6 @@ public Builder addAuthorizedNetworks(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1528,8 +1376,6 @@ public Builder addAuthorizedNetworks(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1543,7 +1389,8 @@ public Builder addAllAuthorizedNetworks(
         java.lang.Iterable values) {
       if (authorizedNetworksBuilder_ == null) {
         ensureAuthorizedNetworksIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, authorizedNetworks_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, authorizedNetworks_);
         onChanged();
       } else {
         authorizedNetworksBuilder_.addAllMessages(values);
@@ -1551,8 +1398,6 @@ public Builder addAllAuthorizedNetworks(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1573,8 +1418,6 @@ public Builder clearAuthorizedNetworks() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1595,8 +1438,6 @@ public Builder removeAuthorizedNetworks(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1611,8 +1452,6 @@ public com.google.cloud.clouddms.v1.SqlAclEntry.Builder getAuthorizedNetworksBui
       return getAuthorizedNetworksFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1625,14 +1464,11 @@ public com.google.cloud.clouddms.v1.SqlAclEntry.Builder getAuthorizedNetworksBui
     public com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder getAuthorizedNetworksOrBuilder(
         int index) {
       if (authorizedNetworksBuilder_ == null) {
-        return authorizedNetworks_.get(index);
-      } else {
+        return authorizedNetworks_.get(index);  } else {
         return authorizedNetworksBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1642,8 +1478,8 @@ public com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder getAuthorizedNetworksOr
      *
      * repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
      */
-    public java.util.List
-        getAuthorizedNetworksOrBuilderList() {
+    public java.util.List 
+         getAuthorizedNetworksOrBuilderList() {
       if (authorizedNetworksBuilder_ != null) {
         return authorizedNetworksBuilder_.getMessageOrBuilderList();
       } else {
@@ -1651,8 +1487,6 @@ public com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder getAuthorizedNetworksOr
       }
     }
     /**
-     *
-     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1663,12 +1497,10 @@ public com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder getAuthorizedNetworksOr
      * repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
      */
     public com.google.cloud.clouddms.v1.SqlAclEntry.Builder addAuthorizedNetworksBuilder() {
-      return getAuthorizedNetworksFieldBuilder()
-          .addBuilder(com.google.cloud.clouddms.v1.SqlAclEntry.getDefaultInstance());
+      return getAuthorizedNetworksFieldBuilder().addBuilder(
+          com.google.cloud.clouddms.v1.SqlAclEntry.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1680,12 +1512,10 @@ public com.google.cloud.clouddms.v1.SqlAclEntry.Builder addAuthorizedNetworksBui
      */
     public com.google.cloud.clouddms.v1.SqlAclEntry.Builder addAuthorizedNetworksBuilder(
         int index) {
-      return getAuthorizedNetworksFieldBuilder()
-          .addBuilder(index, com.google.cloud.clouddms.v1.SqlAclEntry.getDefaultInstance());
+      return getAuthorizedNetworksFieldBuilder().addBuilder(
+          index, com.google.cloud.clouddms.v1.SqlAclEntry.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1695,22 +1525,16 @@ public com.google.cloud.clouddms.v1.SqlAclEntry.Builder addAuthorizedNetworksBui
      *
      * repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
      */
-    public java.util.List
-        getAuthorizedNetworksBuilderList() {
+    public java.util.List 
+         getAuthorizedNetworksBuilderList() {
       return getAuthorizedNetworksFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.clouddms.v1.SqlAclEntry,
-            com.google.cloud.clouddms.v1.SqlAclEntry.Builder,
-            com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder>
+        com.google.cloud.clouddms.v1.SqlAclEntry, com.google.cloud.clouddms.v1.SqlAclEntry.Builder, com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder> 
         getAuthorizedNetworksFieldBuilder() {
       if (authorizedNetworksBuilder_ == null) {
-        authorizedNetworksBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.clouddms.v1.SqlAclEntry,
-                com.google.cloud.clouddms.v1.SqlAclEntry.Builder,
-                com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder>(
+        authorizedNetworksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.clouddms.v1.SqlAclEntry, com.google.cloud.clouddms.v1.SqlAclEntry.Builder, com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder>(
                 authorizedNetworks_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -1719,9 +1543,9 @@ public com.google.cloud.clouddms.v1.SqlAclEntry.Builder addAuthorizedNetworksBui
       }
       return authorizedNetworksBuilder_;
     }
-
     @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);
     }
 
@@ -1731,12 +1555,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.SqlIpConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.SqlIpConfig)
   private static final com.google.cloud.clouddms.v1.SqlIpConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.SqlIpConfig();
   }
@@ -1745,16 +1569,16 @@ public static com.google.cloud.clouddms.v1.SqlIpConfig getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SqlIpConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new SqlIpConfig(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SqlIpConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new SqlIpConfig(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1769,4 +1593,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.clouddms.v1.SqlIpConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfigOrBuilder.java
similarity index 82%
rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfigOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfigOrBuilder.java
index 60926fe5..7b76780a 100644
--- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfigOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfigOrBuilder.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/clouddms/v1/clouddms_resources.proto
 
 package com.google.cloud.clouddms.v1;
 
-public interface SqlIpConfigOrBuilder
-    extends
+public interface SqlIpConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.SqlIpConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Whether the instance should be assigned an IPv4 address or not.
    * 
* * .google.protobuf.BoolValue enable_ipv4 = 1; - * * @return Whether the enableIpv4 field is set. */ boolean hasEnableIpv4(); /** - * - * *
    * Whether the instance should be assigned an IPv4 address or not.
    * 
* * .google.protobuf.BoolValue enable_ipv4 = 1; - * * @return The enableIpv4. */ com.google.protobuf.BoolValue getEnableIpv4(); /** - * - * *
    * Whether the instance should be assigned an IPv4 address or not.
    * 
@@ -59,8 +35,6 @@ public interface SqlIpConfigOrBuilder com.google.protobuf.BoolValueOrBuilder getEnableIpv4OrBuilder(); /** - * - * *
    * The resource link for the VPC network from which the Cloud SQL instance is
    * accessible for private IP. For example,
@@ -69,13 +43,10 @@ public interface SqlIpConfigOrBuilder
    * 
* * string private_network = 2; - * * @return The privateNetwork. */ java.lang.String getPrivateNetwork(); /** - * - * *
    * The resource link for the VPC network from which the Cloud SQL instance is
    * accessible for private IP. For example,
@@ -84,38 +55,30 @@ public interface SqlIpConfigOrBuilder
    * 
* * string private_network = 2; - * * @return The bytes for privateNetwork. */ - com.google.protobuf.ByteString getPrivateNetworkBytes(); + com.google.protobuf.ByteString + getPrivateNetworkBytes(); /** - * - * *
    * Whether SSL connections over IP should be enforced or not.
    * 
* * .google.protobuf.BoolValue require_ssl = 3; - * * @return Whether the requireSsl field is set. */ boolean hasRequireSsl(); /** - * - * *
    * Whether SSL connections over IP should be enforced or not.
    * 
* * .google.protobuf.BoolValue require_ssl = 3; - * * @return The requireSsl. */ com.google.protobuf.BoolValue getRequireSsl(); /** - * - * *
    * Whether SSL connections over IP should be enforced or not.
    * 
@@ -125,8 +88,6 @@ public interface SqlIpConfigOrBuilder com.google.protobuf.BoolValueOrBuilder getRequireSslOrBuilder(); /** - * - * *
    * The list of external networks that are allowed to connect to the instance
    * using the IP. See
@@ -136,10 +97,9 @@ public interface SqlIpConfigOrBuilder
    *
    * repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
    */
-  java.util.List getAuthorizedNetworksList();
+  java.util.List 
+      getAuthorizedNetworksList();
   /**
-   *
-   *
    * 
    * The list of external networks that are allowed to connect to the instance
    * using the IP. See
@@ -151,8 +111,6 @@ public interface SqlIpConfigOrBuilder
    */
   com.google.cloud.clouddms.v1.SqlAclEntry getAuthorizedNetworks(int index);
   /**
-   *
-   *
    * 
    * The list of external networks that are allowed to connect to the instance
    * using the IP. See
@@ -164,8 +122,6 @@ public interface SqlIpConfigOrBuilder
    */
   int getAuthorizedNetworksCount();
   /**
-   *
-   *
    * 
    * The list of external networks that are allowed to connect to the instance
    * using the IP. See
@@ -175,11 +131,9 @@ public interface SqlIpConfigOrBuilder
    *
    * repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
    */
-  java.util.List
+  java.util.List 
       getAuthorizedNetworksOrBuilderList();
   /**
-   *
-   *
    * 
    * The list of external networks that are allowed to connect to the instance
    * using the IP. See
@@ -189,5 +143,6 @@ public interface SqlIpConfigOrBuilder
    *
    * repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
    */
-  com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder getAuthorizedNetworksOrBuilder(int index);
+  com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder getAuthorizedNetworksOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScript.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScript.java
similarity index 68%
rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScript.java
rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScript.java
index 1f535be0..7cc9bbf5 100644
--- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScript.java
+++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScript.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/clouddms/v1/clouddms.proto
 
 package com.google.cloud.clouddms.v1;
 
 /**
- *
- *
  * 
  * Response message for 'GenerateSshScript' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.SshScript} */ -public final class SshScript extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SshScript extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.SshScript) SshScriptOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SshScript.newBuilder() to construct. private SshScript(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SshScript() { script_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SshScript(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SshScript( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,58 +53,52 @@ private SshScript( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - script_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + script_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_SshScript_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_SshScript_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_SshScript_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_SshScript_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.SshScript.class, - com.google.cloud.clouddms.v1.SshScript.Builder.class); + com.google.cloud.clouddms.v1.SshScript.class, com.google.cloud.clouddms.v1.SshScript.Builder.class); } public static final int SCRIPT_FIELD_NUMBER = 1; private volatile java.lang.Object script_; /** - * - * *
    * The ssh configuration script.
    * 
* * string script = 1; - * * @return The script. */ @java.lang.Override @@ -130,29 +107,29 @@ public java.lang.String getScript() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); script_ = s; return s; } } /** - * - * *
    * The ssh configuration script.
    * 
* * string script = 1; - * * @return The bytes for script. */ @java.lang.Override - public com.google.protobuf.ByteString getScriptBytes() { + public com.google.protobuf.ByteString + getScriptBytes() { java.lang.Object ref = script_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); script_ = b; return b; } else { @@ -161,7 +138,6 @@ public com.google.protobuf.ByteString getScriptBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,7 +149,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 (!getScriptBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, script_); } @@ -197,14 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.clouddms.v1.SshScript)) { return super.equals(obj); } com.google.cloud.clouddms.v1.SshScript other = (com.google.cloud.clouddms.v1.SshScript) obj; - if (!getScript().equals(other.getScript())) return false; + if (!getScript() + .equals(other.getScript())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -223,127 +201,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.clouddms.v1.SshScript parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.clouddms.v1.SshScript parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.SshScript 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.clouddms.v1.SshScript parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.SshScript 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.clouddms.v1.SshScript parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.SshScript 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.clouddms.v1.SshScript parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.SshScript 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.clouddms.v1.SshScript parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.SshScript 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.clouddms.v1.SshScript 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.clouddms.v1.SshScript 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.clouddms.v1.SshScript 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; } /** - * - * *
    * Response message for 'GenerateSshScript' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.SshScript} */ - 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.clouddms.v1.SshScript) com.google.cloud.clouddms.v1.SshScriptOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_SshScript_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_SshScript_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_SshScript_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_SshScript_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.SshScript.class, - com.google.cloud.clouddms.v1.SshScript.Builder.class); + com.google.cloud.clouddms.v1.SshScript.class, com.google.cloud.clouddms.v1.SshScript.Builder.class); } // Construct using com.google.cloud.clouddms.v1.SshScript.newBuilder() @@ -351,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -369,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_SshScript_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_SshScript_descriptor; } @java.lang.Override @@ -390,8 +360,7 @@ public com.google.cloud.clouddms.v1.SshScript build() { @java.lang.Override public com.google.cloud.clouddms.v1.SshScript buildPartial() { - com.google.cloud.clouddms.v1.SshScript result = - new com.google.cloud.clouddms.v1.SshScript(this); + com.google.cloud.clouddms.v1.SshScript result = new com.google.cloud.clouddms.v1.SshScript(this); result.script_ = script_; onBuilt(); return result; @@ -401,39 +370,38 @@ public com.google.cloud.clouddms.v1.SshScript 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.clouddms.v1.SshScript) { - return mergeFrom((com.google.cloud.clouddms.v1.SshScript) other); + return mergeFrom((com.google.cloud.clouddms.v1.SshScript)other); } else { super.mergeFrom(other); return this; @@ -477,20 +445,18 @@ public Builder mergeFrom( private java.lang.Object script_ = ""; /** - * - * *
      * The ssh configuration script.
      * 
* * string script = 1; - * * @return The script. */ public java.lang.String getScript() { java.lang.Object ref = script_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); script_ = s; return s; @@ -499,21 +465,20 @@ public java.lang.String getScript() { } } /** - * - * *
      * The ssh configuration script.
      * 
* * string script = 1; - * * @return The bytes for script. */ - public com.google.protobuf.ByteString getScriptBytes() { + public com.google.protobuf.ByteString + getScriptBytes() { java.lang.Object ref = script_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); script_ = b; return b; } else { @@ -521,68 +486,61 @@ public com.google.protobuf.ByteString getScriptBytes() { } } /** - * - * *
      * The ssh configuration script.
      * 
* * string script = 1; - * * @param value The script to set. * @return This builder for chaining. */ - public Builder setScript(java.lang.String value) { + public Builder setScript( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + script_ = value; onChanged(); return this; } /** - * - * *
      * The ssh configuration script.
      * 
* * string script = 1; - * * @return This builder for chaining. */ public Builder clearScript() { - + script_ = getDefaultInstance().getScript(); onChanged(); return this; } /** - * - * *
      * The ssh configuration script.
      * 
* * string script = 1; - * * @param value The bytes for script to set. * @return This builder for chaining. */ - public Builder setScriptBytes(com.google.protobuf.ByteString value) { + public Builder setScriptBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + script_ = 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); } @@ -592,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.SshScript) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.SshScript) private static final com.google.cloud.clouddms.v1.SshScript DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.SshScript(); } @@ -606,16 +564,16 @@ public static com.google.cloud.clouddms.v1.SshScript getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SshScript parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SshScript(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SshScript parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SshScript(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -630,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.SshScript getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScriptOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScriptOrBuilder.java new file mode 100644 index 00000000..3ef4ca15 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScriptOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface SshScriptOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.SshScript) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The ssh configuration script.
+   * 
+ * + * string script = 1; + * @return The script. + */ + java.lang.String getScript(); + /** + *
+   * The ssh configuration script.
+   * 
+ * + * string script = 1; + * @return The bytes for script. + */ + com.google.protobuf.ByteString + getScriptBytes(); +} diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfig.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfig.java similarity index 71% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfig.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfig.java index 52780524..26b58dbd 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfig.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/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * SSL configuration information.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.SslConfig} */ -public final class SslConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SslConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.SslConfig) SslConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SslConfig.newBuilder() to construct. private SslConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SslConfig() { type_ = 0; clientKey_ = ""; @@ -46,15 +28,16 @@ private SslConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SslConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SslConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,81 +56,72 @@ private SslConfig( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + type_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - clientKey_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + clientKey_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - clientCertificate_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + clientCertificate_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - caCertificate_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + caCertificate_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_SslConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SslConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_SslConfig_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SslConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.SslConfig.class, - com.google.cloud.clouddms.v1.SslConfig.Builder.class); + com.google.cloud.clouddms.v1.SslConfig.class, com.google.cloud.clouddms.v1.SslConfig.Builder.class); } /** - * - * *
    * Specifies The kind of ssl configuration used.
    * 
* * Protobuf enum {@code google.cloud.clouddms.v1.SslConfig.SslType} */ - public enum SslType implements com.google.protobuf.ProtocolMessageEnum { + public enum SslType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified.
      * 
@@ -156,8 +130,6 @@ public enum SslType implements com.google.protobuf.ProtocolMessageEnum { */ SSL_TYPE_UNSPECIFIED(0), /** - * - * *
      * Only 'ca_certificate' specified.
      * 
@@ -166,8 +138,6 @@ public enum SslType implements com.google.protobuf.ProtocolMessageEnum { */ SERVER_ONLY(1), /** - * - * *
      * Both server ('ca_certificate'), and client ('client_key',
      * 'client_certificate') specified.
@@ -180,8 +150,6 @@ public enum SslType implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified.
      * 
@@ -190,8 +158,6 @@ public enum SslType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SSL_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Only 'ca_certificate' specified.
      * 
@@ -200,8 +166,6 @@ public enum SslType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SERVER_ONLY_VALUE = 1; /** - * - * *
      * Both server ('ca_certificate'), and client ('client_key',
      * 'client_certificate') specified.
@@ -211,6 +175,7 @@ public enum SslType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SERVER_CLIENT_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -235,49 +200,49 @@ public static SslType valueOf(int value) {
      */
     public static SslType forNumber(int value) {
       switch (value) {
-        case 0:
-          return SSL_TYPE_UNSPECIFIED;
-        case 1:
-          return SERVER_ONLY;
-        case 2:
-          return SERVER_CLIENT;
-        default:
-          return null;
+        case 0: return SSL_TYPE_UNSPECIFIED;
+        case 1: return SERVER_ONLY;
+        case 2: return SERVER_CLIENT;
+        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<
+        SslType> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public SslType findValueByNumber(int number) {
+              return SslType.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public SslType findValueByNumber(int number) {
-            return SslType.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() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.clouddms.v1.SslConfig.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final SslType[] VALUES = values();
 
-    public static SslType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static SslType 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;
@@ -297,50 +262,35 @@ private SslType(int value) {
   public static final int TYPE_FIELD_NUMBER = 1;
   private int type_;
   /**
-   *
-   *
    * 
    * Output only. The ssl config type according to 'client_key', 'client_certificate' and
    * 'ca_certificate'.
    * 
* - * - * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
    * Output only. The ssl config type according to 'client_key', 'client_certificate' and
    * 'ca_certificate'.
    * 
* - * - * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The type. */ - @java.lang.Override - public com.google.cloud.clouddms.v1.SslConfig.SslType getType() { + @java.lang.Override public com.google.cloud.clouddms.v1.SslConfig.SslType getType() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.SslConfig.SslType result = - com.google.cloud.clouddms.v1.SslConfig.SslType.valueOf(type_); + com.google.cloud.clouddms.v1.SslConfig.SslType result = com.google.cloud.clouddms.v1.SslConfig.SslType.valueOf(type_); return result == null ? com.google.cloud.clouddms.v1.SslConfig.SslType.UNRECOGNIZED : result; } public static final int CLIENT_KEY_FIELD_NUMBER = 2; private volatile java.lang.Object clientKey_; /** - * - * *
    * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with
    * the Client Certificate. If this field is used then the 'client_certificate'
@@ -348,7 +298,6 @@ public com.google.cloud.clouddms.v1.SslConfig.SslType getType() {
    * 
* * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The clientKey. */ @java.lang.Override @@ -357,15 +306,14 @@ public java.lang.String getClientKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientKey_ = s; return s; } } /** - * - * *
    * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with
    * the Client Certificate. If this field is used then the 'client_certificate'
@@ -373,15 +321,16 @@ public java.lang.String getClientKey() {
    * 
* * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for clientKey. */ @java.lang.Override - public com.google.protobuf.ByteString getClientKeyBytes() { + public com.google.protobuf.ByteString + getClientKeyBytes() { java.lang.Object ref = clientKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clientKey_ = b; return b; } else { @@ -392,8 +341,6 @@ public com.google.protobuf.ByteString getClientKeyBytes() { public static final int CLIENT_CERTIFICATE_FIELD_NUMBER = 3; private volatile java.lang.Object clientCertificate_; /** - * - * *
    * Input only. The x509 PEM-encoded certificate that will be used by the replica to
    * authenticate against the source database server.If this field is used then
@@ -401,7 +348,6 @@ public com.google.protobuf.ByteString getClientKeyBytes() {
    * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The clientCertificate. */ @java.lang.Override @@ -410,15 +356,14 @@ public java.lang.String getClientCertificate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientCertificate_ = s; return s; } } /** - * - * *
    * Input only. The x509 PEM-encoded certificate that will be used by the replica to
    * authenticate against the source database server.If this field is used then
@@ -426,15 +371,16 @@ public java.lang.String getClientCertificate() {
    * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for clientCertificate. */ @java.lang.Override - public com.google.protobuf.ByteString getClientCertificateBytes() { + public com.google.protobuf.ByteString + getClientCertificateBytes() { java.lang.Object ref = clientCertificate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clientCertificate_ = b; return b; } else { @@ -445,18 +391,13 @@ public com.google.protobuf.ByteString getClientCertificateBytes() { public static final int CA_CERTIFICATE_FIELD_NUMBER = 4; private volatile java.lang.Object caCertificate_; /** - * - * *
    * Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database
    * server's certificate. The replica will use this certificate to verify
    * it's connecting to the right host.
    * 
* - * - * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * - * + * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * @return The caCertificate. */ @java.lang.Override @@ -465,33 +406,31 @@ public java.lang.String getCaCertificate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caCertificate_ = s; return s; } } /** - * - * *
    * Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database
    * server's certificate. The replica will use this certificate to verify
    * it's connecting to the right host.
    * 
* - * - * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * - * + * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * @return The bytes for caCertificate. */ @java.lang.Override - public com.google.protobuf.ByteString getCaCertificateBytes() { + public com.google.protobuf.ByteString + getCaCertificateBytes() { java.lang.Object ref = caCertificate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); caCertificate_ = b; return b; } else { @@ -500,7 +439,6 @@ public com.google.protobuf.ByteString getCaCertificateBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -512,7 +450,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 (type_ != com.google.cloud.clouddms.v1.SslConfig.SslType.SSL_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } @@ -535,7 +474,8 @@ public int getSerializedSize() { size = 0; if (type_ != com.google.cloud.clouddms.v1.SslConfig.SslType.SSL_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); } if (!getClientKeyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clientKey_); @@ -554,7 +494,7 @@ 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.clouddms.v1.SslConfig)) { return super.equals(obj); @@ -562,9 +502,12 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.clouddms.v1.SslConfig other = (com.google.cloud.clouddms.v1.SslConfig) obj; if (type_ != other.type_) return false; - if (!getClientKey().equals(other.getClientKey())) return false; - if (!getClientCertificate().equals(other.getClientCertificate())) return false; - if (!getCaCertificate().equals(other.getCaCertificate())) return false; + if (!getClientKey() + .equals(other.getClientKey())) return false; + if (!getClientCertificate() + .equals(other.getClientCertificate())) return false; + if (!getCaCertificate() + .equals(other.getCaCertificate())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -589,127 +532,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.clouddms.v1.SslConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.clouddms.v1.SslConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.SslConfig 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.clouddms.v1.SslConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.SslConfig 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.clouddms.v1.SslConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.SslConfig 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.clouddms.v1.SslConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.SslConfig 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.clouddms.v1.SslConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.SslConfig 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.clouddms.v1.SslConfig 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.clouddms.v1.SslConfig 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.clouddms.v1.SslConfig 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; } /** - * - * *
    * SSL configuration information.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.SslConfig} */ - 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.clouddms.v1.SslConfig) com.google.cloud.clouddms.v1.SslConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_SslConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SslConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_SslConfig_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SslConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.SslConfig.class, - com.google.cloud.clouddms.v1.SslConfig.Builder.class); + com.google.cloud.clouddms.v1.SslConfig.class, com.google.cloud.clouddms.v1.SslConfig.Builder.class); } // Construct using com.google.cloud.clouddms.v1.SslConfig.newBuilder() @@ -717,15 +651,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -741,9 +676,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_SslConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SslConfig_descriptor; } @java.lang.Override @@ -762,8 +697,7 @@ public com.google.cloud.clouddms.v1.SslConfig build() { @java.lang.Override public com.google.cloud.clouddms.v1.SslConfig buildPartial() { - com.google.cloud.clouddms.v1.SslConfig result = - new com.google.cloud.clouddms.v1.SslConfig(this); + com.google.cloud.clouddms.v1.SslConfig result = new com.google.cloud.clouddms.v1.SslConfig(this); result.type_ = type_; result.clientKey_ = clientKey_; result.clientCertificate_ = clientCertificate_; @@ -776,39 +710,38 @@ public com.google.cloud.clouddms.v1.SslConfig 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.clouddms.v1.SslConfig) { - return mergeFrom((com.google.cloud.clouddms.v1.SslConfig) other); + return mergeFrom((com.google.cloud.clouddms.v1.SslConfig)other); } else { super.mergeFrom(other); return this; @@ -863,77 +796,55 @@ public Builder mergeFrom( private int type_ = 0; /** - * - * *
      * Output only. The ssl config type according to 'client_key', 'client_certificate' and
      * 'ca_certificate'.
      * 
* - * - * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * Output only. The ssl config type according to 'client_key', 'client_certificate' and
      * 'ca_certificate'.
      * 
* - * - * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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; } /** - * - * *
      * Output only. The ssl config type according to 'client_key', 'client_certificate' and
      * 'ca_certificate'.
      * 
* - * - * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The type. */ @java.lang.Override public com.google.cloud.clouddms.v1.SslConfig.SslType getType() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.SslConfig.SslType result = - com.google.cloud.clouddms.v1.SslConfig.SslType.valueOf(type_); + com.google.cloud.clouddms.v1.SslConfig.SslType result = com.google.cloud.clouddms.v1.SslConfig.SslType.valueOf(type_); return result == null ? com.google.cloud.clouddms.v1.SslConfig.SslType.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The ssl config type according to 'client_key', 'client_certificate' and
      * 'ca_certificate'.
      * 
* - * - * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The type to set. * @return This builder for chaining. */ @@ -941,27 +852,22 @@ public Builder setType(com.google.cloud.clouddms.v1.SslConfig.SslType value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The ssl config type according to 'client_key', 'client_certificate' and
      * 'ca_certificate'.
      * 
* - * - * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -969,8 +875,6 @@ public Builder clearType() { private java.lang.Object clientKey_ = ""; /** - * - * *
      * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with
      * the Client Certificate. If this field is used then the 'client_certificate'
@@ -978,13 +882,13 @@ public Builder clearType() {
      * 
* * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The clientKey. */ public java.lang.String getClientKey() { java.lang.Object ref = clientKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientKey_ = s; return s; @@ -993,8 +897,6 @@ public java.lang.String getClientKey() { } } /** - * - * *
      * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with
      * the Client Certificate. If this field is used then the 'client_certificate'
@@ -1002,14 +904,15 @@ public java.lang.String getClientKey() {
      * 
* * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for clientKey. */ - public com.google.protobuf.ByteString getClientKeyBytes() { + public com.google.protobuf.ByteString + getClientKeyBytes() { java.lang.Object ref = clientKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clientKey_ = b; return b; } else { @@ -1017,8 +920,6 @@ public com.google.protobuf.ByteString getClientKeyBytes() { } } /** - * - * *
      * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with
      * the Client Certificate. If this field is used then the 'client_certificate'
@@ -1026,22 +927,20 @@ public com.google.protobuf.ByteString getClientKeyBytes() {
      * 
* * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The clientKey to set. * @return This builder for chaining. */ - public Builder setClientKey(java.lang.String value) { + public Builder setClientKey( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clientKey_ = value; onChanged(); return this; } /** - * - * *
      * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with
      * the Client Certificate. If this field is used then the 'client_certificate'
@@ -1049,18 +948,15 @@ public Builder setClientKey(java.lang.String value) {
      * 
* * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClientKey() { - + clientKey_ = getDefaultInstance().getClientKey(); onChanged(); return this; } /** - * - * *
      * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with
      * the Client Certificate. If this field is used then the 'client_certificate'
@@ -1068,16 +964,16 @@ public Builder clearClientKey() {
      * 
* * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The bytes for clientKey to set. * @return This builder for chaining. */ - public Builder setClientKeyBytes(com.google.protobuf.ByteString value) { + public Builder setClientKeyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientKey_ = value; onChanged(); return this; @@ -1085,8 +981,6 @@ public Builder setClientKeyBytes(com.google.protobuf.ByteString value) { private java.lang.Object clientCertificate_ = ""; /** - * - * *
      * Input only. The x509 PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server.If this field is used then
@@ -1094,13 +988,13 @@ public Builder setClientKeyBytes(com.google.protobuf.ByteString value) {
      * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The clientCertificate. */ public java.lang.String getClientCertificate() { java.lang.Object ref = clientCertificate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientCertificate_ = s; return s; @@ -1109,8 +1003,6 @@ public java.lang.String getClientCertificate() { } } /** - * - * *
      * Input only. The x509 PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server.If this field is used then
@@ -1118,14 +1010,15 @@ public java.lang.String getClientCertificate() {
      * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for clientCertificate. */ - public com.google.protobuf.ByteString getClientCertificateBytes() { + public com.google.protobuf.ByteString + getClientCertificateBytes() { java.lang.Object ref = clientCertificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clientCertificate_ = b; return b; } else { @@ -1133,8 +1026,6 @@ public com.google.protobuf.ByteString getClientCertificateBytes() { } } /** - * - * *
      * Input only. The x509 PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server.If this field is used then
@@ -1142,22 +1033,20 @@ public com.google.protobuf.ByteString getClientCertificateBytes() {
      * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The clientCertificate to set. * @return This builder for chaining. */ - public Builder setClientCertificate(java.lang.String value) { + public Builder setClientCertificate( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clientCertificate_ = value; onChanged(); return this; } /** - * - * *
      * Input only. The x509 PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server.If this field is used then
@@ -1165,18 +1054,15 @@ public Builder setClientCertificate(java.lang.String value) {
      * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClientCertificate() { - + clientCertificate_ = getDefaultInstance().getClientCertificate(); onChanged(); return this; } /** - * - * *
      * Input only. The x509 PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server.If this field is used then
@@ -1184,16 +1070,16 @@ public Builder clearClientCertificate() {
      * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The bytes for clientCertificate to set. * @return This builder for chaining. */ - public Builder setClientCertificateBytes(com.google.protobuf.ByteString value) { + public Builder setClientCertificateBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientCertificate_ = value; onChanged(); return this; @@ -1201,24 +1087,20 @@ public Builder setClientCertificateBytes(com.google.protobuf.ByteString value) { private java.lang.Object caCertificate_ = ""; /** - * - * *
      * Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database
      * server's certificate. The replica will use this certificate to verify
      * it's connecting to the right host.
      * 
* - * - * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * - * + * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * @return The caCertificate. */ public java.lang.String getCaCertificate() { java.lang.Object ref = caCertificate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caCertificate_ = s; return s; @@ -1227,25 +1109,22 @@ public java.lang.String getCaCertificate() { } } /** - * - * *
      * Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database
      * server's certificate. The replica will use this certificate to verify
      * it's connecting to the right host.
      * 
* - * - * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * - * + * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * @return The bytes for caCertificate. */ - public com.google.protobuf.ByteString getCaCertificateBytes() { + public com.google.protobuf.ByteString + getCaCertificateBytes() { java.lang.Object ref = caCertificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); caCertificate_ = b; return b; } else { @@ -1253,80 +1132,67 @@ public com.google.protobuf.ByteString getCaCertificateBytes() { } } /** - * - * *
      * Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database
      * server's certificate. The replica will use this certificate to verify
      * it's connecting to the right host.
      * 
* - * - * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * - * + * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * @param value The caCertificate to set. * @return This builder for chaining. */ - public Builder setCaCertificate(java.lang.String value) { + public Builder setCaCertificate( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + caCertificate_ = value; onChanged(); return this; } /** - * - * *
      * Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database
      * server's certificate. The replica will use this certificate to verify
      * it's connecting to the right host.
      * 
* - * - * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * - * + * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearCaCertificate() { - + caCertificate_ = getDefaultInstance().getCaCertificate(); onChanged(); return this; } /** - * - * *
      * Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database
      * server's certificate. The replica will use this certificate to verify
      * it's connecting to the right host.
      * 
* - * - * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * - * + * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * @param value The bytes for caCertificate to set. * @return This builder for chaining. */ - public Builder setCaCertificateBytes(com.google.protobuf.ByteString value) { + public Builder setCaCertificateBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + caCertificate_ = 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); } @@ -1336,12 +1202,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.SslConfig) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.SslConfig) private static final com.google.cloud.clouddms.v1.SslConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.SslConfig(); } @@ -1350,16 +1216,16 @@ public static com.google.cloud.clouddms.v1.SslConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SslConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SslConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SslConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SslConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1374,4 +1240,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.SslConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfigOrBuilder.java similarity index 66% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfigOrBuilder.java index c6ff8122..a25fa0b9 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfigOrBuilder.java @@ -1,62 +1,34 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; -public interface SslConfigOrBuilder - extends +public interface SslConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.SslConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The ssl config type according to 'client_key', 'client_certificate' and
    * 'ca_certificate'.
    * 
* - * - * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
    * Output only. The ssl config type according to 'client_key', 'client_certificate' and
    * 'ca_certificate'.
    * 
* - * - * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The type. */ com.google.cloud.clouddms.v1.SslConfig.SslType getType(); /** - * - * *
    * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with
    * the Client Certificate. If this field is used then the 'client_certificate'
@@ -64,13 +36,10 @@ public interface SslConfigOrBuilder
    * 
* * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The clientKey. */ java.lang.String getClientKey(); /** - * - * *
    * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with
    * the Client Certificate. If this field is used then the 'client_certificate'
@@ -78,14 +47,12 @@ public interface SslConfigOrBuilder
    * 
* * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for clientKey. */ - com.google.protobuf.ByteString getClientKeyBytes(); + com.google.protobuf.ByteString + getClientKeyBytes(); /** - * - * *
    * Input only. The x509 PEM-encoded certificate that will be used by the replica to
    * authenticate against the source database server.If this field is used then
@@ -93,13 +60,10 @@ public interface SslConfigOrBuilder
    * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The clientCertificate. */ java.lang.String getClientCertificate(); /** - * - * *
    * Input only. The x509 PEM-encoded certificate that will be used by the replica to
    * authenticate against the source database server.If this field is used then
@@ -107,41 +71,32 @@ public interface SslConfigOrBuilder
    * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for clientCertificate. */ - com.google.protobuf.ByteString getClientCertificateBytes(); + com.google.protobuf.ByteString + getClientCertificateBytes(); /** - * - * *
    * Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database
    * server's certificate. The replica will use this certificate to verify
    * it's connecting to the right host.
    * 
* - * - * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * - * + * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * @return The caCertificate. */ java.lang.String getCaCertificate(); /** - * - * *
    * Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database
    * server's certificate. The replica will use this certificate to verify
    * it's connecting to the right host.
    * 
* - * - * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; - * - * + * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * @return The bytes for caCertificate. */ - com.google.protobuf.ByteString getCaCertificateBytes(); + com.google.protobuf.ByteString + getCaCertificateBytes(); } diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequest.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequest.java similarity index 67% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequest.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequest.java index 3e729c94..6848ad0a 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * Request message for 'StartMigrationJob' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.StartMigrationJobRequest} */ -public final class StartMigrationJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StartMigrationJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.StartMigrationJobRequest) StartMigrationJobRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StartMigrationJobRequest.newBuilder() to construct. private StartMigrationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StartMigrationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StartMigrationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StartMigrationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,58 +53,52 @@ private StartMigrationJobRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.StartMigrationJobRequest.class, - com.google.cloud.clouddms.v1.StartMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.StartMigrationJobRequest.class, com.google.cloud.clouddms.v1.StartMigrationJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Name of the migration job resource to start.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ @java.lang.Override @@ -130,29 +107,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; } } /** - * - * *
    * Name of the migration job resource to start.
    * 
* * string name = 1 [(.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 { @@ -161,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -197,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.clouddms.v1.StartMigrationJobRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.StartMigrationJobRequest other = - (com.google.cloud.clouddms.v1.StartMigrationJobRequest) obj; + com.google.cloud.clouddms.v1.StartMigrationJobRequest other = (com.google.cloud.clouddms.v1.StartMigrationJobRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -225,127 +202,117 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.StartMigrationJobRequest 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.clouddms.v1.StartMigrationJobRequest 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.clouddms.v1.StartMigrationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.StartMigrationJobRequest 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.clouddms.v1.StartMigrationJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.StartMigrationJobRequest 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.clouddms.v1.StartMigrationJobRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.StartMigrationJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.StartMigrationJobRequest 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.clouddms.v1.StartMigrationJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.StartMigrationJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.StartMigrationJobRequest 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.clouddms.v1.StartMigrationJobRequest 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.clouddms.v1.StartMigrationJobRequest 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.clouddms.v1.StartMigrationJobRequest prototype) { + public static Builder newBuilder(com.google.cloud.clouddms.v1.StartMigrationJobRequest 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 message for 'StartMigrationJob' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.StartMigrationJobRequest} */ - 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.clouddms.v1.StartMigrationJobRequest) com.google.cloud.clouddms.v1.StartMigrationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.StartMigrationJobRequest.class, - com.google.cloud.clouddms.v1.StartMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.StartMigrationJobRequest.class, com.google.cloud.clouddms.v1.StartMigrationJobRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.StartMigrationJobRequest.newBuilder() @@ -353,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -371,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_descriptor; } @java.lang.Override @@ -392,8 +360,7 @@ public com.google.cloud.clouddms.v1.StartMigrationJobRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.StartMigrationJobRequest buildPartial() { - com.google.cloud.clouddms.v1.StartMigrationJobRequest result = - new com.google.cloud.clouddms.v1.StartMigrationJobRequest(this); + com.google.cloud.clouddms.v1.StartMigrationJobRequest result = new com.google.cloud.clouddms.v1.StartMigrationJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -403,39 +370,38 @@ public com.google.cloud.clouddms.v1.StartMigrationJobRequest 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.clouddms.v1.StartMigrationJobRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.StartMigrationJobRequest) other); + return mergeFrom((com.google.cloud.clouddms.v1.StartMigrationJobRequest)other); } else { super.mergeFrom(other); return this; @@ -443,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.StartMigrationJobRequest other) { - if (other == com.google.cloud.clouddms.v1.StartMigrationJobRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.clouddms.v1.StartMigrationJobRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -468,8 +433,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.clouddms.v1.StartMigrationJobRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.clouddms.v1.StartMigrationJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -481,20 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Name of the migration job resource to start.
      * 
* * string name = 1 [(.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; @@ -503,21 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Name of the migration job resource to start.
      * 
* * string name = 1 [(.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 { @@ -525,68 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Name of the migration job resource to start.
      * 
* * string name = 1 [(.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; } /** - * - * *
      * Name of the migration job resource to start.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Name of the migration job resource to start.
      * 
* * string name = 1 [(.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); } @@ -596,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.StartMigrationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.StartMigrationJobRequest) private static final com.google.cloud.clouddms.v1.StartMigrationJobRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.StartMigrationJobRequest(); } @@ -610,16 +564,16 @@ public static com.google.cloud.clouddms.v1.StartMigrationJobRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartMigrationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StartMigrationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartMigrationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StartMigrationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -634,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.StartMigrationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequestOrBuilder.java new file mode 100644 index 00000000..7eee0f85 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface StartMigrationJobRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.StartMigrationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Name of the migration job resource to start.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Name of the migration job resource to start.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivity.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivity.java similarity index 67% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivity.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivity.java index 13061f01..ec4bd761 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivity.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivity.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/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * The source database will allow incoming connections from the destination
  * database's public IP. You can retrieve the Cloud SQL instance's public IP
@@ -30,29 +13,30 @@
  *
  * Protobuf type {@code google.cloud.clouddms.v1.StaticIpConnectivity}
  */
-public final class StaticIpConnectivity extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class StaticIpConnectivity extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.StaticIpConnectivity)
     StaticIpConnectivityOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use StaticIpConnectivity.newBuilder() to construct.
   private StaticIpConnectivity(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private StaticIpConnectivity() {}
+  private StaticIpConnectivity() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new StaticIpConnectivity();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private StaticIpConnectivity(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,42 +55,39 @@ private StaticIpConnectivity(
           case 0:
             done = true;
             break;
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
-        .internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
-        .internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_fieldAccessorTable
+    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.clouddms.v1.StaticIpConnectivity.class,
-            com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder.class);
+            com.google.cloud.clouddms.v1.StaticIpConnectivity.class, com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -118,7 +99,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 {
     unknownFields.writeTo(output);
   }
 
@@ -136,13 +118,12 @@ 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.clouddms.v1.StaticIpConnectivity)) {
       return super.equals(obj);
     }
-    com.google.cloud.clouddms.v1.StaticIpConnectivity other =
-        (com.google.cloud.clouddms.v1.StaticIpConnectivity) obj;
+    com.google.cloud.clouddms.v1.StaticIpConnectivity other = (com.google.cloud.clouddms.v1.StaticIpConnectivity) obj;
 
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -161,103 +142,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.clouddms.v1.StaticIpConnectivity 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.clouddms.v1.StaticIpConnectivity 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.clouddms.v1.StaticIpConnectivity parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.clouddms.v1.StaticIpConnectivity 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.clouddms.v1.StaticIpConnectivity parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.clouddms.v1.StaticIpConnectivity 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.clouddms.v1.StaticIpConnectivity parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.clouddms.v1.StaticIpConnectivity parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.clouddms.v1.StaticIpConnectivity 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.clouddms.v1.StaticIpConnectivity parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.clouddms.v1.StaticIpConnectivity parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.clouddms.v1.StaticIpConnectivity 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.clouddms.v1.StaticIpConnectivity 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.clouddms.v1.StaticIpConnectivity 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.clouddms.v1.StaticIpConnectivity 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 source database will allow incoming connections from the destination
    * database's public IP. You can retrieve the Cloud SQL instance's public IP
@@ -267,23 +241,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.clouddms.v1.StaticIpConnectivity}
    */
-  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.clouddms.v1.StaticIpConnectivity)
       com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
-          .internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
-          .internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_fieldAccessorTable
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.clouddms.v1.StaticIpConnectivity.class,
-              com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder.class);
+              com.google.cloud.clouddms.v1.StaticIpConnectivity.class, com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder.class);
     }
 
     // Construct using com.google.cloud.clouddms.v1.StaticIpConnectivity.newBuilder()
@@ -291,15 +263,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -307,9 +280,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
-          .internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_descriptor;
     }
 
     @java.lang.Override
@@ -328,8 +301,7 @@ public com.google.cloud.clouddms.v1.StaticIpConnectivity build() {
 
     @java.lang.Override
     public com.google.cloud.clouddms.v1.StaticIpConnectivity buildPartial() {
-      com.google.cloud.clouddms.v1.StaticIpConnectivity result =
-          new com.google.cloud.clouddms.v1.StaticIpConnectivity(this);
+      com.google.cloud.clouddms.v1.StaticIpConnectivity result = new com.google.cloud.clouddms.v1.StaticIpConnectivity(this);
       onBuilt();
       return result;
     }
@@ -338,39 +310,38 @@ public com.google.cloud.clouddms.v1.StaticIpConnectivity 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.clouddms.v1.StaticIpConnectivity) {
-        return mergeFrom((com.google.cloud.clouddms.v1.StaticIpConnectivity) other);
+        return mergeFrom((com.google.cloud.clouddms.v1.StaticIpConnectivity)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -378,8 +349,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.clouddms.v1.StaticIpConnectivity other) {
-      if (other == com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance()) return this;
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -399,8 +369,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.clouddms.v1.StaticIpConnectivity) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.clouddms.v1.StaticIpConnectivity) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -409,9 +378,9 @@ public Builder mergeFrom(
       }
       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);
     }
 
@@ -421,12 +390,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.StaticIpConnectivity)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.StaticIpConnectivity)
   private static final com.google.cloud.clouddms.v1.StaticIpConnectivity DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.StaticIpConnectivity();
   }
@@ -435,16 +404,16 @@ public static com.google.cloud.clouddms.v1.StaticIpConnectivity getDefaultInstan
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public StaticIpConnectivity parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new StaticIpConnectivity(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public StaticIpConnectivity parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new StaticIpConnectivity(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -459,4 +428,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.clouddms.v1.StaticIpConnectivity getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivityOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivityOrBuilder.java
new file mode 100644
index 00000000..0c55e6b8
--- /dev/null
+++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivityOrBuilder.java
@@ -0,0 +1,9 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/clouddms/v1/clouddms_resources.proto
+
+package com.google.cloud.clouddms.v1;
+
+public interface StaticIpConnectivityOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.StaticIpConnectivity)
+    com.google.protobuf.MessageOrBuilder {
+}
diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequest.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequest.java
similarity index 68%
rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequest.java
index aed0dc33..be4fa122 100644
--- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequest.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/clouddms/v1/clouddms.proto
 
 package com.google.cloud.clouddms.v1;
 
 /**
- *
- *
  * 
  * Request message for 'StopMigrationJob' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.StopMigrationJobRequest} */ -public final class StopMigrationJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StopMigrationJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.StopMigrationJobRequest) StopMigrationJobRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StopMigrationJobRequest.newBuilder() to construct. private StopMigrationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StopMigrationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StopMigrationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StopMigrationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,58 +53,52 @@ private StopMigrationJobRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.StopMigrationJobRequest.class, - com.google.cloud.clouddms.v1.StopMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.StopMigrationJobRequest.class, com.google.cloud.clouddms.v1.StopMigrationJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Name of the migration job resource to stop.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ @java.lang.Override @@ -130,29 +107,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; } } /** - * - * *
    * Name of the migration job resource to stop.
    * 
* * string name = 1 [(.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 { @@ -161,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -197,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.clouddms.v1.StopMigrationJobRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.StopMigrationJobRequest other = - (com.google.cloud.clouddms.v1.StopMigrationJobRequest) obj; + com.google.cloud.clouddms.v1.StopMigrationJobRequest other = (com.google.cloud.clouddms.v1.StopMigrationJobRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -225,126 +202,117 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.StopMigrationJobRequest 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.clouddms.v1.StopMigrationJobRequest 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.clouddms.v1.StopMigrationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.StopMigrationJobRequest 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.clouddms.v1.StopMigrationJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.StopMigrationJobRequest 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.clouddms.v1.StopMigrationJobRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.StopMigrationJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.StopMigrationJobRequest 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.clouddms.v1.StopMigrationJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.StopMigrationJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.StopMigrationJobRequest 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.clouddms.v1.StopMigrationJobRequest 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.clouddms.v1.StopMigrationJobRequest 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.clouddms.v1.StopMigrationJobRequest 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 message for 'StopMigrationJob' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.StopMigrationJobRequest} */ - 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.clouddms.v1.StopMigrationJobRequest) com.google.cloud.clouddms.v1.StopMigrationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.StopMigrationJobRequest.class, - com.google.cloud.clouddms.v1.StopMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.StopMigrationJobRequest.class, com.google.cloud.clouddms.v1.StopMigrationJobRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.StopMigrationJobRequest.newBuilder() @@ -352,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_descriptor; } @java.lang.Override @@ -391,8 +360,7 @@ public com.google.cloud.clouddms.v1.StopMigrationJobRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.StopMigrationJobRequest buildPartial() { - com.google.cloud.clouddms.v1.StopMigrationJobRequest result = - new com.google.cloud.clouddms.v1.StopMigrationJobRequest(this); + com.google.cloud.clouddms.v1.StopMigrationJobRequest result = new com.google.cloud.clouddms.v1.StopMigrationJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -402,39 +370,38 @@ public com.google.cloud.clouddms.v1.StopMigrationJobRequest 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.clouddms.v1.StopMigrationJobRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.StopMigrationJobRequest) other); + return mergeFrom((com.google.cloud.clouddms.v1.StopMigrationJobRequest)other); } else { super.mergeFrom(other); return this; @@ -442,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.StopMigrationJobRequest other) { - if (other == com.google.cloud.clouddms.v1.StopMigrationJobRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.clouddms.v1.StopMigrationJobRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -467,8 +433,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.clouddms.v1.StopMigrationJobRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.clouddms.v1.StopMigrationJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -480,20 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Name of the migration job resource to stop.
      * 
* * string name = 1 [(.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; @@ -502,21 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Name of the migration job resource to stop.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -524,68 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Name of the migration job resource to stop.
      * 
* * string name = 1 [(.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; } /** - * - * *
      * Name of the migration job resource to stop.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Name of the migration job resource to stop.
      * 
* * string name = 1 [(.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,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.StopMigrationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.StopMigrationJobRequest) private static final com.google.cloud.clouddms.v1.StopMigrationJobRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.StopMigrationJobRequest(); } @@ -609,16 +564,16 @@ public static com.google.cloud.clouddms.v1.StopMigrationJobRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopMigrationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StopMigrationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopMigrationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StopMigrationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -633,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.StopMigrationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequestOrBuilder.java new file mode 100644 index 00000000..360d52fc --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface StopMigrationJobRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.StopMigrationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Name of the migration job resource to stop.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Name of the migration job resource to stop.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequest.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequest.java similarity index 67% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequest.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequest.java index 874ff0aa..8a18274e 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequest.java @@ -1,58 +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/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * Request message for 'UpdateConnectionProfile' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.UpdateConnectionProfileRequest} */ -public final class UpdateConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateConnectionProfileRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.UpdateConnectionProfileRequest) UpdateConnectionProfileRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateConnectionProfileRequest.newBuilder() to construct. - private UpdateConnectionProfileRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateConnectionProfileRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateConnectionProfileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,91 +53,79 @@ private UpdateConnectionProfileRequest( case 0: done = true; break; - case 10: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - case 18: - { - com.google.cloud.clouddms.v1.ConnectionProfile.Builder subBuilder = null; - if (connectionProfile_ != null) { - subBuilder = connectionProfile_.toBuilder(); - } - connectionProfile_ = - input.readMessage( - com.google.cloud.clouddms.v1.ConnectionProfile.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(connectionProfile_); - connectionProfile_ = subBuilder.buildPartial(); - } - - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; + break; + } + case 18: { + com.google.cloud.clouddms.v1.ConnectionProfile.Builder subBuilder = null; + if (connectionProfile_ != null) { + subBuilder = connectionProfile_.toBuilder(); + } + connectionProfile_ = input.readMessage(com.google.cloud.clouddms.v1.ConnectionProfile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(connectionProfile_); + connectionProfile_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.class, - com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.Builder.class); + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.class, com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * connection profile resource by the update.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -163,16 +133,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * connection profile resource by the update.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -180,15 +146,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * connection profile resource by the update.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -198,16 +161,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int CONNECTION_PROFILE_FIELD_NUMBER = 2; private com.google.cloud.clouddms.v1.ConnectionProfile connectionProfile_; /** - * - * *
    * Required. The connection profile parameters to update.
    * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connectionProfile field is set. */ @java.lang.Override @@ -215,34 +173,23 @@ public boolean hasConnectionProfile() { return connectionProfile_ != null; } /** - * - * *
    * Required. The connection profile parameters to update.
    * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The connectionProfile. */ @java.lang.Override public com.google.cloud.clouddms.v1.ConnectionProfile getConnectionProfile() { - return connectionProfile_ == null - ? com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance() - : connectionProfile_; + return connectionProfile_ == null ? com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; } /** - * - * *
    * Required. The connection profile parameters to update.
    * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { @@ -252,8 +199,6 @@ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProf public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** - * - * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -263,7 +208,6 @@ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProf
    * 
* * string request_id = 3; - * * @return The requestId. */ @java.lang.Override @@ -272,15 +216,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -290,15 +233,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -307,7 +251,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -319,7 +262,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -339,10 +283,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (connectionProfile_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConnectionProfile()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConnectionProfile()); } if (!getRequestIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -355,23 +301,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest other = - (com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest) obj; + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest other = (com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasConnectionProfile() != other.hasConnectionProfile()) return false; if (hasConnectionProfile()) { - if (!getConnectionProfile().equals(other.getConnectionProfile())) return false; + if (!getConnectionProfile() + .equals(other.getConnectionProfile())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -399,127 +347,117 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest 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.clouddms.v1.UpdateConnectionProfileRequest 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.clouddms.v1.UpdateConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest 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.clouddms.v1.UpdateConnectionProfileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest 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.clouddms.v1.UpdateConnectionProfileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest 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.clouddms.v1.UpdateConnectionProfileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest 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.clouddms.v1.UpdateConnectionProfileRequest 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.clouddms.v1.UpdateConnectionProfileRequest 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.clouddms.v1.UpdateConnectionProfileRequest prototype) { + public static Builder newBuilder(com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest 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 message for 'UpdateConnectionProfile' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.UpdateConnectionProfileRequest} */ - 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.clouddms.v1.UpdateConnectionProfileRequest) com.google.cloud.clouddms.v1.UpdateConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.class, - com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.Builder.class); + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.class, com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.newBuilder() @@ -527,15 +465,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -557,9 +496,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor; } @java.lang.Override @@ -578,8 +517,7 @@ public com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest buildPartial() { - com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest result = - new com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest(this); + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest result = new com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -599,39 +537,38 @@ public com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest 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.clouddms.v1.UpdateConnectionProfileRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest) other); + return mergeFrom((com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest)other); } else { super.mergeFrom(other); return this; @@ -639,8 +576,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest other) { - if (other == com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -670,8 +606,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -683,58 +618,42 @@ public Builder mergeFrom( 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. Field mask is used to specify the fields to be overwritten in the
      * connection profile resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * connection profile resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask is used to specify the fields to be overwritten in the
      * connection profile resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -750,17 +669,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * connection profile resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.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(); @@ -771,21 +688,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * connection profile resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.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; } @@ -797,15 +711,12 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * connection profile resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -819,64 +730,51 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * connection profile resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * connection profile resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask is used to specify the fields to be overwritten in the
      * connection profile resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.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_; @@ -884,58 +782,39 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.clouddms.v1.ConnectionProfile connectionProfile_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.ConnectionProfile, - com.google.cloud.clouddms.v1.ConnectionProfile.Builder, - com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder> - connectionProfileBuilder_; + com.google.cloud.clouddms.v1.ConnectionProfile, com.google.cloud.clouddms.v1.ConnectionProfile.Builder, com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder> connectionProfileBuilder_; /** - * - * *
      * Required. The connection profile parameters to update.
      * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connectionProfile field is set. */ public boolean hasConnectionProfile() { return connectionProfileBuilder_ != null || connectionProfile_ != null; } /** - * - * *
      * Required. The connection profile parameters to update.
      * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The connectionProfile. */ public com.google.cloud.clouddms.v1.ConnectionProfile getConnectionProfile() { if (connectionProfileBuilder_ == null) { - return connectionProfile_ == null - ? com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance() - : connectionProfile_; + return connectionProfile_ == null ? com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; } else { return connectionProfileBuilder_.getMessage(); } } /** - * - * *
      * Required. The connection profile parameters to update.
      * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConnectionProfile(com.google.cloud.clouddms.v1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { @@ -951,15 +830,11 @@ public Builder setConnectionProfile(com.google.cloud.clouddms.v1.ConnectionProfi return this; } /** - * - * *
      * Required. The connection profile parameters to update.
      * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConnectionProfile( com.google.cloud.clouddms.v1.ConnectionProfile.Builder builderForValue) { @@ -973,23 +848,17 @@ public Builder setConnectionProfile( return this; } /** - * - * *
      * Required. The connection profile parameters to update.
      * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConnectionProfile(com.google.cloud.clouddms.v1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { if (connectionProfile_ != null) { connectionProfile_ = - com.google.cloud.clouddms.v1.ConnectionProfile.newBuilder(connectionProfile_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.clouddms.v1.ConnectionProfile.newBuilder(connectionProfile_).mergeFrom(value).buildPartial(); } else { connectionProfile_ = value; } @@ -1001,15 +870,11 @@ public Builder mergeConnectionProfile(com.google.cloud.clouddms.v1.ConnectionPro return this; } /** - * - * *
      * Required. The connection profile parameters to update.
      * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConnectionProfile() { if (connectionProfileBuilder_ == null) { @@ -1023,64 +888,48 @@ public Builder clearConnectionProfile() { return this; } /** - * - * *
      * Required. The connection profile parameters to update.
      * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.clouddms.v1.ConnectionProfile.Builder getConnectionProfileBuilder() { - + onChanged(); return getConnectionProfileFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The connection profile parameters to update.
      * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { if (connectionProfileBuilder_ != null) { return connectionProfileBuilder_.getMessageOrBuilder(); } else { - return connectionProfile_ == null - ? com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance() - : connectionProfile_; + return connectionProfile_ == null ? + com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; } } /** - * - * *
      * Required. The connection profile parameters to update.
      * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.ConnectionProfile, - com.google.cloud.clouddms.v1.ConnectionProfile.Builder, - com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder> + com.google.cloud.clouddms.v1.ConnectionProfile, com.google.cloud.clouddms.v1.ConnectionProfile.Builder, com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder> getConnectionProfileFieldBuilder() { if (connectionProfileBuilder_ == null) { - connectionProfileBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.ConnectionProfile, - com.google.cloud.clouddms.v1.ConnectionProfile.Builder, - com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder>( - getConnectionProfile(), getParentForChildren(), isClean()); + connectionProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ConnectionProfile, com.google.cloud.clouddms.v1.ConnectionProfile.Builder, com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder>( + getConnectionProfile(), + getParentForChildren(), + isClean()); connectionProfile_ = null; } return connectionProfileBuilder_; @@ -1088,8 +937,6 @@ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProf private java.lang.Object requestId_ = ""; /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1099,13 +946,13 @@ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProf
      * 
* * string request_id = 3; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1114,8 +961,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1125,14 +970,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1140,8 +986,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1151,22 +995,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1176,18 +1018,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1197,23 +1036,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1223,12 +1062,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.UpdateConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.UpdateConnectionProfileRequest) private static final com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest(); } @@ -1237,16 +1076,16 @@ public static com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateConnectionProfileRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateConnectionProfileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1261,4 +1100,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequestOrBuilder.java similarity index 66% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequestOrBuilder.java index 03ca5e59..b2ab7e90 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequestOrBuilder.java @@ -1,113 +1,70 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface UpdateConnectionProfileRequestOrBuilder - extends +public interface UpdateConnectionProfileRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.UpdateConnectionProfileRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * connection profile resource by the update.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * connection profile resource by the update.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * connection profile resource by the update.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. The connection profile parameters to update.
    * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connectionProfile field is set. */ boolean hasConnectionProfile(); /** - * - * *
    * Required. The connection profile parameters to update.
    * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The connectionProfile. */ com.google.cloud.clouddms.v1.ConnectionProfile getConnectionProfile(); /** - * - * *
    * Required. The connection profile parameters to update.
    * 
* - * - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder(); /** - * - * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -117,13 +74,10 @@ public interface UpdateConnectionProfileRequestOrBuilder
    * 
* * string request_id = 3; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -133,8 +87,8 @@ public interface UpdateConnectionProfileRequestOrBuilder
    * 
* * string request_id = 3; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequest.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequest.java similarity index 67% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequest.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequest.java index 33b77c9a..62fbf29b 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * Request message for 'UpdateMigrationJob' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.UpdateMigrationJobRequest} */ -public final class UpdateMigrationJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateMigrationJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.UpdateMigrationJobRequest) UpdateMigrationJobRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateMigrationJobRequest.newBuilder() to construct. private UpdateMigrationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateMigrationJobRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateMigrationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateMigrationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,91 +53,79 @@ private UpdateMigrationJobRequest( case 0: done = true; break; - case 10: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - case 18: - { - com.google.cloud.clouddms.v1.MigrationJob.Builder subBuilder = null; - if (migrationJob_ != null) { - subBuilder = migrationJob_.toBuilder(); - } - migrationJob_ = - input.readMessage( - com.google.cloud.clouddms.v1.MigrationJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(migrationJob_); - migrationJob_ = subBuilder.buildPartial(); - } - - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; + break; + } + case 18: { + com.google.cloud.clouddms.v1.MigrationJob.Builder subBuilder = null; + if (migrationJob_ != null) { + subBuilder = migrationJob_.toBuilder(); + } + migrationJob_ = input.readMessage(com.google.cloud.clouddms.v1.MigrationJob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(migrationJob_); + migrationJob_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.class, - com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.class, com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * migration job resource by the update.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -162,16 +133,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * migration job resource by the update.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -179,15 +146,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * migration job resource by the update.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -197,16 +161,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int MIGRATION_JOB_FIELD_NUMBER = 2; private com.google.cloud.clouddms.v1.MigrationJob migrationJob_; /** - * - * *
    * Required. The migration job parameters to update.
    * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the migrationJob field is set. */ @java.lang.Override @@ -214,34 +173,23 @@ public boolean hasMigrationJob() { return migrationJob_ != null; } /** - * - * *
    * Required. The migration job parameters to update.
    * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The migrationJob. */ @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJob getMigrationJob() { - return migrationJob_ == null - ? com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() - : migrationJob_; + return migrationJob_ == null ? com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() : migrationJob_; } /** - * - * *
    * Required. The migration job parameters to update.
    * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuilder() { @@ -251,8 +199,6 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuild public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** - * - * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -262,7 +208,6 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuild
    * 
* * string request_id = 3; - * * @return The requestId. */ @java.lang.Override @@ -271,15 +216,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -289,15 +233,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -306,7 +251,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -318,7 +262,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -338,10 +283,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (migrationJob_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMigrationJob()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMigrationJob()); } if (!getRequestIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -354,23 +301,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.clouddms.v1.UpdateMigrationJobRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.UpdateMigrationJobRequest other = - (com.google.cloud.clouddms.v1.UpdateMigrationJobRequest) obj; + com.google.cloud.clouddms.v1.UpdateMigrationJobRequest other = (com.google.cloud.clouddms.v1.UpdateMigrationJobRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasMigrationJob() != other.hasMigrationJob()) return false; if (hasMigrationJob()) { - if (!getMigrationJob().equals(other.getMigrationJob())) return false; + if (!getMigrationJob() + .equals(other.getMigrationJob())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -398,127 +347,117 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.UpdateMigrationJobRequest 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.clouddms.v1.UpdateMigrationJobRequest 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.clouddms.v1.UpdateMigrationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.UpdateMigrationJobRequest 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.clouddms.v1.UpdateMigrationJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.UpdateMigrationJobRequest 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.clouddms.v1.UpdateMigrationJobRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.UpdateMigrationJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.UpdateMigrationJobRequest 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.clouddms.v1.UpdateMigrationJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.UpdateMigrationJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.UpdateMigrationJobRequest 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.clouddms.v1.UpdateMigrationJobRequest 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.clouddms.v1.UpdateMigrationJobRequest 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.clouddms.v1.UpdateMigrationJobRequest prototype) { + public static Builder newBuilder(com.google.cloud.clouddms.v1.UpdateMigrationJobRequest 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 message for 'UpdateMigrationJob' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.UpdateMigrationJobRequest} */ - 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.clouddms.v1.UpdateMigrationJobRequest) com.google.cloud.clouddms.v1.UpdateMigrationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.class, - com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.class, com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.newBuilder() @@ -526,15 +465,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -556,9 +496,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_descriptor; } @java.lang.Override @@ -577,8 +517,7 @@ public com.google.cloud.clouddms.v1.UpdateMigrationJobRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.UpdateMigrationJobRequest buildPartial() { - com.google.cloud.clouddms.v1.UpdateMigrationJobRequest result = - new com.google.cloud.clouddms.v1.UpdateMigrationJobRequest(this); + com.google.cloud.clouddms.v1.UpdateMigrationJobRequest result = new com.google.cloud.clouddms.v1.UpdateMigrationJobRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -598,39 +537,38 @@ public com.google.cloud.clouddms.v1.UpdateMigrationJobRequest 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.clouddms.v1.UpdateMigrationJobRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.UpdateMigrationJobRequest) other); + return mergeFrom((com.google.cloud.clouddms.v1.UpdateMigrationJobRequest)other); } else { super.mergeFrom(other); return this; @@ -638,8 +576,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.UpdateMigrationJobRequest other) { - if (other == com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -669,8 +606,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.clouddms.v1.UpdateMigrationJobRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.clouddms.v1.UpdateMigrationJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -682,58 +618,42 @@ public Builder mergeFrom( 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. Field mask is used to specify the fields to be overwritten in the
      * migration job resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * migration job resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask is used to specify the fields to be overwritten in the
      * migration job resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -749,17 +669,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * migration job resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.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(); @@ -770,21 +688,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * migration job resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.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; } @@ -796,15 +711,12 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * migration job resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -818,64 +730,51 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * migration job resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * migration job resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask is used to specify the fields to be overwritten in the
      * migration job resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.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_; @@ -883,58 +782,39 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.clouddms.v1.MigrationJob migrationJob_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.MigrationJob, - com.google.cloud.clouddms.v1.MigrationJob.Builder, - com.google.cloud.clouddms.v1.MigrationJobOrBuilder> - migrationJobBuilder_; + com.google.cloud.clouddms.v1.MigrationJob, com.google.cloud.clouddms.v1.MigrationJob.Builder, com.google.cloud.clouddms.v1.MigrationJobOrBuilder> migrationJobBuilder_; /** - * - * *
      * Required. The migration job parameters to update.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the migrationJob field is set. */ public boolean hasMigrationJob() { return migrationJobBuilder_ != null || migrationJob_ != null; } /** - * - * *
      * Required. The migration job parameters to update.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The migrationJob. */ public com.google.cloud.clouddms.v1.MigrationJob getMigrationJob() { if (migrationJobBuilder_ == null) { - return migrationJob_ == null - ? com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() - : migrationJob_; + return migrationJob_ == null ? com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() : migrationJob_; } else { return migrationJobBuilder_.getMessage(); } } /** - * - * *
      * Required. The migration job parameters to update.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setMigrationJob(com.google.cloud.clouddms.v1.MigrationJob value) { if (migrationJobBuilder_ == null) { @@ -950,15 +830,11 @@ public Builder setMigrationJob(com.google.cloud.clouddms.v1.MigrationJob value) return this; } /** - * - * *
      * Required. The migration job parameters to update.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setMigrationJob( com.google.cloud.clouddms.v1.MigrationJob.Builder builderForValue) { @@ -972,23 +848,17 @@ public Builder setMigrationJob( return this; } /** - * - * *
      * Required. The migration job parameters to update.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeMigrationJob(com.google.cloud.clouddms.v1.MigrationJob value) { if (migrationJobBuilder_ == null) { if (migrationJob_ != null) { migrationJob_ = - com.google.cloud.clouddms.v1.MigrationJob.newBuilder(migrationJob_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.clouddms.v1.MigrationJob.newBuilder(migrationJob_).mergeFrom(value).buildPartial(); } else { migrationJob_ = value; } @@ -1000,15 +870,11 @@ public Builder mergeMigrationJob(com.google.cloud.clouddms.v1.MigrationJob value return this; } /** - * - * *
      * Required. The migration job parameters to update.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearMigrationJob() { if (migrationJobBuilder_ == null) { @@ -1022,64 +888,48 @@ public Builder clearMigrationJob() { return this; } /** - * - * *
      * Required. The migration job parameters to update.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.clouddms.v1.MigrationJob.Builder getMigrationJobBuilder() { - + onChanged(); return getMigrationJobFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The migration job parameters to update.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuilder() { if (migrationJobBuilder_ != null) { return migrationJobBuilder_.getMessageOrBuilder(); } else { - return migrationJob_ == null - ? com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() - : migrationJob_; + return migrationJob_ == null ? + com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() : migrationJob_; } } /** - * - * *
      * Required. The migration job parameters to update.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.MigrationJob, - com.google.cloud.clouddms.v1.MigrationJob.Builder, - com.google.cloud.clouddms.v1.MigrationJobOrBuilder> + com.google.cloud.clouddms.v1.MigrationJob, com.google.cloud.clouddms.v1.MigrationJob.Builder, com.google.cloud.clouddms.v1.MigrationJobOrBuilder> getMigrationJobFieldBuilder() { if (migrationJobBuilder_ == null) { - migrationJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.MigrationJob, - com.google.cloud.clouddms.v1.MigrationJob.Builder, - com.google.cloud.clouddms.v1.MigrationJobOrBuilder>( - getMigrationJob(), getParentForChildren(), isClean()); + migrationJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.MigrationJob, com.google.cloud.clouddms.v1.MigrationJob.Builder, com.google.cloud.clouddms.v1.MigrationJobOrBuilder>( + getMigrationJob(), + getParentForChildren(), + isClean()); migrationJob_ = null; } return migrationJobBuilder_; @@ -1087,8 +937,6 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuild private java.lang.Object requestId_ = ""; /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1098,13 +946,13 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuild
      * 
* * string request_id = 3; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1113,8 +961,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1124,14 +970,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1139,8 +986,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1150,22 +995,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1175,18 +1018,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1196,23 +1036,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1222,12 +1062,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.UpdateMigrationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.UpdateMigrationJobRequest) private static final com.google.cloud.clouddms.v1.UpdateMigrationJobRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.UpdateMigrationJobRequest(); } @@ -1236,16 +1076,16 @@ public static com.google.cloud.clouddms.v1.UpdateMigrationJobRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateMigrationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateMigrationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMigrationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateMigrationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1260,4 +1100,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.clouddms.v1.UpdateMigrationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequestOrBuilder.java similarity index 66% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequestOrBuilder.java index 59e76896..1544f372 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequestOrBuilder.java @@ -1,113 +1,70 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface UpdateMigrationJobRequestOrBuilder - extends +public interface UpdateMigrationJobRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.UpdateMigrationJobRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * migration job resource by the update.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * migration job resource by the update.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * migration job resource by the update.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. The migration job parameters to update.
    * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the migrationJob field is set. */ boolean hasMigrationJob(); /** - * - * *
    * Required. The migration job parameters to update.
    * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The migrationJob. */ com.google.cloud.clouddms.v1.MigrationJob getMigrationJob(); /** - * - * *
    * Required. The migration job parameters to update.
    * 
* - * - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuilder(); /** - * - * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -117,13 +74,10 @@ public interface UpdateMigrationJobRequestOrBuilder
    * 
* * string request_id = 3; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -133,8 +87,8 @@ public interface UpdateMigrationJobRequestOrBuilder
    * 
* * string request_id = 3; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequest.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequest.java similarity index 68% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequest.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequest.java index 06219510..be5801da 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * Request message for 'VerifyMigrationJob' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.VerifyMigrationJobRequest} */ -public final class VerifyMigrationJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VerifyMigrationJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.VerifyMigrationJobRequest) VerifyMigrationJobRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VerifyMigrationJobRequest.newBuilder() to construct. private VerifyMigrationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VerifyMigrationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VerifyMigrationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VerifyMigrationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,58 +53,52 @@ private VerifyMigrationJobRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.class, - com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.class, com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Name of the migration job resource to verify.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ @java.lang.Override @@ -130,29 +107,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; } } /** - * - * *
    * Name of the migration job resource to verify.
    * 
* * string name = 1 [(.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 { @@ -161,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -197,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.clouddms.v1.VerifyMigrationJobRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.VerifyMigrationJobRequest other = - (com.google.cloud.clouddms.v1.VerifyMigrationJobRequest) obj; + com.google.cloud.clouddms.v1.VerifyMigrationJobRequest other = (com.google.cloud.clouddms.v1.VerifyMigrationJobRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -225,127 +202,117 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.VerifyMigrationJobRequest 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.clouddms.v1.VerifyMigrationJobRequest 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.clouddms.v1.VerifyMigrationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.VerifyMigrationJobRequest 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.clouddms.v1.VerifyMigrationJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.VerifyMigrationJobRequest 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.clouddms.v1.VerifyMigrationJobRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.VerifyMigrationJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.VerifyMigrationJobRequest 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.clouddms.v1.VerifyMigrationJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.VerifyMigrationJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.VerifyMigrationJobRequest 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.clouddms.v1.VerifyMigrationJobRequest 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.clouddms.v1.VerifyMigrationJobRequest 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.clouddms.v1.VerifyMigrationJobRequest prototype) { + public static Builder newBuilder(com.google.cloud.clouddms.v1.VerifyMigrationJobRequest 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 message for 'VerifyMigrationJob' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.VerifyMigrationJobRequest} */ - 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.clouddms.v1.VerifyMigrationJobRequest) com.google.cloud.clouddms.v1.VerifyMigrationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.class, - com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.class, com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.newBuilder() @@ -353,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -371,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_descriptor; } @java.lang.Override @@ -392,8 +360,7 @@ public com.google.cloud.clouddms.v1.VerifyMigrationJobRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.VerifyMigrationJobRequest buildPartial() { - com.google.cloud.clouddms.v1.VerifyMigrationJobRequest result = - new com.google.cloud.clouddms.v1.VerifyMigrationJobRequest(this); + com.google.cloud.clouddms.v1.VerifyMigrationJobRequest result = new com.google.cloud.clouddms.v1.VerifyMigrationJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -403,39 +370,38 @@ public com.google.cloud.clouddms.v1.VerifyMigrationJobRequest 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.clouddms.v1.VerifyMigrationJobRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.VerifyMigrationJobRequest) other); + return mergeFrom((com.google.cloud.clouddms.v1.VerifyMigrationJobRequest)other); } else { super.mergeFrom(other); return this; @@ -443,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.VerifyMigrationJobRequest other) { - if (other == com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -468,8 +433,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.clouddms.v1.VerifyMigrationJobRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.clouddms.v1.VerifyMigrationJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -481,20 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Name of the migration job resource to verify.
      * 
* * string name = 1 [(.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; @@ -503,21 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Name of the migration job resource to verify.
      * 
* * string name = 1 [(.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 { @@ -525,68 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Name of the migration job resource to verify.
      * 
* * string name = 1 [(.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; } /** - * - * *
      * Name of the migration job resource to verify.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Name of the migration job resource to verify.
      * 
* * string name = 1 [(.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); } @@ -596,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.VerifyMigrationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.VerifyMigrationJobRequest) private static final com.google.cloud.clouddms.v1.VerifyMigrationJobRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.VerifyMigrationJobRequest(); } @@ -610,16 +564,16 @@ public static com.google.cloud.clouddms.v1.VerifyMigrationJobRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VerifyMigrationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VerifyMigrationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyMigrationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VerifyMigrationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -634,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.clouddms.v1.VerifyMigrationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequestOrBuilder.java new file mode 100644 index 00000000..f40d0955 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface VerifyMigrationJobRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.VerifyMigrationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Name of the migration job resource to verify.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Name of the migration job resource to verify.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfig.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfig.java similarity index 70% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfig.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfig.java index 92bcfbe4..93c7d712 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfig.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/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * VM creation configuration message
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.VmCreationConfig} */ -public final class VmCreationConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VmCreationConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.VmCreationConfig) VmCreationConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VmCreationConfig.newBuilder() to construct. private VmCreationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VmCreationConfig() { vmMachineType_ = ""; vmZone_ = ""; @@ -45,15 +27,16 @@ private VmCreationConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VmCreationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VmCreationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,72 +55,64 @@ private VmCreationConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - vmMachineType_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + vmMachineType_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - vmZone_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + vmZone_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - subnet_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + subnet_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_VmCreationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VmCreationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_VmCreationConfig_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VmCreationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.VmCreationConfig.class, - com.google.cloud.clouddms.v1.VmCreationConfig.Builder.class); + com.google.cloud.clouddms.v1.VmCreationConfig.class, com.google.cloud.clouddms.v1.VmCreationConfig.Builder.class); } public static final int VM_MACHINE_TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object vmMachineType_; /** - * - * *
    * Required. VM instance machine type to create.
    * 
* * string vm_machine_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The vmMachineType. */ @java.lang.Override @@ -146,29 +121,29 @@ public java.lang.String getVmMachineType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vmMachineType_ = s; return s; } } /** - * - * *
    * Required. VM instance machine type to create.
    * 
* * string vm_machine_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for vmMachineType. */ @java.lang.Override - public com.google.protobuf.ByteString getVmMachineTypeBytes() { + public com.google.protobuf.ByteString + getVmMachineTypeBytes() { java.lang.Object ref = vmMachineType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vmMachineType_ = b; return b; } else { @@ -179,14 +154,11 @@ public com.google.protobuf.ByteString getVmMachineTypeBytes() { public static final int VM_ZONE_FIELD_NUMBER = 2; private volatile java.lang.Object vmZone_; /** - * - * *
    * The Google Cloud Platform zone to create the VM in.
    * 
* * string vm_zone = 2; - * * @return The vmZone. */ @java.lang.Override @@ -195,29 +167,29 @@ public java.lang.String getVmZone() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vmZone_ = s; return s; } } /** - * - * *
    * The Google Cloud Platform zone to create the VM in.
    * 
* * string vm_zone = 2; - * * @return The bytes for vmZone. */ @java.lang.Override - public com.google.protobuf.ByteString getVmZoneBytes() { + public com.google.protobuf.ByteString + getVmZoneBytes() { java.lang.Object ref = vmZone_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vmZone_ = b; return b; } else { @@ -228,14 +200,11 @@ public com.google.protobuf.ByteString getVmZoneBytes() { public static final int SUBNET_FIELD_NUMBER = 3; private volatile java.lang.Object subnet_; /** - * - * *
    * The subnet name the vm needs to be created in.
    * 
* * string subnet = 3; - * * @return The subnet. */ @java.lang.Override @@ -244,29 +213,29 @@ public java.lang.String getSubnet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnet_ = s; return s; } } /** - * - * *
    * The subnet name the vm needs to be created in.
    * 
* * string subnet = 3; - * * @return The bytes for subnet. */ @java.lang.Override - public com.google.protobuf.ByteString getSubnetBytes() { + public com.google.protobuf.ByteString + getSubnetBytes() { java.lang.Object ref = subnet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subnet_ = b; return b; } else { @@ -275,7 +244,6 @@ public com.google.protobuf.ByteString getSubnetBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -287,7 +255,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getVmMachineTypeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, vmMachineType_); } @@ -323,17 +292,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.clouddms.v1.VmCreationConfig)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.VmCreationConfig other = - (com.google.cloud.clouddms.v1.VmCreationConfig) obj; + com.google.cloud.clouddms.v1.VmCreationConfig other = (com.google.cloud.clouddms.v1.VmCreationConfig) obj; - if (!getVmMachineType().equals(other.getVmMachineType())) return false; - if (!getVmZone().equals(other.getVmZone())) return false; - if (!getSubnet().equals(other.getSubnet())) return false; + if (!getVmMachineType() + .equals(other.getVmMachineType())) return false; + if (!getVmZone() + .equals(other.getVmZone())) return false; + if (!getSubnet() + .equals(other.getSubnet())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -356,127 +327,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.clouddms.v1.VmCreationConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.clouddms.v1.VmCreationConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.VmCreationConfig 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.clouddms.v1.VmCreationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.VmCreationConfig 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.clouddms.v1.VmCreationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.VmCreationConfig 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.clouddms.v1.VmCreationConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.VmCreationConfig 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.clouddms.v1.VmCreationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.VmCreationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.VmCreationConfig 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.clouddms.v1.VmCreationConfig 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.clouddms.v1.VmCreationConfig 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.clouddms.v1.VmCreationConfig 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; } /** - * - * *
    * VM creation configuration message
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.VmCreationConfig} */ - 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.clouddms.v1.VmCreationConfig) com.google.cloud.clouddms.v1.VmCreationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_VmCreationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VmCreationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_VmCreationConfig_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VmCreationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.VmCreationConfig.class, - com.google.cloud.clouddms.v1.VmCreationConfig.Builder.class); + com.google.cloud.clouddms.v1.VmCreationConfig.class, com.google.cloud.clouddms.v1.VmCreationConfig.Builder.class); } // Construct using com.google.cloud.clouddms.v1.VmCreationConfig.newBuilder() @@ -484,15 +446,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -506,9 +469,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_VmCreationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VmCreationConfig_descriptor; } @java.lang.Override @@ -527,8 +490,7 @@ public com.google.cloud.clouddms.v1.VmCreationConfig build() { @java.lang.Override public com.google.cloud.clouddms.v1.VmCreationConfig buildPartial() { - com.google.cloud.clouddms.v1.VmCreationConfig result = - new com.google.cloud.clouddms.v1.VmCreationConfig(this); + com.google.cloud.clouddms.v1.VmCreationConfig result = new com.google.cloud.clouddms.v1.VmCreationConfig(this); result.vmMachineType_ = vmMachineType_; result.vmZone_ = vmZone_; result.subnet_ = subnet_; @@ -540,39 +502,38 @@ public com.google.cloud.clouddms.v1.VmCreationConfig 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.clouddms.v1.VmCreationConfig) { - return mergeFrom((com.google.cloud.clouddms.v1.VmCreationConfig) other); + return mergeFrom((com.google.cloud.clouddms.v1.VmCreationConfig)other); } else { super.mergeFrom(other); return this; @@ -624,20 +585,18 @@ public Builder mergeFrom( private java.lang.Object vmMachineType_ = ""; /** - * - * *
      * Required. VM instance machine type to create.
      * 
* * string vm_machine_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The vmMachineType. */ public java.lang.String getVmMachineType() { java.lang.Object ref = vmMachineType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vmMachineType_ = s; return s; @@ -646,21 +605,20 @@ public java.lang.String getVmMachineType() { } } /** - * - * *
      * Required. VM instance machine type to create.
      * 
* * string vm_machine_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for vmMachineType. */ - public com.google.protobuf.ByteString getVmMachineTypeBytes() { + public com.google.protobuf.ByteString + getVmMachineTypeBytes() { java.lang.Object ref = vmMachineType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vmMachineType_ = b; return b; } else { @@ -668,61 +626,54 @@ public com.google.protobuf.ByteString getVmMachineTypeBytes() { } } /** - * - * *
      * Required. VM instance machine type to create.
      * 
* * string vm_machine_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The vmMachineType to set. * @return This builder for chaining. */ - public Builder setVmMachineType(java.lang.String value) { + public Builder setVmMachineType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vmMachineType_ = value; onChanged(); return this; } /** - * - * *
      * Required. VM instance machine type to create.
      * 
* * string vm_machine_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearVmMachineType() { - + vmMachineType_ = getDefaultInstance().getVmMachineType(); onChanged(); return this; } /** - * - * *
      * Required. VM instance machine type to create.
      * 
* * string vm_machine_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for vmMachineType to set. * @return This builder for chaining. */ - public Builder setVmMachineTypeBytes(com.google.protobuf.ByteString value) { + public Builder setVmMachineTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmMachineType_ = value; onChanged(); return this; @@ -730,20 +681,18 @@ public Builder setVmMachineTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object vmZone_ = ""; /** - * - * *
      * The Google Cloud Platform zone to create the VM in.
      * 
* * string vm_zone = 2; - * * @return The vmZone. */ public java.lang.String getVmZone() { java.lang.Object ref = vmZone_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vmZone_ = s; return s; @@ -752,21 +701,20 @@ public java.lang.String getVmZone() { } } /** - * - * *
      * The Google Cloud Platform zone to create the VM in.
      * 
* * string vm_zone = 2; - * * @return The bytes for vmZone. */ - public com.google.protobuf.ByteString getVmZoneBytes() { + public com.google.protobuf.ByteString + getVmZoneBytes() { java.lang.Object ref = vmZone_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vmZone_ = b; return b; } else { @@ -774,61 +722,54 @@ public com.google.protobuf.ByteString getVmZoneBytes() { } } /** - * - * *
      * The Google Cloud Platform zone to create the VM in.
      * 
* * string vm_zone = 2; - * * @param value The vmZone to set. * @return This builder for chaining. */ - public Builder setVmZone(java.lang.String value) { + public Builder setVmZone( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vmZone_ = value; onChanged(); return this; } /** - * - * *
      * The Google Cloud Platform zone to create the VM in.
      * 
* * string vm_zone = 2; - * * @return This builder for chaining. */ public Builder clearVmZone() { - + vmZone_ = getDefaultInstance().getVmZone(); onChanged(); return this; } /** - * - * *
      * The Google Cloud Platform zone to create the VM in.
      * 
* * string vm_zone = 2; - * * @param value The bytes for vmZone to set. * @return This builder for chaining. */ - public Builder setVmZoneBytes(com.google.protobuf.ByteString value) { + public Builder setVmZoneBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmZone_ = value; onChanged(); return this; @@ -836,20 +777,18 @@ public Builder setVmZoneBytes(com.google.protobuf.ByteString value) { private java.lang.Object subnet_ = ""; /** - * - * *
      * The subnet name the vm needs to be created in.
      * 
* * string subnet = 3; - * * @return The subnet. */ public java.lang.String getSubnet() { java.lang.Object ref = subnet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnet_ = s; return s; @@ -858,21 +797,20 @@ public java.lang.String getSubnet() { } } /** - * - * *
      * The subnet name the vm needs to be created in.
      * 
* * string subnet = 3; - * * @return The bytes for subnet. */ - public com.google.protobuf.ByteString getSubnetBytes() { + public com.google.protobuf.ByteString + getSubnetBytes() { java.lang.Object ref = subnet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subnet_ = b; return b; } else { @@ -880,68 +818,61 @@ public com.google.protobuf.ByteString getSubnetBytes() { } } /** - * - * *
      * The subnet name the vm needs to be created in.
      * 
* * string subnet = 3; - * * @param value The subnet to set. * @return This builder for chaining. */ - public Builder setSubnet(java.lang.String value) { + public Builder setSubnet( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subnet_ = value; onChanged(); return this; } /** - * - * *
      * The subnet name the vm needs to be created in.
      * 
* * string subnet = 3; - * * @return This builder for chaining. */ public Builder clearSubnet() { - + subnet_ = getDefaultInstance().getSubnet(); onChanged(); return this; } /** - * - * *
      * The subnet name the vm needs to be created in.
      * 
* * string subnet = 3; - * * @param value The bytes for subnet to set. * @return This builder for chaining. */ - public Builder setSubnetBytes(com.google.protobuf.ByteString value) { + public Builder setSubnetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subnet_ = 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); } @@ -951,12 +882,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.VmCreationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.VmCreationConfig) private static final com.google.cloud.clouddms.v1.VmCreationConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.VmCreationConfig(); } @@ -965,16 +896,16 @@ public static com.google.cloud.clouddms.v1.VmCreationConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VmCreationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VmCreationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VmCreationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VmCreationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -989,4 +920,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.VmCreationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfigOrBuilder.java similarity index 62% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfigOrBuilder.java index de732620..b6a7259c 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfigOrBuilder.java @@ -1,100 +1,69 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface VmCreationConfigOrBuilder - extends +public interface VmCreationConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.VmCreationConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. VM instance machine type to create.
    * 
* * string vm_machine_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The vmMachineType. */ java.lang.String getVmMachineType(); /** - * - * *
    * Required. VM instance machine type to create.
    * 
* * string vm_machine_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for vmMachineType. */ - com.google.protobuf.ByteString getVmMachineTypeBytes(); + com.google.protobuf.ByteString + getVmMachineTypeBytes(); /** - * - * *
    * The Google Cloud Platform zone to create the VM in.
    * 
* * string vm_zone = 2; - * * @return The vmZone. */ java.lang.String getVmZone(); /** - * - * *
    * The Google Cloud Platform zone to create the VM in.
    * 
* * string vm_zone = 2; - * * @return The bytes for vmZone. */ - com.google.protobuf.ByteString getVmZoneBytes(); + com.google.protobuf.ByteString + getVmZoneBytes(); /** - * - * *
    * The subnet name the vm needs to be created in.
    * 
* * string subnet = 3; - * * @return The subnet. */ java.lang.String getSubnet(); /** - * - * *
    * The subnet name the vm needs to be created in.
    * 
* * string subnet = 3; - * * @return The bytes for subnet. */ - com.google.protobuf.ByteString getSubnetBytes(); + com.google.protobuf.ByteString + getSubnetBytes(); } diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfig.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfig.java similarity index 69% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfig.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfig.java index 322400c6..4d5bfbea 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfig.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * VM selection configuration message
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.VmSelectionConfig} */ -public final class VmSelectionConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VmSelectionConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.VmSelectionConfig) VmSelectionConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VmSelectionConfig.newBuilder() to construct. private VmSelectionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VmSelectionConfig() { vmZone_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VmSelectionConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VmSelectionConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,58 +53,52 @@ private VmSelectionConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - vmZone_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + vmZone_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_VmSelectionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VmSelectionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_VmSelectionConfig_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VmSelectionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.VmSelectionConfig.class, - com.google.cloud.clouddms.v1.VmSelectionConfig.Builder.class); + com.google.cloud.clouddms.v1.VmSelectionConfig.class, com.google.cloud.clouddms.v1.VmSelectionConfig.Builder.class); } public static final int VM_ZONE_FIELD_NUMBER = 1; private volatile java.lang.Object vmZone_; /** - * - * *
    * Required. The Google Cloud Platform zone the VM is located.
    * 
* * string vm_zone = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The vmZone. */ @java.lang.Override @@ -130,29 +107,29 @@ public java.lang.String getVmZone() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vmZone_ = s; return s; } } /** - * - * *
    * Required. The Google Cloud Platform zone the VM is located.
    * 
* * string vm_zone = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for vmZone. */ @java.lang.Override - public com.google.protobuf.ByteString getVmZoneBytes() { + public com.google.protobuf.ByteString + getVmZoneBytes() { java.lang.Object ref = vmZone_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vmZone_ = b; return b; } else { @@ -161,7 +138,6 @@ public com.google.protobuf.ByteString getVmZoneBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,7 +149,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 (!getVmZoneBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, vmZone_); } @@ -197,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.clouddms.v1.VmSelectionConfig)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.VmSelectionConfig other = - (com.google.cloud.clouddms.v1.VmSelectionConfig) obj; + com.google.cloud.clouddms.v1.VmSelectionConfig other = (com.google.cloud.clouddms.v1.VmSelectionConfig) obj; - if (!getVmZone().equals(other.getVmZone())) return false; + if (!getVmZone() + .equals(other.getVmZone())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -224,127 +201,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.clouddms.v1.VmSelectionConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.clouddms.v1.VmSelectionConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.VmSelectionConfig 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.clouddms.v1.VmSelectionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.VmSelectionConfig 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.clouddms.v1.VmSelectionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.VmSelectionConfig 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.clouddms.v1.VmSelectionConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.VmSelectionConfig 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.clouddms.v1.VmSelectionConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.VmSelectionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.VmSelectionConfig 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.clouddms.v1.VmSelectionConfig 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.clouddms.v1.VmSelectionConfig 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.clouddms.v1.VmSelectionConfig 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; } /** - * - * *
    * VM selection configuration message
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.VmSelectionConfig} */ - 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.clouddms.v1.VmSelectionConfig) com.google.cloud.clouddms.v1.VmSelectionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_VmSelectionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VmSelectionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_VmSelectionConfig_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VmSelectionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.VmSelectionConfig.class, - com.google.cloud.clouddms.v1.VmSelectionConfig.Builder.class); + com.google.cloud.clouddms.v1.VmSelectionConfig.class, com.google.cloud.clouddms.v1.VmSelectionConfig.Builder.class); } // Construct using com.google.cloud.clouddms.v1.VmSelectionConfig.newBuilder() @@ -352,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto - .internal_static_google_cloud_clouddms_v1_VmSelectionConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VmSelectionConfig_descriptor; } @java.lang.Override @@ -391,8 +360,7 @@ public com.google.cloud.clouddms.v1.VmSelectionConfig build() { @java.lang.Override public com.google.cloud.clouddms.v1.VmSelectionConfig buildPartial() { - com.google.cloud.clouddms.v1.VmSelectionConfig result = - new com.google.cloud.clouddms.v1.VmSelectionConfig(this); + com.google.cloud.clouddms.v1.VmSelectionConfig result = new com.google.cloud.clouddms.v1.VmSelectionConfig(this); result.vmZone_ = vmZone_; onBuilt(); return result; @@ -402,39 +370,38 @@ public com.google.cloud.clouddms.v1.VmSelectionConfig 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.clouddms.v1.VmSelectionConfig) { - return mergeFrom((com.google.cloud.clouddms.v1.VmSelectionConfig) other); + return mergeFrom((com.google.cloud.clouddms.v1.VmSelectionConfig)other); } else { super.mergeFrom(other); return this; @@ -478,20 +445,18 @@ public Builder mergeFrom( private java.lang.Object vmZone_ = ""; /** - * - * *
      * Required. The Google Cloud Platform zone the VM is located.
      * 
* * string vm_zone = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The vmZone. */ public java.lang.String getVmZone() { java.lang.Object ref = vmZone_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vmZone_ = s; return s; @@ -500,21 +465,20 @@ public java.lang.String getVmZone() { } } /** - * - * *
      * Required. The Google Cloud Platform zone the VM is located.
      * 
* * string vm_zone = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for vmZone. */ - public com.google.protobuf.ByteString getVmZoneBytes() { + public com.google.protobuf.ByteString + getVmZoneBytes() { java.lang.Object ref = vmZone_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vmZone_ = b; return b; } else { @@ -522,68 +486,61 @@ public com.google.protobuf.ByteString getVmZoneBytes() { } } /** - * - * *
      * Required. The Google Cloud Platform zone the VM is located.
      * 
* * string vm_zone = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The vmZone to set. * @return This builder for chaining. */ - public Builder setVmZone(java.lang.String value) { + public Builder setVmZone( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vmZone_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Google Cloud Platform zone the VM is located.
      * 
* * string vm_zone = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearVmZone() { - + vmZone_ = getDefaultInstance().getVmZone(); onChanged(); return this; } /** - * - * *
      * Required. The Google Cloud Platform zone the VM is located.
      * 
* * string vm_zone = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for vmZone to set. * @return This builder for chaining. */ - public Builder setVmZoneBytes(com.google.protobuf.ByteString value) { + public Builder setVmZoneBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmZone_ = 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); } @@ -593,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.VmSelectionConfig) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.VmSelectionConfig) private static final com.google.cloud.clouddms.v1.VmSelectionConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.VmSelectionConfig(); } @@ -607,16 +564,16 @@ public static com.google.cloud.clouddms.v1.VmSelectionConfig getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VmSelectionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VmSelectionConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VmSelectionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VmSelectionConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -631,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.VmSelectionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfigOrBuilder.java similarity index 50% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfigOrBuilder.java index 3d74b42f..d2145dbf 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfigOrBuilder.java @@ -1,50 +1,29 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface VmSelectionConfigOrBuilder - extends +public interface VmSelectionConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.VmSelectionConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Google Cloud Platform zone the VM is located.
    * 
* * string vm_zone = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The vmZone. */ java.lang.String getVmZone(); /** - * - * *
    * Required. The Google Cloud Platform zone the VM is located.
    * 
* * string vm_zone = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for vmZone. */ - com.google.protobuf.ByteString getVmZoneBytes(); + com.google.protobuf.ByteString + getVmZoneBytes(); } diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivity.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivity.java similarity index 69% rename from proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivity.java rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivity.java index 5df5eb20..41681f5e 100644 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivity.java +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivity.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/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** - * - * *
  * The details of the VPC where the source database is located in Google Cloud.
  * We will use this information to set up the VPC peering connection between
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.cloud.clouddms.v1.VpcPeeringConnectivity}
  */
-public final class VpcPeeringConnectivity extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class VpcPeeringConnectivity extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.VpcPeeringConnectivity)
     VpcPeeringConnectivityOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use VpcPeeringConnectivity.newBuilder() to construct.
   private VpcPeeringConnectivity(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private VpcPeeringConnectivity() {
     vpc_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new VpcPeeringConnectivity();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private VpcPeeringConnectivity(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,58 +55,52 @@ private VpcPeeringConnectivity(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              vpc_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            vpc_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
-        .internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
-        .internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_fieldAccessorTable
+    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.clouddms.v1.VpcPeeringConnectivity.class,
-            com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder.class);
+            com.google.cloud.clouddms.v1.VpcPeeringConnectivity.class, com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder.class);
   }
 
   public static final int VPC_FIELD_NUMBER = 1;
   private volatile java.lang.Object vpc_;
   /**
-   *
-   *
    * 
    * The name of the VPC network to peer with the Cloud SQL private network.
    * 
* * string vpc = 1; - * * @return The vpc. */ @java.lang.Override @@ -132,29 +109,29 @@ public java.lang.String getVpc() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpc_ = s; return s; } } /** - * - * *
    * The name of the VPC network to peer with the Cloud SQL private network.
    * 
* * string vpc = 1; - * * @return The bytes for vpc. */ @java.lang.Override - public com.google.protobuf.ByteString getVpcBytes() { + public com.google.protobuf.ByteString + getVpcBytes() { java.lang.Object ref = vpc_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vpc_ = b; return b; } else { @@ -163,7 +140,6 @@ public com.google.protobuf.ByteString getVpcBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getVpcBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, vpc_); } @@ -199,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.clouddms.v1.VpcPeeringConnectivity)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.VpcPeeringConnectivity other = - (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) obj; + com.google.cloud.clouddms.v1.VpcPeeringConnectivity other = (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) obj; - if (!getVpc().equals(other.getVpc())) return false; + if (!getVpc() + .equals(other.getVpc())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,103 +204,96 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.VpcPeeringConnectivity 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.clouddms.v1.VpcPeeringConnectivity 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.clouddms.v1.VpcPeeringConnectivity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.VpcPeeringConnectivity 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.clouddms.v1.VpcPeeringConnectivity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.clouddms.v1.VpcPeeringConnectivity 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.clouddms.v1.VpcPeeringConnectivity parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.VpcPeeringConnectivity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.VpcPeeringConnectivity 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.clouddms.v1.VpcPeeringConnectivity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.clouddms.v1.VpcPeeringConnectivity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.clouddms.v1.VpcPeeringConnectivity 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.clouddms.v1.VpcPeeringConnectivity 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.clouddms.v1.VpcPeeringConnectivity 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.clouddms.v1.VpcPeeringConnectivity 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 details of the VPC where the source database is located in Google Cloud.
    * We will use this information to set up the VPC peering connection between
@@ -332,23 +302,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.clouddms.v1.VpcPeeringConnectivity}
    */
-  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.clouddms.v1.VpcPeeringConnectivity)
       com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
-          .internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
-          .internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_fieldAccessorTable
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.clouddms.v1.VpcPeeringConnectivity.class,
-              com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder.class);
+              com.google.cloud.clouddms.v1.VpcPeeringConnectivity.class, com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder.class);
     }
 
     // Construct using com.google.cloud.clouddms.v1.VpcPeeringConnectivity.newBuilder()
@@ -356,15 +324,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -374,9 +343,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
-          .internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_descriptor;
     }
 
     @java.lang.Override
@@ -395,8 +364,7 @@ public com.google.cloud.clouddms.v1.VpcPeeringConnectivity build() {
 
     @java.lang.Override
     public com.google.cloud.clouddms.v1.VpcPeeringConnectivity buildPartial() {
-      com.google.cloud.clouddms.v1.VpcPeeringConnectivity result =
-          new com.google.cloud.clouddms.v1.VpcPeeringConnectivity(this);
+      com.google.cloud.clouddms.v1.VpcPeeringConnectivity result = new com.google.cloud.clouddms.v1.VpcPeeringConnectivity(this);
       result.vpc_ = vpc_;
       onBuilt();
       return result;
@@ -406,39 +374,38 @@ public com.google.cloud.clouddms.v1.VpcPeeringConnectivity 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.clouddms.v1.VpcPeeringConnectivity) {
-        return mergeFrom((com.google.cloud.clouddms.v1.VpcPeeringConnectivity) other);
+        return mergeFrom((com.google.cloud.clouddms.v1.VpcPeeringConnectivity)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -446,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.clouddms.v1.VpcPeeringConnectivity other) {
-      if (other == com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance()) return this;
       if (!other.getVpc().isEmpty()) {
         vpc_ = other.vpc_;
         onChanged();
@@ -471,8 +437,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -484,20 +449,18 @@ public Builder mergeFrom(
 
     private java.lang.Object vpc_ = "";
     /**
-     *
-     *
      * 
      * The name of the VPC network to peer with the Cloud SQL private network.
      * 
* * string vpc = 1; - * * @return The vpc. */ public java.lang.String getVpc() { java.lang.Object ref = vpc_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpc_ = s; return s; @@ -506,21 +469,20 @@ public java.lang.String getVpc() { } } /** - * - * *
      * The name of the VPC network to peer with the Cloud SQL private network.
      * 
* * string vpc = 1; - * * @return The bytes for vpc. */ - public com.google.protobuf.ByteString getVpcBytes() { + public com.google.protobuf.ByteString + getVpcBytes() { java.lang.Object ref = vpc_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vpc_ = b; return b; } else { @@ -528,68 +490,61 @@ public com.google.protobuf.ByteString getVpcBytes() { } } /** - * - * *
      * The name of the VPC network to peer with the Cloud SQL private network.
      * 
* * string vpc = 1; - * * @param value The vpc to set. * @return This builder for chaining. */ - public Builder setVpc(java.lang.String value) { + public Builder setVpc( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vpc_ = value; onChanged(); return this; } /** - * - * *
      * The name of the VPC network to peer with the Cloud SQL private network.
      * 
* * string vpc = 1; - * * @return This builder for chaining. */ public Builder clearVpc() { - + vpc_ = getDefaultInstance().getVpc(); onChanged(); return this; } /** - * - * *
      * The name of the VPC network to peer with the Cloud SQL private network.
      * 
* * string vpc = 1; - * * @param value The bytes for vpc to set. * @return This builder for chaining. */ - public Builder setVpcBytes(com.google.protobuf.ByteString value) { + public Builder setVpcBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vpc_ = 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,12 +554,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.VpcPeeringConnectivity) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.VpcPeeringConnectivity) private static final com.google.cloud.clouddms.v1.VpcPeeringConnectivity DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.VpcPeeringConnectivity(); } @@ -613,16 +568,16 @@ public static com.google.cloud.clouddms.v1.VpcPeeringConnectivity getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VpcPeeringConnectivity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VpcPeeringConnectivity(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VpcPeeringConnectivity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VpcPeeringConnectivity(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -637,4 +592,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.VpcPeeringConnectivity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivityOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivityOrBuilder.java new file mode 100644 index 00000000..77093633 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivityOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/clouddms/v1/clouddms_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface VpcPeeringConnectivityOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.VpcPeeringConnectivity) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the VPC network to peer with the Cloud SQL private network.
+   * 
+ * + * string vpc = 1; + * @return The vpc. + */ + java.lang.String getVpc(); + /** + *
+   * The name of the VPC network to peer with the Cloud SQL private network.
+   * 
+ * + * string vpc = 1; + * @return The bytes for vpc. + */ + com.google.protobuf.ByteString + getVpcBytes(); +} diff --git a/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms.proto b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms.proto similarity index 100% rename from proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms.proto rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms.proto diff --git a/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms_resources.proto b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms_resources.proto similarity index 100% rename from proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms_resources.proto rename to owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms_resources.proto diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsProto.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsProto.java deleted file mode 100644 index ba258453..00000000 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsProto.java +++ /dev/null @@ -1,548 +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/clouddms/v1/clouddms.proto - -package com.google.cloud.clouddms.v1; - -public final class ClouddmsProto { - private ClouddmsProto() {} - - 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_clouddms_v1_ListMigrationJobsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_VmCreationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_VmCreationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_VmSelectionConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_VmSelectionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_SshScript_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_SshScript_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n\'google/cloud/clouddms/v1/clouddms.prot" - + "o\022\030google.cloud.clouddms.v1\032\034google/api/" - + "annotations.proto\032\027google/api/client.pro" - + "to\032\037google/api/field_behavior.proto\032\031goo" - + "gle/api/resource.proto\0321google/cloud/clo" - + "uddms/v1/clouddms_resources.proto\032#googl" - + "e/longrunning/operations.proto\032 google/p" - + "rotobuf/field_mask.proto\032\037google/protobu" - + "f/timestamp.proto\"\246\001\n\030ListMigrationJobsR" - + "equest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)datamigr" - + "ation.googleapis.com/MigrationJob\022\021\n\tpag" - + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filt" - + "er\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\211\001\n\031ListMigra" - + "tionJobsResponse\022>\n\016migration_jobs\030\001 \003(\013" - + "2&.google.cloud.clouddms.v1.MigrationJob" - + "\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachable" - + "\030\003 \003(\t\"Y\n\026GetMigrationJobRequest\022?\n\004name" - + "\030\001 \001(\tB1\340A\002\372A+\n)datamigration.googleapis" - + ".com/MigrationJob\"\325\001\n\031CreateMigrationJob" - + "Request\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)datamig" - + "ration.googleapis.com/MigrationJob\022\035\n\020mi" - + "gration_job_id\030\002 \001(\tB\003\340A\002\022B\n\rmigration_j" - + "ob\030\003 \001(\0132&.google.cloud.clouddms.v1.Migr" - + "ationJobB\003\340A\002\022\022\n\nrequest_id\030\004 \001(\t\"\251\001\n\031Up" - + "dateMigrationJobRequest\0224\n\013update_mask\030\001" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022B\n" - + "\rmigration_job\030\002 \001(\0132&.google.cloud.clou" - + "ddms.v1.MigrationJobB\003\340A\002\022\022\n\nrequest_id\030" - + "\003 \001(\t\"\177\n\031DeleteMigrationJobRequest\022?\n\004na" - + "me\030\001 \001(\tB1\340A\002\372A+\n)datamigration.googleap" - + "is.com/MigrationJob\022\022\n\nrequest_id\030\002 \001(\t\022" - + "\r\n\005force\030\003 \001(\010\"X\n\030StartMigrationJobReque" - + "st\022<\n\004name\030\001 \001(\tB.\372A+\n)datamigration.goo" - + "gleapis.com/MigrationJob\"W\n\027StopMigratio" - + "nJobRequest\022<\n\004name\030\001 \001(\tB.\372A+\n)datamigr" - + "ation.googleapis.com/MigrationJob\"Y\n\031Res" - + "umeMigrationJobRequest\022<\n\004name\030\001 \001(\tB.\372A" - + "+\n)datamigration.googleapis.com/Migratio" - + "nJob\"Z\n\032PromoteMigrationJobRequest\022<\n\004na" - + "me\030\001 \001(\tB.\372A+\n)datamigration.googleapis." - + "com/MigrationJob\"Y\n\031VerifyMigrationJobRe" - + "quest\022<\n\004name\030\001 \001(\tB.\372A+\n)datamigration." - + "googleapis.com/MigrationJob\"Z\n\032RestartMi" - + "grationJobRequest\022<\n\004name\030\001 \001(\tB.\372A+\n)da" - + "tamigration.googleapis.com/MigrationJob\"" - + "\246\002\n\030GenerateSshScriptRequest\022E\n\rmigratio" - + "n_job\030\001 \001(\tB.\372A+\n)datamigration.googleap" - + "is.com/MigrationJob\022\017\n\002vm\030\002 \001(\tB\003\340A\002\022H\n\022" - + "vm_creation_config\030d \001(\0132*.google.cloud." - + "clouddms.v1.VmCreationConfigH\000\022J\n\023vm_sel" - + "ection_config\030e \001(\0132+.google.cloud.cloud" - + "dms.v1.VmSelectionConfigH\000\022\017\n\007vm_port\030\003 " - + "\001(\005B\013\n\tvm_config\"Q\n\020VmCreationConfig\022\034\n\017" - + "vm_machine_type\030\001 \001(\tB\003\340A\002\022\017\n\007vm_zone\030\002 " - + "\001(\t\022\016\n\006subnet\030\003 \001(\t\")\n\021VmSelectionConfig" - + "\022\024\n\007vm_zone\030\001 \001(\tB\003\340A\002\"\033\n\tSshScript\022\016\n\006s" - + "cript\030\001 \001(\t\"\260\001\n\035ListConnectionProfilesRe" - + "quest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.datamigra" - + "tion.googleapis.com/ConnectionProfile\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006" - + "filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\230\001\n\036ListC" - + "onnectionProfilesResponse\022H\n\023connection_" - + "profiles\030\001 \003(\0132+.google.cloud.clouddms.v" - + "1.ConnectionProfile\022\027\n\017next_page_token\030\002" - + " \001(\t\022\023\n\013unreachable\030\003 \003(\t\"c\n\033GetConnecti" - + "onProfileRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n." - + "datamigration.googleapis.com/ConnectionP" - + "rofile\"\356\001\n\036CreateConnectionProfileReques" - + "t\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.datamigration" - + ".googleapis.com/ConnectionProfile\022\"\n\025con" - + "nection_profile_id\030\002 \001(\tB\003\340A\002\022L\n\022connect" - + "ion_profile\030\003 \001(\0132+.google.cloud.clouddm" - + "s.v1.ConnectionProfileB\003\340A\002\022\022\n\nrequest_i" - + "d\030\004 \001(\t\"\270\001\n\036UpdateConnectionProfileReque" - + "st\0224\n\013update_mask\030\001 \001(\0132\032.google.protobu" - + "f.FieldMaskB\003\340A\002\022L\n\022connection_profile\030\002" - + " \001(\0132+.google.cloud.clouddms.v1.Connecti" - + "onProfileB\003\340A\002\022\022\n\nrequest_id\030\003 \001(\t\"\211\001\n\036D" - + "eleteConnectionProfileRequest\022D\n\004name\030\001 " - + "\001(\tB6\340A\002\372A0\n.datamigration.googleapis.co" - + "m/ConnectionProfile\022\022\n\nrequest_id\030\002 \001(\t\022" - + "\r\n\005force\030\003 \001(\010\"\200\002\n\021OperationMetadata\0224\n\013" - + "create_time\030\001 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340" - + "A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message\030" - + "\005 \001(\tB\003\340A\003\022#\n\026requested_cancellation\030\006 \001" - + "(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\0032\310\036\n\024Da" - + "taMigrationService\022\300\001\n\021ListMigrationJobs" - + "\0222.google.cloud.clouddms.v1.ListMigratio" - + "nJobsRequest\0323.google.cloud.clouddms.v1." - + "ListMigrationJobsResponse\"B\202\323\344\223\0023\0221/v1/{" - + "parent=projects/*/locations/*}/migration" - + "Jobs\332A\006parent\022\255\001\n\017GetMigrationJob\0220.goog" - + "le.cloud.clouddms.v1.GetMigrationJobRequ" - + "est\032&.google.cloud.clouddms.v1.Migration" - + "Job\"@\202\323\344\223\0023\0221/v1/{name=projects/*/locati" - + "ons/*/migrationJobs/*}\332A\004name\022\377\001\n\022Create" - + "MigrationJob\0223.google.cloud.clouddms.v1." - + "CreateMigrationJobRequest\032\035.google.longr" - + "unning.Operation\"\224\001\202\323\344\223\002B\"1/v1/{parent=p" - + "rojects/*/locations/*}/migrationJobs:\rmi" - + "gration_job\332A%parent,migration_job,migra" - + "tion_job_id\312A!\n\014MigrationJob\022\021OperationM" - + "etadata\022\201\002\n\022UpdateMigrationJob\0223.google." - + "cloud.clouddms.v1.UpdateMigrationJobRequ" - + "est\032\035.google.longrunning.Operation\"\226\001\202\323\344" - + "\223\002P2?/v1/{migration_job.name=projects/*/" - + "locations/*/migrationJobs/*}:\rmigration_" - + "job\332A\031migration_job,update_mask\312A!\n\014Migr" - + "ationJob\022\021OperationMetadata\022\327\001\n\022DeleteMi" - + "grationJob\0223.google.cloud.clouddms.v1.De" - + "leteMigrationJobRequest\032\035.google.longrun" - + "ning.Operation\"m\202\323\344\223\0023*1/v1/{name=projec" - + "ts/*/locations/*/migrationJobs/*}\332A\004name" - + "\312A*\n\025google.protobuf.Empty\022\021OperationMet" - + "adata\022\316\001\n\021StartMigrationJob\0222.google.clo" - + "ud.clouddms.v1.StartMigrationJobRequest\032" - + "\035.google.longrunning.Operation\"f\202\323\344\223\002<\"7" - + "/v1/{name=projects/*/locations/*/migrati" - + "onJobs/*}:start:\001*\312A!\n\014MigrationJob\022\021Ope" - + "rationMetadata\022\313\001\n\020StopMigrationJob\0221.go" - + "ogle.cloud.clouddms.v1.StopMigrationJobR" - + "equest\032\035.google.longrunning.Operation\"e\202" - + "\323\344\223\002;\"6/v1/{name=projects/*/locations/*/" - + "migrationJobs/*}:stop:\001*\312A!\n\014MigrationJo" - + "b\022\021OperationMetadata\022\321\001\n\022ResumeMigration" - + "Job\0223.google.cloud.clouddms.v1.ResumeMig" - + "rationJobRequest\032\035.google.longrunning.Op" - + "eration\"g\202\323\344\223\002=\"8/v1/{name=projects/*/lo" - + "cations/*/migrationJobs/*}:resume:\001*\312A!\n" - + "\014MigrationJob\022\021OperationMetadata\022\324\001\n\023Pro" - + "moteMigrationJob\0224.google.cloud.clouddms" - + ".v1.PromoteMigrationJobRequest\032\035.google." - + "longrunning.Operation\"h\202\323\344\223\002>\"9/v1/{name" - + "=projects/*/locations/*/migrationJobs/*}" - + ":promote:\001*\312A!\n\014MigrationJob\022\021OperationM" - + "etadata\022\321\001\n\022VerifyMigrationJob\0223.google." - + "cloud.clouddms.v1.VerifyMigrationJobRequ" - + "est\032\035.google.longrunning.Operation\"g\202\323\344\223" - + "\002=\"8/v1/{name=projects/*/locations/*/mig" - + "rationJobs/*}:verify:\001*\312A!\n\014MigrationJob" - + "\022\021OperationMetadata\022\324\001\n\023RestartMigration" - + "Job\0224.google.cloud.clouddms.v1.RestartMi" - + "grationJobRequest\032\035.google.longrunning.O" - + "peration\"h\202\323\344\223\002>\"9/v1/{name=projects/*/l" - + "ocations/*/migrationJobs/*}:restart:\001*\312A" - + "!\n\014MigrationJob\022\021OperationMetadata\022\305\001\n\021G" - + "enerateSshScript\0222.google.cloud.clouddms" - + ".v1.GenerateSshScriptRequest\032#.google.cl" - + "oud.clouddms.v1.SshScript\"W\202\323\344\223\002Q\"L/v1/{" - + "migration_job=projects/*/locations/*/mig" - + "rationJobs/*}:generateSshScript:\001*\022\324\001\n\026L" - + "istConnectionProfiles\0227.google.cloud.clo" - + "uddms.v1.ListConnectionProfilesRequest\0328" - + ".google.cloud.clouddms.v1.ListConnection" - + "ProfilesResponse\"G\202\323\344\223\0028\0226/v1/{parent=pr" - + "ojects/*/locations/*}/connectionProfiles" - + "\332A\006parent\022\301\001\n\024GetConnectionProfile\0225.goo" - + "gle.cloud.clouddms.v1.GetConnectionProfi" - + "leRequest\032+.google.cloud.clouddms.v1.Con" - + "nectionProfile\"E\202\323\344\223\0028\0226/v1/{name=projec" - + "ts/*/locations/*/connectionProfiles/*}\332A" - + "\004name\022\242\002\n\027CreateConnectionProfile\0228.goog" - + "le.cloud.clouddms.v1.CreateConnectionPro" - + "fileRequest\032\035.google.longrunning.Operati" - + "on\"\255\001\202\323\344\223\002L\"6/v1/{parent=projects/*/loca" - + "tions/*}/connectionProfiles:\022connection_" - + "profile\332A/parent,connection_profile,conn" - + "ection_profile_id\312A&\n\021ConnectionProfile\022" - + "\021OperationMetadata\022\244\002\n\027UpdateConnectionP" - + "rofile\0228.google.cloud.clouddms.v1.Update" - + "ConnectionProfileRequest\032\035.google.longru" - + "nning.Operation\"\257\001\202\323\344\223\002_2I/v1/{connectio" - + "n_profile.name=projects/*/locations/*/co" - + "nnectionProfiles/*}:\022connection_profile\332" - + "A\036connection_profile,update_mask\312A&\n\021Con" - + "nectionProfile\022\021OperationMetadata\022\346\001\n\027De" - + "leteConnectionProfile\0228.google.cloud.clo" - + "uddms.v1.DeleteConnectionProfileRequest\032" - + "\035.google.longrunning.Operation\"r\202\323\344\223\0028*6" - + "/v1/{name=projects/*/locations/*/connect" - + "ionProfiles/*}\332A\004name\312A*\n\025google.protobu" - + "f.Empty\022\021OperationMetadata\032P\312A\034datamigra" - + "tion.googleapis.com\322A.https://www.google" - + "apis.com/auth/cloud-platformB\305\001\n\034com.goo" - + "gle.cloud.clouddms.v1B\rClouddmsProtoP\001Z@" - + "google.golang.org/genproto/googleapis/cl" - + "oud/clouddms/v1;clouddms\252\002\030Google.Cloud." - + "CloudDms.V1\312\002\030Google\\Cloud\\CloudDms\\V1\352\002" - + "\033Google::Cloud::CloudDMS::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.clouddms.v1.ClouddmsResourcesProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_descriptor, - new java.lang.String[] { - "MigrationJobs", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_descriptor, - new java.lang.String[] { - "Parent", "MigrationJobId", "MigrationJob", "RequestId", - }); - internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_descriptor, - new java.lang.String[] { - "UpdateMask", "MigrationJob", "RequestId", - }); - internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_descriptor, - new java.lang.String[] { - "Name", "RequestId", "Force", - }); - internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_descriptor, - new java.lang.String[] { - "MigrationJob", "Vm", "VmCreationConfig", "VmSelectionConfig", "VmPort", "VmConfig", - }); - internal_static_google_cloud_clouddms_v1_VmCreationConfig_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_clouddms_v1_VmCreationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_VmCreationConfig_descriptor, - new java.lang.String[] { - "VmMachineType", "VmZone", "Subnet", - }); - internal_static_google_cloud_clouddms_v1_VmSelectionConfig_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_clouddms_v1_VmSelectionConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_VmSelectionConfig_descriptor, - new java.lang.String[] { - "VmZone", - }); - internal_static_google_cloud_clouddms_v1_SshScript_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_clouddms_v1_SshScript_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_SshScript_descriptor, - new java.lang.String[] { - "Script", - }); - internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_descriptor, - new java.lang.String[] { - "ConnectionProfiles", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_descriptor, - new java.lang.String[] { - "Parent", "ConnectionProfileId", "ConnectionProfile", "RequestId", - }); - internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor, - new java.lang.String[] { - "UpdateMask", "ConnectionProfile", "RequestId", - }); - internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor, - new java.lang.String[] { - "Name", "RequestId", "Force", - }); - internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_clouddms_v1_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusMessage", - "RequestedCancellation", - "ApiVersion", - }); - 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.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - 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.clouddms.v1.ClouddmsResourcesProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java deleted file mode 100644 index 15d628b1..00000000 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java +++ /dev/null @@ -1,505 +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/clouddms/v1/clouddms_resources.proto - -package com.google.cloud.clouddms.v1; - -public final class ClouddmsResourcesProto { - private ClouddmsResourcesProto() {} - - 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_clouddms_v1_SslConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_SslConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_SqlAclEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_SqlAclEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_SqlIpConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_SqlIpConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_UserLabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_UserLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_DatabaseFlagsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_DatabaseFlagsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_DatabaseType_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_DatabaseType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_MigrationJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_ConnectionProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_ConnectionProfile_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_ConnectionProfile_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/clouddms/v1/clouddms_reso" - + "urces.proto\022\030google.cloud.clouddms.v1\032\037g" - + "oogle/api/field_behavior.proto\032\031google/a" - + "pi/resource.proto\032\036google/protobuf/durat" - + "ion.proto\032\037google/protobuf/timestamp.pro" - + "to\032\036google/protobuf/wrappers.proto\032\027goog" - + "le/rpc/status.proto\032\034google/api/annotati" - + "ons.proto\"\356\001\n\tSslConfig\022>\n\004type\030\001 \001(\0162+." - + "google.cloud.clouddms.v1.SslConfig.SslTy" - + "peB\003\340A\003\022\027\n\nclient_key\030\002 \001(\tB\003\340A\004\022\037\n\022clie" - + "nt_certificate\030\003 \001(\tB\003\340A\004\022\036\n\016ca_certific" - + "ate\030\004 \001(\tB\006\340A\004\340A\002\"G\n\007SslType\022\030\n\024SSL_TYPE" - + "_UNSPECIFIED\020\000\022\017\n\013SERVER_ONLY\020\001\022\021\n\rSERVE" - + "R_CLIENT\020\002\"\322\001\n\026MySqlConnectionProfile\022\021\n" - + "\004host\030\001 \001(\tB\003\340A\002\022\021\n\004port\030\002 \001(\005B\003\340A\002\022\025\n\010u" - + "sername\030\003 \001(\tB\003\340A\002\022\030\n\010password\030\004 \001(\tB\006\340A" - + "\004\340A\002\022\031\n\014password_set\030\005 \001(\010B\003\340A\003\0220\n\003ssl\030\006" - + " \001(\0132#.google.cloud.clouddms.v1.SslConfi" - + "g\022\024\n\014cloud_sql_id\030\007 \001(\t\"\327\001\n\033PostgreSqlCo" - + "nnectionProfile\022\021\n\004host\030\001 \001(\tB\003\340A\002\022\021\n\004po" - + "rt\030\002 \001(\005B\003\340A\002\022\025\n\010username\030\003 \001(\tB\003\340A\002\022\030\n\010" - + "password\030\004 \001(\tB\006\340A\004\340A\002\022\031\n\014password_set\030\005" - + " \001(\010B\003\340A\003\0220\n\003ssl\030\006 \001(\0132#.google.cloud.cl" - + "ouddms.v1.SslConfig\022\024\n\014cloud_sql_id\030\007 \001(" - + "\t\"\252\001\n\031CloudSqlConnectionProfile\022\031\n\014cloud" - + "_sql_id\030\001 \001(\tB\003\340A\003\022A\n\010settings\030\002 \001(\0132*.g" - + "oogle.cloud.clouddms.v1.CloudSqlSettings" - + "B\003\340A\005\022\027\n\nprivate_ip\030\003 \001(\tB\003\340A\003\022\026\n\tpublic" - + "_ip\030\004 \001(\tB\003\340A\003\"\233\001\n\013SqlAclEntry\022\r\n\005value\030" - + "\001 \001(\t\0221\n\013expire_time\030\n \001(\0132\032.google.prot" - + "obuf.TimestampH\000\022-\n\003ttl\030\013 \001(\0132\031.google.p" - + "rotobuf.DurationB\003\340A\004H\000\022\r\n\005label\030\003 \001(\tB\014" - + "\n\nexpiration\"\314\001\n\013SqlIpConfig\022/\n\013enable_i" - + "pv4\030\001 \001(\0132\032.google.protobuf.BoolValue\022\027\n" - + "\017private_network\030\002 \001(\t\022/\n\013require_ssl\030\003 " - + "\001(\0132\032.google.protobuf.BoolValue\022B\n\023autho" - + "rized_networks\030\004 \003(\0132%.google.cloud.clou" - + "ddms.v1.SqlAclEntry\"\372\t\n\020CloudSqlSettings" - + "\022W\n\020database_version\030\001 \001(\0162=.google.clou" - + "d.clouddms.v1.CloudSqlSettings.SqlDataba" - + "seVersion\022O\n\013user_labels\030\002 \003(\0132:.google." - + "cloud.clouddms.v1.CloudSqlSettings.UserL" - + "abelsEntry\022\014\n\004tier\030\003 \001(\t\022>\n\031storage_auto" - + "_resize_limit\030\004 \001(\0132\033.google.protobuf.In" - + "t64Value\022Y\n\021activation_policy\030\005 \001(\0162>.go" - + "ogle.cloud.clouddms.v1.CloudSqlSettings." - + "SqlActivationPolicy\0228\n\tip_config\030\006 \001(\0132%" - + ".google.cloud.clouddms.v1.SqlIpConfig\0229\n" - + "\025auto_storage_increase\030\007 \001(\0132\032.google.pr" - + "otobuf.BoolValue\022U\n\016database_flags\030\010 \003(\013" - + "2=.google.cloud.clouddms.v1.CloudSqlSett" - + "ings.DatabaseFlagsEntry\022R\n\016data_disk_typ" - + "e\030\t \001(\0162:.google.cloud.clouddms.v1.Cloud" - + "SqlSettings.SqlDataDiskType\0226\n\021data_disk" - + "_size_gb\030\n \001(\0132\033.google.protobuf.Int64Va" - + "lue\022\014\n\004zone\030\013 \001(\t\022\021\n\tsource_id\030\014 \001(\t\022\032\n\r" - + "root_password\030\r \001(\tB\003\340A\004\022\036\n\021root_passwor" - + "d_set\030\016 \001(\010B\003\340A\003\022\021\n\tcollation\030\017 \001(\t\0321\n\017U" - + "serLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001\0324\n\022DatabaseFlagsEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"S\n\023SqlActivationPol" - + "icy\022%\n!SQL_ACTIVATION_POLICY_UNSPECIFIED" - + "\020\000\022\n\n\006ALWAYS\020\001\022\t\n\005NEVER\020\002\"M\n\017SqlDataDisk" - + "Type\022\"\n\036SQL_DATA_DISK_TYPE_UNSPECIFIED\020\000" - + "\022\n\n\006PD_SSD\020\001\022\n\n\006PD_HDD\020\002\"\275\001\n\022SqlDatabase" - + "Version\022$\n SQL_DATABASE_VERSION_UNSPECIF" - + "IED\020\000\022\r\n\tMYSQL_5_6\020\001\022\r\n\tMYSQL_5_7\020\002\022\020\n\014P" - + "OSTGRES_9_6\020\003\022\017\n\013POSTGRES_11\020\004\022\017\n\013POSTGR" - + "ES_10\020\005\022\r\n\tMYSQL_8_0\020\006\022\017\n\013POSTGRES_12\020\007\022" - + "\017\n\013POSTGRES_13\020\010\"\026\n\024StaticIpConnectivity" - + "\"[\n\026ReverseSshConnectivity\022\022\n\005vm_ip\030\001 \001(" - + "\tB\003\340A\002\022\024\n\007vm_port\030\002 \001(\005B\003\340A\002\022\n\n\002vm\030\003 \001(\t" - + "\022\013\n\003vpc\030\004 \001(\t\"%\n\026VpcPeeringConnectivity\022" - + "\013\n\003vpc\030\001 \001(\t\"\206\001\n\014DatabaseType\022<\n\010provide" - + "r\030\001 \001(\0162*.google.cloud.clouddms.v1.Datab" - + "aseProvider\0228\n\006engine\030\002 \001(\0162(.google.clo" - + "ud.clouddms.v1.DatabaseEngine\"\354\014\n\014Migrat" - + "ionJob\022\014\n\004name\030\001 \001(\t\0224\n\013create_time\030\002 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" - + "date_time\030\003 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\022B\n\006labels\030\004 \003(\01322.google.cloud." - + "clouddms.v1.MigrationJob.LabelsEntry\022\024\n\014" - + "display_name\030\005 \001(\t\022;\n\005state\030\006 \001(\0162,.goog" - + "le.cloud.clouddms.v1.MigrationJob.State\022" - + "@\n\005phase\030\007 \001(\0162,.google.cloud.clouddms.v" - + "1.MigrationJob.PhaseB\003\340A\003\022>\n\004type\030\010 \001(\0162" - + "+.google.cloud.clouddms.v1.MigrationJob." - + "TypeB\003\340A\002\022\021\n\tdump_path\030\t \001(\t\022\023\n\006source\030\n" - + " \001(\tB\003\340A\002\022\030\n\013destination\030\013 \001(\tB\003\340A\002\022T\n\030r" - + "everse_ssh_connectivity\030e \001(\01320.google.c" - + "loud.clouddms.v1.ReverseSshConnectivityH" - + "\000\022T\n\030vpc_peering_connectivity\030f \001(\01320.go" - + "ogle.cloud.clouddms.v1.VpcPeeringConnect" - + "ivityH\000\022P\n\026static_ip_connectivity\030g \001(\0132" - + "..google.cloud.clouddms.v1.StaticIpConne" - + "ctivityH\000\0220\n\010duration\030\014 \001(\0132\031.google.pro" - + "tobuf.DurationB\003\340A\003\022&\n\005error\030\r \001(\0132\022.goo" - + "gle.rpc.StatusB\003\340A\003\022?\n\017source_database\030\016" - + " \001(\0132&.google.cloud.clouddms.v1.Database" - + "Type\022D\n\024destination_database\030\017 \001(\0132&.goo" - + "gle.cloud.clouddms.v1.DatabaseType\0221\n\010en" - + "d_time\030\020 \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001\"\361\001\n\005State\022\025\n\021STATE_UNSPECIF" - + "IED\020\000\022\017\n\013MAINTENANCE\020\001\022\t\n\005DRAFT\020\002\022\014\n\010CRE" - + "ATING\020\003\022\017\n\013NOT_STARTED\020\004\022\013\n\007RUNNING\020\005\022\n\n" - + "\006FAILED\020\006\022\r\n\tCOMPLETED\020\007\022\014\n\010DELETING\020\010\022\014" - + "\n\010STOPPING\020\t\022\013\n\007STOPPED\020\n\022\013\n\007DELETED\020\013\022\014" - + "\n\010UPDATING\020\014\022\014\n\010STARTING\020\r\022\016\n\nRESTARTING" - + "\020\016\022\014\n\010RESUMING\020\017\"\216\001\n\005Phase\022\025\n\021PHASE_UNSP" - + "ECIFIED\020\000\022\r\n\tFULL_DUMP\020\001\022\007\n\003CDC\020\002\022\027\n\023PRO" - + "MOTE_IN_PROGRESS\020\003\022%\n!WAITING_FOR_SOURCE" - + "_WRITES_TO_STOP\020\004\022\026\n\022PREPARING_THE_DUMP\020" - + "\005\":\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\014\n\010ONE_T" - + "IME\020\001\022\016\n\nCONTINUOUS\020\002:u\352Ar\n)datamigratio" - + "n.googleapis.com/MigrationJob\022Eprojects/" - + "{project}/locations/{location}/migration" - + "Jobs/{migration_job}B\016\n\014connectivity\"\263\007\n" - + "\021ConnectionProfile\022\014\n\004name\030\001 \001(\t\0224\n\013crea" - + "te_time\030\002 \001(\0132\032.google.protobuf.Timestam" - + "pB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\022G\n\006labels\030\004 \003(\01327.g" - + "oogle.cloud.clouddms.v1.ConnectionProfil" - + "e.LabelsEntry\022@\n\005state\030\005 \001(\01621.google.cl" - + "oud.clouddms.v1.ConnectionProfile.State\022" - + "\024\n\014display_name\030\006 \001(\t\022A\n\005mysql\030d \001(\01320.g" - + "oogle.cloud.clouddms.v1.MySqlConnectionP" - + "rofileH\000\022K\n\npostgresql\030e \001(\01325.google.cl" - + "oud.clouddms.v1.PostgreSqlConnectionProf" - + "ileH\000\022G\n\010cloudsql\030f \001(\01323.google.cloud.c" - + "louddms.v1.CloudSqlConnectionProfileH\000\022&" - + "\n\005error\030\007 \001(\0132\022.google.rpc.StatusB\003\340A\003\022<" - + "\n\010provider\030\010 \001(\0162*.google.cloud.clouddms" - + ".v1.DatabaseProvider\032-\n\013LabelsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n\005State\022\025\n\021" - + "STATE_UNSPECIFIED\020\000\022\t\n\005DRAFT\020\001\022\014\n\010CREATI" - + "NG\020\002\022\t\n\005READY\020\003\022\014\n\010UPDATING\020\004\022\014\n\010DELETIN" - + "G\020\005\022\013\n\007DELETED\020\006\022\n\n\006FAILED\020\007:\205\001\352A\201\001\n.dat" - + "amigration.googleapis.com/ConnectionProf" - + "ile\022Oprojects/{project}/locations/{locat" - + "ion}/connectionProfiles/{connection_prof" - + "ile}B\024\n\022connection_profile\"\320\006\n\035Migration" - + "JobVerificationError\022Z\n\nerror_code\030\001 \001(\016" - + "2A.google.cloud.clouddms.v1.MigrationJob" - + "VerificationError.ErrorCodeB\003\340A\003\022\032\n\rerro" - + "r_message\030\002 \001(\tB\003\340A\003\022!\n\024error_detail_mes" - + "sage\030\003 \001(\tB\003\340A\003\"\223\005\n\tErrorCode\022\032\n\026ERROR_C" - + "ODE_UNSPECIFIED\020\000\022\026\n\022CONNECTION_FAILURE\020" - + "\001\022\032\n\026AUTHENTICATION_FAILURE\020\002\022%\n!INVALID" - + "_CONNECTION_PROFILE_CONFIG\020\003\022\033\n\027VERSION_" - + "INCOMPATIBILITY\020\004\022,\n(CONNECTION_PROFILE_" - + "TYPES_INCOMPATIBILITY\020\005\022\032\n\026NO_PGLOGICAL_" - + "INSTALLED\020\007\022!\n\035PGLOGICAL_NODE_ALREADY_EX" - + "ISTS\020\010\022\025\n\021INVALID_WAL_LEVEL\020\t\022\"\n\036INVALID" - + "_SHARED_PRELOAD_LIBRARY\020\n\022&\n\"INSUFFICIEN" - + "T_MAX_REPLICATION_SLOTS\020\013\022 \n\034INSUFFICIEN" - + "T_MAX_WAL_SENDERS\020\014\022%\n!INSUFFICIENT_MAX_" - + "WORKER_PROCESSES\020\r\022\032\n\026UNSUPPORTED_EXTENS" - + "IONS\020\016\022\036\n\032UNSUPPORTED_MIGRATION_TYPE\020\017\022#" - + "\n\037INVALID_RDS_LOGICAL_REPLICATION\020\020\022\031\n\025U" - + "NSUPPORTED_GTID_MODE\020\021\022 \n\034UNSUPPORTED_TA" - + "BLE_DEFINITION\020\022\022\027\n\023UNSUPPORTED_DEFINER\020" - + "\023\022\"\n\036CANT_RESTART_RUNNING_MIGRATION\020\025*L\n" - + "\016DatabaseEngine\022\037\n\033DATABASE_ENGINE_UNSPE" - + "CIFIED\020\000\022\t\n\005MYSQL\020\001\022\016\n\nPOSTGRESQL\020\002*L\n\020D" - + "atabaseProvider\022!\n\035DATABASE_PROVIDER_UNS" - + "PECIFIED\020\000\022\014\n\010CLOUDSQL\020\001\022\007\n\003RDS\020\002B\316\001\n\034co" - + "m.google.cloud.clouddms.v1B\026ClouddmsReso" - + "urcesProtoP\001Z@google.golang.org/genproto" - + "/googleapis/cloud/clouddms/v1;clouddms\252\002" - + "\030Google.Cloud.CloudDms.V1\312\002\030Google\\Cloud" - + "\\CloudDms\\V1\352\002\033Google::Cloud::CloudDMS::" - + "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.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_clouddms_v1_SslConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_clouddms_v1_SslConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_SslConfig_descriptor, - new java.lang.String[] { - "Type", "ClientKey", "ClientCertificate", "CaCertificate", - }); - internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_descriptor, - new java.lang.String[] { - "Host", "Port", "Username", "Password", "PasswordSet", "Ssl", "CloudSqlId", - }); - internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_descriptor, - new java.lang.String[] { - "Host", "Port", "Username", "Password", "PasswordSet", "Ssl", "CloudSqlId", - }); - internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor, - new java.lang.String[] { - "CloudSqlId", "Settings", "PrivateIp", "PublicIp", - }); - internal_static_google_cloud_clouddms_v1_SqlAclEntry_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_clouddms_v1_SqlAclEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_SqlAclEntry_descriptor, - new java.lang.String[] { - "Value", "ExpireTime", "Ttl", "Label", "Expiration", - }); - internal_static_google_cloud_clouddms_v1_SqlIpConfig_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_clouddms_v1_SqlIpConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_SqlIpConfig_descriptor, - new java.lang.String[] { - "EnableIpv4", "PrivateNetwork", "RequireSsl", "AuthorizedNetworks", - }); - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor, - new java.lang.String[] { - "DatabaseVersion", - "UserLabels", - "Tier", - "StorageAutoResizeLimit", - "ActivationPolicy", - "IpConfig", - "AutoStorageIncrease", - "DatabaseFlags", - "DataDiskType", - "DataDiskSizeGb", - "Zone", - "SourceId", - "RootPassword", - "RootPasswordSet", - "Collation", - }); - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_UserLabelsEntry_descriptor = - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_UserLabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_UserLabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_DatabaseFlagsEntry_descriptor = - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_DatabaseFlagsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_DatabaseFlagsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_descriptor, - new java.lang.String[] { - "VmIp", "VmPort", "Vm", "Vpc", - }); - internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_descriptor, - new java.lang.String[] { - "Vpc", - }); - internal_static_google_cloud_clouddms_v1_DatabaseType_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_clouddms_v1_DatabaseType_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_DatabaseType_descriptor, - new java.lang.String[] { - "Provider", "Engine", - }); - internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_clouddms_v1_MigrationJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor, - new java.lang.String[] { - "Name", - "CreateTime", - "UpdateTime", - "Labels", - "DisplayName", - "State", - "Phase", - "Type", - "DumpPath", - "Source", - "Destination", - "ReverseSshConnectivity", - "VpcPeeringConnectivity", - "StaticIpConnectivity", - "Duration", - "Error", - "SourceDatabase", - "DestinationDatabase", - "EndTime", - "Connectivity", - }); - internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_descriptor = - internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_clouddms_v1_ConnectionProfile_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor, - new java.lang.String[] { - "Name", - "CreateTime", - "UpdateTime", - "Labels", - "State", - "DisplayName", - "Mysql", - "Postgresql", - "Cloudsql", - "Error", - "Provider", - "ConnectionProfile", - }); - internal_static_google_cloud_clouddms_v1_ConnectionProfile_LabelsEntry_descriptor = - internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_clouddms_v1_ConnectionProfile_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_ConnectionProfile_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_descriptor, - new java.lang.String[] { - "ErrorCode", "ErrorMessage", "ErrorDetailMessage", - }); - 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.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequestOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequestOrBuilder.java deleted file mode 100644 index f2e536ff..00000000 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequestOrBuilder.java +++ /dev/null @@ -1,54 +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/clouddms/v1/clouddms.proto - -package com.google.cloud.clouddms.v1; - -public interface GetConnectionProfileRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.GetConnectionProfileRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the connection profile resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the connection profile resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequestOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequestOrBuilder.java deleted file mode 100644 index aae2d7ea..00000000 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequestOrBuilder.java +++ /dev/null @@ -1,54 +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/clouddms/v1/clouddms.proto - -package com.google.cloud.clouddms.v1; - -public interface GetMigrationJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.GetMigrationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the migration job resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the migration job resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequestOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequestOrBuilder.java deleted file mode 100644 index e5f46816..00000000 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequestOrBuilder.java +++ /dev/null @@ -1,50 +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/clouddms/v1/clouddms.proto - -package com.google.cloud.clouddms.v1; - -public interface PromoteMigrationJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.PromoteMigrationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Name of the migration job resource to promote.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Name of the migration job resource to promote.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequestOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequestOrBuilder.java deleted file mode 100644 index 467c9bf1..00000000 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequestOrBuilder.java +++ /dev/null @@ -1,50 +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/clouddms/v1/clouddms.proto - -package com.google.cloud.clouddms.v1; - -public interface RestartMigrationJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.RestartMigrationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Name of the migration job resource to restart.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Name of the migration job resource to restart.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequestOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequestOrBuilder.java deleted file mode 100644 index 0c8c1190..00000000 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequestOrBuilder.java +++ /dev/null @@ -1,50 +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/clouddms/v1/clouddms.proto - -package com.google.cloud.clouddms.v1; - -public interface ResumeMigrationJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ResumeMigrationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Name of the migration job resource to resume.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Name of the migration job resource to resume.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScriptOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScriptOrBuilder.java deleted file mode 100644 index 784cf07b..00000000 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScriptOrBuilder.java +++ /dev/null @@ -1,50 +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/clouddms/v1/clouddms.proto - -package com.google.cloud.clouddms.v1; - -public interface SshScriptOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.SshScript) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The ssh configuration script.
-   * 
- * - * string script = 1; - * - * @return The script. - */ - java.lang.String getScript(); - /** - * - * - *
-   * The ssh configuration script.
-   * 
- * - * string script = 1; - * - * @return The bytes for script. - */ - com.google.protobuf.ByteString getScriptBytes(); -} diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequestOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequestOrBuilder.java deleted file mode 100644 index 4fac61fc..00000000 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequestOrBuilder.java +++ /dev/null @@ -1,50 +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/clouddms/v1/clouddms.proto - -package com.google.cloud.clouddms.v1; - -public interface StartMigrationJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.StartMigrationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Name of the migration job resource to start.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Name of the migration job resource to start.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivityOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivityOrBuilder.java deleted file mode 100644 index 58aced9d..00000000 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivityOrBuilder.java +++ /dev/null @@ -1,24 +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/clouddms/v1/clouddms_resources.proto - -package com.google.cloud.clouddms.v1; - -public interface StaticIpConnectivityOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.StaticIpConnectivity) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequestOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequestOrBuilder.java deleted file mode 100644 index d9648ba9..00000000 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequestOrBuilder.java +++ /dev/null @@ -1,50 +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/clouddms/v1/clouddms.proto - -package com.google.cloud.clouddms.v1; - -public interface StopMigrationJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.StopMigrationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Name of the migration job resource to stop.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Name of the migration job resource to stop.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequestOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequestOrBuilder.java deleted file mode 100644 index 99fa7d9b..00000000 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequestOrBuilder.java +++ /dev/null @@ -1,50 +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/clouddms/v1/clouddms.proto - -package com.google.cloud.clouddms.v1; - -public interface VerifyMigrationJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.VerifyMigrationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Name of the migration job resource to verify.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Name of the migration job resource to verify.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivityOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivityOrBuilder.java deleted file mode 100644 index c2a6e042..00000000 --- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivityOrBuilder.java +++ /dev/null @@ -1,50 +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/clouddms/v1/clouddms_resources.proto - -package com.google.cloud.clouddms.v1; - -public interface VpcPeeringConnectivityOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.VpcPeeringConnectivity) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The name of the VPC network to peer with the Cloud SQL private network.
-   * 
- * - * string vpc = 1; - * - * @return The vpc. - */ - java.lang.String getVpc(); - /** - * - * - *
-   * The name of the VPC network to peer with the Cloud SQL private network.
-   * 
- * - * string vpc = 1; - * - * @return The bytes for vpc. - */ - com.google.protobuf.ByteString getVpcBytes(); -} From d36b1beb9df70c7b29ee57547a7ad2622404882a Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 3 Aug 2021 22:45:45 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md --- .../v1/DataMigrationServiceClient.java | 38 +- .../v1/DataMigrationServiceSettings.java | 14 +- .../cloud/clouddms/v1/gapic_metadata.json | 0 .../cloud/clouddms/v1/package-info.java | 0 .../v1/stub/DataMigrationServiceStub.java | 0 .../DataMigrationServiceStubSettings.java | 31 +- ...pcDataMigrationServiceCallableFactory.java | 0 .../v1/stub/GrpcDataMigrationServiceStub.java | 1 - .../v1/DataMigrationServiceClientTest.java | 0 .../clouddms/v1/MockDataMigrationService.java | 0 .../v1/MockDataMigrationServiceImpl.java | 0 .../clouddms/v1/DataMigrationServiceGrpc.java | 2286 ++++++++++++++ .../clouddms/v1/DataMigrationServiceGrpc.java | 1710 ----------- .../cloud/clouddms/v1/ClouddmsProto.java | 505 ---- .../clouddms/v1/ClouddmsResourcesProto.java | 425 --- .../GetConnectionProfileRequestOrBuilder.java | 29 - .../v1/GetMigrationJobRequestOrBuilder.java | 29 - .../PromoteMigrationJobRequestOrBuilder.java | 29 - .../RestartMigrationJobRequestOrBuilder.java | 29 - .../ResumeMigrationJobRequestOrBuilder.java | 29 - .../cloud/clouddms/v1/SshScriptOrBuilder.java | 29 - .../v1/StartMigrationJobRequestOrBuilder.java | 29 - .../v1/StaticIpConnectivityOrBuilder.java | 9 - .../v1/StopMigrationJobRequestOrBuilder.java | 29 - .../VerifyMigrationJobRequestOrBuilder.java | 29 - .../v1/VpcPeeringConnectivityOrBuilder.java | 29 - .../v1/CloudSqlConnectionProfile.java | 618 ++-- .../CloudSqlConnectionProfileOrBuilder.java | 65 +- .../cloud/clouddms/v1/CloudSqlSettings.java | 2061 ++++++++----- .../v1/CloudSqlSettingsOrBuilder.java | 192 +- .../cloud/clouddms/v1/ClouddmsProto.java | 548 ++++ .../clouddms/v1/ClouddmsResourcesProto.java | 505 ++++ .../cloud/clouddms/v1/ConnectionProfile.java | 1641 ++++++---- .../clouddms/v1/ConnectionProfileName.java | 0 .../v1/ConnectionProfileOrBuilder.java | 149 +- .../v1/CreateConnectionProfileRequest.java | 649 ++-- ...eateConnectionProfileRequestOrBuilder.java | 73 +- .../v1/CreateMigrationJobRequest.java | 646 ++-- .../CreateMigrationJobRequestOrBuilder.java | 73 +- .../cloud/clouddms/v1/DatabaseEngine.java | 86 +- .../cloud/clouddms/v1/DatabaseProvider.java | 86 +- .../cloud/clouddms/v1/DatabaseType.java | 348 ++- .../clouddms/v1/DatabaseTypeOrBuilder.java | 30 +- .../v1/DeleteConnectionProfileRequest.java | 461 +-- ...leteConnectionProfileRequestOrBuilder.java | 47 +- .../v1/DeleteMigrationJobRequest.java | 458 +-- .../DeleteMigrationJobRequestOrBuilder.java | 47 +- .../clouddms/v1/GenerateSshScriptRequest.java | 679 +++-- .../v1/GenerateSshScriptRequestOrBuilder.java | 55 +- .../v1/GetConnectionProfileRequest.java | 342 ++- .../GetConnectionProfileRequestOrBuilder.java | 54 + .../clouddms/v1/GetMigrationJobRequest.java | 339 ++- .../v1/GetMigrationJobRequestOrBuilder.java | 54 + .../v1/ListConnectionProfilesRequest.java | 615 ++-- ...istConnectionProfilesRequestOrBuilder.java | 65 +- .../v1/ListConnectionProfilesResponse.java | 562 ++-- ...stConnectionProfilesResponseOrBuilder.java | 63 +- .../clouddms/v1/ListMigrationJobsRequest.java | 615 ++-- .../v1/ListMigrationJobsRequestOrBuilder.java | 65 +- .../v1/ListMigrationJobsResponse.java | 569 ++-- .../ListMigrationJobsResponseOrBuilder.java | 63 +- .../cloud/clouddms/v1/LocationName.java | 0 .../cloud/clouddms/v1/MigrationJob.java | 2644 +++++++++++------ .../cloud/clouddms/v1/MigrationJobName.java | 0 .../clouddms/v1/MigrationJobOrBuilder.java | 245 +- .../v1/MigrationJobVerificationError.java | 685 +++-- ...igrationJobVerificationErrorOrBuilder.java | 50 +- .../clouddms/v1/MySqlConnectionProfile.java | 740 +++-- .../v1/MySqlConnectionProfileOrBuilder.java | 76 +- .../cloud/clouddms/v1/OperationMetadata.java | 842 ++++-- .../v1/OperationMetadataOrBuilder.java | 91 +- .../v1/PostgreSqlConnectionProfile.java | 743 +++-- .../PostgreSqlConnectionProfileOrBuilder.java | 76 +- .../v1/PromoteMigrationJobRequest.java | 314 +- .../PromoteMigrationJobRequestOrBuilder.java | 50 + .../v1/RestartMigrationJobRequest.java | 314 +- .../RestartMigrationJobRequestOrBuilder.java | 50 + .../v1/ResumeMigrationJobRequest.java | 314 +- .../ResumeMigrationJobRequestOrBuilder.java | 50 + .../clouddms/v1/ReverseSshConnectivity.java | 505 ++-- .../v1/ReverseSshConnectivityOrBuilder.java | 48 +- .../google/cloud/clouddms/v1/SqlAclEntry.java | 639 ++-- .../clouddms/v1/SqlAclEntryOrBuilder.java | 52 +- .../google/cloud/clouddms/v1/SqlIpConfig.java | 616 ++-- .../clouddms/v1/SqlIpConfigOrBuilder.java | 61 +- .../google/cloud/clouddms/v1/SshScript.java | 294 +- .../cloud/clouddms/v1/SshScriptOrBuilder.java | 50 + .../google/cloud/clouddms/v1/SslConfig.java | 628 ++-- .../cloud/clouddms/v1/SslConfigOrBuilder.java | 67 +- .../clouddms/v1/StartMigrationJobRequest.java | 314 +- .../v1/StartMigrationJobRequestOrBuilder.java | 50 + .../clouddms/v1/StaticIpConnectivity.java | 235 +- .../v1/StaticIpConnectivityOrBuilder.java | 24 + .../clouddms/v1/StopMigrationJobRequest.java | 311 +- .../v1/StopMigrationJobRequestOrBuilder.java | 50 + .../v1/UpdateConnectionProfileRequest.java | 595 ++-- ...dateConnectionProfileRequestOrBuilder.java | 64 +- .../v1/UpdateMigrationJobRequest.java | 592 ++-- .../UpdateMigrationJobRequestOrBuilder.java | 64 +- .../v1/VerifyMigrationJobRequest.java | 314 +- .../VerifyMigrationJobRequestOrBuilder.java | 50 + .../cloud/clouddms/v1/VmCreationConfig.java | 459 +-- .../v1/VmCreationConfigOrBuilder.java | 45 +- .../cloud/clouddms/v1/VmSelectionConfig.java | 301 +- .../v1/VmSelectionConfigOrBuilder.java | 27 +- .../clouddms/v1/VpcPeeringConnectivity.java | 311 +- .../v1/VpcPeeringConnectivityOrBuilder.java | 50 + .../google/cloud/clouddms/v1/clouddms.proto | 0 .../clouddms/v1/clouddms_resources.proto | 0 109 files changed, 19911 insertions(+), 12421 deletions(-) rename {owl-bot-staging/v1/google-cloud-dms => google-cloud-dms}/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java (98%) rename {owl-bot-staging/v1/google-cloud-dms => google-cloud-dms}/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java (98%) rename {owl-bot-staging/v1/google-cloud-dms => google-cloud-dms}/src/main/java/com/google/cloud/clouddms/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-dms => google-cloud-dms}/src/main/java/com/google/cloud/clouddms/v1/package-info.java (100%) rename {owl-bot-staging/v1/google-cloud-dms => google-cloud-dms}/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStub.java (100%) rename {owl-bot-staging/v1/google-cloud-dms => google-cloud-dms}/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java (98%) rename {owl-bot-staging/v1/google-cloud-dms => google-cloud-dms}/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-dms => google-cloud-dms}/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceStub.java (99%) rename {owl-bot-staging/v1/google-cloud-dms => google-cloud-dms}/src/test/java/com/google/cloud/clouddms/v1/DataMigrationServiceClientTest.java (100%) rename {owl-bot-staging/v1/google-cloud-dms => google-cloud-dms}/src/test/java/com/google/cloud/clouddms/v1/MockDataMigrationService.java (100%) rename {owl-bot-staging/v1/google-cloud-dms => google-cloud-dms}/src/test/java/com/google/cloud/clouddms/v1/MockDataMigrationServiceImpl.java (100%) create mode 100644 grpc-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceGrpc.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceGrpc.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScriptOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivityOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivityOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfile.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfileOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettings.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettingsOrBuilder.java (85%) create mode 100644 proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsProto.java create mode 100644 proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfile.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileOrBuilder.java (83%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequestOrBuilder.java (62%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequestOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/DatabaseEngine.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/DatabaseProvider.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/DatabaseType.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/DatabaseTypeOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequestOrBuilder.java (62%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequestOrBuilder.java (62%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequestOrBuilder.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequest.java (64%) create mode 100644 proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequest.java (64%) create mode 100644 proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequest.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequestOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponseOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequest.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequestOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponseOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/LocationName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/MigrationJob.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/MigrationJobName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/MigrationJobOrBuilder.java (83%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationError.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationErrorOrBuilder.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfile.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfileOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/OperationMetadata.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/OperationMetadataOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfile.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfileOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequest.java (67%) create mode 100644 proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequest.java (67%) create mode 100644 proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequest.java (68%) create mode 100644 proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivity.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivityOrBuilder.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntry.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntryOrBuilder.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfig.java (78%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfigOrBuilder.java (82%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/SshScript.java (68%) create mode 100644 proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScriptOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/SslConfig.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/SslConfigOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequest.java (67%) create mode 100644 proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivity.java (67%) create mode 100644 proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivityOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequest.java (68%) create mode 100644 proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequestOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequestOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequest.java (68%) create mode 100644 proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfig.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfigOrBuilder.java (62%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfig.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfigOrBuilder.java (50%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivity.java (69%) create mode 100644 proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivityOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/proto/google/cloud/clouddms/v1/clouddms.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-dms-v1 => proto-google-cloud-dms-v1}/src/main/proto/google/cloud/clouddms/v1/clouddms_resources.proto (100%) diff --git a/owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java rename to google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java index 9f6db904..d4d40eab 100644 --- a/owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java +++ b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java @@ -62,13 +62,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -2051,7 +2051,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListMigrationJobsPagedResponse extends AbstractPagedListResponse< - ListMigrationJobsRequest, ListMigrationJobsResponse, MigrationJob, ListMigrationJobsPage, + ListMigrationJobsRequest, + ListMigrationJobsResponse, + MigrationJob, + ListMigrationJobsPage, ListMigrationJobsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2072,7 +2075,9 @@ private ListMigrationJobsPagedResponse(ListMigrationJobsPage page) { public static class ListMigrationJobsPage extends AbstractPage< - ListMigrationJobsRequest, ListMigrationJobsResponse, MigrationJob, + ListMigrationJobsRequest, + ListMigrationJobsResponse, + MigrationJob, ListMigrationJobsPage> { private ListMigrationJobsPage( @@ -2102,7 +2107,10 @@ public ApiFuture createPageAsync( public static class ListMigrationJobsFixedSizeCollection extends AbstractFixedSizeCollection< - ListMigrationJobsRequest, ListMigrationJobsResponse, MigrationJob, ListMigrationJobsPage, + ListMigrationJobsRequest, + ListMigrationJobsResponse, + MigrationJob, + ListMigrationJobsPage, ListMigrationJobsFixedSizeCollection> { private ListMigrationJobsFixedSizeCollection( @@ -2123,8 +2131,11 @@ protected ListMigrationJobsFixedSizeCollection createCollection( public static class ListConnectionProfilesPagedResponse extends AbstractPagedListResponse< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile, - ListConnectionProfilesPage, ListConnectionProfilesFixedSizeCollection> { + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, + ConnectionProfile, + ListConnectionProfilesPage, + ListConnectionProfilesFixedSizeCollection> { public static ApiFuture createAsync( PageContext< @@ -2146,7 +2157,9 @@ private ListConnectionProfilesPagedResponse(ListConnectionProfilesPage page) { public static class ListConnectionProfilesPage extends AbstractPage< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, + ConnectionProfile, ListConnectionProfilesPage> { private ListConnectionProfilesPage( @@ -2182,8 +2195,11 @@ public ApiFuture createPageAsync( public static class ListConnectionProfilesFixedSizeCollection extends AbstractFixedSizeCollection< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile, - ListConnectionProfilesPage, ListConnectionProfilesFixedSizeCollection> { + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, + ConnectionProfile, + ListConnectionProfilesPage, + ListConnectionProfilesFixedSizeCollection> { private ListConnectionProfilesFixedSizeCollection( List pages, int collectionSize) { diff --git a/owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java rename to google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java index ee628a98..d0cef982 100644 --- a/owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java +++ b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; 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.clouddms.v1.stub.DataMigrationServiceStubSettings; @@ -46,10 +45,9 @@ *

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

    - *
  • The default service address (datamigration.googleapis.com) and default port (443) are - * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (datamigration.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -203,7 +201,8 @@ public UnaryCallSettings generateSshScriptS /** Returns the object with the settings used for calls to listConnectionProfiles. */ public PagedCallSettings< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> listConnectionProfilesSettings() { return ((DataMigrationServiceStubSettings) getStubSettings()).listConnectionProfilesSettings(); @@ -483,7 +482,8 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listConnectionProfiles. */ public PagedCallSettings.Builder< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> listConnectionProfilesSettings() { return getStubSettingsBuilder().listConnectionProfilesSettings(); diff --git a/owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/gapic_metadata.json b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/gapic_metadata.json rename to google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/package-info.java b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/package-info.java rename to google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStub.java b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStub.java rename to google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStub.java diff --git a/owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java rename to google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java index 5388aa17..cc157e93 100644 --- a/owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java +++ b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java @@ -86,10 +86,9 @@ *

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

    - *
  • The default service address (datamigration.googleapis.com) and default port (443) are - * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (datamigration.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -155,7 +154,8 @@ public class DataMigrationServiceStubSettings restartMigrationJobOperationSettings; private final UnaryCallSettings generateSshScriptSettings; private final PagedCallSettings< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> listConnectionProfilesSettings; private final UnaryCallSettings @@ -262,7 +262,8 @@ public Iterable extractResources( ListMigrationJobsRequest, ListMigrationJobsResponse, ListMigrationJobsPagedResponse> LIST_MIGRATION_JOBS_PAGE_STR_FACT = new PagedListResponseFactory< - ListMigrationJobsRequest, ListMigrationJobsResponse, + ListMigrationJobsRequest, + ListMigrationJobsResponse, ListMigrationJobsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -279,11 +280,13 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> LIST_CONNECTION_PROFILES_PAGE_STR_FACT = new PagedListResponseFactory< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -293,7 +296,8 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ConnectionProfile> pageContext = PageContext.create( @@ -420,7 +424,8 @@ public UnaryCallSettings generateSshScriptS /** Returns the object with the settings used for calls to listConnectionProfiles. */ public PagedCallSettings< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> listConnectionProfilesSettings() { return listConnectionProfilesSettings; @@ -640,7 +645,8 @@ public static class Builder private final UnaryCallSettings.Builder generateSshScriptSettings; private final PagedCallSettings.Builder< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> listConnectionProfilesSettings; private final UnaryCallSettings.Builder @@ -1365,7 +1371,8 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listConnectionProfiles. */ public PagedCallSettings.Builder< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> listConnectionProfilesSettings() { return listConnectionProfilesSettings; diff --git a/owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceCallableFactory.java b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceCallableFactory.java rename to google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceStub.java b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceStub.java rename to google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceStub.java index a2bdf4c2..de85729b 100644 --- a/owl-bot-staging/v1/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceStub.java +++ b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceStub.java @@ -56,7 +56,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/DataMigrationServiceClientTest.java b/google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/DataMigrationServiceClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/DataMigrationServiceClientTest.java rename to google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/DataMigrationServiceClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/MockDataMigrationService.java b/google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/MockDataMigrationService.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/MockDataMigrationService.java rename to google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/MockDataMigrationService.java diff --git a/owl-bot-staging/v1/google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/MockDataMigrationServiceImpl.java b/google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/MockDataMigrationServiceImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/MockDataMigrationServiceImpl.java rename to google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/MockDataMigrationServiceImpl.java diff --git a/grpc-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceGrpc.java b/grpc-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceGrpc.java new file mode 100644 index 00000000..6bc3a3c0 --- /dev/null +++ b/grpc-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceGrpc.java @@ -0,0 +1,2286 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.clouddms.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * Database Migration service
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/clouddms/v1/clouddms.proto") +public final class DataMigrationServiceGrpc { + + private DataMigrationServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.clouddms.v1.DataMigrationService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.ListMigrationJobsRequest, + com.google.cloud.clouddms.v1.ListMigrationJobsResponse> + getListMigrationJobsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMigrationJobs", + requestType = com.google.cloud.clouddms.v1.ListMigrationJobsRequest.class, + responseType = com.google.cloud.clouddms.v1.ListMigrationJobsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.ListMigrationJobsRequest, + com.google.cloud.clouddms.v1.ListMigrationJobsResponse> + getListMigrationJobsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.ListMigrationJobsRequest, + com.google.cloud.clouddms.v1.ListMigrationJobsResponse> + getListMigrationJobsMethod; + if ((getListMigrationJobsMethod = DataMigrationServiceGrpc.getListMigrationJobsMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getListMigrationJobsMethod = DataMigrationServiceGrpc.getListMigrationJobsMethod) + == null) { + DataMigrationServiceGrpc.getListMigrationJobsMethod = + getListMigrationJobsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMigrationJobs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.ListMigrationJobsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.ListMigrationJobsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier("ListMigrationJobs")) + .build(); + } + } + } + return getListMigrationJobsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.GetMigrationJobRequest, + com.google.cloud.clouddms.v1.MigrationJob> + getGetMigrationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMigrationJob", + requestType = com.google.cloud.clouddms.v1.GetMigrationJobRequest.class, + responseType = com.google.cloud.clouddms.v1.MigrationJob.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.GetMigrationJobRequest, + com.google.cloud.clouddms.v1.MigrationJob> + getGetMigrationJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.GetMigrationJobRequest, + com.google.cloud.clouddms.v1.MigrationJob> + getGetMigrationJobMethod; + if ((getGetMigrationJobMethod = DataMigrationServiceGrpc.getGetMigrationJobMethod) == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getGetMigrationJobMethod = DataMigrationServiceGrpc.getGetMigrationJobMethod) + == null) { + DataMigrationServiceGrpc.getGetMigrationJobMethod = + getGetMigrationJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMigrationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.GetMigrationJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier("GetMigrationJob")) + .build(); + } + } + } + return getGetMigrationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.CreateMigrationJobRequest, com.google.longrunning.Operation> + getCreateMigrationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMigrationJob", + requestType = com.google.cloud.clouddms.v1.CreateMigrationJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.CreateMigrationJobRequest, com.google.longrunning.Operation> + getCreateMigrationJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.CreateMigrationJobRequest, + com.google.longrunning.Operation> + getCreateMigrationJobMethod; + if ((getCreateMigrationJobMethod = DataMigrationServiceGrpc.getCreateMigrationJobMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getCreateMigrationJobMethod = DataMigrationServiceGrpc.getCreateMigrationJobMethod) + == null) { + DataMigrationServiceGrpc.getCreateMigrationJobMethod = + getCreateMigrationJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMigrationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.CreateMigrationJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier("CreateMigrationJob")) + .build(); + } + } + } + return getCreateMigrationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.UpdateMigrationJobRequest, com.google.longrunning.Operation> + getUpdateMigrationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMigrationJob", + requestType = com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.UpdateMigrationJobRequest, com.google.longrunning.Operation> + getUpdateMigrationJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.UpdateMigrationJobRequest, + com.google.longrunning.Operation> + getUpdateMigrationJobMethod; + if ((getUpdateMigrationJobMethod = DataMigrationServiceGrpc.getUpdateMigrationJobMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getUpdateMigrationJobMethod = DataMigrationServiceGrpc.getUpdateMigrationJobMethod) + == null) { + DataMigrationServiceGrpc.getUpdateMigrationJobMethod = + getUpdateMigrationJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMigrationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.UpdateMigrationJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier("UpdateMigrationJob")) + .build(); + } + } + } + return getUpdateMigrationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.DeleteMigrationJobRequest, com.google.longrunning.Operation> + getDeleteMigrationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMigrationJob", + requestType = com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.DeleteMigrationJobRequest, com.google.longrunning.Operation> + getDeleteMigrationJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.DeleteMigrationJobRequest, + com.google.longrunning.Operation> + getDeleteMigrationJobMethod; + if ((getDeleteMigrationJobMethod = DataMigrationServiceGrpc.getDeleteMigrationJobMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getDeleteMigrationJobMethod = DataMigrationServiceGrpc.getDeleteMigrationJobMethod) + == null) { + DataMigrationServiceGrpc.getDeleteMigrationJobMethod = + getDeleteMigrationJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMigrationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.DeleteMigrationJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier("DeleteMigrationJob")) + .build(); + } + } + } + return getDeleteMigrationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.StartMigrationJobRequest, com.google.longrunning.Operation> + getStartMigrationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartMigrationJob", + requestType = com.google.cloud.clouddms.v1.StartMigrationJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.StartMigrationJobRequest, com.google.longrunning.Operation> + getStartMigrationJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.StartMigrationJobRequest, com.google.longrunning.Operation> + getStartMigrationJobMethod; + if ((getStartMigrationJobMethod = DataMigrationServiceGrpc.getStartMigrationJobMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getStartMigrationJobMethod = DataMigrationServiceGrpc.getStartMigrationJobMethod) + == null) { + DataMigrationServiceGrpc.getStartMigrationJobMethod = + getStartMigrationJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartMigrationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.StartMigrationJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier("StartMigrationJob")) + .build(); + } + } + } + return getStartMigrationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.StopMigrationJobRequest, com.google.longrunning.Operation> + getStopMigrationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopMigrationJob", + requestType = com.google.cloud.clouddms.v1.StopMigrationJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.StopMigrationJobRequest, com.google.longrunning.Operation> + getStopMigrationJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.StopMigrationJobRequest, com.google.longrunning.Operation> + getStopMigrationJobMethod; + if ((getStopMigrationJobMethod = DataMigrationServiceGrpc.getStopMigrationJobMethod) == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getStopMigrationJobMethod = DataMigrationServiceGrpc.getStopMigrationJobMethod) + == null) { + DataMigrationServiceGrpc.getStopMigrationJobMethod = + getStopMigrationJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopMigrationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.StopMigrationJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier("StopMigrationJob")) + .build(); + } + } + } + return getStopMigrationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.ResumeMigrationJobRequest, com.google.longrunning.Operation> + getResumeMigrationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ResumeMigrationJob", + requestType = com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.ResumeMigrationJobRequest, com.google.longrunning.Operation> + getResumeMigrationJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.ResumeMigrationJobRequest, + com.google.longrunning.Operation> + getResumeMigrationJobMethod; + if ((getResumeMigrationJobMethod = DataMigrationServiceGrpc.getResumeMigrationJobMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getResumeMigrationJobMethod = DataMigrationServiceGrpc.getResumeMigrationJobMethod) + == null) { + DataMigrationServiceGrpc.getResumeMigrationJobMethod = + getResumeMigrationJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResumeMigrationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.ResumeMigrationJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier("ResumeMigrationJob")) + .build(); + } + } + } + return getResumeMigrationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.PromoteMigrationJobRequest, com.google.longrunning.Operation> + getPromoteMigrationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PromoteMigrationJob", + requestType = com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.PromoteMigrationJobRequest, com.google.longrunning.Operation> + getPromoteMigrationJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.PromoteMigrationJobRequest, + com.google.longrunning.Operation> + getPromoteMigrationJobMethod; + if ((getPromoteMigrationJobMethod = DataMigrationServiceGrpc.getPromoteMigrationJobMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getPromoteMigrationJobMethod = DataMigrationServiceGrpc.getPromoteMigrationJobMethod) + == null) { + DataMigrationServiceGrpc.getPromoteMigrationJobMethod = + getPromoteMigrationJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "PromoteMigrationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.PromoteMigrationJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier("PromoteMigrationJob")) + .build(); + } + } + } + return getPromoteMigrationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.VerifyMigrationJobRequest, com.google.longrunning.Operation> + getVerifyMigrationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "VerifyMigrationJob", + requestType = com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.VerifyMigrationJobRequest, com.google.longrunning.Operation> + getVerifyMigrationJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.VerifyMigrationJobRequest, + com.google.longrunning.Operation> + getVerifyMigrationJobMethod; + if ((getVerifyMigrationJobMethod = DataMigrationServiceGrpc.getVerifyMigrationJobMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getVerifyMigrationJobMethod = DataMigrationServiceGrpc.getVerifyMigrationJobMethod) + == null) { + DataMigrationServiceGrpc.getVerifyMigrationJobMethod = + getVerifyMigrationJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerifyMigrationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.VerifyMigrationJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier("VerifyMigrationJob")) + .build(); + } + } + } + return getVerifyMigrationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.RestartMigrationJobRequest, com.google.longrunning.Operation> + getRestartMigrationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RestartMigrationJob", + requestType = com.google.cloud.clouddms.v1.RestartMigrationJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.RestartMigrationJobRequest, com.google.longrunning.Operation> + getRestartMigrationJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.RestartMigrationJobRequest, + com.google.longrunning.Operation> + getRestartMigrationJobMethod; + if ((getRestartMigrationJobMethod = DataMigrationServiceGrpc.getRestartMigrationJobMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getRestartMigrationJobMethod = DataMigrationServiceGrpc.getRestartMigrationJobMethod) + == null) { + DataMigrationServiceGrpc.getRestartMigrationJobMethod = + getRestartMigrationJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "RestartMigrationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.RestartMigrationJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier("RestartMigrationJob")) + .build(); + } + } + } + return getRestartMigrationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.GenerateSshScriptRequest, + com.google.cloud.clouddms.v1.SshScript> + getGenerateSshScriptMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateSshScript", + requestType = com.google.cloud.clouddms.v1.GenerateSshScriptRequest.class, + responseType = com.google.cloud.clouddms.v1.SshScript.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.GenerateSshScriptRequest, + com.google.cloud.clouddms.v1.SshScript> + getGenerateSshScriptMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.GenerateSshScriptRequest, + com.google.cloud.clouddms.v1.SshScript> + getGenerateSshScriptMethod; + if ((getGenerateSshScriptMethod = DataMigrationServiceGrpc.getGenerateSshScriptMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getGenerateSshScriptMethod = DataMigrationServiceGrpc.getGenerateSshScriptMethod) + == null) { + DataMigrationServiceGrpc.getGenerateSshScriptMethod = + getGenerateSshScriptMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateSshScript")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.GenerateSshScriptRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.SshScript.getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier("GenerateSshScript")) + .build(); + } + } + } + return getGenerateSshScriptMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.ListConnectionProfilesRequest, + com.google.cloud.clouddms.v1.ListConnectionProfilesResponse> + getListConnectionProfilesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConnectionProfiles", + requestType = com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.class, + responseType = com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.ListConnectionProfilesRequest, + com.google.cloud.clouddms.v1.ListConnectionProfilesResponse> + getListConnectionProfilesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.ListConnectionProfilesRequest, + com.google.cloud.clouddms.v1.ListConnectionProfilesResponse> + getListConnectionProfilesMethod; + if ((getListConnectionProfilesMethod = DataMigrationServiceGrpc.getListConnectionProfilesMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getListConnectionProfilesMethod = + DataMigrationServiceGrpc.getListConnectionProfilesMethod) + == null) { + DataMigrationServiceGrpc.getListConnectionProfilesMethod = + getListConnectionProfilesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListConnectionProfiles")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.ListConnectionProfilesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.ListConnectionProfilesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier( + "ListConnectionProfiles")) + .build(); + } + } + } + return getListConnectionProfilesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.GetConnectionProfileRequest, + com.google.cloud.clouddms.v1.ConnectionProfile> + getGetConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConnectionProfile", + requestType = com.google.cloud.clouddms.v1.GetConnectionProfileRequest.class, + responseType = com.google.cloud.clouddms.v1.ConnectionProfile.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.GetConnectionProfileRequest, + com.google.cloud.clouddms.v1.ConnectionProfile> + getGetConnectionProfileMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.GetConnectionProfileRequest, + com.google.cloud.clouddms.v1.ConnectionProfile> + getGetConnectionProfileMethod; + if ((getGetConnectionProfileMethod = DataMigrationServiceGrpc.getGetConnectionProfileMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getGetConnectionProfileMethod = DataMigrationServiceGrpc.getGetConnectionProfileMethod) + == null) { + DataMigrationServiceGrpc.getGetConnectionProfileMethod = + getGetConnectionProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.GetConnectionProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier("GetConnectionProfile")) + .build(); + } + } + } + return getGetConnectionProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest, + com.google.longrunning.Operation> + getCreateConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConnectionProfile", + requestType = com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest, + com.google.longrunning.Operation> + getCreateConnectionProfileMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest, + com.google.longrunning.Operation> + getCreateConnectionProfileMethod; + if ((getCreateConnectionProfileMethod = + DataMigrationServiceGrpc.getCreateConnectionProfileMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getCreateConnectionProfileMethod = + DataMigrationServiceGrpc.getCreateConnectionProfileMethod) + == null) { + DataMigrationServiceGrpc.getCreateConnectionProfileMethod = + getCreateConnectionProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier( + "CreateConnectionProfile")) + .build(); + } + } + } + return getCreateConnectionProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest, + com.google.longrunning.Operation> + getUpdateConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConnectionProfile", + requestType = com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest, + com.google.longrunning.Operation> + getUpdateConnectionProfileMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest, + com.google.longrunning.Operation> + getUpdateConnectionProfileMethod; + if ((getUpdateConnectionProfileMethod = + DataMigrationServiceGrpc.getUpdateConnectionProfileMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getUpdateConnectionProfileMethod = + DataMigrationServiceGrpc.getUpdateConnectionProfileMethod) + == null) { + DataMigrationServiceGrpc.getUpdateConnectionProfileMethod = + getUpdateConnectionProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier( + "UpdateConnectionProfile")) + .build(); + } + } + } + return getUpdateConnectionProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest, + com.google.longrunning.Operation> + getDeleteConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConnectionProfile", + requestType = com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest, + com.google.longrunning.Operation> + getDeleteConnectionProfileMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest, + com.google.longrunning.Operation> + getDeleteConnectionProfileMethod; + if ((getDeleteConnectionProfileMethod = + DataMigrationServiceGrpc.getDeleteConnectionProfileMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getDeleteConnectionProfileMethod = + DataMigrationServiceGrpc.getDeleteConnectionProfileMethod) + == null) { + DataMigrationServiceGrpc.getDeleteConnectionProfileMethod = + getDeleteConnectionProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier( + "DeleteConnectionProfile")) + .build(); + } + } + } + return getDeleteConnectionProfileMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static DataMigrationServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataMigrationServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataMigrationServiceStub(channel, callOptions); + } + }; + return DataMigrationServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DataMigrationServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataMigrationServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataMigrationServiceBlockingStub(channel, callOptions); + } + }; + return DataMigrationServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static DataMigrationServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataMigrationServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataMigrationServiceFutureStub(channel, callOptions); + } + }; + return DataMigrationServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Database Migration service
+   * 
+ */ + public abstract static class DataMigrationServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists migration jobs in a given project and location.
+     * 
+ */ + public void listMigrationJobs( + com.google.cloud.clouddms.v1.ListMigrationJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMigrationJobsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single migration job.
+     * 
+ */ + public void getMigrationJob( + com.google.cloud.clouddms.v1.GetMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMigrationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new migration job in a given project and location.
+     * 
+ */ + public void createMigrationJob( + com.google.cloud.clouddms.v1.CreateMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMigrationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single migration job.
+     * 
+ */ + public void updateMigrationJob( + com.google.cloud.clouddms.v1.UpdateMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateMigrationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single migration job.
+     * 
+ */ + public void deleteMigrationJob( + com.google.cloud.clouddms.v1.DeleteMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMigrationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Start an already created migration job.
+     * 
+ */ + public void startMigrationJob( + com.google.cloud.clouddms.v1.StartMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartMigrationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Stops a running migration job.
+     * 
+ */ + public void stopMigrationJob( + com.google.cloud.clouddms.v1.StopMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStopMigrationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Resume a migration job that is currently stopped and is resumable (was
+     * stopped during CDC phase).
+     * 
+ */ + public void resumeMigrationJob( + com.google.cloud.clouddms.v1.ResumeMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getResumeMigrationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Promote a migration job, stopping replication to the destination and
+     * promoting the destination to be a standalone database.
+     * 
+ */ + public void promoteMigrationJob( + com.google.cloud.clouddms.v1.PromoteMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getPromoteMigrationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Verify a migration job, making sure the destination can reach the source
+     * and that all configuration and prerequisites are met.
+     * 
+ */ + public void verifyMigrationJob( + com.google.cloud.clouddms.v1.VerifyMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getVerifyMigrationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Restart a stopped or failed migration job, resetting the destination
+     * instance to its original state and starting the migration process from
+     * scratch.
+     * 
+ */ + public void restartMigrationJob( + com.google.cloud.clouddms.v1.RestartMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRestartMigrationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Generate a SSH configuration script to configure the reverse SSH
+     * connectivity.
+     * 
+ */ + public void generateSshScript( + com.google.cloud.clouddms.v1.GenerateSshScriptRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateSshScriptMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieve a list of all connection profiles in a given project and location.
+     * 
+ */ + public void listConnectionProfiles( + com.google.cloud.clouddms.v1.ListConnectionProfilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListConnectionProfilesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single connection profile.
+     * 
+ */ + public void getConnectionProfile( + com.google.cloud.clouddms.v1.GetConnectionProfileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetConnectionProfileMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new connection profile in a given project and location.
+     * 
+ */ + public void createConnectionProfile( + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateConnectionProfileMethod(), responseObserver); + } + + /** + * + * + *
+     * Update the configuration of a single connection profile.
+     * 
+ */ + public void updateConnectionProfile( + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateConnectionProfileMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Database Migration Service connection profile.
+     * A connection profile can only be deleted if it is not in use by any
+     * active migration jobs.
+     * 
+ */ + public void deleteConnectionProfile( + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteConnectionProfileMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListMigrationJobsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.ListMigrationJobsRequest, + com.google.cloud.clouddms.v1.ListMigrationJobsResponse>( + this, METHODID_LIST_MIGRATION_JOBS))) + .addMethod( + getGetMigrationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.GetMigrationJobRequest, + com.google.cloud.clouddms.v1.MigrationJob>(this, METHODID_GET_MIGRATION_JOB))) + .addMethod( + getCreateMigrationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.CreateMigrationJobRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_MIGRATION_JOB))) + .addMethod( + getUpdateMigrationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.UpdateMigrationJobRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_MIGRATION_JOB))) + .addMethod( + getDeleteMigrationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.DeleteMigrationJobRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_MIGRATION_JOB))) + .addMethod( + getStartMigrationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.StartMigrationJobRequest, + com.google.longrunning.Operation>(this, METHODID_START_MIGRATION_JOB))) + .addMethod( + getStopMigrationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.StopMigrationJobRequest, + com.google.longrunning.Operation>(this, METHODID_STOP_MIGRATION_JOB))) + .addMethod( + getResumeMigrationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.ResumeMigrationJobRequest, + com.google.longrunning.Operation>(this, METHODID_RESUME_MIGRATION_JOB))) + .addMethod( + getPromoteMigrationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.PromoteMigrationJobRequest, + com.google.longrunning.Operation>(this, METHODID_PROMOTE_MIGRATION_JOB))) + .addMethod( + getVerifyMigrationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.VerifyMigrationJobRequest, + com.google.longrunning.Operation>(this, METHODID_VERIFY_MIGRATION_JOB))) + .addMethod( + getRestartMigrationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.RestartMigrationJobRequest, + com.google.longrunning.Operation>(this, METHODID_RESTART_MIGRATION_JOB))) + .addMethod( + getGenerateSshScriptMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.GenerateSshScriptRequest, + com.google.cloud.clouddms.v1.SshScript>(this, METHODID_GENERATE_SSH_SCRIPT))) + .addMethod( + getListConnectionProfilesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.ListConnectionProfilesRequest, + com.google.cloud.clouddms.v1.ListConnectionProfilesResponse>( + this, METHODID_LIST_CONNECTION_PROFILES))) + .addMethod( + getGetConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.GetConnectionProfileRequest, + com.google.cloud.clouddms.v1.ConnectionProfile>( + this, METHODID_GET_CONNECTION_PROFILE))) + .addMethod( + getCreateConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_CONNECTION_PROFILE))) + .addMethod( + getUpdateConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_CONNECTION_PROFILE))) + .addMethod( + getDeleteConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_CONNECTION_PROFILE))) + .build(); + } + } + + /** + * + * + *
+   * Database Migration service
+   * 
+ */ + public static final class DataMigrationServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private DataMigrationServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataMigrationServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataMigrationServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists migration jobs in a given project and location.
+     * 
+ */ + public void listMigrationJobs( + com.google.cloud.clouddms.v1.ListMigrationJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMigrationJobsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single migration job.
+     * 
+ */ + public void getMigrationJob( + com.google.cloud.clouddms.v1.GetMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMigrationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new migration job in a given project and location.
+     * 
+ */ + public void createMigrationJob( + com.google.cloud.clouddms.v1.CreateMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMigrationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single migration job.
+     * 
+ */ + public void updateMigrationJob( + com.google.cloud.clouddms.v1.UpdateMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMigrationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single migration job.
+     * 
+ */ + public void deleteMigrationJob( + com.google.cloud.clouddms.v1.DeleteMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMigrationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Start an already created migration job.
+     * 
+ */ + public void startMigrationJob( + com.google.cloud.clouddms.v1.StartMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartMigrationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Stops a running migration job.
+     * 
+ */ + public void stopMigrationJob( + com.google.cloud.clouddms.v1.StopMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopMigrationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Resume a migration job that is currently stopped and is resumable (was
+     * stopped during CDC phase).
+     * 
+ */ + public void resumeMigrationJob( + com.google.cloud.clouddms.v1.ResumeMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getResumeMigrationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Promote a migration job, stopping replication to the destination and
+     * promoting the destination to be a standalone database.
+     * 
+ */ + public void promoteMigrationJob( + com.google.cloud.clouddms.v1.PromoteMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPromoteMigrationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Verify a migration job, making sure the destination can reach the source
+     * and that all configuration and prerequisites are met.
+     * 
+ */ + public void verifyMigrationJob( + com.google.cloud.clouddms.v1.VerifyMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getVerifyMigrationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Restart a stopped or failed migration job, resetting the destination
+     * instance to its original state and starting the migration process from
+     * scratch.
+     * 
+ */ + public void restartMigrationJob( + com.google.cloud.clouddms.v1.RestartMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRestartMigrationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Generate a SSH configuration script to configure the reverse SSH
+     * connectivity.
+     * 
+ */ + public void generateSshScript( + com.google.cloud.clouddms.v1.GenerateSshScriptRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateSshScriptMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieve a list of all connection profiles in a given project and location.
+     * 
+ */ + public void listConnectionProfiles( + com.google.cloud.clouddms.v1.ListConnectionProfilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single connection profile.
+     * 
+ */ + public void getConnectionProfile( + com.google.cloud.clouddms.v1.GetConnectionProfileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new connection profile in a given project and location.
+     * 
+ */ + public void createConnectionProfile( + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update the configuration of a single connection profile.
+     * 
+ */ + public void updateConnectionProfile( + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single Database Migration Service connection profile.
+     * A connection profile can only be deleted if it is not in use by any
+     * active migration jobs.
+     * 
+ */ + public void deleteConnectionProfile( + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Database Migration service
+   * 
+ */ + public static final class DataMigrationServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DataMigrationServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataMigrationServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataMigrationServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists migration jobs in a given project and location.
+     * 
+ */ + public com.google.cloud.clouddms.v1.ListMigrationJobsResponse listMigrationJobs( + com.google.cloud.clouddms.v1.ListMigrationJobsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMigrationJobsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single migration job.
+     * 
+ */ + public com.google.cloud.clouddms.v1.MigrationJob getMigrationJob( + com.google.cloud.clouddms.v1.GetMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMigrationJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new migration job in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createMigrationJob( + com.google.cloud.clouddms.v1.CreateMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMigrationJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single migration job.
+     * 
+ */ + public com.google.longrunning.Operation updateMigrationJob( + com.google.cloud.clouddms.v1.UpdateMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMigrationJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single migration job.
+     * 
+ */ + public com.google.longrunning.Operation deleteMigrationJob( + com.google.cloud.clouddms.v1.DeleteMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMigrationJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Start an already created migration job.
+     * 
+ */ + public com.google.longrunning.Operation startMigrationJob( + com.google.cloud.clouddms.v1.StartMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartMigrationJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Stops a running migration job.
+     * 
+ */ + public com.google.longrunning.Operation stopMigrationJob( + com.google.cloud.clouddms.v1.StopMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopMigrationJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Resume a migration job that is currently stopped and is resumable (was
+     * stopped during CDC phase).
+     * 
+ */ + public com.google.longrunning.Operation resumeMigrationJob( + com.google.cloud.clouddms.v1.ResumeMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResumeMigrationJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Promote a migration job, stopping replication to the destination and
+     * promoting the destination to be a standalone database.
+     * 
+ */ + public com.google.longrunning.Operation promoteMigrationJob( + com.google.cloud.clouddms.v1.PromoteMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPromoteMigrationJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Verify a migration job, making sure the destination can reach the source
+     * and that all configuration and prerequisites are met.
+     * 
+ */ + public com.google.longrunning.Operation verifyMigrationJob( + com.google.cloud.clouddms.v1.VerifyMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getVerifyMigrationJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Restart a stopped or failed migration job, resetting the destination
+     * instance to its original state and starting the migration process from
+     * scratch.
+     * 
+ */ + public com.google.longrunning.Operation restartMigrationJob( + com.google.cloud.clouddms.v1.RestartMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRestartMigrationJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Generate a SSH configuration script to configure the reverse SSH
+     * connectivity.
+     * 
+ */ + public com.google.cloud.clouddms.v1.SshScript generateSshScript( + com.google.cloud.clouddms.v1.GenerateSshScriptRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateSshScriptMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a list of all connection profiles in a given project and location.
+     * 
+ */ + public com.google.cloud.clouddms.v1.ListConnectionProfilesResponse listConnectionProfiles( + com.google.cloud.clouddms.v1.ListConnectionProfilesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConnectionProfilesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single connection profile.
+     * 
+ */ + public com.google.cloud.clouddms.v1.ConnectionProfile getConnectionProfile( + com.google.cloud.clouddms.v1.GetConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConnectionProfileMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new connection profile in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createConnectionProfile( + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateConnectionProfileMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update the configuration of a single connection profile.
+     * 
+ */ + public com.google.longrunning.Operation updateConnectionProfile( + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConnectionProfileMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Database Migration Service connection profile.
+     * A connection profile can only be deleted if it is not in use by any
+     * active migration jobs.
+     * 
+ */ + public com.google.longrunning.Operation deleteConnectionProfile( + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConnectionProfileMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Database Migration service
+   * 
+ */ + public static final class DataMigrationServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DataMigrationServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataMigrationServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataMigrationServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists migration jobs in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.clouddms.v1.ListMigrationJobsResponse> + listMigrationJobs(com.google.cloud.clouddms.v1.ListMigrationJobsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMigrationJobsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single migration job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.clouddms.v1.MigrationJob> + getMigrationJob(com.google.cloud.clouddms.v1.GetMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMigrationJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new migration job in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createMigrationJob(com.google.cloud.clouddms.v1.CreateMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMigrationJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the parameters of a single migration job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateMigrationJob(com.google.cloud.clouddms.v1.UpdateMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateMigrationJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single migration job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteMigrationJob(com.google.cloud.clouddms.v1.DeleteMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMigrationJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Start an already created migration job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + startMigrationJob(com.google.cloud.clouddms.v1.StartMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartMigrationJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Stops a running migration job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + stopMigrationJob(com.google.cloud.clouddms.v1.StopMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopMigrationJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Resume a migration job that is currently stopped and is resumable (was
+     * stopped during CDC phase).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + resumeMigrationJob(com.google.cloud.clouddms.v1.ResumeMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getResumeMigrationJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Promote a migration job, stopping replication to the destination and
+     * promoting the destination to be a standalone database.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + promoteMigrationJob(com.google.cloud.clouddms.v1.PromoteMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPromoteMigrationJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Verify a migration job, making sure the destination can reach the source
+     * and that all configuration and prerequisites are met.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + verifyMigrationJob(com.google.cloud.clouddms.v1.VerifyMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getVerifyMigrationJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Restart a stopped or failed migration job, resetting the destination
+     * instance to its original state and starting the migration process from
+     * scratch.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + restartMigrationJob(com.google.cloud.clouddms.v1.RestartMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRestartMigrationJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Generate a SSH configuration script to configure the reverse SSH
+     * connectivity.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.clouddms.v1.SshScript> + generateSshScript(com.google.cloud.clouddms.v1.GenerateSshScriptRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateSshScriptMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieve a list of all connection profiles in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.clouddms.v1.ListConnectionProfilesResponse> + listConnectionProfiles(com.google.cloud.clouddms.v1.ListConnectionProfilesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single connection profile.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.clouddms.v1.ConnectionProfile> + getConnectionProfile(com.google.cloud.clouddms.v1.GetConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new connection profile in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createConnectionProfile( + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update the configuration of a single connection profile.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateConnectionProfile( + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single Database Migration Service connection profile.
+     * A connection profile can only be deleted if it is not in use by any
+     * active migration jobs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteConnectionProfile( + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_MIGRATION_JOBS = 0; + private static final int METHODID_GET_MIGRATION_JOB = 1; + private static final int METHODID_CREATE_MIGRATION_JOB = 2; + private static final int METHODID_UPDATE_MIGRATION_JOB = 3; + private static final int METHODID_DELETE_MIGRATION_JOB = 4; + private static final int METHODID_START_MIGRATION_JOB = 5; + private static final int METHODID_STOP_MIGRATION_JOB = 6; + private static final int METHODID_RESUME_MIGRATION_JOB = 7; + private static final int METHODID_PROMOTE_MIGRATION_JOB = 8; + private static final int METHODID_VERIFY_MIGRATION_JOB = 9; + private static final int METHODID_RESTART_MIGRATION_JOB = 10; + private static final int METHODID_GENERATE_SSH_SCRIPT = 11; + private static final int METHODID_LIST_CONNECTION_PROFILES = 12; + private static final int METHODID_GET_CONNECTION_PROFILE = 13; + private static final int METHODID_CREATE_CONNECTION_PROFILE = 14; + private static final int METHODID_UPDATE_CONNECTION_PROFILE = 15; + private static final int METHODID_DELETE_CONNECTION_PROFILE = 16; + + 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 DataMigrationServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(DataMigrationServiceImplBase 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_LIST_MIGRATION_JOBS: + serviceImpl.listMigrationJobs( + (com.google.cloud.clouddms.v1.ListMigrationJobsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_MIGRATION_JOB: + serviceImpl.getMigrationJob( + (com.google.cloud.clouddms.v1.GetMigrationJobRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_MIGRATION_JOB: + serviceImpl.createMigrationJob( + (com.google.cloud.clouddms.v1.CreateMigrationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MIGRATION_JOB: + serviceImpl.updateMigrationJob( + (com.google.cloud.clouddms.v1.UpdateMigrationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_MIGRATION_JOB: + serviceImpl.deleteMigrationJob( + (com.google.cloud.clouddms.v1.DeleteMigrationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_MIGRATION_JOB: + serviceImpl.startMigrationJob( + (com.google.cloud.clouddms.v1.StartMigrationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_MIGRATION_JOB: + serviceImpl.stopMigrationJob( + (com.google.cloud.clouddms.v1.StopMigrationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESUME_MIGRATION_JOB: + serviceImpl.resumeMigrationJob( + (com.google.cloud.clouddms.v1.ResumeMigrationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_PROMOTE_MIGRATION_JOB: + serviceImpl.promoteMigrationJob( + (com.google.cloud.clouddms.v1.PromoteMigrationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_VERIFY_MIGRATION_JOB: + serviceImpl.verifyMigrationJob( + (com.google.cloud.clouddms.v1.VerifyMigrationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESTART_MIGRATION_JOB: + serviceImpl.restartMigrationJob( + (com.google.cloud.clouddms.v1.RestartMigrationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_SSH_SCRIPT: + serviceImpl.generateSshScript( + (com.google.cloud.clouddms.v1.GenerateSshScriptRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CONNECTION_PROFILES: + serviceImpl.listConnectionProfiles( + (com.google.cloud.clouddms.v1.ListConnectionProfilesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.clouddms.v1.ListConnectionProfilesResponse>) + responseObserver); + break; + case METHODID_GET_CONNECTION_PROFILE: + serviceImpl.getConnectionProfile( + (com.google.cloud.clouddms.v1.GetConnectionProfileRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_CONNECTION_PROFILE: + serviceImpl.createConnectionProfile( + (com.google.cloud.clouddms.v1.CreateConnectionProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CONNECTION_PROFILE: + serviceImpl.updateConnectionProfile( + (com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CONNECTION_PROFILE: + serviceImpl.deleteConnectionProfile( + (com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest) 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 DataMigrationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DataMigrationServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DataMigrationService"); + } + } + + private static final class DataMigrationServiceFileDescriptorSupplier + extends DataMigrationServiceBaseDescriptorSupplier { + DataMigrationServiceFileDescriptorSupplier() {} + } + + private static final class DataMigrationServiceMethodDescriptorSupplier + extends DataMigrationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + DataMigrationServiceMethodDescriptorSupplier(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 (DataMigrationServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DataMigrationServiceFileDescriptorSupplier()) + .addMethod(getListMigrationJobsMethod()) + .addMethod(getGetMigrationJobMethod()) + .addMethod(getCreateMigrationJobMethod()) + .addMethod(getUpdateMigrationJobMethod()) + .addMethod(getDeleteMigrationJobMethod()) + .addMethod(getStartMigrationJobMethod()) + .addMethod(getStopMigrationJobMethod()) + .addMethod(getResumeMigrationJobMethod()) + .addMethod(getPromoteMigrationJobMethod()) + .addMethod(getVerifyMigrationJobMethod()) + .addMethod(getRestartMigrationJobMethod()) + .addMethod(getGenerateSshScriptMethod()) + .addMethod(getListConnectionProfilesMethod()) + .addMethod(getGetConnectionProfileMethod()) + .addMethod(getCreateConnectionProfileMethod()) + .addMethod(getUpdateConnectionProfileMethod()) + .addMethod(getDeleteConnectionProfileMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceGrpc.java deleted file mode 100644 index 564f79f6..00000000 --- a/owl-bot-staging/v1/grpc-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceGrpc.java +++ /dev/null @@ -1,1710 +0,0 @@ -package com.google.cloud.clouddms.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Database Migration service
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/clouddms/v1/clouddms.proto") -public final class DataMigrationServiceGrpc { - - private DataMigrationServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.clouddms.v1.DataMigrationService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListMigrationJobsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListMigrationJobs", - requestType = com.google.cloud.clouddms.v1.ListMigrationJobsRequest.class, - responseType = com.google.cloud.clouddms.v1.ListMigrationJobsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListMigrationJobsMethod() { - io.grpc.MethodDescriptor getListMigrationJobsMethod; - if ((getListMigrationJobsMethod = DataMigrationServiceGrpc.getListMigrationJobsMethod) == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getListMigrationJobsMethod = DataMigrationServiceGrpc.getListMigrationJobsMethod) == null) { - DataMigrationServiceGrpc.getListMigrationJobsMethod = getListMigrationJobsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMigrationJobs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.ListMigrationJobsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.ListMigrationJobsResponse.getDefaultInstance())) - .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("ListMigrationJobs")) - .build(); - } - } - } - return getListMigrationJobsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetMigrationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMigrationJob", - requestType = com.google.cloud.clouddms.v1.GetMigrationJobRequest.class, - responseType = com.google.cloud.clouddms.v1.MigrationJob.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetMigrationJobMethod() { - io.grpc.MethodDescriptor getGetMigrationJobMethod; - if ((getGetMigrationJobMethod = DataMigrationServiceGrpc.getGetMigrationJobMethod) == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getGetMigrationJobMethod = DataMigrationServiceGrpc.getGetMigrationJobMethod) == null) { - DataMigrationServiceGrpc.getGetMigrationJobMethod = getGetMigrationJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMigrationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.GetMigrationJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance())) - .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("GetMigrationJob")) - .build(); - } - } - } - return getGetMigrationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateMigrationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateMigrationJob", - requestType = com.google.cloud.clouddms.v1.CreateMigrationJobRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateMigrationJobMethod() { - io.grpc.MethodDescriptor getCreateMigrationJobMethod; - if ((getCreateMigrationJobMethod = DataMigrationServiceGrpc.getCreateMigrationJobMethod) == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getCreateMigrationJobMethod = DataMigrationServiceGrpc.getCreateMigrationJobMethod) == null) { - DataMigrationServiceGrpc.getCreateMigrationJobMethod = getCreateMigrationJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMigrationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.CreateMigrationJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("CreateMigrationJob")) - .build(); - } - } - } - return getCreateMigrationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateMigrationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateMigrationJob", - requestType = com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateMigrationJobMethod() { - io.grpc.MethodDescriptor getUpdateMigrationJobMethod; - if ((getUpdateMigrationJobMethod = DataMigrationServiceGrpc.getUpdateMigrationJobMethod) == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getUpdateMigrationJobMethod = DataMigrationServiceGrpc.getUpdateMigrationJobMethod) == null) { - DataMigrationServiceGrpc.getUpdateMigrationJobMethod = getUpdateMigrationJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMigrationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("UpdateMigrationJob")) - .build(); - } - } - } - return getUpdateMigrationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteMigrationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteMigrationJob", - requestType = com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteMigrationJobMethod() { - io.grpc.MethodDescriptor getDeleteMigrationJobMethod; - if ((getDeleteMigrationJobMethod = DataMigrationServiceGrpc.getDeleteMigrationJobMethod) == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getDeleteMigrationJobMethod = DataMigrationServiceGrpc.getDeleteMigrationJobMethod) == null) { - DataMigrationServiceGrpc.getDeleteMigrationJobMethod = getDeleteMigrationJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMigrationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("DeleteMigrationJob")) - .build(); - } - } - } - return getDeleteMigrationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getStartMigrationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartMigrationJob", - requestType = com.google.cloud.clouddms.v1.StartMigrationJobRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStartMigrationJobMethod() { - io.grpc.MethodDescriptor getStartMigrationJobMethod; - if ((getStartMigrationJobMethod = DataMigrationServiceGrpc.getStartMigrationJobMethod) == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getStartMigrationJobMethod = DataMigrationServiceGrpc.getStartMigrationJobMethod) == null) { - DataMigrationServiceGrpc.getStartMigrationJobMethod = getStartMigrationJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartMigrationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.StartMigrationJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("StartMigrationJob")) - .build(); - } - } - } - return getStartMigrationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getStopMigrationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopMigrationJob", - requestType = com.google.cloud.clouddms.v1.StopMigrationJobRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStopMigrationJobMethod() { - io.grpc.MethodDescriptor getStopMigrationJobMethod; - if ((getStopMigrationJobMethod = DataMigrationServiceGrpc.getStopMigrationJobMethod) == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getStopMigrationJobMethod = DataMigrationServiceGrpc.getStopMigrationJobMethod) == null) { - DataMigrationServiceGrpc.getStopMigrationJobMethod = getStopMigrationJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopMigrationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.StopMigrationJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("StopMigrationJob")) - .build(); - } - } - } - return getStopMigrationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getResumeMigrationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResumeMigrationJob", - requestType = com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getResumeMigrationJobMethod() { - io.grpc.MethodDescriptor getResumeMigrationJobMethod; - if ((getResumeMigrationJobMethod = DataMigrationServiceGrpc.getResumeMigrationJobMethod) == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getResumeMigrationJobMethod = DataMigrationServiceGrpc.getResumeMigrationJobMethod) == null) { - DataMigrationServiceGrpc.getResumeMigrationJobMethod = getResumeMigrationJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResumeMigrationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("ResumeMigrationJob")) - .build(); - } - } - } - return getResumeMigrationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getPromoteMigrationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PromoteMigrationJob", - requestType = com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getPromoteMigrationJobMethod() { - io.grpc.MethodDescriptor getPromoteMigrationJobMethod; - if ((getPromoteMigrationJobMethod = DataMigrationServiceGrpc.getPromoteMigrationJobMethod) == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getPromoteMigrationJobMethod = DataMigrationServiceGrpc.getPromoteMigrationJobMethod) == null) { - DataMigrationServiceGrpc.getPromoteMigrationJobMethod = getPromoteMigrationJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PromoteMigrationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("PromoteMigrationJob")) - .build(); - } - } - } - return getPromoteMigrationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getVerifyMigrationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "VerifyMigrationJob", - requestType = com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getVerifyMigrationJobMethod() { - io.grpc.MethodDescriptor getVerifyMigrationJobMethod; - if ((getVerifyMigrationJobMethod = DataMigrationServiceGrpc.getVerifyMigrationJobMethod) == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getVerifyMigrationJobMethod = DataMigrationServiceGrpc.getVerifyMigrationJobMethod) == null) { - DataMigrationServiceGrpc.getVerifyMigrationJobMethod = getVerifyMigrationJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerifyMigrationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("VerifyMigrationJob")) - .build(); - } - } - } - return getVerifyMigrationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getRestartMigrationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RestartMigrationJob", - requestType = com.google.cloud.clouddms.v1.RestartMigrationJobRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRestartMigrationJobMethod() { - io.grpc.MethodDescriptor getRestartMigrationJobMethod; - if ((getRestartMigrationJobMethod = DataMigrationServiceGrpc.getRestartMigrationJobMethod) == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getRestartMigrationJobMethod = DataMigrationServiceGrpc.getRestartMigrationJobMethod) == null) { - DataMigrationServiceGrpc.getRestartMigrationJobMethod = getRestartMigrationJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestartMigrationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.RestartMigrationJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("RestartMigrationJob")) - .build(); - } - } - } - return getRestartMigrationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getGenerateSshScriptMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateSshScript", - requestType = com.google.cloud.clouddms.v1.GenerateSshScriptRequest.class, - responseType = com.google.cloud.clouddms.v1.SshScript.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGenerateSshScriptMethod() { - io.grpc.MethodDescriptor getGenerateSshScriptMethod; - if ((getGenerateSshScriptMethod = DataMigrationServiceGrpc.getGenerateSshScriptMethod) == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getGenerateSshScriptMethod = DataMigrationServiceGrpc.getGenerateSshScriptMethod) == null) { - DataMigrationServiceGrpc.getGenerateSshScriptMethod = getGenerateSshScriptMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateSshScript")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.GenerateSshScriptRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.SshScript.getDefaultInstance())) - .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("GenerateSshScript")) - .build(); - } - } - } - return getGenerateSshScriptMethod; - } - - private static volatile io.grpc.MethodDescriptor getListConnectionProfilesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListConnectionProfiles", - requestType = com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.class, - responseType = com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListConnectionProfilesMethod() { - io.grpc.MethodDescriptor getListConnectionProfilesMethod; - if ((getListConnectionProfilesMethod = DataMigrationServiceGrpc.getListConnectionProfilesMethod) == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getListConnectionProfilesMethod = DataMigrationServiceGrpc.getListConnectionProfilesMethod) == null) { - DataMigrationServiceGrpc.getListConnectionProfilesMethod = getListConnectionProfilesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnectionProfiles")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.getDefaultInstance())) - .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("ListConnectionProfiles")) - .build(); - } - } - } - return getListConnectionProfilesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConnectionProfile", - requestType = com.google.cloud.clouddms.v1.GetConnectionProfileRequest.class, - responseType = com.google.cloud.clouddms.v1.ConnectionProfile.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetConnectionProfileMethod() { - io.grpc.MethodDescriptor getGetConnectionProfileMethod; - if ((getGetConnectionProfileMethod = DataMigrationServiceGrpc.getGetConnectionProfileMethod) == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getGetConnectionProfileMethod = DataMigrationServiceGrpc.getGetConnectionProfileMethod) == null) { - DataMigrationServiceGrpc.getGetConnectionProfileMethod = getGetConnectionProfileMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.GetConnectionProfileRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance())) - .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("GetConnectionProfile")) - .build(); - } - } - } - return getGetConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateConnectionProfile", - requestType = com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateConnectionProfileMethod() { - io.grpc.MethodDescriptor getCreateConnectionProfileMethod; - if ((getCreateConnectionProfileMethod = DataMigrationServiceGrpc.getCreateConnectionProfileMethod) == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getCreateConnectionProfileMethod = DataMigrationServiceGrpc.getCreateConnectionProfileMethod) == null) { - DataMigrationServiceGrpc.getCreateConnectionProfileMethod = getCreateConnectionProfileMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("CreateConnectionProfile")) - .build(); - } - } - } - return getCreateConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConnectionProfile", - requestType = com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateConnectionProfileMethod() { - io.grpc.MethodDescriptor getUpdateConnectionProfileMethod; - if ((getUpdateConnectionProfileMethod = DataMigrationServiceGrpc.getUpdateConnectionProfileMethod) == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getUpdateConnectionProfileMethod = DataMigrationServiceGrpc.getUpdateConnectionProfileMethod) == null) { - DataMigrationServiceGrpc.getUpdateConnectionProfileMethod = getUpdateConnectionProfileMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("UpdateConnectionProfile")) - .build(); - } - } - } - return getUpdateConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteConnectionProfile", - requestType = com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteConnectionProfileMethod() { - io.grpc.MethodDescriptor getDeleteConnectionProfileMethod; - if ((getDeleteConnectionProfileMethod = DataMigrationServiceGrpc.getDeleteConnectionProfileMethod) == null) { - synchronized (DataMigrationServiceGrpc.class) { - if ((getDeleteConnectionProfileMethod = DataMigrationServiceGrpc.getDeleteConnectionProfileMethod) == null) { - DataMigrationServiceGrpc.getDeleteConnectionProfileMethod = getDeleteConnectionProfileMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DataMigrationServiceMethodDescriptorSupplier("DeleteConnectionProfile")) - .build(); - } - } - } - return getDeleteConnectionProfileMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static DataMigrationServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataMigrationServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataMigrationServiceStub(channel, callOptions); - } - }; - return DataMigrationServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DataMigrationServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataMigrationServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataMigrationServiceBlockingStub(channel, callOptions); - } - }; - return DataMigrationServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static DataMigrationServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataMigrationServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataMigrationServiceFutureStub(channel, callOptions); - } - }; - return DataMigrationServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Database Migration service
-   * 
- */ - public static abstract class DataMigrationServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists migration jobs in a given project and location.
-     * 
- */ - public void listMigrationJobs(com.google.cloud.clouddms.v1.ListMigrationJobsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMigrationJobsMethod(), responseObserver); - } - - /** - *
-     * Gets details of a single migration job.
-     * 
- */ - public void getMigrationJob(com.google.cloud.clouddms.v1.GetMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMigrationJobMethod(), responseObserver); - } - - /** - *
-     * Creates a new migration job in a given project and location.
-     * 
- */ - public void createMigrationJob(com.google.cloud.clouddms.v1.CreateMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMigrationJobMethod(), responseObserver); - } - - /** - *
-     * Updates the parameters of a single migration job.
-     * 
- */ - public void updateMigrationJob(com.google.cloud.clouddms.v1.UpdateMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMigrationJobMethod(), responseObserver); - } - - /** - *
-     * Deletes a single migration job.
-     * 
- */ - public void deleteMigrationJob(com.google.cloud.clouddms.v1.DeleteMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMigrationJobMethod(), responseObserver); - } - - /** - *
-     * Start an already created migration job.
-     * 
- */ - public void startMigrationJob(com.google.cloud.clouddms.v1.StartMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartMigrationJobMethod(), responseObserver); - } - - /** - *
-     * Stops a running migration job.
-     * 
- */ - public void stopMigrationJob(com.google.cloud.clouddms.v1.StopMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopMigrationJobMethod(), responseObserver); - } - - /** - *
-     * Resume a migration job that is currently stopped and is resumable (was
-     * stopped during CDC phase).
-     * 
- */ - public void resumeMigrationJob(com.google.cloud.clouddms.v1.ResumeMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResumeMigrationJobMethod(), responseObserver); - } - - /** - *
-     * Promote a migration job, stopping replication to the destination and
-     * promoting the destination to be a standalone database.
-     * 
- */ - public void promoteMigrationJob(com.google.cloud.clouddms.v1.PromoteMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPromoteMigrationJobMethod(), responseObserver); - } - - /** - *
-     * Verify a migration job, making sure the destination can reach the source
-     * and that all configuration and prerequisites are met.
-     * 
- */ - public void verifyMigrationJob(com.google.cloud.clouddms.v1.VerifyMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVerifyMigrationJobMethod(), responseObserver); - } - - /** - *
-     * Restart a stopped or failed migration job, resetting the destination
-     * instance to its original state and starting the migration process from
-     * scratch.
-     * 
- */ - public void restartMigrationJob(com.google.cloud.clouddms.v1.RestartMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRestartMigrationJobMethod(), responseObserver); - } - - /** - *
-     * Generate a SSH configuration script to configure the reverse SSH
-     * connectivity.
-     * 
- */ - public void generateSshScript(com.google.cloud.clouddms.v1.GenerateSshScriptRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateSshScriptMethod(), responseObserver); - } - - /** - *
-     * Retrieve a list of all connection profiles in a given project and location.
-     * 
- */ - public void listConnectionProfiles(com.google.cloud.clouddms.v1.ListConnectionProfilesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListConnectionProfilesMethod(), responseObserver); - } - - /** - *
-     * Gets details of a single connection profile.
-     * 
- */ - public void getConnectionProfile(com.google.cloud.clouddms.v1.GetConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConnectionProfileMethod(), responseObserver); - } - - /** - *
-     * Creates a new connection profile in a given project and location.
-     * 
- */ - public void createConnectionProfile(com.google.cloud.clouddms.v1.CreateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateConnectionProfileMethod(), responseObserver); - } - - /** - *
-     * Update the configuration of a single connection profile.
-     * 
- */ - public void updateConnectionProfile(com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConnectionProfileMethod(), responseObserver); - } - - /** - *
-     * Deletes a single Database Migration Service connection profile.
-     * A connection profile can only be deleted if it is not in use by any
-     * active migration jobs.
-     * 
- */ - public void deleteConnectionProfile(com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteConnectionProfileMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListMigrationJobsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.ListMigrationJobsRequest, - com.google.cloud.clouddms.v1.ListMigrationJobsResponse>( - this, METHODID_LIST_MIGRATION_JOBS))) - .addMethod( - getGetMigrationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.GetMigrationJobRequest, - com.google.cloud.clouddms.v1.MigrationJob>( - this, METHODID_GET_MIGRATION_JOB))) - .addMethod( - getCreateMigrationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.CreateMigrationJobRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_MIGRATION_JOB))) - .addMethod( - getUpdateMigrationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.UpdateMigrationJobRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_MIGRATION_JOB))) - .addMethod( - getDeleteMigrationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.DeleteMigrationJobRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_MIGRATION_JOB))) - .addMethod( - getStartMigrationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.StartMigrationJobRequest, - com.google.longrunning.Operation>( - this, METHODID_START_MIGRATION_JOB))) - .addMethod( - getStopMigrationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.StopMigrationJobRequest, - com.google.longrunning.Operation>( - this, METHODID_STOP_MIGRATION_JOB))) - .addMethod( - getResumeMigrationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.ResumeMigrationJobRequest, - com.google.longrunning.Operation>( - this, METHODID_RESUME_MIGRATION_JOB))) - .addMethod( - getPromoteMigrationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.PromoteMigrationJobRequest, - com.google.longrunning.Operation>( - this, METHODID_PROMOTE_MIGRATION_JOB))) - .addMethod( - getVerifyMigrationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.VerifyMigrationJobRequest, - com.google.longrunning.Operation>( - this, METHODID_VERIFY_MIGRATION_JOB))) - .addMethod( - getRestartMigrationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.RestartMigrationJobRequest, - com.google.longrunning.Operation>( - this, METHODID_RESTART_MIGRATION_JOB))) - .addMethod( - getGenerateSshScriptMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.GenerateSshScriptRequest, - com.google.cloud.clouddms.v1.SshScript>( - this, METHODID_GENERATE_SSH_SCRIPT))) - .addMethod( - getListConnectionProfilesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.ListConnectionProfilesRequest, - com.google.cloud.clouddms.v1.ListConnectionProfilesResponse>( - this, METHODID_LIST_CONNECTION_PROFILES))) - .addMethod( - getGetConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.GetConnectionProfileRequest, - com.google.cloud.clouddms.v1.ConnectionProfile>( - this, METHODID_GET_CONNECTION_PROFILE))) - .addMethod( - getCreateConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.CreateConnectionProfileRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_CONNECTION_PROFILE))) - .addMethod( - getUpdateConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_CONNECTION_PROFILE))) - .addMethod( - getDeleteConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_CONNECTION_PROFILE))) - .build(); - } - } - - /** - *
-   * Database Migration service
-   * 
- */ - public static final class DataMigrationServiceStub extends io.grpc.stub.AbstractAsyncStub { - private DataMigrationServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataMigrationServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataMigrationServiceStub(channel, callOptions); - } - - /** - *
-     * Lists migration jobs in a given project and location.
-     * 
- */ - public void listMigrationJobs(com.google.cloud.clouddms.v1.ListMigrationJobsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMigrationJobsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details of a single migration job.
-     * 
- */ - public void getMigrationJob(com.google.cloud.clouddms.v1.GetMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMigrationJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new migration job in a given project and location.
-     * 
- */ - public void createMigrationJob(com.google.cloud.clouddms.v1.CreateMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateMigrationJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the parameters of a single migration job.
-     * 
- */ - public void updateMigrationJob(com.google.cloud.clouddms.v1.UpdateMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateMigrationJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a single migration job.
-     * 
- */ - public void deleteMigrationJob(com.google.cloud.clouddms.v1.DeleteMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteMigrationJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Start an already created migration job.
-     * 
- */ - public void startMigrationJob(com.google.cloud.clouddms.v1.StartMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartMigrationJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Stops a running migration job.
-     * 
- */ - public void stopMigrationJob(com.google.cloud.clouddms.v1.StopMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopMigrationJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Resume a migration job that is currently stopped and is resumable (was
-     * stopped during CDC phase).
-     * 
- */ - public void resumeMigrationJob(com.google.cloud.clouddms.v1.ResumeMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResumeMigrationJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Promote a migration job, stopping replication to the destination and
-     * promoting the destination to be a standalone database.
-     * 
- */ - public void promoteMigrationJob(com.google.cloud.clouddms.v1.PromoteMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPromoteMigrationJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Verify a migration job, making sure the destination can reach the source
-     * and that all configuration and prerequisites are met.
-     * 
- */ - public void verifyMigrationJob(com.google.cloud.clouddms.v1.VerifyMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getVerifyMigrationJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Restart a stopped or failed migration job, resetting the destination
-     * instance to its original state and starting the migration process from
-     * scratch.
-     * 
- */ - public void restartMigrationJob(com.google.cloud.clouddms.v1.RestartMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRestartMigrationJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Generate a SSH configuration script to configure the reverse SSH
-     * connectivity.
-     * 
- */ - public void generateSshScript(com.google.cloud.clouddms.v1.GenerateSshScriptRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateSshScriptMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Retrieve a list of all connection profiles in a given project and location.
-     * 
- */ - public void listConnectionProfiles(com.google.cloud.clouddms.v1.ListConnectionProfilesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details of a single connection profile.
-     * 
- */ - public void getConnectionProfile(com.google.cloud.clouddms.v1.GetConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new connection profile in a given project and location.
-     * 
- */ - public void createConnectionProfile(com.google.cloud.clouddms.v1.CreateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update the configuration of a single connection profile.
-     * 
- */ - public void updateConnectionProfile(com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a single Database Migration Service connection profile.
-     * A connection profile can only be deleted if it is not in use by any
-     * active migration jobs.
-     * 
- */ - public void deleteConnectionProfile(com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Database Migration service
-   * 
- */ - public static final class DataMigrationServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private DataMigrationServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataMigrationServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataMigrationServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists migration jobs in a given project and location.
-     * 
- */ - public com.google.cloud.clouddms.v1.ListMigrationJobsResponse listMigrationJobs(com.google.cloud.clouddms.v1.ListMigrationJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMigrationJobsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details of a single migration job.
-     * 
- */ - public com.google.cloud.clouddms.v1.MigrationJob getMigrationJob(com.google.cloud.clouddms.v1.GetMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMigrationJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new migration job in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createMigrationJob(com.google.cloud.clouddms.v1.CreateMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateMigrationJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the parameters of a single migration job.
-     * 
- */ - public com.google.longrunning.Operation updateMigrationJob(com.google.cloud.clouddms.v1.UpdateMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateMigrationJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a single migration job.
-     * 
- */ - public com.google.longrunning.Operation deleteMigrationJob(com.google.cloud.clouddms.v1.DeleteMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteMigrationJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Start an already created migration job.
-     * 
- */ - public com.google.longrunning.Operation startMigrationJob(com.google.cloud.clouddms.v1.StartMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartMigrationJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Stops a running migration job.
-     * 
- */ - public com.google.longrunning.Operation stopMigrationJob(com.google.cloud.clouddms.v1.StopMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopMigrationJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Resume a migration job that is currently stopped and is resumable (was
-     * stopped during CDC phase).
-     * 
- */ - public com.google.longrunning.Operation resumeMigrationJob(com.google.cloud.clouddms.v1.ResumeMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResumeMigrationJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Promote a migration job, stopping replication to the destination and
-     * promoting the destination to be a standalone database.
-     * 
- */ - public com.google.longrunning.Operation promoteMigrationJob(com.google.cloud.clouddms.v1.PromoteMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPromoteMigrationJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Verify a migration job, making sure the destination can reach the source
-     * and that all configuration and prerequisites are met.
-     * 
- */ - public com.google.longrunning.Operation verifyMigrationJob(com.google.cloud.clouddms.v1.VerifyMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getVerifyMigrationJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Restart a stopped or failed migration job, resetting the destination
-     * instance to its original state and starting the migration process from
-     * scratch.
-     * 
- */ - public com.google.longrunning.Operation restartMigrationJob(com.google.cloud.clouddms.v1.RestartMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRestartMigrationJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Generate a SSH configuration script to configure the reverse SSH
-     * connectivity.
-     * 
- */ - public com.google.cloud.clouddms.v1.SshScript generateSshScript(com.google.cloud.clouddms.v1.GenerateSshScriptRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateSshScriptMethod(), getCallOptions(), request); - } - - /** - *
-     * Retrieve a list of all connection profiles in a given project and location.
-     * 
- */ - public com.google.cloud.clouddms.v1.ListConnectionProfilesResponse listConnectionProfiles(com.google.cloud.clouddms.v1.ListConnectionProfilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListConnectionProfilesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details of a single connection profile.
-     * 
- */ - public com.google.cloud.clouddms.v1.ConnectionProfile getConnectionProfile(com.google.cloud.clouddms.v1.GetConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConnectionProfileMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new connection profile in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createConnectionProfile(com.google.cloud.clouddms.v1.CreateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateConnectionProfileMethod(), getCallOptions(), request); - } - - /** - *
-     * Update the configuration of a single connection profile.
-     * 
- */ - public com.google.longrunning.Operation updateConnectionProfile(com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConnectionProfileMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a single Database Migration Service connection profile.
-     * A connection profile can only be deleted if it is not in use by any
-     * active migration jobs.
-     * 
- */ - public com.google.longrunning.Operation deleteConnectionProfile(com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteConnectionProfileMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Database Migration service
-   * 
- */ - public static final class DataMigrationServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private DataMigrationServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataMigrationServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataMigrationServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Lists migration jobs in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listMigrationJobs( - com.google.cloud.clouddms.v1.ListMigrationJobsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMigrationJobsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details of a single migration job.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getMigrationJob( - com.google.cloud.clouddms.v1.GetMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMigrationJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new migration job in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createMigrationJob( - com.google.cloud.clouddms.v1.CreateMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateMigrationJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the parameters of a single migration job.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateMigrationJob( - com.google.cloud.clouddms.v1.UpdateMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateMigrationJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a single migration job.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteMigrationJob( - com.google.cloud.clouddms.v1.DeleteMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteMigrationJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Start an already created migration job.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture startMigrationJob( - com.google.cloud.clouddms.v1.StartMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartMigrationJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Stops a running migration job.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture stopMigrationJob( - com.google.cloud.clouddms.v1.StopMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopMigrationJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Resume a migration job that is currently stopped and is resumable (was
-     * stopped during CDC phase).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture resumeMigrationJob( - com.google.cloud.clouddms.v1.ResumeMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResumeMigrationJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Promote a migration job, stopping replication to the destination and
-     * promoting the destination to be a standalone database.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture promoteMigrationJob( - com.google.cloud.clouddms.v1.PromoteMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPromoteMigrationJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Verify a migration job, making sure the destination can reach the source
-     * and that all configuration and prerequisites are met.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture verifyMigrationJob( - com.google.cloud.clouddms.v1.VerifyMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getVerifyMigrationJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Restart a stopped or failed migration job, resetting the destination
-     * instance to its original state and starting the migration process from
-     * scratch.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture restartMigrationJob( - com.google.cloud.clouddms.v1.RestartMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRestartMigrationJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Generate a SSH configuration script to configure the reverse SSH
-     * connectivity.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture generateSshScript( - com.google.cloud.clouddms.v1.GenerateSshScriptRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateSshScriptMethod(), getCallOptions()), request); - } - - /** - *
-     * Retrieve a list of all connection profiles in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listConnectionProfiles( - com.google.cloud.clouddms.v1.ListConnectionProfilesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details of a single connection profile.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getConnectionProfile( - com.google.cloud.clouddms.v1.GetConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new connection profile in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createConnectionProfile( - com.google.cloud.clouddms.v1.CreateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), request); - } - - /** - *
-     * Update the configuration of a single connection profile.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateConnectionProfile( - com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a single Database Migration Service connection profile.
-     * A connection profile can only be deleted if it is not in use by any
-     * active migration jobs.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteConnectionProfile( - com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_MIGRATION_JOBS = 0; - private static final int METHODID_GET_MIGRATION_JOB = 1; - private static final int METHODID_CREATE_MIGRATION_JOB = 2; - private static final int METHODID_UPDATE_MIGRATION_JOB = 3; - private static final int METHODID_DELETE_MIGRATION_JOB = 4; - private static final int METHODID_START_MIGRATION_JOB = 5; - private static final int METHODID_STOP_MIGRATION_JOB = 6; - private static final int METHODID_RESUME_MIGRATION_JOB = 7; - private static final int METHODID_PROMOTE_MIGRATION_JOB = 8; - private static final int METHODID_VERIFY_MIGRATION_JOB = 9; - private static final int METHODID_RESTART_MIGRATION_JOB = 10; - private static final int METHODID_GENERATE_SSH_SCRIPT = 11; - private static final int METHODID_LIST_CONNECTION_PROFILES = 12; - private static final int METHODID_GET_CONNECTION_PROFILE = 13; - private static final int METHODID_CREATE_CONNECTION_PROFILE = 14; - private static final int METHODID_UPDATE_CONNECTION_PROFILE = 15; - private static final int METHODID_DELETE_CONNECTION_PROFILE = 16; - - 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 DataMigrationServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(DataMigrationServiceImplBase 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_LIST_MIGRATION_JOBS: - serviceImpl.listMigrationJobs((com.google.cloud.clouddms.v1.ListMigrationJobsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_MIGRATION_JOB: - serviceImpl.getMigrationJob((com.google.cloud.clouddms.v1.GetMigrationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_MIGRATION_JOB: - serviceImpl.createMigrationJob((com.google.cloud.clouddms.v1.CreateMigrationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_MIGRATION_JOB: - serviceImpl.updateMigrationJob((com.google.cloud.clouddms.v1.UpdateMigrationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_MIGRATION_JOB: - serviceImpl.deleteMigrationJob((com.google.cloud.clouddms.v1.DeleteMigrationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_MIGRATION_JOB: - serviceImpl.startMigrationJob((com.google.cloud.clouddms.v1.StartMigrationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STOP_MIGRATION_JOB: - serviceImpl.stopMigrationJob((com.google.cloud.clouddms.v1.StopMigrationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESUME_MIGRATION_JOB: - serviceImpl.resumeMigrationJob((com.google.cloud.clouddms.v1.ResumeMigrationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PROMOTE_MIGRATION_JOB: - serviceImpl.promoteMigrationJob((com.google.cloud.clouddms.v1.PromoteMigrationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_VERIFY_MIGRATION_JOB: - serviceImpl.verifyMigrationJob((com.google.cloud.clouddms.v1.VerifyMigrationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESTART_MIGRATION_JOB: - serviceImpl.restartMigrationJob((com.google.cloud.clouddms.v1.RestartMigrationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GENERATE_SSH_SCRIPT: - serviceImpl.generateSshScript((com.google.cloud.clouddms.v1.GenerateSshScriptRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CONNECTION_PROFILES: - serviceImpl.listConnectionProfiles((com.google.cloud.clouddms.v1.ListConnectionProfilesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CONNECTION_PROFILE: - serviceImpl.getConnectionProfile((com.google.cloud.clouddms.v1.GetConnectionProfileRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CONNECTION_PROFILE: - serviceImpl.createConnectionProfile((com.google.cloud.clouddms.v1.CreateConnectionProfileRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CONNECTION_PROFILE: - serviceImpl.updateConnectionProfile((com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CONNECTION_PROFILE: - serviceImpl.deleteConnectionProfile((com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest) 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 DataMigrationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - DataMigrationServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("DataMigrationService"); - } - } - - private static final class DataMigrationServiceFileDescriptorSupplier - extends DataMigrationServiceBaseDescriptorSupplier { - DataMigrationServiceFileDescriptorSupplier() {} - } - - private static final class DataMigrationServiceMethodDescriptorSupplier - extends DataMigrationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - DataMigrationServiceMethodDescriptorSupplier(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 (DataMigrationServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DataMigrationServiceFileDescriptorSupplier()) - .addMethod(getListMigrationJobsMethod()) - .addMethod(getGetMigrationJobMethod()) - .addMethod(getCreateMigrationJobMethod()) - .addMethod(getUpdateMigrationJobMethod()) - .addMethod(getDeleteMigrationJobMethod()) - .addMethod(getStartMigrationJobMethod()) - .addMethod(getStopMigrationJobMethod()) - .addMethod(getResumeMigrationJobMethod()) - .addMethod(getPromoteMigrationJobMethod()) - .addMethod(getVerifyMigrationJobMethod()) - .addMethod(getRestartMigrationJobMethod()) - .addMethod(getGenerateSshScriptMethod()) - .addMethod(getListConnectionProfilesMethod()) - .addMethod(getGetConnectionProfileMethod()) - .addMethod(getCreateConnectionProfileMethod()) - .addMethod(getUpdateConnectionProfileMethod()) - .addMethod(getDeleteConnectionProfileMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsProto.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsProto.java deleted file mode 100644 index 85d56ae1..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsProto.java +++ /dev/null @@ -1,505 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/clouddms/v1/clouddms.proto - -package com.google.cloud.clouddms.v1; - -public final class ClouddmsProto { - private ClouddmsProto() {} - 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_clouddms_v1_ListMigrationJobsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_VmCreationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_VmCreationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_VmSelectionConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_VmSelectionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_SshScript_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_SshScript_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\'google/cloud/clouddms/v1/clouddms.prot" + - "o\022\030google.cloud.clouddms.v1\032\034google/api/" + - "annotations.proto\032\027google/api/client.pro" + - "to\032\037google/api/field_behavior.proto\032\031goo" + - "gle/api/resource.proto\0321google/cloud/clo" + - "uddms/v1/clouddms_resources.proto\032#googl" + - "e/longrunning/operations.proto\032 google/p" + - "rotobuf/field_mask.proto\032\037google/protobu" + - "f/timestamp.proto\"\246\001\n\030ListMigrationJobsR" + - "equest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)datamigr" + - "ation.googleapis.com/MigrationJob\022\021\n\tpag" + - "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filt" + - "er\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\211\001\n\031ListMigra" + - "tionJobsResponse\022>\n\016migration_jobs\030\001 \003(\013" + - "2&.google.cloud.clouddms.v1.MigrationJob" + - "\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachable" + - "\030\003 \003(\t\"Y\n\026GetMigrationJobRequest\022?\n\004name" + - "\030\001 \001(\tB1\340A\002\372A+\n)datamigration.googleapis" + - ".com/MigrationJob\"\325\001\n\031CreateMigrationJob" + - "Request\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)datamig" + - "ration.googleapis.com/MigrationJob\022\035\n\020mi" + - "gration_job_id\030\002 \001(\tB\003\340A\002\022B\n\rmigration_j" + - "ob\030\003 \001(\0132&.google.cloud.clouddms.v1.Migr" + - "ationJobB\003\340A\002\022\022\n\nrequest_id\030\004 \001(\t\"\251\001\n\031Up" + - "dateMigrationJobRequest\0224\n\013update_mask\030\001" + - " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022B\n" + - "\rmigration_job\030\002 \001(\0132&.google.cloud.clou" + - "ddms.v1.MigrationJobB\003\340A\002\022\022\n\nrequest_id\030" + - "\003 \001(\t\"\177\n\031DeleteMigrationJobRequest\022?\n\004na" + - "me\030\001 \001(\tB1\340A\002\372A+\n)datamigration.googleap" + - "is.com/MigrationJob\022\022\n\nrequest_id\030\002 \001(\t\022" + - "\r\n\005force\030\003 \001(\010\"X\n\030StartMigrationJobReque" + - "st\022<\n\004name\030\001 \001(\tB.\372A+\n)datamigration.goo" + - "gleapis.com/MigrationJob\"W\n\027StopMigratio" + - "nJobRequest\022<\n\004name\030\001 \001(\tB.\372A+\n)datamigr" + - "ation.googleapis.com/MigrationJob\"Y\n\031Res" + - "umeMigrationJobRequest\022<\n\004name\030\001 \001(\tB.\372A" + - "+\n)datamigration.googleapis.com/Migratio" + - "nJob\"Z\n\032PromoteMigrationJobRequest\022<\n\004na" + - "me\030\001 \001(\tB.\372A+\n)datamigration.googleapis." + - "com/MigrationJob\"Y\n\031VerifyMigrationJobRe" + - "quest\022<\n\004name\030\001 \001(\tB.\372A+\n)datamigration." + - "googleapis.com/MigrationJob\"Z\n\032RestartMi" + - "grationJobRequest\022<\n\004name\030\001 \001(\tB.\372A+\n)da" + - "tamigration.googleapis.com/MigrationJob\"" + - "\246\002\n\030GenerateSshScriptRequest\022E\n\rmigratio" + - "n_job\030\001 \001(\tB.\372A+\n)datamigration.googleap" + - "is.com/MigrationJob\022\017\n\002vm\030\002 \001(\tB\003\340A\002\022H\n\022" + - "vm_creation_config\030d \001(\0132*.google.cloud." + - "clouddms.v1.VmCreationConfigH\000\022J\n\023vm_sel" + - "ection_config\030e \001(\0132+.google.cloud.cloud" + - "dms.v1.VmSelectionConfigH\000\022\017\n\007vm_port\030\003 " + - "\001(\005B\013\n\tvm_config\"Q\n\020VmCreationConfig\022\034\n\017" + - "vm_machine_type\030\001 \001(\tB\003\340A\002\022\017\n\007vm_zone\030\002 " + - "\001(\t\022\016\n\006subnet\030\003 \001(\t\")\n\021VmSelectionConfig" + - "\022\024\n\007vm_zone\030\001 \001(\tB\003\340A\002\"\033\n\tSshScript\022\016\n\006s" + - "cript\030\001 \001(\t\"\260\001\n\035ListConnectionProfilesRe" + - "quest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.datamigra" + - "tion.googleapis.com/ConnectionProfile\022\021\n" + - "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006" + - "filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\230\001\n\036ListC" + - "onnectionProfilesResponse\022H\n\023connection_" + - "profiles\030\001 \003(\0132+.google.cloud.clouddms.v" + - "1.ConnectionProfile\022\027\n\017next_page_token\030\002" + - " \001(\t\022\023\n\013unreachable\030\003 \003(\t\"c\n\033GetConnecti" + - "onProfileRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n." + - "datamigration.googleapis.com/ConnectionP" + - "rofile\"\356\001\n\036CreateConnectionProfileReques" + - "t\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.datamigration" + - ".googleapis.com/ConnectionProfile\022\"\n\025con" + - "nection_profile_id\030\002 \001(\tB\003\340A\002\022L\n\022connect" + - "ion_profile\030\003 \001(\0132+.google.cloud.clouddm" + - "s.v1.ConnectionProfileB\003\340A\002\022\022\n\nrequest_i" + - "d\030\004 \001(\t\"\270\001\n\036UpdateConnectionProfileReque" + - "st\0224\n\013update_mask\030\001 \001(\0132\032.google.protobu" + - "f.FieldMaskB\003\340A\002\022L\n\022connection_profile\030\002" + - " \001(\0132+.google.cloud.clouddms.v1.Connecti" + - "onProfileB\003\340A\002\022\022\n\nrequest_id\030\003 \001(\t\"\211\001\n\036D" + - "eleteConnectionProfileRequest\022D\n\004name\030\001 " + - "\001(\tB6\340A\002\372A0\n.datamigration.googleapis.co" + - "m/ConnectionProfile\022\022\n\nrequest_id\030\002 \001(\t\022" + - "\r\n\005force\030\003 \001(\010\"\200\002\n\021OperationMetadata\0224\n\013" + - "create_time\030\001 \001(\0132\032.google.protobuf.Time" + - "stampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.pr" + - "otobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340" + - "A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message\030" + - "\005 \001(\tB\003\340A\003\022#\n\026requested_cancellation\030\006 \001" + - "(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\0032\310\036\n\024Da" + - "taMigrationService\022\300\001\n\021ListMigrationJobs" + - "\0222.google.cloud.clouddms.v1.ListMigratio" + - "nJobsRequest\0323.google.cloud.clouddms.v1." + - "ListMigrationJobsResponse\"B\202\323\344\223\0023\0221/v1/{" + - "parent=projects/*/locations/*}/migration" + - "Jobs\332A\006parent\022\255\001\n\017GetMigrationJob\0220.goog" + - "le.cloud.clouddms.v1.GetMigrationJobRequ" + - "est\032&.google.cloud.clouddms.v1.Migration" + - "Job\"@\202\323\344\223\0023\0221/v1/{name=projects/*/locati" + - "ons/*/migrationJobs/*}\332A\004name\022\377\001\n\022Create" + - "MigrationJob\0223.google.cloud.clouddms.v1." + - "CreateMigrationJobRequest\032\035.google.longr" + - "unning.Operation\"\224\001\202\323\344\223\002B\"1/v1/{parent=p" + - "rojects/*/locations/*}/migrationJobs:\rmi" + - "gration_job\332A%parent,migration_job,migra" + - "tion_job_id\312A!\n\014MigrationJob\022\021OperationM" + - "etadata\022\201\002\n\022UpdateMigrationJob\0223.google." + - "cloud.clouddms.v1.UpdateMigrationJobRequ" + - "est\032\035.google.longrunning.Operation\"\226\001\202\323\344" + - "\223\002P2?/v1/{migration_job.name=projects/*/" + - "locations/*/migrationJobs/*}:\rmigration_" + - "job\332A\031migration_job,update_mask\312A!\n\014Migr" + - "ationJob\022\021OperationMetadata\022\327\001\n\022DeleteMi" + - "grationJob\0223.google.cloud.clouddms.v1.De" + - "leteMigrationJobRequest\032\035.google.longrun" + - "ning.Operation\"m\202\323\344\223\0023*1/v1/{name=projec" + - "ts/*/locations/*/migrationJobs/*}\332A\004name" + - "\312A*\n\025google.protobuf.Empty\022\021OperationMet" + - "adata\022\316\001\n\021StartMigrationJob\0222.google.clo" + - "ud.clouddms.v1.StartMigrationJobRequest\032" + - "\035.google.longrunning.Operation\"f\202\323\344\223\002<\"7" + - "/v1/{name=projects/*/locations/*/migrati" + - "onJobs/*}:start:\001*\312A!\n\014MigrationJob\022\021Ope" + - "rationMetadata\022\313\001\n\020StopMigrationJob\0221.go" + - "ogle.cloud.clouddms.v1.StopMigrationJobR" + - "equest\032\035.google.longrunning.Operation\"e\202" + - "\323\344\223\002;\"6/v1/{name=projects/*/locations/*/" + - "migrationJobs/*}:stop:\001*\312A!\n\014MigrationJo" + - "b\022\021OperationMetadata\022\321\001\n\022ResumeMigration" + - "Job\0223.google.cloud.clouddms.v1.ResumeMig" + - "rationJobRequest\032\035.google.longrunning.Op" + - "eration\"g\202\323\344\223\002=\"8/v1/{name=projects/*/lo" + - "cations/*/migrationJobs/*}:resume:\001*\312A!\n" + - "\014MigrationJob\022\021OperationMetadata\022\324\001\n\023Pro" + - "moteMigrationJob\0224.google.cloud.clouddms" + - ".v1.PromoteMigrationJobRequest\032\035.google." + - "longrunning.Operation\"h\202\323\344\223\002>\"9/v1/{name" + - "=projects/*/locations/*/migrationJobs/*}" + - ":promote:\001*\312A!\n\014MigrationJob\022\021OperationM" + - "etadata\022\321\001\n\022VerifyMigrationJob\0223.google." + - "cloud.clouddms.v1.VerifyMigrationJobRequ" + - "est\032\035.google.longrunning.Operation\"g\202\323\344\223" + - "\002=\"8/v1/{name=projects/*/locations/*/mig" + - "rationJobs/*}:verify:\001*\312A!\n\014MigrationJob" + - "\022\021OperationMetadata\022\324\001\n\023RestartMigration" + - "Job\0224.google.cloud.clouddms.v1.RestartMi" + - "grationJobRequest\032\035.google.longrunning.O" + - "peration\"h\202\323\344\223\002>\"9/v1/{name=projects/*/l" + - "ocations/*/migrationJobs/*}:restart:\001*\312A" + - "!\n\014MigrationJob\022\021OperationMetadata\022\305\001\n\021G" + - "enerateSshScript\0222.google.cloud.clouddms" + - ".v1.GenerateSshScriptRequest\032#.google.cl" + - "oud.clouddms.v1.SshScript\"W\202\323\344\223\002Q\"L/v1/{" + - "migration_job=projects/*/locations/*/mig" + - "rationJobs/*}:generateSshScript:\001*\022\324\001\n\026L" + - "istConnectionProfiles\0227.google.cloud.clo" + - "uddms.v1.ListConnectionProfilesRequest\0328" + - ".google.cloud.clouddms.v1.ListConnection" + - "ProfilesResponse\"G\202\323\344\223\0028\0226/v1/{parent=pr" + - "ojects/*/locations/*}/connectionProfiles" + - "\332A\006parent\022\301\001\n\024GetConnectionProfile\0225.goo" + - "gle.cloud.clouddms.v1.GetConnectionProfi" + - "leRequest\032+.google.cloud.clouddms.v1.Con" + - "nectionProfile\"E\202\323\344\223\0028\0226/v1/{name=projec" + - "ts/*/locations/*/connectionProfiles/*}\332A" + - "\004name\022\242\002\n\027CreateConnectionProfile\0228.goog" + - "le.cloud.clouddms.v1.CreateConnectionPro" + - "fileRequest\032\035.google.longrunning.Operati" + - "on\"\255\001\202\323\344\223\002L\"6/v1/{parent=projects/*/loca" + - "tions/*}/connectionProfiles:\022connection_" + - "profile\332A/parent,connection_profile,conn" + - "ection_profile_id\312A&\n\021ConnectionProfile\022" + - "\021OperationMetadata\022\244\002\n\027UpdateConnectionP" + - "rofile\0228.google.cloud.clouddms.v1.Update" + - "ConnectionProfileRequest\032\035.google.longru" + - "nning.Operation\"\257\001\202\323\344\223\002_2I/v1/{connectio" + - "n_profile.name=projects/*/locations/*/co" + - "nnectionProfiles/*}:\022connection_profile\332" + - "A\036connection_profile,update_mask\312A&\n\021Con" + - "nectionProfile\022\021OperationMetadata\022\346\001\n\027De" + - "leteConnectionProfile\0228.google.cloud.clo" + - "uddms.v1.DeleteConnectionProfileRequest\032" + - "\035.google.longrunning.Operation\"r\202\323\344\223\0028*6" + - "/v1/{name=projects/*/locations/*/connect" + - "ionProfiles/*}\332A\004name\312A*\n\025google.protobu" + - "f.Empty\022\021OperationMetadata\032P\312A\034datamigra" + - "tion.googleapis.com\322A.https://www.google" + - "apis.com/auth/cloud-platformB\305\001\n\034com.goo" + - "gle.cloud.clouddms.v1B\rClouddmsProtoP\001Z@" + - "google.golang.org/genproto/googleapis/cl" + - "oud/clouddms/v1;clouddms\252\002\030Google.Cloud." + - "CloudDms.V1\312\002\030Google\\Cloud\\CloudDms\\V1\352\002" + - "\033Google::Cloud::CloudDMS::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.clouddms.v1.ClouddmsResourcesProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_descriptor, - new java.lang.String[] { "MigrationJobs", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_descriptor, - new java.lang.String[] { "Parent", "MigrationJobId", "MigrationJob", "RequestId", }); - internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_descriptor, - new java.lang.String[] { "UpdateMask", "MigrationJob", "RequestId", }); - internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_descriptor, - new java.lang.String[] { "Name", "RequestId", "Force", }); - internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_descriptor, - new java.lang.String[] { "MigrationJob", "Vm", "VmCreationConfig", "VmSelectionConfig", "VmPort", "VmConfig", }); - internal_static_google_cloud_clouddms_v1_VmCreationConfig_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_clouddms_v1_VmCreationConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_VmCreationConfig_descriptor, - new java.lang.String[] { "VmMachineType", "VmZone", "Subnet", }); - internal_static_google_cloud_clouddms_v1_VmSelectionConfig_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_clouddms_v1_VmSelectionConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_VmSelectionConfig_descriptor, - new java.lang.String[] { "VmZone", }); - internal_static_google_cloud_clouddms_v1_SshScript_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_clouddms_v1_SshScript_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_SshScript_descriptor, - new java.lang.String[] { "Script", }); - internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_descriptor, - new java.lang.String[] { "ConnectionProfiles", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_descriptor, - new java.lang.String[] { "Parent", "ConnectionProfileId", "ConnectionProfile", "RequestId", }); - internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor, - new java.lang.String[] { "UpdateMask", "ConnectionProfile", "RequestId", }); - internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor, - new java.lang.String[] { "Name", "RequestId", "Force", }); - internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_clouddms_v1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); - 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.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - 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.clouddms.v1.ClouddmsResourcesProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java deleted file mode 100644 index 1a345b59..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java +++ /dev/null @@ -1,425 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/clouddms/v1/clouddms_resources.proto - -package com.google.cloud.clouddms.v1; - -public final class ClouddmsResourcesProto { - private ClouddmsResourcesProto() {} - 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_clouddms_v1_SslConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_SslConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_SqlAclEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_SqlAclEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_SqlIpConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_SqlIpConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_UserLabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_UserLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_DatabaseFlagsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_DatabaseFlagsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_DatabaseType_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_DatabaseType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_MigrationJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_ConnectionProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_ConnectionProfile_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_ConnectionProfile_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/clouddms/v1/clouddms_reso" + - "urces.proto\022\030google.cloud.clouddms.v1\032\037g" + - "oogle/api/field_behavior.proto\032\031google/a" + - "pi/resource.proto\032\036google/protobuf/durat" + - "ion.proto\032\037google/protobuf/timestamp.pro" + - "to\032\036google/protobuf/wrappers.proto\032\027goog" + - "le/rpc/status.proto\032\034google/api/annotati" + - "ons.proto\"\356\001\n\tSslConfig\022>\n\004type\030\001 \001(\0162+." + - "google.cloud.clouddms.v1.SslConfig.SslTy" + - "peB\003\340A\003\022\027\n\nclient_key\030\002 \001(\tB\003\340A\004\022\037\n\022clie" + - "nt_certificate\030\003 \001(\tB\003\340A\004\022\036\n\016ca_certific" + - "ate\030\004 \001(\tB\006\340A\004\340A\002\"G\n\007SslType\022\030\n\024SSL_TYPE" + - "_UNSPECIFIED\020\000\022\017\n\013SERVER_ONLY\020\001\022\021\n\rSERVE" + - "R_CLIENT\020\002\"\322\001\n\026MySqlConnectionProfile\022\021\n" + - "\004host\030\001 \001(\tB\003\340A\002\022\021\n\004port\030\002 \001(\005B\003\340A\002\022\025\n\010u" + - "sername\030\003 \001(\tB\003\340A\002\022\030\n\010password\030\004 \001(\tB\006\340A" + - "\004\340A\002\022\031\n\014password_set\030\005 \001(\010B\003\340A\003\0220\n\003ssl\030\006" + - " \001(\0132#.google.cloud.clouddms.v1.SslConfi" + - "g\022\024\n\014cloud_sql_id\030\007 \001(\t\"\327\001\n\033PostgreSqlCo" + - "nnectionProfile\022\021\n\004host\030\001 \001(\tB\003\340A\002\022\021\n\004po" + - "rt\030\002 \001(\005B\003\340A\002\022\025\n\010username\030\003 \001(\tB\003\340A\002\022\030\n\010" + - "password\030\004 \001(\tB\006\340A\004\340A\002\022\031\n\014password_set\030\005" + - " \001(\010B\003\340A\003\0220\n\003ssl\030\006 \001(\0132#.google.cloud.cl" + - "ouddms.v1.SslConfig\022\024\n\014cloud_sql_id\030\007 \001(" + - "\t\"\252\001\n\031CloudSqlConnectionProfile\022\031\n\014cloud" + - "_sql_id\030\001 \001(\tB\003\340A\003\022A\n\010settings\030\002 \001(\0132*.g" + - "oogle.cloud.clouddms.v1.CloudSqlSettings" + - "B\003\340A\005\022\027\n\nprivate_ip\030\003 \001(\tB\003\340A\003\022\026\n\tpublic" + - "_ip\030\004 \001(\tB\003\340A\003\"\233\001\n\013SqlAclEntry\022\r\n\005value\030" + - "\001 \001(\t\0221\n\013expire_time\030\n \001(\0132\032.google.prot" + - "obuf.TimestampH\000\022-\n\003ttl\030\013 \001(\0132\031.google.p" + - "rotobuf.DurationB\003\340A\004H\000\022\r\n\005label\030\003 \001(\tB\014" + - "\n\nexpiration\"\314\001\n\013SqlIpConfig\022/\n\013enable_i" + - "pv4\030\001 \001(\0132\032.google.protobuf.BoolValue\022\027\n" + - "\017private_network\030\002 \001(\t\022/\n\013require_ssl\030\003 " + - "\001(\0132\032.google.protobuf.BoolValue\022B\n\023autho" + - "rized_networks\030\004 \003(\0132%.google.cloud.clou" + - "ddms.v1.SqlAclEntry\"\372\t\n\020CloudSqlSettings" + - "\022W\n\020database_version\030\001 \001(\0162=.google.clou" + - "d.clouddms.v1.CloudSqlSettings.SqlDataba" + - "seVersion\022O\n\013user_labels\030\002 \003(\0132:.google." + - "cloud.clouddms.v1.CloudSqlSettings.UserL" + - "abelsEntry\022\014\n\004tier\030\003 \001(\t\022>\n\031storage_auto" + - "_resize_limit\030\004 \001(\0132\033.google.protobuf.In" + - "t64Value\022Y\n\021activation_policy\030\005 \001(\0162>.go" + - "ogle.cloud.clouddms.v1.CloudSqlSettings." + - "SqlActivationPolicy\0228\n\tip_config\030\006 \001(\0132%" + - ".google.cloud.clouddms.v1.SqlIpConfig\0229\n" + - "\025auto_storage_increase\030\007 \001(\0132\032.google.pr" + - "otobuf.BoolValue\022U\n\016database_flags\030\010 \003(\013" + - "2=.google.cloud.clouddms.v1.CloudSqlSett" + - "ings.DatabaseFlagsEntry\022R\n\016data_disk_typ" + - "e\030\t \001(\0162:.google.cloud.clouddms.v1.Cloud" + - "SqlSettings.SqlDataDiskType\0226\n\021data_disk" + - "_size_gb\030\n \001(\0132\033.google.protobuf.Int64Va" + - "lue\022\014\n\004zone\030\013 \001(\t\022\021\n\tsource_id\030\014 \001(\t\022\032\n\r" + - "root_password\030\r \001(\tB\003\340A\004\022\036\n\021root_passwor" + - "d_set\030\016 \001(\010B\003\340A\003\022\021\n\tcollation\030\017 \001(\t\0321\n\017U" + - "serLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + - "(\t:\0028\001\0324\n\022DatabaseFlagsEntry\022\013\n\003key\030\001 \001(" + - "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"S\n\023SqlActivationPol" + - "icy\022%\n!SQL_ACTIVATION_POLICY_UNSPECIFIED" + - "\020\000\022\n\n\006ALWAYS\020\001\022\t\n\005NEVER\020\002\"M\n\017SqlDataDisk" + - "Type\022\"\n\036SQL_DATA_DISK_TYPE_UNSPECIFIED\020\000" + - "\022\n\n\006PD_SSD\020\001\022\n\n\006PD_HDD\020\002\"\275\001\n\022SqlDatabase" + - "Version\022$\n SQL_DATABASE_VERSION_UNSPECIF" + - "IED\020\000\022\r\n\tMYSQL_5_6\020\001\022\r\n\tMYSQL_5_7\020\002\022\020\n\014P" + - "OSTGRES_9_6\020\003\022\017\n\013POSTGRES_11\020\004\022\017\n\013POSTGR" + - "ES_10\020\005\022\r\n\tMYSQL_8_0\020\006\022\017\n\013POSTGRES_12\020\007\022" + - "\017\n\013POSTGRES_13\020\010\"\026\n\024StaticIpConnectivity" + - "\"[\n\026ReverseSshConnectivity\022\022\n\005vm_ip\030\001 \001(" + - "\tB\003\340A\002\022\024\n\007vm_port\030\002 \001(\005B\003\340A\002\022\n\n\002vm\030\003 \001(\t" + - "\022\013\n\003vpc\030\004 \001(\t\"%\n\026VpcPeeringConnectivity\022" + - "\013\n\003vpc\030\001 \001(\t\"\206\001\n\014DatabaseType\022<\n\010provide" + - "r\030\001 \001(\0162*.google.cloud.clouddms.v1.Datab" + - "aseProvider\0228\n\006engine\030\002 \001(\0162(.google.clo" + - "ud.clouddms.v1.DatabaseEngine\"\354\014\n\014Migrat" + - "ionJob\022\014\n\004name\030\001 \001(\t\0224\n\013create_time\030\002 \001(" + - "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" + - "date_time\030\003 \001(\0132\032.google.protobuf.Timest" + - "ampB\003\340A\003\022B\n\006labels\030\004 \003(\01322.google.cloud." + - "clouddms.v1.MigrationJob.LabelsEntry\022\024\n\014" + - "display_name\030\005 \001(\t\022;\n\005state\030\006 \001(\0162,.goog" + - "le.cloud.clouddms.v1.MigrationJob.State\022" + - "@\n\005phase\030\007 \001(\0162,.google.cloud.clouddms.v" + - "1.MigrationJob.PhaseB\003\340A\003\022>\n\004type\030\010 \001(\0162" + - "+.google.cloud.clouddms.v1.MigrationJob." + - "TypeB\003\340A\002\022\021\n\tdump_path\030\t \001(\t\022\023\n\006source\030\n" + - " \001(\tB\003\340A\002\022\030\n\013destination\030\013 \001(\tB\003\340A\002\022T\n\030r" + - "everse_ssh_connectivity\030e \001(\01320.google.c" + - "loud.clouddms.v1.ReverseSshConnectivityH" + - "\000\022T\n\030vpc_peering_connectivity\030f \001(\01320.go" + - "ogle.cloud.clouddms.v1.VpcPeeringConnect" + - "ivityH\000\022P\n\026static_ip_connectivity\030g \001(\0132" + - "..google.cloud.clouddms.v1.StaticIpConne" + - "ctivityH\000\0220\n\010duration\030\014 \001(\0132\031.google.pro" + - "tobuf.DurationB\003\340A\003\022&\n\005error\030\r \001(\0132\022.goo" + - "gle.rpc.StatusB\003\340A\003\022?\n\017source_database\030\016" + - " \001(\0132&.google.cloud.clouddms.v1.Database" + - "Type\022D\n\024destination_database\030\017 \001(\0132&.goo" + - "gle.cloud.clouddms.v1.DatabaseType\0221\n\010en" + - "d_time\030\020 \001(\0132\032.google.protobuf.Timestamp" + - "B\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + - "ue\030\002 \001(\t:\0028\001\"\361\001\n\005State\022\025\n\021STATE_UNSPECIF" + - "IED\020\000\022\017\n\013MAINTENANCE\020\001\022\t\n\005DRAFT\020\002\022\014\n\010CRE" + - "ATING\020\003\022\017\n\013NOT_STARTED\020\004\022\013\n\007RUNNING\020\005\022\n\n" + - "\006FAILED\020\006\022\r\n\tCOMPLETED\020\007\022\014\n\010DELETING\020\010\022\014" + - "\n\010STOPPING\020\t\022\013\n\007STOPPED\020\n\022\013\n\007DELETED\020\013\022\014" + - "\n\010UPDATING\020\014\022\014\n\010STARTING\020\r\022\016\n\nRESTARTING" + - "\020\016\022\014\n\010RESUMING\020\017\"\216\001\n\005Phase\022\025\n\021PHASE_UNSP" + - "ECIFIED\020\000\022\r\n\tFULL_DUMP\020\001\022\007\n\003CDC\020\002\022\027\n\023PRO" + - "MOTE_IN_PROGRESS\020\003\022%\n!WAITING_FOR_SOURCE" + - "_WRITES_TO_STOP\020\004\022\026\n\022PREPARING_THE_DUMP\020" + - "\005\":\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\014\n\010ONE_T" + - "IME\020\001\022\016\n\nCONTINUOUS\020\002:u\352Ar\n)datamigratio" + - "n.googleapis.com/MigrationJob\022Eprojects/" + - "{project}/locations/{location}/migration" + - "Jobs/{migration_job}B\016\n\014connectivity\"\263\007\n" + - "\021ConnectionProfile\022\014\n\004name\030\001 \001(\t\0224\n\013crea" + - "te_time\030\002 \001(\0132\032.google.protobuf.Timestam" + - "pB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.pro" + - "tobuf.TimestampB\003\340A\003\022G\n\006labels\030\004 \003(\01327.g" + - "oogle.cloud.clouddms.v1.ConnectionProfil" + - "e.LabelsEntry\022@\n\005state\030\005 \001(\01621.google.cl" + - "oud.clouddms.v1.ConnectionProfile.State\022" + - "\024\n\014display_name\030\006 \001(\t\022A\n\005mysql\030d \001(\01320.g" + - "oogle.cloud.clouddms.v1.MySqlConnectionP" + - "rofileH\000\022K\n\npostgresql\030e \001(\01325.google.cl" + - "oud.clouddms.v1.PostgreSqlConnectionProf" + - "ileH\000\022G\n\010cloudsql\030f \001(\01323.google.cloud.c" + - "louddms.v1.CloudSqlConnectionProfileH\000\022&" + - "\n\005error\030\007 \001(\0132\022.google.rpc.StatusB\003\340A\003\022<" + - "\n\010provider\030\010 \001(\0162*.google.cloud.clouddms" + - ".v1.DatabaseProvider\032-\n\013LabelsEntry\022\013\n\003k" + - "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n\005State\022\025\n\021" + - "STATE_UNSPECIFIED\020\000\022\t\n\005DRAFT\020\001\022\014\n\010CREATI" + - "NG\020\002\022\t\n\005READY\020\003\022\014\n\010UPDATING\020\004\022\014\n\010DELETIN" + - "G\020\005\022\013\n\007DELETED\020\006\022\n\n\006FAILED\020\007:\205\001\352A\201\001\n.dat" + - "amigration.googleapis.com/ConnectionProf" + - "ile\022Oprojects/{project}/locations/{locat" + - "ion}/connectionProfiles/{connection_prof" + - "ile}B\024\n\022connection_profile\"\320\006\n\035Migration" + - "JobVerificationError\022Z\n\nerror_code\030\001 \001(\016" + - "2A.google.cloud.clouddms.v1.MigrationJob" + - "VerificationError.ErrorCodeB\003\340A\003\022\032\n\rerro" + - "r_message\030\002 \001(\tB\003\340A\003\022!\n\024error_detail_mes" + - "sage\030\003 \001(\tB\003\340A\003\"\223\005\n\tErrorCode\022\032\n\026ERROR_C" + - "ODE_UNSPECIFIED\020\000\022\026\n\022CONNECTION_FAILURE\020" + - "\001\022\032\n\026AUTHENTICATION_FAILURE\020\002\022%\n!INVALID" + - "_CONNECTION_PROFILE_CONFIG\020\003\022\033\n\027VERSION_" + - "INCOMPATIBILITY\020\004\022,\n(CONNECTION_PROFILE_" + - "TYPES_INCOMPATIBILITY\020\005\022\032\n\026NO_PGLOGICAL_" + - "INSTALLED\020\007\022!\n\035PGLOGICAL_NODE_ALREADY_EX" + - "ISTS\020\010\022\025\n\021INVALID_WAL_LEVEL\020\t\022\"\n\036INVALID" + - "_SHARED_PRELOAD_LIBRARY\020\n\022&\n\"INSUFFICIEN" + - "T_MAX_REPLICATION_SLOTS\020\013\022 \n\034INSUFFICIEN" + - "T_MAX_WAL_SENDERS\020\014\022%\n!INSUFFICIENT_MAX_" + - "WORKER_PROCESSES\020\r\022\032\n\026UNSUPPORTED_EXTENS" + - "IONS\020\016\022\036\n\032UNSUPPORTED_MIGRATION_TYPE\020\017\022#" + - "\n\037INVALID_RDS_LOGICAL_REPLICATION\020\020\022\031\n\025U" + - "NSUPPORTED_GTID_MODE\020\021\022 \n\034UNSUPPORTED_TA" + - "BLE_DEFINITION\020\022\022\027\n\023UNSUPPORTED_DEFINER\020" + - "\023\022\"\n\036CANT_RESTART_RUNNING_MIGRATION\020\025*L\n" + - "\016DatabaseEngine\022\037\n\033DATABASE_ENGINE_UNSPE" + - "CIFIED\020\000\022\t\n\005MYSQL\020\001\022\016\n\nPOSTGRESQL\020\002*L\n\020D" + - "atabaseProvider\022!\n\035DATABASE_PROVIDER_UNS" + - "PECIFIED\020\000\022\014\n\010CLOUDSQL\020\001\022\007\n\003RDS\020\002B\316\001\n\034co" + - "m.google.cloud.clouddms.v1B\026ClouddmsReso" + - "urcesProtoP\001Z@google.golang.org/genproto" + - "/googleapis/cloud/clouddms/v1;clouddms\252\002" + - "\030Google.Cloud.CloudDms.V1\312\002\030Google\\Cloud" + - "\\CloudDms\\V1\352\002\033Google::Cloud::CloudDMS::" + - "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.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_clouddms_v1_SslConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_clouddms_v1_SslConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_SslConfig_descriptor, - new java.lang.String[] { "Type", "ClientKey", "ClientCertificate", "CaCertificate", }); - internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_descriptor, - new java.lang.String[] { "Host", "Port", "Username", "Password", "PasswordSet", "Ssl", "CloudSqlId", }); - internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_descriptor, - new java.lang.String[] { "Host", "Port", "Username", "Password", "PasswordSet", "Ssl", "CloudSqlId", }); - internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor, - new java.lang.String[] { "CloudSqlId", "Settings", "PrivateIp", "PublicIp", }); - internal_static_google_cloud_clouddms_v1_SqlAclEntry_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_clouddms_v1_SqlAclEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_SqlAclEntry_descriptor, - new java.lang.String[] { "Value", "ExpireTime", "Ttl", "Label", "Expiration", }); - internal_static_google_cloud_clouddms_v1_SqlIpConfig_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_clouddms_v1_SqlIpConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_SqlIpConfig_descriptor, - new java.lang.String[] { "EnableIpv4", "PrivateNetwork", "RequireSsl", "AuthorizedNetworks", }); - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor, - new java.lang.String[] { "DatabaseVersion", "UserLabels", "Tier", "StorageAutoResizeLimit", "ActivationPolicy", "IpConfig", "AutoStorageIncrease", "DatabaseFlags", "DataDiskType", "DataDiskSizeGb", "Zone", "SourceId", "RootPassword", "RootPasswordSet", "Collation", }); - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_UserLabelsEntry_descriptor = - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_UserLabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_UserLabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_DatabaseFlagsEntry_descriptor = - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_DatabaseFlagsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_CloudSqlSettings_DatabaseFlagsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_descriptor, - new java.lang.String[] { "VmIp", "VmPort", "Vm", "Vpc", }); - internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_descriptor, - new java.lang.String[] { "Vpc", }); - internal_static_google_cloud_clouddms_v1_DatabaseType_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_clouddms_v1_DatabaseType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_DatabaseType_descriptor, - new java.lang.String[] { "Provider", "Engine", }); - internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_clouddms_v1_MigrationJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor, - new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "DisplayName", "State", "Phase", "Type", "DumpPath", "Source", "Destination", "ReverseSshConnectivity", "VpcPeeringConnectivity", "StaticIpConnectivity", "Duration", "Error", "SourceDatabase", "DestinationDatabase", "EndTime", "Connectivity", }); - internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_descriptor = - internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_clouddms_v1_ConnectionProfile_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor, - new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "State", "DisplayName", "Mysql", "Postgresql", "Cloudsql", "Error", "Provider", "ConnectionProfile", }); - internal_static_google_cloud_clouddms_v1_ConnectionProfile_LabelsEntry_descriptor = - internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_clouddms_v1_ConnectionProfile_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_ConnectionProfile_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_descriptor, - new java.lang.String[] { "ErrorCode", "ErrorMessage", "ErrorDetailMessage", }); - 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.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequestOrBuilder.java deleted file mode 100644 index 1c03f762..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/clouddms/v1/clouddms.proto - -package com.google.cloud.clouddms.v1; - -public interface GetConnectionProfileRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.GetConnectionProfileRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the connection profile resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the connection profile resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequestOrBuilder.java deleted file mode 100644 index eb07ac0e..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/clouddms/v1/clouddms.proto - -package com.google.cloud.clouddms.v1; - -public interface GetMigrationJobRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.GetMigrationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the migration job resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the migration job resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequestOrBuilder.java deleted file mode 100644 index 92885f4d..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/clouddms/v1/clouddms.proto - -package com.google.cloud.clouddms.v1; - -public interface PromoteMigrationJobRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.PromoteMigrationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Name of the migration job resource to promote.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Name of the migration job resource to promote.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequestOrBuilder.java deleted file mode 100644 index 20bad1a6..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/clouddms/v1/clouddms.proto - -package com.google.cloud.clouddms.v1; - -public interface RestartMigrationJobRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.RestartMigrationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Name of the migration job resource to restart.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Name of the migration job resource to restart.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequestOrBuilder.java deleted file mode 100644 index e1573e46..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/clouddms/v1/clouddms.proto - -package com.google.cloud.clouddms.v1; - -public interface ResumeMigrationJobRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ResumeMigrationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Name of the migration job resource to resume.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Name of the migration job resource to resume.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScriptOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScriptOrBuilder.java deleted file mode 100644 index 3ef4ca15..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScriptOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/clouddms/v1/clouddms.proto - -package com.google.cloud.clouddms.v1; - -public interface SshScriptOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.SshScript) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The ssh configuration script.
-   * 
- * - * string script = 1; - * @return The script. - */ - java.lang.String getScript(); - /** - *
-   * The ssh configuration script.
-   * 
- * - * string script = 1; - * @return The bytes for script. - */ - com.google.protobuf.ByteString - getScriptBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequestOrBuilder.java deleted file mode 100644 index 7eee0f85..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/clouddms/v1/clouddms.proto - -package com.google.cloud.clouddms.v1; - -public interface StartMigrationJobRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.StartMigrationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Name of the migration job resource to start.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Name of the migration job resource to start.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivityOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivityOrBuilder.java deleted file mode 100644 index 0c55e6b8..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivityOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/clouddms/v1/clouddms_resources.proto - -package com.google.cloud.clouddms.v1; - -public interface StaticIpConnectivityOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.StaticIpConnectivity) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequestOrBuilder.java deleted file mode 100644 index 360d52fc..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/clouddms/v1/clouddms.proto - -package com.google.cloud.clouddms.v1; - -public interface StopMigrationJobRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.StopMigrationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Name of the migration job resource to stop.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Name of the migration job resource to stop.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequestOrBuilder.java deleted file mode 100644 index f40d0955..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/clouddms/v1/clouddms.proto - -package com.google.cloud.clouddms.v1; - -public interface VerifyMigrationJobRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.VerifyMigrationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Name of the migration job resource to verify.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Name of the migration job resource to verify.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivityOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivityOrBuilder.java deleted file mode 100644 index 77093633..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivityOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/clouddms/v1/clouddms_resources.proto - -package com.google.cloud.clouddms.v1; - -public interface VpcPeeringConnectivityOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.VpcPeeringConnectivity) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The name of the VPC network to peer with the Cloud SQL private network.
-   * 
- * - * string vpc = 1; - * @return The vpc. - */ - java.lang.String getVpc(); - /** - *
-   * The name of the VPC network to peer with the Cloud SQL private network.
-   * 
- * - * string vpc = 1; - * @return The bytes for vpc. - */ - com.google.protobuf.ByteString - getVpcBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfile.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfile.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfile.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfile.java index 574e3383..5b1f07f3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfile.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfile.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * Specifies required connection parameters, and, optionally, the parameters
  * required to create a Cloud SQL destination database instance.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.clouddms.v1.CloudSqlConnectionProfile}
  */
-public final class CloudSqlConnectionProfile extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CloudSqlConnectionProfile extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.CloudSqlConnectionProfile)
     CloudSqlConnectionProfileOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CloudSqlConnectionProfile.newBuilder() to construct.
   private CloudSqlConnectionProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CloudSqlConnectionProfile() {
     cloudSqlId_ = "";
     privateIp_ = "";
@@ -28,16 +46,15 @@ private CloudSqlConnectionProfile() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CloudSqlConnectionProfile();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CloudSqlConnectionProfile(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,77 +73,88 @@ private CloudSqlConnectionProfile(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            cloudSqlId_ = s;
-            break;
-          }
-          case 18: {
-            com.google.cloud.clouddms.v1.CloudSqlSettings.Builder subBuilder = null;
-            if (settings_ != null) {
-              subBuilder = settings_.toBuilder();
-            }
-            settings_ = input.readMessage(com.google.cloud.clouddms.v1.CloudSqlSettings.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(settings_);
-              settings_ = subBuilder.buildPartial();
+              cloudSqlId_ = s;
+              break;
             }
+          case 18:
+            {
+              com.google.cloud.clouddms.v1.CloudSqlSettings.Builder subBuilder = null;
+              if (settings_ != null) {
+                subBuilder = settings_.toBuilder();
+              }
+              settings_ =
+                  input.readMessage(
+                      com.google.cloud.clouddms.v1.CloudSqlSettings.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(settings_);
+                settings_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            privateIp_ = s;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              privateIp_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            publicIp_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              publicIp_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
+        .internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_fieldAccessorTable
+    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
+        .internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.class, com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.Builder.class);
+            com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.class,
+            com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.Builder.class);
   }
 
   public static final int CLOUD_SQL_ID_FIELD_NUMBER = 1;
   private volatile java.lang.Object cloudSqlId_;
   /**
+   *
+   *
    * 
    * Output only. The Cloud SQL instance ID that this connection profile is associated with.
    * 
* * string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cloudSqlId. */ @java.lang.Override @@ -135,29 +163,29 @@ public java.lang.String getCloudSqlId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudSqlId_ = s; return s; } } /** + * + * *
    * Output only. The Cloud SQL instance ID that this connection profile is associated with.
    * 
* * string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for cloudSqlId. */ @java.lang.Override - public com.google.protobuf.ByteString - getCloudSqlIdBytes() { + public com.google.protobuf.ByteString getCloudSqlIdBytes() { java.lang.Object ref = cloudSqlId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cloudSqlId_ = b; return b; } else { @@ -168,11 +196,16 @@ public java.lang.String getCloudSqlId() { public static final int SETTINGS_FIELD_NUMBER = 2; private com.google.cloud.clouddms.v1.CloudSqlSettings settings_; /** + * + * *
    * Immutable. Metadata used to create the destination Cloud SQL database.
    * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the settings field is set. */ @java.lang.Override @@ -180,23 +213,34 @@ public boolean hasSettings() { return settings_ != null; } /** + * + * *
    * Immutable. Metadata used to create the destination Cloud SQL database.
    * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The settings. */ @java.lang.Override public com.google.cloud.clouddms.v1.CloudSqlSettings getSettings() { - return settings_ == null ? com.google.cloud.clouddms.v1.CloudSqlSettings.getDefaultInstance() : settings_; + return settings_ == null + ? com.google.cloud.clouddms.v1.CloudSqlSettings.getDefaultInstance() + : settings_; } /** + * + * *
    * Immutable. Metadata used to create the destination Cloud SQL database.
    * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override public com.google.cloud.clouddms.v1.CloudSqlSettingsOrBuilder getSettingsOrBuilder() { @@ -206,11 +250,14 @@ public com.google.cloud.clouddms.v1.CloudSqlSettingsOrBuilder getSettingsOrBuild public static final int PRIVATE_IP_FIELD_NUMBER = 3; private volatile java.lang.Object privateIp_; /** + * + * *
    * Output only. The Cloud SQL database instance's private IP.
    * 
* * string private_ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The privateIp. */ @java.lang.Override @@ -219,29 +266,29 @@ public java.lang.String getPrivateIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateIp_ = s; return s; } } /** + * + * *
    * Output only. The Cloud SQL database instance's private IP.
    * 
* * string private_ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for privateIp. */ @java.lang.Override - public com.google.protobuf.ByteString - getPrivateIpBytes() { + public com.google.protobuf.ByteString getPrivateIpBytes() { java.lang.Object ref = privateIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); privateIp_ = b; return b; } else { @@ -252,11 +299,14 @@ public java.lang.String getPrivateIp() { public static final int PUBLIC_IP_FIELD_NUMBER = 4; private volatile java.lang.Object publicIp_; /** + * + * *
    * Output only. The Cloud SQL database instance's public IP.
    * 
* * string public_ip = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The publicIp. */ @java.lang.Override @@ -265,29 +315,29 @@ public java.lang.String getPublicIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publicIp_ = s; return s; } } /** + * + * *
    * Output only. The Cloud SQL database instance's public IP.
    * 
* * string public_ip = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for publicIp. */ @java.lang.Override - public com.google.protobuf.ByteString - getPublicIpBytes() { + public com.google.protobuf.ByteString getPublicIpBytes() { java.lang.Object ref = publicIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); publicIp_ = b; return b; } else { @@ -296,6 +346,7 @@ public java.lang.String getPublicIp() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -307,8 +358,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getCloudSqlIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cloudSqlId_); } @@ -334,8 +384,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cloudSqlId_); } if (settings_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSettings()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSettings()); } if (!getPrivateIpBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, privateIp_); @@ -351,24 +400,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.clouddms.v1.CloudSqlConnectionProfile)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.CloudSqlConnectionProfile other = (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) obj; + com.google.cloud.clouddms.v1.CloudSqlConnectionProfile other = + (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) obj; - if (!getCloudSqlId() - .equals(other.getCloudSqlId())) return false; + if (!getCloudSqlId().equals(other.getCloudSqlId())) return false; if (hasSettings() != other.hasSettings()) return false; if (hasSettings()) { - if (!getSettings() - .equals(other.getSettings())) return false; + if (!getSettings().equals(other.getSettings())) return false; } - if (!getPrivateIp() - .equals(other.getPrivateIp())) return false; - if (!getPublicIp() - .equals(other.getPublicIp())) return false; + if (!getPrivateIp().equals(other.getPrivateIp())) return false; + if (!getPublicIp().equals(other.getPublicIp())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -396,96 +442,104 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.CloudSqlConnectionProfile 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.clouddms.v1.CloudSqlConnectionProfile 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.clouddms.v1.CloudSqlConnectionProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.CloudSqlConnectionProfile 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.clouddms.v1.CloudSqlConnectionProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.CloudSqlConnectionProfile 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.clouddms.v1.CloudSqlConnectionProfile parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.CloudSqlConnectionProfile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.CloudSqlConnectionProfile 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.clouddms.v1.CloudSqlConnectionProfile parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.CloudSqlConnectionProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.CloudSqlConnectionProfile 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.clouddms.v1.CloudSqlConnectionProfile 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.clouddms.v1.CloudSqlConnectionProfile 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.clouddms.v1.CloudSqlConnectionProfile prototype) { + + public static Builder newBuilder( + com.google.cloud.clouddms.v1.CloudSqlConnectionProfile 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; } /** + * + * *
    * Specifies required connection parameters, and, optionally, the parameters
    * required to create a Cloud SQL destination database instance.
@@ -493,21 +547,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.clouddms.v1.CloudSqlConnectionProfile}
    */
-  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.clouddms.v1.CloudSqlConnectionProfile)
       com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
+          .internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_fieldAccessorTable
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
+          .internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.class, com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.Builder.class);
+              com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.class,
+              com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.Builder.class);
     }
 
     // Construct using com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.newBuilder()
@@ -515,16 +571,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -544,9 +599,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
+          .internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor;
     }
 
     @java.lang.Override
@@ -565,7 +620,8 @@ public com.google.cloud.clouddms.v1.CloudSqlConnectionProfile build() {
 
     @java.lang.Override
     public com.google.cloud.clouddms.v1.CloudSqlConnectionProfile buildPartial() {
-      com.google.cloud.clouddms.v1.CloudSqlConnectionProfile result = new com.google.cloud.clouddms.v1.CloudSqlConnectionProfile(this);
+      com.google.cloud.clouddms.v1.CloudSqlConnectionProfile result =
+          new com.google.cloud.clouddms.v1.CloudSqlConnectionProfile(this);
       result.cloudSqlId_ = cloudSqlId_;
       if (settingsBuilder_ == null) {
         result.settings_ = settings_;
@@ -582,38 +638,39 @@ public com.google.cloud.clouddms.v1.CloudSqlConnectionProfile 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.clouddms.v1.CloudSqlConnectionProfile) {
-        return mergeFrom((com.google.cloud.clouddms.v1.CloudSqlConnectionProfile)other);
+        return mergeFrom((com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -621,7 +678,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.clouddms.v1.CloudSqlConnectionProfile other) {
-      if (other == com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.getDefaultInstance()) return this;
+      if (other == com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.getDefaultInstance())
+        return this;
       if (!other.getCloudSqlId().isEmpty()) {
         cloudSqlId_ = other.cloudSqlId_;
         onChanged();
@@ -656,7 +714,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -668,18 +727,20 @@ public Builder mergeFrom(
 
     private java.lang.Object cloudSqlId_ = "";
     /**
+     *
+     *
      * 
      * Output only. The Cloud SQL instance ID that this connection profile is associated with.
      * 
* * string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cloudSqlId. */ public java.lang.String getCloudSqlId() { java.lang.Object ref = cloudSqlId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudSqlId_ = s; return s; @@ -688,20 +749,21 @@ public java.lang.String getCloudSqlId() { } } /** + * + * *
      * Output only. The Cloud SQL instance ID that this connection profile is associated with.
      * 
* * string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for cloudSqlId. */ - public com.google.protobuf.ByteString - getCloudSqlIdBytes() { + public com.google.protobuf.ByteString getCloudSqlIdBytes() { java.lang.Object ref = cloudSqlId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cloudSqlId_ = b; return b; } else { @@ -709,54 +771,61 @@ public java.lang.String getCloudSqlId() { } } /** + * + * *
      * Output only. The Cloud SQL instance ID that this connection profile is associated with.
      * 
* * string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The cloudSqlId to set. * @return This builder for chaining. */ - public Builder setCloudSqlId( - java.lang.String value) { + public Builder setCloudSqlId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cloudSqlId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The Cloud SQL instance ID that this connection profile is associated with.
      * 
* * string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearCloudSqlId() { - + cloudSqlId_ = getDefaultInstance().getCloudSqlId(); onChanged(); return this; } /** + * + * *
      * Output only. The Cloud SQL instance ID that this connection profile is associated with.
      * 
* * string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for cloudSqlId to set. * @return This builder for chaining. */ - public Builder setCloudSqlIdBytes( - com.google.protobuf.ByteString value) { + public Builder setCloudSqlIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cloudSqlId_ = value; onChanged(); return this; @@ -764,39 +833,58 @@ public Builder setCloudSqlIdBytes( private com.google.cloud.clouddms.v1.CloudSqlSettings settings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.CloudSqlSettings, com.google.cloud.clouddms.v1.CloudSqlSettings.Builder, com.google.cloud.clouddms.v1.CloudSqlSettingsOrBuilder> settingsBuilder_; + com.google.cloud.clouddms.v1.CloudSqlSettings, + com.google.cloud.clouddms.v1.CloudSqlSettings.Builder, + com.google.cloud.clouddms.v1.CloudSqlSettingsOrBuilder> + settingsBuilder_; /** + * + * *
      * Immutable. Metadata used to create the destination Cloud SQL database.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the settings field is set. */ public boolean hasSettings() { return settingsBuilder_ != null || settings_ != null; } /** + * + * *
      * Immutable. Metadata used to create the destination Cloud SQL database.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The settings. */ public com.google.cloud.clouddms.v1.CloudSqlSettings getSettings() { if (settingsBuilder_ == null) { - return settings_ == null ? com.google.cloud.clouddms.v1.CloudSqlSettings.getDefaultInstance() : settings_; + return settings_ == null + ? com.google.cloud.clouddms.v1.CloudSqlSettings.getDefaultInstance() + : settings_; } else { return settingsBuilder_.getMessage(); } } /** + * + * *
      * Immutable. Metadata used to create the destination Cloud SQL database.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder setSettings(com.google.cloud.clouddms.v1.CloudSqlSettings value) { if (settingsBuilder_ == null) { @@ -812,11 +900,15 @@ public Builder setSettings(com.google.cloud.clouddms.v1.CloudSqlSettings value) return this; } /** + * + * *
      * Immutable. Metadata used to create the destination Cloud SQL database.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder setSettings( com.google.cloud.clouddms.v1.CloudSqlSettings.Builder builderForValue) { @@ -830,17 +922,23 @@ public Builder setSettings( return this; } /** + * + * *
      * Immutable. Metadata used to create the destination Cloud SQL database.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder mergeSettings(com.google.cloud.clouddms.v1.CloudSqlSettings value) { if (settingsBuilder_ == null) { if (settings_ != null) { settings_ = - com.google.cloud.clouddms.v1.CloudSqlSettings.newBuilder(settings_).mergeFrom(value).buildPartial(); + com.google.cloud.clouddms.v1.CloudSqlSettings.newBuilder(settings_) + .mergeFrom(value) + .buildPartial(); } else { settings_ = value; } @@ -852,11 +950,15 @@ public Builder mergeSettings(com.google.cloud.clouddms.v1.CloudSqlSettings value return this; } /** + * + * *
      * Immutable. Metadata used to create the destination Cloud SQL database.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder clearSettings() { if (settingsBuilder_ == null) { @@ -870,48 +972,64 @@ public Builder clearSettings() { return this; } /** + * + * *
      * Immutable. Metadata used to create the destination Cloud SQL database.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * */ public com.google.cloud.clouddms.v1.CloudSqlSettings.Builder getSettingsBuilder() { - + onChanged(); return getSettingsFieldBuilder().getBuilder(); } /** + * + * *
      * Immutable. Metadata used to create the destination Cloud SQL database.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * */ public com.google.cloud.clouddms.v1.CloudSqlSettingsOrBuilder getSettingsOrBuilder() { if (settingsBuilder_ != null) { return settingsBuilder_.getMessageOrBuilder(); } else { - return settings_ == null ? - com.google.cloud.clouddms.v1.CloudSqlSettings.getDefaultInstance() : settings_; + return settings_ == null + ? com.google.cloud.clouddms.v1.CloudSqlSettings.getDefaultInstance() + : settings_; } } /** + * + * *
      * Immutable. Metadata used to create the destination Cloud SQL database.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.CloudSqlSettings, com.google.cloud.clouddms.v1.CloudSqlSettings.Builder, com.google.cloud.clouddms.v1.CloudSqlSettingsOrBuilder> + com.google.cloud.clouddms.v1.CloudSqlSettings, + com.google.cloud.clouddms.v1.CloudSqlSettings.Builder, + com.google.cloud.clouddms.v1.CloudSqlSettingsOrBuilder> getSettingsFieldBuilder() { if (settingsBuilder_ == null) { - settingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.CloudSqlSettings, com.google.cloud.clouddms.v1.CloudSqlSettings.Builder, com.google.cloud.clouddms.v1.CloudSqlSettingsOrBuilder>( - getSettings(), - getParentForChildren(), - isClean()); + settingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.CloudSqlSettings, + com.google.cloud.clouddms.v1.CloudSqlSettings.Builder, + com.google.cloud.clouddms.v1.CloudSqlSettingsOrBuilder>( + getSettings(), getParentForChildren(), isClean()); settings_ = null; } return settingsBuilder_; @@ -919,18 +1037,20 @@ public com.google.cloud.clouddms.v1.CloudSqlSettingsOrBuilder getSettingsOrBuild private java.lang.Object privateIp_ = ""; /** + * + * *
      * Output only. The Cloud SQL database instance's private IP.
      * 
* * string private_ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The privateIp. */ public java.lang.String getPrivateIp() { java.lang.Object ref = privateIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateIp_ = s; return s; @@ -939,20 +1059,21 @@ public java.lang.String getPrivateIp() { } } /** + * + * *
      * Output only. The Cloud SQL database instance's private IP.
      * 
* * string private_ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for privateIp. */ - public com.google.protobuf.ByteString - getPrivateIpBytes() { + public com.google.protobuf.ByteString getPrivateIpBytes() { java.lang.Object ref = privateIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); privateIp_ = b; return b; } else { @@ -960,54 +1081,61 @@ public java.lang.String getPrivateIp() { } } /** + * + * *
      * Output only. The Cloud SQL database instance's private IP.
      * 
* * string private_ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The privateIp to set. * @return This builder for chaining. */ - public Builder setPrivateIp( - java.lang.String value) { + public Builder setPrivateIp(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + privateIp_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The Cloud SQL database instance's private IP.
      * 
* * string private_ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearPrivateIp() { - + privateIp_ = getDefaultInstance().getPrivateIp(); onChanged(); return this; } /** + * + * *
      * Output only. The Cloud SQL database instance's private IP.
      * 
* * string private_ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for privateIp to set. * @return This builder for chaining. */ - public Builder setPrivateIpBytes( - com.google.protobuf.ByteString value) { + public Builder setPrivateIpBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + privateIp_ = value; onChanged(); return this; @@ -1015,18 +1143,20 @@ public Builder setPrivateIpBytes( private java.lang.Object publicIp_ = ""; /** + * + * *
      * Output only. The Cloud SQL database instance's public IP.
      * 
* * string public_ip = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The publicIp. */ public java.lang.String getPublicIp() { java.lang.Object ref = publicIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publicIp_ = s; return s; @@ -1035,20 +1165,21 @@ public java.lang.String getPublicIp() { } } /** + * + * *
      * Output only. The Cloud SQL database instance's public IP.
      * 
* * string public_ip = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for publicIp. */ - public com.google.protobuf.ByteString - getPublicIpBytes() { + public com.google.protobuf.ByteString getPublicIpBytes() { java.lang.Object ref = publicIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); publicIp_ = b; return b; } else { @@ -1056,61 +1187,68 @@ public java.lang.String getPublicIp() { } } /** + * + * *
      * Output only. The Cloud SQL database instance's public IP.
      * 
* * string public_ip = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The publicIp to set. * @return This builder for chaining. */ - public Builder setPublicIp( - java.lang.String value) { + public Builder setPublicIp(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + publicIp_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The Cloud SQL database instance's public IP.
      * 
* * string public_ip = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearPublicIp() { - + publicIp_ = getDefaultInstance().getPublicIp(); onChanged(); return this; } /** + * + * *
      * Output only. The Cloud SQL database instance's public IP.
      * 
* * string public_ip = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for publicIp to set. * @return This builder for chaining. */ - public Builder setPublicIpBytes( - com.google.protobuf.ByteString value) { + public Builder setPublicIpBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + publicIp_ = 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); } @@ -1120,12 +1258,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.CloudSqlConnectionProfile) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.CloudSqlConnectionProfile) private static final com.google.cloud.clouddms.v1.CloudSqlConnectionProfile DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.CloudSqlConnectionProfile(); } @@ -1134,16 +1272,16 @@ public static com.google.cloud.clouddms.v1.CloudSqlConnectionProfile getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudSqlConnectionProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudSqlConnectionProfile(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudSqlConnectionProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CloudSqlConnectionProfile(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1158,6 +1296,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.clouddms.v1.CloudSqlConnectionProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfileOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfileOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfileOrBuilder.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfileOrBuilder.java index a9fc1244..4433a014 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfileOrBuilder.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfileOrBuilder.java @@ -1,96 +1,141 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; -public interface CloudSqlConnectionProfileOrBuilder extends +public interface CloudSqlConnectionProfileOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.CloudSqlConnectionProfile) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The Cloud SQL instance ID that this connection profile is associated with.
    * 
* * string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cloudSqlId. */ java.lang.String getCloudSqlId(); /** + * + * *
    * Output only. The Cloud SQL instance ID that this connection profile is associated with.
    * 
* * string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for cloudSqlId. */ - com.google.protobuf.ByteString - getCloudSqlIdBytes(); + com.google.protobuf.ByteString getCloudSqlIdBytes(); /** + * + * *
    * Immutable. Metadata used to create the destination Cloud SQL database.
    * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the settings field is set. */ boolean hasSettings(); /** + * + * *
    * Immutable. Metadata used to create the destination Cloud SQL database.
    * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The settings. */ com.google.cloud.clouddms.v1.CloudSqlSettings getSettings(); /** + * + * *
    * Immutable. Metadata used to create the destination Cloud SQL database.
    * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.clouddms.v1.CloudSqlSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * */ com.google.cloud.clouddms.v1.CloudSqlSettingsOrBuilder getSettingsOrBuilder(); /** + * + * *
    * Output only. The Cloud SQL database instance's private IP.
    * 
* * string private_ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The privateIp. */ java.lang.String getPrivateIp(); /** + * + * *
    * Output only. The Cloud SQL database instance's private IP.
    * 
* * string private_ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for privateIp. */ - com.google.protobuf.ByteString - getPrivateIpBytes(); + com.google.protobuf.ByteString getPrivateIpBytes(); /** + * + * *
    * Output only. The Cloud SQL database instance's public IP.
    * 
* * string public_ip = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The publicIp. */ java.lang.String getPublicIp(); /** + * + * *
    * Output only. The Cloud SQL database instance's public IP.
    * 
* * string public_ip = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for publicIp. */ - com.google.protobuf.ByteString - getPublicIpBytes(); + com.google.protobuf.ByteString getPublicIpBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettings.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettings.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettings.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettings.java index 169440e1..01070b0b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettings.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettings.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * Settings for creating a Cloud SQL database instance.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.CloudSqlSettings} */ -public final class CloudSqlSettings extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CloudSqlSettings extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.CloudSqlSettings) CloudSqlSettingsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CloudSqlSettings.newBuilder() to construct. private CloudSqlSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CloudSqlSettings() { databaseVersion_ = 0; tier_ = ""; @@ -32,16 +50,15 @@ private CloudSqlSettings() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CloudSqlSettings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CloudSqlSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -61,193 +78,220 @@ private CloudSqlSettings( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - databaseVersion_ = rawValue; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - userLabels_ = com.google.protobuf.MapField.newMapField( - UserLabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - userLabels__ = input.readMessage( - UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - userLabels_.getMutableMap().put( - userLabels__.getKey(), userLabels__.getValue()); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + case 8: + { + int rawValue = input.readEnum(); - tier_ = s; - break; - } - case 34: { - com.google.protobuf.Int64Value.Builder subBuilder = null; - if (storageAutoResizeLimit_ != null) { - subBuilder = storageAutoResizeLimit_.toBuilder(); + databaseVersion_ = rawValue; + break; } - storageAutoResizeLimit_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(storageAutoResizeLimit_); - storageAutoResizeLimit_ = subBuilder.buildPartial(); + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + userLabels_ = + com.google.protobuf.MapField.newMapField( + UserLabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry userLabels__ = + input.readMessage( + UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + userLabels_.getMutableMap().put(userLabels__.getKey(), userLabels__.getValue()); + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 40: { - int rawValue = input.readEnum(); - - activationPolicy_ = rawValue; - break; - } - case 50: { - com.google.cloud.clouddms.v1.SqlIpConfig.Builder subBuilder = null; - if (ipConfig_ != null) { - subBuilder = ipConfig_.toBuilder(); + tier_ = s; + break; } - ipConfig_ = input.readMessage(com.google.cloud.clouddms.v1.SqlIpConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(ipConfig_); - ipConfig_ = subBuilder.buildPartial(); + case 34: + { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (storageAutoResizeLimit_ != null) { + subBuilder = storageAutoResizeLimit_.toBuilder(); + } + storageAutoResizeLimit_ = + input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(storageAutoResizeLimit_); + storageAutoResizeLimit_ = subBuilder.buildPartial(); + } + + break; } + case 40: + { + int rawValue = input.readEnum(); - break; - } - case 58: { - com.google.protobuf.BoolValue.Builder subBuilder = null; - if (autoStorageIncrease_ != null) { - subBuilder = autoStorageIncrease_.toBuilder(); + activationPolicy_ = rawValue; + break; } - autoStorageIncrease_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(autoStorageIncrease_); - autoStorageIncrease_ = subBuilder.buildPartial(); + case 50: + { + com.google.cloud.clouddms.v1.SqlIpConfig.Builder subBuilder = null; + if (ipConfig_ != null) { + subBuilder = ipConfig_.toBuilder(); + } + ipConfig_ = + input.readMessage( + com.google.cloud.clouddms.v1.SqlIpConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(ipConfig_); + ipConfig_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - databaseFlags_ = com.google.protobuf.MapField.newMapField( - DatabaseFlagsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + case 58: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (autoStorageIncrease_ != null) { + subBuilder = autoStorageIncrease_.toBuilder(); + } + autoStorageIncrease_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(autoStorageIncrease_); + autoStorageIncrease_ = subBuilder.buildPartial(); + } + + break; } - com.google.protobuf.MapEntry - databaseFlags__ = input.readMessage( - DatabaseFlagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - databaseFlags_.getMutableMap().put( - databaseFlags__.getKey(), databaseFlags__.getValue()); - break; - } - case 72: { - int rawValue = input.readEnum(); + case 66: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + databaseFlags_ = + com.google.protobuf.MapField.newMapField( + DatabaseFlagsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry databaseFlags__ = + input.readMessage( + DatabaseFlagsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + databaseFlags_ + .getMutableMap() + .put(databaseFlags__.getKey(), databaseFlags__.getValue()); + break; + } + case 72: + { + int rawValue = input.readEnum(); - dataDiskType_ = rawValue; - break; - } - case 82: { - com.google.protobuf.Int64Value.Builder subBuilder = null; - if (dataDiskSizeGb_ != null) { - subBuilder = dataDiskSizeGb_.toBuilder(); + dataDiskType_ = rawValue; + break; } - dataDiskSizeGb_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataDiskSizeGb_); - dataDiskSizeGb_ = subBuilder.buildPartial(); + case 82: + { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (dataDiskSizeGb_ != null) { + subBuilder = dataDiskSizeGb_.toBuilder(); + } + dataDiskSizeGb_ = + input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataDiskSizeGb_); + dataDiskSizeGb_ = subBuilder.buildPartial(); + } + + break; } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 90: { - java.lang.String s = input.readStringRequireUtf8(); - - zone_ = s; - break; - } - case 98: { - java.lang.String s = input.readStringRequireUtf8(); - - sourceId_ = s; - break; - } - case 106: { - java.lang.String s = input.readStringRequireUtf8(); + zone_ = s; + break; + } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); - rootPassword_ = s; - break; - } - case 112: { + sourceId_ = s; + break; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); - rootPasswordSet_ = input.readBool(); - break; - } - case 122: { - java.lang.String s = input.readStringRequireUtf8(); + rootPassword_ = s; + break; + } + case 112: + { + rootPasswordSet_ = input.readBool(); + break; + } + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); - collation_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + collation_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetUserLabels(); case 8: return internalGetDatabaseFlags(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_CloudSqlSettings_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_CloudSqlSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.CloudSqlSettings.class, com.google.cloud.clouddms.v1.CloudSqlSettings.Builder.class); + com.google.cloud.clouddms.v1.CloudSqlSettings.class, + com.google.cloud.clouddms.v1.CloudSqlSettings.Builder.class); } /** + * + * *
    * Specifies when the instance should be activated.
    * 
* * Protobuf enum {@code google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy} */ - public enum SqlActivationPolicy - implements com.google.protobuf.ProtocolMessageEnum { + public enum SqlActivationPolicy implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * unspecified policy.
      * 
@@ -256,6 +300,8 @@ public enum SqlActivationPolicy */ SQL_ACTIVATION_POLICY_UNSPECIFIED(0), /** + * + * *
      * The instance is always up and running.
      * 
@@ -264,6 +310,8 @@ public enum SqlActivationPolicy */ ALWAYS(1), /** + * + * *
      * The instance should never spin up.
      * 
@@ -275,6 +323,8 @@ public enum SqlActivationPolicy ; /** + * + * *
      * unspecified policy.
      * 
@@ -283,6 +333,8 @@ public enum SqlActivationPolicy */ public static final int SQL_ACTIVATION_POLICY_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The instance is always up and running.
      * 
@@ -291,6 +343,8 @@ public enum SqlActivationPolicy */ public static final int ALWAYS_VALUE = 1; /** + * + * *
      * The instance should never spin up.
      * 
@@ -299,7 +353,6 @@ public enum SqlActivationPolicy */ public static final int NEVER_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -324,10 +377,14 @@ public static SqlActivationPolicy valueOf(int value) { */ public static SqlActivationPolicy forNumber(int value) { switch (value) { - case 0: return SQL_ACTIVATION_POLICY_UNSPECIFIED; - case 1: return ALWAYS; - case 2: return NEVER; - default: return null; + case 0: + return SQL_ACTIVATION_POLICY_UNSPECIFIED; + case 1: + return ALWAYS; + case 2: + return NEVER; + default: + return null; } } @@ -335,28 +392,28 @@ public static SqlActivationPolicy forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - SqlActivationPolicy> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SqlActivationPolicy findValueByNumber(int number) { - return SqlActivationPolicy.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SqlActivationPolicy findValueByNumber(int number) { + return SqlActivationPolicy.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() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.clouddms.v1.CloudSqlSettings.getDescriptor().getEnumTypes().get(0); } @@ -365,8 +422,7 @@ public SqlActivationPolicy findValueByNumber(int number) { public static SqlActivationPolicy 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; @@ -384,15 +440,18 @@ private SqlActivationPolicy(int value) { } /** + * + * *
    * The storage options for Cloud SQL databases.
    * 
* * Protobuf enum {@code google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType} */ - public enum SqlDataDiskType - implements com.google.protobuf.ProtocolMessageEnum { + public enum SqlDataDiskType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified.
      * 
@@ -401,6 +460,8 @@ public enum SqlDataDiskType */ SQL_DATA_DISK_TYPE_UNSPECIFIED(0), /** + * + * *
      * SSD disk.
      * 
@@ -409,6 +470,8 @@ public enum SqlDataDiskType */ PD_SSD(1), /** + * + * *
      * HDD disk.
      * 
@@ -420,6 +483,8 @@ public enum SqlDataDiskType ; /** + * + * *
      * Unspecified.
      * 
@@ -428,6 +493,8 @@ public enum SqlDataDiskType */ public static final int SQL_DATA_DISK_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * SSD disk.
      * 
@@ -436,6 +503,8 @@ public enum SqlDataDiskType */ public static final int PD_SSD_VALUE = 1; /** + * + * *
      * HDD disk.
      * 
@@ -444,7 +513,6 @@ public enum SqlDataDiskType */ public static final int PD_HDD_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -469,39 +537,42 @@ public static SqlDataDiskType valueOf(int value) { */ public static SqlDataDiskType forNumber(int value) { switch (value) { - case 0: return SQL_DATA_DISK_TYPE_UNSPECIFIED; - case 1: return PD_SSD; - case 2: return PD_HDD; - default: return null; + case 0: + return SQL_DATA_DISK_TYPE_UNSPECIFIED; + case 1: + return PD_SSD; + case 2: + return PD_HDD; + 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< - SqlDataDiskType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SqlDataDiskType findValueByNumber(int number) { - return SqlDataDiskType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SqlDataDiskType findValueByNumber(int number) { + return SqlDataDiskType.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() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.clouddms.v1.CloudSqlSettings.getDescriptor().getEnumTypes().get(1); } @@ -510,8 +581,7 @@ public SqlDataDiskType findValueByNumber(int number) { public static SqlDataDiskType 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; @@ -529,15 +599,18 @@ private SqlDataDiskType(int value) { } /** + * + * *
    * The database engine type and version.
    * 
* * Protobuf enum {@code google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion} */ - public enum SqlDatabaseVersion - implements com.google.protobuf.ProtocolMessageEnum { + public enum SqlDatabaseVersion implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified version.
      * 
@@ -546,6 +619,8 @@ public enum SqlDatabaseVersion */ SQL_DATABASE_VERSION_UNSPECIFIED(0), /** + * + * *
      * MySQL 5.6.
      * 
@@ -554,6 +629,8 @@ public enum SqlDatabaseVersion */ MYSQL_5_6(1), /** + * + * *
      * MySQL 5.7.
      * 
@@ -562,6 +639,8 @@ public enum SqlDatabaseVersion */ MYSQL_5_7(2), /** + * + * *
      * PostgreSQL 9.6.
      * 
@@ -570,6 +649,8 @@ public enum SqlDatabaseVersion */ POSTGRES_9_6(3), /** + * + * *
      * PostgreSQL 11.
      * 
@@ -578,6 +659,8 @@ public enum SqlDatabaseVersion */ POSTGRES_11(4), /** + * + * *
      * PostgreSQL 10.
      * 
@@ -586,6 +669,8 @@ public enum SqlDatabaseVersion */ POSTGRES_10(5), /** + * + * *
      * MySQL 8.0.
      * 
@@ -594,6 +679,8 @@ public enum SqlDatabaseVersion */ MYSQL_8_0(6), /** + * + * *
      * PostgreSQL 12.
      * 
@@ -602,6 +689,8 @@ public enum SqlDatabaseVersion */ POSTGRES_12(7), /** + * + * *
      * PostgreSQL 13.
      * 
@@ -613,6 +702,8 @@ public enum SqlDatabaseVersion ; /** + * + * *
      * Unspecified version.
      * 
@@ -621,6 +712,8 @@ public enum SqlDatabaseVersion */ public static final int SQL_DATABASE_VERSION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * MySQL 5.6.
      * 
@@ -629,6 +722,8 @@ public enum SqlDatabaseVersion */ public static final int MYSQL_5_6_VALUE = 1; /** + * + * *
      * MySQL 5.7.
      * 
@@ -637,6 +732,8 @@ public enum SqlDatabaseVersion */ public static final int MYSQL_5_7_VALUE = 2; /** + * + * *
      * PostgreSQL 9.6.
      * 
@@ -645,6 +742,8 @@ public enum SqlDatabaseVersion */ public static final int POSTGRES_9_6_VALUE = 3; /** + * + * *
      * PostgreSQL 11.
      * 
@@ -653,6 +752,8 @@ public enum SqlDatabaseVersion */ public static final int POSTGRES_11_VALUE = 4; /** + * + * *
      * PostgreSQL 10.
      * 
@@ -661,6 +762,8 @@ public enum SqlDatabaseVersion */ public static final int POSTGRES_10_VALUE = 5; /** + * + * *
      * MySQL 8.0.
      * 
@@ -669,6 +772,8 @@ public enum SqlDatabaseVersion */ public static final int MYSQL_8_0_VALUE = 6; /** + * + * *
      * PostgreSQL 12.
      * 
@@ -677,6 +782,8 @@ public enum SqlDatabaseVersion */ public static final int POSTGRES_12_VALUE = 7; /** + * + * *
      * PostgreSQL 13.
      * 
@@ -685,7 +792,6 @@ public enum SqlDatabaseVersion */ public static final int POSTGRES_13_VALUE = 8; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -710,16 +816,26 @@ public static SqlDatabaseVersion valueOf(int value) { */ public static SqlDatabaseVersion forNumber(int value) { switch (value) { - case 0: return SQL_DATABASE_VERSION_UNSPECIFIED; - case 1: return MYSQL_5_6; - case 2: return MYSQL_5_7; - case 3: return POSTGRES_9_6; - case 4: return POSTGRES_11; - case 5: return POSTGRES_10; - case 6: return MYSQL_8_0; - case 7: return POSTGRES_12; - case 8: return POSTGRES_13; - default: return null; + case 0: + return SQL_DATABASE_VERSION_UNSPECIFIED; + case 1: + return MYSQL_5_6; + case 2: + return MYSQL_5_7; + case 3: + return POSTGRES_9_6; + case 4: + return POSTGRES_11; + case 5: + return POSTGRES_10; + case 6: + return MYSQL_8_0; + case 7: + return POSTGRES_12; + case 8: + return POSTGRES_13; + default: + return null; } } @@ -727,28 +843,28 @@ public static SqlDatabaseVersion forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - SqlDatabaseVersion> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SqlDatabaseVersion findValueByNumber(int number) { - return SqlDatabaseVersion.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SqlDatabaseVersion findValueByNumber(int number) { + return SqlDatabaseVersion.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() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.clouddms.v1.CloudSqlSettings.getDescriptor().getEnumTypes().get(2); } @@ -757,8 +873,7 @@ public SqlDatabaseVersion findValueByNumber(int number) { public static SqlDatabaseVersion 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; @@ -778,49 +893,61 @@ private SqlDatabaseVersion(int value) { public static final int DATABASE_VERSION_FIELD_NUMBER = 1; private int databaseVersion_; /** + * + * *
    * The database engine type and version.
    * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; + * + * * @return The enum numeric value on the wire for databaseVersion. */ - @java.lang.Override public int getDatabaseVersionValue() { + @java.lang.Override + public int getDatabaseVersionValue() { return databaseVersion_; } /** + * + * *
    * The database engine type and version.
    * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; + * + * * @return The databaseVersion. */ - @java.lang.Override public com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion getDatabaseVersion() { + @java.lang.Override + public com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion getDatabaseVersion() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion result = com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion.valueOf(databaseVersion_); - return result == null ? com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion.UNRECOGNIZED : result; + com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion result = + com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion.valueOf(databaseVersion_); + return result == null + ? com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion.UNRECOGNIZED + : result; } public static final int USER_LABELS_FIELD_NUMBER = 2; + private static final class UserLabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_CloudSqlSettings_UserLabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> userLabels_; - private com.google.protobuf.MapField - internalGetUserLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_CloudSqlSettings_UserLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField userLabels_; + + private com.google.protobuf.MapField internalGetUserLabels() { if (userLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - UserLabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(UserLabelsDefaultEntryHolder.defaultEntry); } return userLabels_; } @@ -829,6 +956,8 @@ public int getUserLabelsCount() { return internalGetUserLabels().getMap().size(); } /** + * + * *
    * The resource labels for a Cloud SQL instance to use to annotate any related
    * underlying resources such as Compute Engine VMs.
@@ -838,22 +967,22 @@ public int getUserLabelsCount() {
    *
    * map<string, string> user_labels = 2;
    */
-
   @java.lang.Override
-  public boolean containsUserLabels(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsUserLabels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     return internalGetUserLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getUserLabelsMap()} instead.
-   */
+  /** Use {@link #getUserLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getUserLabels() {
     return getUserLabelsMap();
   }
   /**
+   *
+   *
    * 
    * The resource labels for a Cloud SQL instance to use to annotate any related
    * underlying resources such as Compute Engine VMs.
@@ -864,11 +993,12 @@ public java.util.Map getUserLabels() {
    * map<string, string> user_labels = 2;
    */
   @java.lang.Override
-
   public java.util.Map getUserLabelsMap() {
     return internalGetUserLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * The resource labels for a Cloud SQL instance to use to annotate any related
    * underlying resources such as Compute Engine VMs.
@@ -879,16 +1009,17 @@ public java.util.Map getUserLabelsMap() {
    * map<string, string> user_labels = 2;
    */
   @java.lang.Override
-
   public java.lang.String getUserLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetUserLabels().getMap();
+      java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetUserLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * The resource labels for a Cloud SQL instance to use to annotate any related
    * underlying resources such as Compute Engine VMs.
@@ -899,12 +1030,11 @@ public java.lang.String getUserLabelsOrDefault(
    * map<string, string> user_labels = 2;
    */
   @java.lang.Override
-
-  public java.lang.String getUserLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetUserLabels().getMap();
+  public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetUserLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -914,6 +1044,8 @@ public java.lang.String getUserLabelsOrThrow(
   public static final int TIER_FIELD_NUMBER = 3;
   private volatile java.lang.Object tier_;
   /**
+   *
+   *
    * 
    * The tier (or machine type) for this instance, for example:
    * `db-n1-standard-1` (MySQL instances) or
@@ -924,6 +1056,7 @@ public java.lang.String getUserLabelsOrThrow(
    * 
* * string tier = 3; + * * @return The tier. */ @java.lang.Override @@ -932,14 +1065,15 @@ public java.lang.String getTier() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tier_ = s; return s; } } /** + * + * *
    * The tier (or machine type) for this instance, for example:
    * `db-n1-standard-1` (MySQL instances) or
@@ -950,16 +1084,15 @@ public java.lang.String getTier() {
    * 
* * string tier = 3; + * * @return The bytes for tier. */ @java.lang.Override - public com.google.protobuf.ByteString - getTierBytes() { + public com.google.protobuf.ByteString getTierBytes() { java.lang.Object ref = tier_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); tier_ = b; return b; } else { @@ -970,12 +1103,15 @@ public java.lang.String getTier() { public static final int STORAGE_AUTO_RESIZE_LIMIT_FIELD_NUMBER = 4; private com.google.protobuf.Int64Value storageAutoResizeLimit_; /** + * + * *
    * The maximum size to which storage capacity can be automatically increased.
    * The default value is 0, which specifies that there is no limit.
    * 
* * .google.protobuf.Int64Value storage_auto_resize_limit = 4; + * * @return Whether the storageAutoResizeLimit field is set. */ @java.lang.Override @@ -983,19 +1119,26 @@ public boolean hasStorageAutoResizeLimit() { return storageAutoResizeLimit_ != null; } /** + * + * *
    * The maximum size to which storage capacity can be automatically increased.
    * The default value is 0, which specifies that there is no limit.
    * 
* * .google.protobuf.Int64Value storage_auto_resize_limit = 4; + * * @return The storageAutoResizeLimit. */ @java.lang.Override public com.google.protobuf.Int64Value getStorageAutoResizeLimit() { - return storageAutoResizeLimit_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : storageAutoResizeLimit_; + return storageAutoResizeLimit_ == null + ? com.google.protobuf.Int64Value.getDefaultInstance() + : storageAutoResizeLimit_; } /** + * + * *
    * The maximum size to which storage capacity can be automatically increased.
    * The default value is 0, which specifies that there is no limit.
@@ -1011,6 +1154,8 @@ public com.google.protobuf.Int64ValueOrBuilder getStorageAutoResizeLimitOrBuilde
   public static final int ACTIVATION_POLICY_FIELD_NUMBER = 5;
   private int activationPolicy_;
   /**
+   *
+   *
    * 
    * The activation policy specifies when the instance is activated; it is
    * applicable only when the instance state is 'RUNNABLE'. Valid values:
@@ -1020,13 +1165,18 @@ public com.google.protobuf.Int64ValueOrBuilder getStorageAutoResizeLimitOrBuilde
    * connection request arrives.
    * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; + * + * * @return The enum numeric value on the wire for activationPolicy. */ - @java.lang.Override public int getActivationPolicyValue() { + @java.lang.Override + public int getActivationPolicyValue() { return activationPolicy_; } /** + * + * *
    * The activation policy specifies when the instance is activated; it is
    * applicable only when the instance state is 'RUNNABLE'. Valid values:
@@ -1036,18 +1186,27 @@ public com.google.protobuf.Int64ValueOrBuilder getStorageAutoResizeLimitOrBuilde
    * connection request arrives.
    * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; + * + * * @return The activationPolicy. */ - @java.lang.Override public com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy getActivationPolicy() { + @java.lang.Override + public com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy getActivationPolicy() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy result = com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy.valueOf(activationPolicy_); - return result == null ? com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy.UNRECOGNIZED : result; + com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy result = + com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy.valueOf( + activationPolicy_); + return result == null + ? com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy.UNRECOGNIZED + : result; } public static final int IP_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.clouddms.v1.SqlIpConfig ipConfig_; /** + * + * *
    * The settings for IP Management. This allows to enable or disable the
    * instance IP and manage which external networks can connect to the instance.
@@ -1055,6 +1214,7 @@ public com.google.protobuf.Int64ValueOrBuilder getStorageAutoResizeLimitOrBuilde
    * 
* * .google.cloud.clouddms.v1.SqlIpConfig ip_config = 6; + * * @return Whether the ipConfig field is set. */ @java.lang.Override @@ -1062,6 +1222,8 @@ public boolean hasIpConfig() { return ipConfig_ != null; } /** + * + * *
    * The settings for IP Management. This allows to enable or disable the
    * instance IP and manage which external networks can connect to the instance.
@@ -1069,13 +1231,18 @@ public boolean hasIpConfig() {
    * 
* * .google.cloud.clouddms.v1.SqlIpConfig ip_config = 6; + * * @return The ipConfig. */ @java.lang.Override public com.google.cloud.clouddms.v1.SqlIpConfig getIpConfig() { - return ipConfig_ == null ? com.google.cloud.clouddms.v1.SqlIpConfig.getDefaultInstance() : ipConfig_; + return ipConfig_ == null + ? com.google.cloud.clouddms.v1.SqlIpConfig.getDefaultInstance() + : ipConfig_; } /** + * + * *
    * The settings for IP Management. This allows to enable or disable the
    * instance IP and manage which external networks can connect to the instance.
@@ -1092,6 +1259,8 @@ public com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder getIpConfigOrBuilder()
   public static final int AUTO_STORAGE_INCREASE_FIELD_NUMBER = 7;
   private com.google.protobuf.BoolValue autoStorageIncrease_;
   /**
+   *
+   *
    * 
    * [default: ON] If you enable this setting, Cloud SQL checks your available
    * storage every 30 seconds. If the available storage falls below a threshold
@@ -1101,6 +1270,7 @@ public com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder getIpConfigOrBuilder()
    * 
* * .google.protobuf.BoolValue auto_storage_increase = 7; + * * @return Whether the autoStorageIncrease field is set. */ @java.lang.Override @@ -1108,6 +1278,8 @@ public boolean hasAutoStorageIncrease() { return autoStorageIncrease_ != null; } /** + * + * *
    * [default: ON] If you enable this setting, Cloud SQL checks your available
    * storage every 30 seconds. If the available storage falls below a threshold
@@ -1117,13 +1289,18 @@ public boolean hasAutoStorageIncrease() {
    * 
* * .google.protobuf.BoolValue auto_storage_increase = 7; + * * @return The autoStorageIncrease. */ @java.lang.Override public com.google.protobuf.BoolValue getAutoStorageIncrease() { - return autoStorageIncrease_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : autoStorageIncrease_; + return autoStorageIncrease_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : autoStorageIncrease_; } /** + * + * *
    * [default: ON] If you enable this setting, Cloud SQL checks your available
    * storage every 30 seconds. If the available storage falls below a threshold
@@ -1140,21 +1317,22 @@ public com.google.protobuf.BoolValueOrBuilder getAutoStorageIncreaseOrBuilder()
   }
 
   public static final int DATABASE_FLAGS_FIELD_NUMBER = 8;
+
   private static final class DatabaseFlagsDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry<
-        java.lang.String, java.lang.String> defaultEntry =
-            com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_CloudSqlSettings_DatabaseFlagsEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "");
-  }
-  private com.google.protobuf.MapField<
-      java.lang.String, java.lang.String> databaseFlags_;
+    static final com.google.protobuf.MapEntry defaultEntry =
+        com.google.protobuf.MapEntry.newDefaultInstance(
+            com.google.cloud.clouddms.v1.ClouddmsResourcesProto
+                .internal_static_google_cloud_clouddms_v1_CloudSqlSettings_DatabaseFlagsEntry_descriptor,
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "",
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "");
+  }
+
+  private com.google.protobuf.MapField databaseFlags_;
+
   private com.google.protobuf.MapField
-  internalGetDatabaseFlags() {
+      internalGetDatabaseFlags() {
     if (databaseFlags_ == null) {
       return com.google.protobuf.MapField.emptyMapField(
           DatabaseFlagsDefaultEntryHolder.defaultEntry);
@@ -1166,6 +1344,8 @@ public int getDatabaseFlagsCount() {
     return internalGetDatabaseFlags().getMap().size();
   }
   /**
+   *
+   *
    * 
    * The database flags passed to the Cloud SQL instance at startup.
    * An object containing a list of "key": value pairs.
@@ -1174,22 +1354,22 @@ public int getDatabaseFlagsCount() {
    *
    * map<string, string> database_flags = 8;
    */
-
   @java.lang.Override
-  public boolean containsDatabaseFlags(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsDatabaseFlags(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     return internalGetDatabaseFlags().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getDatabaseFlagsMap()} instead.
-   */
+  /** Use {@link #getDatabaseFlagsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getDatabaseFlags() {
     return getDatabaseFlagsMap();
   }
   /**
+   *
+   *
    * 
    * The database flags passed to the Cloud SQL instance at startup.
    * An object containing a list of "key": value pairs.
@@ -1199,11 +1379,12 @@ public java.util.Map getDatabaseFlags() {
    * map<string, string> database_flags = 8;
    */
   @java.lang.Override
-
   public java.util.Map getDatabaseFlagsMap() {
     return internalGetDatabaseFlags().getMap();
   }
   /**
+   *
+   *
    * 
    * The database flags passed to the Cloud SQL instance at startup.
    * An object containing a list of "key": value pairs.
@@ -1213,16 +1394,17 @@ public java.util.Map getDatabaseFlagsMap() {
    * map<string, string> database_flags = 8;
    */
   @java.lang.Override
-
   public java.lang.String getDatabaseFlagsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetDatabaseFlags().getMap();
+      java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetDatabaseFlags().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * The database flags passed to the Cloud SQL instance at startup.
    * An object containing a list of "key": value pairs.
@@ -1232,12 +1414,11 @@ public java.lang.String getDatabaseFlagsOrDefault(
    * map<string, string> database_flags = 8;
    */
   @java.lang.Override
-
-  public java.lang.String getDatabaseFlagsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetDatabaseFlags().getMap();
+  public java.lang.String getDatabaseFlagsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetDatabaseFlags().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1247,39 +1428,53 @@ public java.lang.String getDatabaseFlagsOrThrow(
   public static final int DATA_DISK_TYPE_FIELD_NUMBER = 9;
   private int dataDiskType_;
   /**
+   *
+   *
    * 
    * The type of storage: `PD_SSD` (default) or `PD_HDD`.
    * 
* * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType data_disk_type = 9; + * * @return The enum numeric value on the wire for dataDiskType. */ - @java.lang.Override public int getDataDiskTypeValue() { + @java.lang.Override + public int getDataDiskTypeValue() { return dataDiskType_; } /** + * + * *
    * The type of storage: `PD_SSD` (default) or `PD_HDD`.
    * 
* * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType data_disk_type = 9; + * * @return The dataDiskType. */ - @java.lang.Override public com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType getDataDiskType() { + @java.lang.Override + public com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType getDataDiskType() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType result = com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType.valueOf(dataDiskType_); - return result == null ? com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType.UNRECOGNIZED : result; + com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType result = + com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType.valueOf(dataDiskType_); + return result == null + ? com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType.UNRECOGNIZED + : result; } public static final int DATA_DISK_SIZE_GB_FIELD_NUMBER = 10; private com.google.protobuf.Int64Value dataDiskSizeGb_; /** + * + * *
    * The storage capacity available to the database, in GB.
    * The minimum (and default) size is 10GB.
    * 
* * .google.protobuf.Int64Value data_disk_size_gb = 10; + * * @return Whether the dataDiskSizeGb field is set. */ @java.lang.Override @@ -1287,19 +1482,26 @@ public boolean hasDataDiskSizeGb() { return dataDiskSizeGb_ != null; } /** + * + * *
    * The storage capacity available to the database, in GB.
    * The minimum (and default) size is 10GB.
    * 
* * .google.protobuf.Int64Value data_disk_size_gb = 10; + * * @return The dataDiskSizeGb. */ @java.lang.Override public com.google.protobuf.Int64Value getDataDiskSizeGb() { - return dataDiskSizeGb_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : dataDiskSizeGb_; + return dataDiskSizeGb_ == null + ? com.google.protobuf.Int64Value.getDefaultInstance() + : dataDiskSizeGb_; } /** + * + * *
    * The storage capacity available to the database, in GB.
    * The minimum (and default) size is 10GB.
@@ -1315,12 +1517,15 @@ public com.google.protobuf.Int64ValueOrBuilder getDataDiskSizeGbOrBuilder() {
   public static final int ZONE_FIELD_NUMBER = 11;
   private volatile java.lang.Object zone_;
   /**
+   *
+   *
    * 
    * The Google Cloud Platform zone where your Cloud SQL datdabse instance is
    * located.
    * 
* * string zone = 11; + * * @return The zone. */ @java.lang.Override @@ -1329,30 +1534,30 @@ public java.lang.String getZone() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zone_ = s; return s; } } /** + * + * *
    * The Google Cloud Platform zone where your Cloud SQL datdabse instance is
    * located.
    * 
* * string zone = 11; + * * @return The bytes for zone. */ @java.lang.Override - public com.google.protobuf.ByteString - getZoneBytes() { + public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); zone_ = b; return b; } else { @@ -1363,6 +1568,8 @@ public java.lang.String getZone() { public static final int SOURCE_ID_FIELD_NUMBER = 12; private volatile java.lang.Object sourceId_; /** + * + * *
    * The Database Migration Service source connection profile ID,
    * in the format:
@@ -1370,6 +1577,7 @@ public java.lang.String getZone() {
    * 
* * string source_id = 12; + * * @return The sourceId. */ @java.lang.Override @@ -1378,14 +1586,15 @@ public java.lang.String getSourceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceId_ = s; return s; } } /** + * + * *
    * The Database Migration Service source connection profile ID,
    * in the format:
@@ -1393,16 +1602,15 @@ public java.lang.String getSourceId() {
    * 
* * string source_id = 12; + * * @return The bytes for sourceId. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceIdBytes() { + public com.google.protobuf.ByteString getSourceIdBytes() { java.lang.Object ref = sourceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceId_ = b; return b; } else { @@ -1413,11 +1621,14 @@ public java.lang.String getSourceId() { public static final int ROOT_PASSWORD_FIELD_NUMBER = 13; private volatile java.lang.Object rootPassword_; /** + * + * *
    * Input only. Initial root password.
    * 
* * string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The rootPassword. */ @java.lang.Override @@ -1426,29 +1637,29 @@ public java.lang.String getRootPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootPassword_ = s; return s; } } /** + * + * *
    * Input only. Initial root password.
    * 
* * string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for rootPassword. */ @java.lang.Override - public com.google.protobuf.ByteString - getRootPasswordBytes() { + public com.google.protobuf.ByteString getRootPasswordBytes() { java.lang.Object ref = rootPassword_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rootPassword_ = b; return b; } else { @@ -1459,11 +1670,14 @@ public java.lang.String getRootPassword() { public static final int ROOT_PASSWORD_SET_FIELD_NUMBER = 14; private boolean rootPasswordSet_; /** + * + * *
    * Output only. Indicates If this connection profile root password is stored.
    * 
* * bool root_password_set = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The rootPasswordSet. */ @java.lang.Override @@ -1474,11 +1688,14 @@ public boolean getRootPasswordSet() { public static final int COLLATION_FIELD_NUMBER = 15; private volatile java.lang.Object collation_; /** + * + * *
    * The Cloud SQL default instance level collation.
    * 
* * string collation = 15; + * * @return The collation. */ @java.lang.Override @@ -1487,29 +1704,29 @@ public java.lang.String getCollation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collation_ = s; return s; } } /** + * + * *
    * The Cloud SQL default instance level collation.
    * 
* * string collation = 15; + * * @return The bytes for collation. */ @java.lang.Override - public com.google.protobuf.ByteString - getCollationBytes() { + public com.google.protobuf.ByteString getCollationBytes() { java.lang.Object ref = collation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); collation_ = b; return b; } else { @@ -1518,6 +1735,7 @@ public java.lang.String getCollation() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1529,24 +1747,25 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (databaseVersion_ != com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion.SQL_DATABASE_VERSION_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (databaseVersion_ + != com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion + .SQL_DATABASE_VERSION_UNSPECIFIED + .getNumber()) { output.writeEnum(1, databaseVersion_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetUserLabels(), - UserLabelsDefaultEntryHolder.defaultEntry, - 2); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 2); if (!getTierBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tier_); } if (storageAutoResizeLimit_ != null) { output.writeMessage(4, getStorageAutoResizeLimit()); } - if (activationPolicy_ != com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy.SQL_ACTIVATION_POLICY_UNSPECIFIED.getNumber()) { + if (activationPolicy_ + != com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy + .SQL_ACTIVATION_POLICY_UNSPECIFIED + .getNumber()) { output.writeEnum(5, activationPolicy_); } if (ipConfig_ != null) { @@ -1555,13 +1774,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (autoStorageIncrease_ != null) { output.writeMessage(7, getAutoStorageIncrease()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetDatabaseFlags(), - DatabaseFlagsDefaultEntryHolder.defaultEntry, - 8); - if (dataDiskType_ != com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType.SQL_DATA_DISK_TYPE_UNSPECIFIED.getNumber()) { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetDatabaseFlags(), DatabaseFlagsDefaultEntryHolder.defaultEntry, 8); + if (dataDiskType_ + != com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType + .SQL_DATA_DISK_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(9, dataDiskType_); } if (dataDiskSizeGb_ != null) { @@ -1591,56 +1809,59 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (databaseVersion_ != com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion.SQL_DATABASE_VERSION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, databaseVersion_); - } - for (java.util.Map.Entry entry - : internalGetUserLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - userLabels__ = UserLabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, userLabels__); + if (databaseVersion_ + != com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion + .SQL_DATABASE_VERSION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, databaseVersion_); + } + for (java.util.Map.Entry entry : + internalGetUserLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry userLabels__ = + UserLabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, userLabels__); } if (!getTierBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tier_); } if (storageAutoResizeLimit_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getStorageAutoResizeLimit()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStorageAutoResizeLimit()); } - if (activationPolicy_ != com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy.SQL_ACTIVATION_POLICY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, activationPolicy_); + if (activationPolicy_ + != com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy + .SQL_ACTIVATION_POLICY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, activationPolicy_); } if (ipConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getIpConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getIpConfig()); } if (autoStorageIncrease_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getAutoStorageIncrease()); - } - for (java.util.Map.Entry entry - : internalGetDatabaseFlags().getMap().entrySet()) { - com.google.protobuf.MapEntry - databaseFlags__ = DatabaseFlagsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, databaseFlags__); - } - if (dataDiskType_ != com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType.SQL_DATA_DISK_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, dataDiskType_); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAutoStorageIncrease()); + } + for (java.util.Map.Entry entry : + internalGetDatabaseFlags().getMap().entrySet()) { + com.google.protobuf.MapEntry databaseFlags__ = + DatabaseFlagsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, databaseFlags__); + } + if (dataDiskType_ + != com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType + .SQL_DATA_DISK_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, dataDiskType_); } if (dataDiskSizeGb_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getDataDiskSizeGb()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDataDiskSizeGb()); } if (!getZoneBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, zone_); @@ -1652,8 +1873,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, rootPassword_); } if (rootPasswordSet_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(14, rootPasswordSet_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, rootPasswordSet_); } if (!getCollationBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, collation_); @@ -1666,52 +1886,41 @@ 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.clouddms.v1.CloudSqlSettings)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.CloudSqlSettings other = (com.google.cloud.clouddms.v1.CloudSqlSettings) obj; + com.google.cloud.clouddms.v1.CloudSqlSettings other = + (com.google.cloud.clouddms.v1.CloudSqlSettings) obj; if (databaseVersion_ != other.databaseVersion_) return false; - if (!internalGetUserLabels().equals( - other.internalGetUserLabels())) return false; - if (!getTier() - .equals(other.getTier())) return false; + if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false; + if (!getTier().equals(other.getTier())) return false; if (hasStorageAutoResizeLimit() != other.hasStorageAutoResizeLimit()) return false; if (hasStorageAutoResizeLimit()) { - if (!getStorageAutoResizeLimit() - .equals(other.getStorageAutoResizeLimit())) return false; + if (!getStorageAutoResizeLimit().equals(other.getStorageAutoResizeLimit())) return false; } if (activationPolicy_ != other.activationPolicy_) return false; if (hasIpConfig() != other.hasIpConfig()) return false; if (hasIpConfig()) { - if (!getIpConfig() - .equals(other.getIpConfig())) return false; + if (!getIpConfig().equals(other.getIpConfig())) return false; } if (hasAutoStorageIncrease() != other.hasAutoStorageIncrease()) return false; if (hasAutoStorageIncrease()) { - if (!getAutoStorageIncrease() - .equals(other.getAutoStorageIncrease())) return false; + if (!getAutoStorageIncrease().equals(other.getAutoStorageIncrease())) return false; } - if (!internalGetDatabaseFlags().equals( - other.internalGetDatabaseFlags())) return false; + if (!internalGetDatabaseFlags().equals(other.internalGetDatabaseFlags())) return false; if (dataDiskType_ != other.dataDiskType_) return false; if (hasDataDiskSizeGb() != other.hasDataDiskSizeGb()) return false; if (hasDataDiskSizeGb()) { - if (!getDataDiskSizeGb() - .equals(other.getDataDiskSizeGb())) return false; - } - if (!getZone() - .equals(other.getZone())) return false; - if (!getSourceId() - .equals(other.getSourceId())) return false; - if (!getRootPassword() - .equals(other.getRootPassword())) return false; - if (getRootPasswordSet() - != other.getRootPasswordSet()) return false; - if (!getCollation() - .equals(other.getCollation())) return false; + if (!getDataDiskSizeGb().equals(other.getDataDiskSizeGb())) return false; + } + if (!getZone().equals(other.getZone())) return false; + if (!getSourceId().equals(other.getSourceId())) return false; + if (!getRootPassword().equals(other.getRootPassword())) return false; + if (getRootPasswordSet() != other.getRootPasswordSet()) return false; + if (!getCollation().equals(other.getCollation())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1762,8 +1971,7 @@ public int hashCode() { hash = (37 * hash) + ROOT_PASSWORD_FIELD_NUMBER; hash = (53 * hash) + getRootPassword().hashCode(); hash = (37 * hash) + ROOT_PASSWORD_SET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRootPasswordSet()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRootPasswordSet()); hash = (37 * hash) + COLLATION_FIELD_NUMBER; hash = (53 * hash) + getCollation().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -1771,144 +1979,151 @@ public int hashCode() { return hash; } - public static com.google.cloud.clouddms.v1.CloudSqlSettings parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.clouddms.v1.CloudSqlSettings parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.CloudSqlSettings 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.clouddms.v1.CloudSqlSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.CloudSqlSettings 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.clouddms.v1.CloudSqlSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.CloudSqlSettings 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.clouddms.v1.CloudSqlSettings parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.CloudSqlSettings 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.clouddms.v1.CloudSqlSettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.CloudSqlSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.CloudSqlSettings 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.clouddms.v1.CloudSqlSettings 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.clouddms.v1.CloudSqlSettings 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.clouddms.v1.CloudSqlSettings 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; } /** + * + * *
    * Settings for creating a Cloud SQL database instance.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.CloudSqlSettings} */ - 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.clouddms.v1.CloudSqlSettings) com.google.cloud.clouddms.v1.CloudSqlSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetUserLabels(); case 8: return internalGetDatabaseFlags(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableUserLabels(); case 8: return internalGetMutableDatabaseFlags(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_CloudSqlSettings_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_CloudSqlSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.CloudSqlSettings.class, com.google.cloud.clouddms.v1.CloudSqlSettings.Builder.class); + com.google.cloud.clouddms.v1.CloudSqlSettings.class, + com.google.cloud.clouddms.v1.CloudSqlSettings.Builder.class); } // Construct using com.google.cloud.clouddms.v1.CloudSqlSettings.newBuilder() @@ -1916,16 +2131,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1977,9 +2191,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor; } @java.lang.Override @@ -1998,7 +2212,8 @@ public com.google.cloud.clouddms.v1.CloudSqlSettings build() { @java.lang.Override public com.google.cloud.clouddms.v1.CloudSqlSettings buildPartial() { - com.google.cloud.clouddms.v1.CloudSqlSettings result = new com.google.cloud.clouddms.v1.CloudSqlSettings(this); + com.google.cloud.clouddms.v1.CloudSqlSettings result = + new com.google.cloud.clouddms.v1.CloudSqlSettings(this); int from_bitField0_ = bitField0_; result.databaseVersion_ = databaseVersion_; result.userLabels_ = internalGetUserLabels(); @@ -2041,38 +2256,39 @@ public com.google.cloud.clouddms.v1.CloudSqlSettings 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.clouddms.v1.CloudSqlSettings) { - return mergeFrom((com.google.cloud.clouddms.v1.CloudSqlSettings)other); + return mergeFrom((com.google.cloud.clouddms.v1.CloudSqlSettings) other); } else { super.mergeFrom(other); return this; @@ -2084,8 +2300,7 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.CloudSqlSettings other) { if (other.databaseVersion_ != 0) { setDatabaseVersionValue(other.getDatabaseVersionValue()); } - internalGetMutableUserLabels().mergeFrom( - other.internalGetUserLabels()); + internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels()); if (!other.getTier().isEmpty()) { tier_ = other.tier_; onChanged(); @@ -2102,8 +2317,7 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.CloudSqlSettings other) { if (other.hasAutoStorageIncrease()) { mergeAutoStorageIncrease(other.getAutoStorageIncrease()); } - internalGetMutableDatabaseFlags().mergeFrom( - other.internalGetDatabaseFlags()); + internalGetMutableDatabaseFlags().mergeFrom(other.internalGetDatabaseFlags()); if (other.dataDiskType_ != 0) { setDataDiskTypeValue(other.getDataDiskTypeValue()); } @@ -2157,98 +2371,127 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private int databaseVersion_ = 0; /** + * + * *
      * The database engine type and version.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; + * + * * @return The enum numeric value on the wire for databaseVersion. */ - @java.lang.Override public int getDatabaseVersionValue() { + @java.lang.Override + public int getDatabaseVersionValue() { return databaseVersion_; } /** + * + * *
      * The database engine type and version.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; + * + * * @param value The enum numeric value on the wire for databaseVersion to set. * @return This builder for chaining. */ public Builder setDatabaseVersionValue(int value) { - + databaseVersion_ = value; onChanged(); return this; } /** + * + * *
      * The database engine type and version.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; + * + * * @return The databaseVersion. */ @java.lang.Override public com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion getDatabaseVersion() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion result = com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion.valueOf(databaseVersion_); - return result == null ? com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion.UNRECOGNIZED : result; + com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion result = + com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion.valueOf( + databaseVersion_); + return result == null + ? com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion.UNRECOGNIZED + : result; } /** + * + * *
      * The database engine type and version.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; + * + * * @param value The databaseVersion to set. * @return This builder for chaining. */ - public Builder setDatabaseVersion(com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion value) { + public Builder setDatabaseVersion( + com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion value) { if (value == null) { throw new NullPointerException(); } - + databaseVersion_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The database engine type and version.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; + * + * * @return This builder for chaining. */ public Builder clearDatabaseVersion() { - + databaseVersion_ = 0; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> userLabels_; + private com.google.protobuf.MapField userLabels_; + private com.google.protobuf.MapField - internalGetUserLabels() { + internalGetUserLabels() { if (userLabels_ == null) { return com.google.protobuf.MapField.emptyMapField( UserLabelsDefaultEntryHolder.defaultEntry); } return userLabels_; } + private com.google.protobuf.MapField - internalGetMutableUserLabels() { - onChanged();; + internalGetMutableUserLabels() { + onChanged(); + ; if (userLabels_ == null) { - userLabels_ = com.google.protobuf.MapField.newMapField( - UserLabelsDefaultEntryHolder.defaultEntry); + userLabels_ = + com.google.protobuf.MapField.newMapField(UserLabelsDefaultEntryHolder.defaultEntry); } if (!userLabels_.isMutable()) { userLabels_ = userLabels_.copy(); @@ -2260,6 +2503,8 @@ public int getUserLabelsCount() { return internalGetUserLabels().getMap().size(); } /** + * + * *
      * The resource labels for a Cloud SQL instance to use to annotate any related
      * underlying resources such as Compute Engine VMs.
@@ -2269,22 +2514,22 @@ public int getUserLabelsCount() {
      *
      * map<string, string> user_labels = 2;
      */
-
     @java.lang.Override
-    public boolean containsUserLabels(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsUserLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       return internalGetUserLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getUserLabelsMap()} instead.
-     */
+    /** Use {@link #getUserLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getUserLabels() {
       return getUserLabelsMap();
     }
     /**
+     *
+     *
      * 
      * The resource labels for a Cloud SQL instance to use to annotate any related
      * underlying resources such as Compute Engine VMs.
@@ -2295,11 +2540,12 @@ public java.util.Map getUserLabels() {
      * map<string, string> user_labels = 2;
      */
     @java.lang.Override
-
     public java.util.Map getUserLabelsMap() {
       return internalGetUserLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * The resource labels for a Cloud SQL instance to use to annotate any related
      * underlying resources such as Compute Engine VMs.
@@ -2310,16 +2556,17 @@ public java.util.Map getUserLabelsMap() {
      * map<string, string> user_labels = 2;
      */
     @java.lang.Override
-
     public java.lang.String getUserLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetUserLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetUserLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * The resource labels for a Cloud SQL instance to use to annotate any related
      * underlying resources such as Compute Engine VMs.
@@ -2330,12 +2577,11 @@ public java.lang.String getUserLabelsOrDefault(
      * map<string, string> user_labels = 2;
      */
     @java.lang.Override
-
-    public java.lang.String getUserLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetUserLabels().getMap();
+    public java.lang.String getUserLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetUserLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2343,11 +2589,12 @@ public java.lang.String getUserLabelsOrThrow(
     }
 
     public Builder clearUserLabels() {
-      internalGetMutableUserLabels().getMutableMap()
-          .clear();
+      internalGetMutableUserLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * The resource labels for a Cloud SQL instance to use to annotate any related
      * underlying resources such as Compute Engine VMs.
@@ -2357,23 +2604,21 @@ public Builder clearUserLabels() {
      *
      * map<string, string> user_labels = 2;
      */
-
-    public Builder removeUserLabels(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableUserLabels().getMutableMap()
-          .remove(key);
+    public Builder removeUserLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableUserLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableUserLabels() {
+    public java.util.Map getMutableUserLabels() {
       return internalGetMutableUserLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * The resource labels for a Cloud SQL instance to use to annotate any related
      * underlying resources such as Compute Engine VMs.
@@ -2383,16 +2628,19 @@ public Builder removeUserLabels(
      *
      * map<string, string> user_labels = 2;
      */
-    public Builder putUserLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableUserLabels().getMutableMap()
-          .put(key, value);
+    public Builder putUserLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableUserLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * The resource labels for a Cloud SQL instance to use to annotate any related
      * underlying resources such as Compute Engine VMs.
@@ -2402,16 +2650,15 @@ public Builder putUserLabels(
      *
      * map<string, string> user_labels = 2;
      */
-
-    public Builder putAllUserLabels(
-        java.util.Map values) {
-      internalGetMutableUserLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllUserLabels(java.util.Map values) {
+      internalGetMutableUserLabels().getMutableMap().putAll(values);
       return this;
     }
 
     private java.lang.Object tier_ = "";
     /**
+     *
+     *
      * 
      * The tier (or machine type) for this instance, for example:
      * `db-n1-standard-1` (MySQL instances) or
@@ -2422,13 +2669,13 @@ public Builder putAllUserLabels(
      * 
* * string tier = 3; + * * @return The tier. */ public java.lang.String getTier() { java.lang.Object ref = tier_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tier_ = s; return s; @@ -2437,6 +2684,8 @@ public java.lang.String getTier() { } } /** + * + * *
      * The tier (or machine type) for this instance, for example:
      * `db-n1-standard-1` (MySQL instances) or
@@ -2447,15 +2696,14 @@ public java.lang.String getTier() {
      * 
* * string tier = 3; + * * @return The bytes for tier. */ - public com.google.protobuf.ByteString - getTierBytes() { + public com.google.protobuf.ByteString getTierBytes() { java.lang.Object ref = tier_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); tier_ = b; return b; } else { @@ -2463,6 +2711,8 @@ public java.lang.String getTier() { } } /** + * + * *
      * The tier (or machine type) for this instance, for example:
      * `db-n1-standard-1` (MySQL instances) or
@@ -2473,20 +2723,22 @@ public java.lang.String getTier() {
      * 
* * string tier = 3; + * * @param value The tier to set. * @return This builder for chaining. */ - public Builder setTier( - java.lang.String value) { + public Builder setTier(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + tier_ = value; onChanged(); return this; } /** + * + * *
      * The tier (or machine type) for this instance, for example:
      * `db-n1-standard-1` (MySQL instances) or
@@ -2497,15 +2749,18 @@ public Builder setTier(
      * 
* * string tier = 3; + * * @return This builder for chaining. */ public Builder clearTier() { - + tier_ = getDefaultInstance().getTier(); onChanged(); return this; } /** + * + * *
      * The tier (or machine type) for this instance, for example:
      * `db-n1-standard-1` (MySQL instances) or
@@ -2516,16 +2771,16 @@ public Builder clearTier() {
      * 
* * string tier = 3; + * * @param value The bytes for tier to set. * @return This builder for chaining. */ - public Builder setTierBytes( - com.google.protobuf.ByteString value) { + public Builder setTierBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tier_ = value; onChanged(); return this; @@ -2533,36 +2788,49 @@ public Builder setTierBytes( private com.google.protobuf.Int64Value storageAutoResizeLimit_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> storageAutoResizeLimitBuilder_; + com.google.protobuf.Int64Value, + com.google.protobuf.Int64Value.Builder, + com.google.protobuf.Int64ValueOrBuilder> + storageAutoResizeLimitBuilder_; /** + * + * *
      * The maximum size to which storage capacity can be automatically increased.
      * The default value is 0, which specifies that there is no limit.
      * 
* * .google.protobuf.Int64Value storage_auto_resize_limit = 4; + * * @return Whether the storageAutoResizeLimit field is set. */ public boolean hasStorageAutoResizeLimit() { return storageAutoResizeLimitBuilder_ != null || storageAutoResizeLimit_ != null; } /** + * + * *
      * The maximum size to which storage capacity can be automatically increased.
      * The default value is 0, which specifies that there is no limit.
      * 
* * .google.protobuf.Int64Value storage_auto_resize_limit = 4; + * * @return The storageAutoResizeLimit. */ public com.google.protobuf.Int64Value getStorageAutoResizeLimit() { if (storageAutoResizeLimitBuilder_ == null) { - return storageAutoResizeLimit_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : storageAutoResizeLimit_; + return storageAutoResizeLimit_ == null + ? com.google.protobuf.Int64Value.getDefaultInstance() + : storageAutoResizeLimit_; } else { return storageAutoResizeLimitBuilder_.getMessage(); } } /** + * + * *
      * The maximum size to which storage capacity can be automatically increased.
      * The default value is 0, which specifies that there is no limit.
@@ -2584,6 +2852,8 @@ public Builder setStorageAutoResizeLimit(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum size to which storage capacity can be automatically increased.
      * The default value is 0, which specifies that there is no limit.
@@ -2603,6 +2873,8 @@ public Builder setStorageAutoResizeLimit(
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum size to which storage capacity can be automatically increased.
      * The default value is 0, which specifies that there is no limit.
@@ -2614,7 +2886,9 @@ public Builder mergeStorageAutoResizeLimit(com.google.protobuf.Int64Value value)
       if (storageAutoResizeLimitBuilder_ == null) {
         if (storageAutoResizeLimit_ != null) {
           storageAutoResizeLimit_ =
-            com.google.protobuf.Int64Value.newBuilder(storageAutoResizeLimit_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Int64Value.newBuilder(storageAutoResizeLimit_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           storageAutoResizeLimit_ = value;
         }
@@ -2626,6 +2900,8 @@ public Builder mergeStorageAutoResizeLimit(com.google.protobuf.Int64Value value)
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum size to which storage capacity can be automatically increased.
      * The default value is 0, which specifies that there is no limit.
@@ -2645,6 +2921,8 @@ public Builder clearStorageAutoResizeLimit() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum size to which storage capacity can be automatically increased.
      * The default value is 0, which specifies that there is no limit.
@@ -2653,11 +2931,13 @@ public Builder clearStorageAutoResizeLimit() {
      * .google.protobuf.Int64Value storage_auto_resize_limit = 4;
      */
     public com.google.protobuf.Int64Value.Builder getStorageAutoResizeLimitBuilder() {
-      
+
       onChanged();
       return getStorageAutoResizeLimitFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The maximum size to which storage capacity can be automatically increased.
      * The default value is 0, which specifies that there is no limit.
@@ -2669,11 +2949,14 @@ public com.google.protobuf.Int64ValueOrBuilder getStorageAutoResizeLimitOrBuilde
       if (storageAutoResizeLimitBuilder_ != null) {
         return storageAutoResizeLimitBuilder_.getMessageOrBuilder();
       } else {
-        return storageAutoResizeLimit_ == null ?
-            com.google.protobuf.Int64Value.getDefaultInstance() : storageAutoResizeLimit_;
+        return storageAutoResizeLimit_ == null
+            ? com.google.protobuf.Int64Value.getDefaultInstance()
+            : storageAutoResizeLimit_;
       }
     }
     /**
+     *
+     *
      * 
      * The maximum size to which storage capacity can be automatically increased.
      * The default value is 0, which specifies that there is no limit.
@@ -2682,14 +2965,17 @@ public com.google.protobuf.Int64ValueOrBuilder getStorageAutoResizeLimitOrBuilde
      * .google.protobuf.Int64Value storage_auto_resize_limit = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> 
+            com.google.protobuf.Int64Value,
+            com.google.protobuf.Int64Value.Builder,
+            com.google.protobuf.Int64ValueOrBuilder>
         getStorageAutoResizeLimitFieldBuilder() {
       if (storageAutoResizeLimitBuilder_ == null) {
-        storageAutoResizeLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
-                getStorageAutoResizeLimit(),
-                getParentForChildren(),
-                isClean());
+        storageAutoResizeLimitBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Int64Value,
+                com.google.protobuf.Int64Value.Builder,
+                com.google.protobuf.Int64ValueOrBuilder>(
+                getStorageAutoResizeLimit(), getParentForChildren(), isClean());
         storageAutoResizeLimit_ = null;
       }
       return storageAutoResizeLimitBuilder_;
@@ -2697,6 +2983,8 @@ public com.google.protobuf.Int64ValueOrBuilder getStorageAutoResizeLimitOrBuilde
 
     private int activationPolicy_ = 0;
     /**
+     *
+     *
      * 
      * The activation policy specifies when the instance is activated; it is
      * applicable only when the instance state is 'RUNNABLE'. Valid values:
@@ -2706,13 +2994,18 @@ public com.google.protobuf.Int64ValueOrBuilder getStorageAutoResizeLimitOrBuilde
      * connection request arrives.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; + * + * * @return The enum numeric value on the wire for activationPolicy. */ - @java.lang.Override public int getActivationPolicyValue() { + @java.lang.Override + public int getActivationPolicyValue() { return activationPolicy_; } /** + * + * *
      * The activation policy specifies when the instance is activated; it is
      * applicable only when the instance state is 'RUNNABLE'. Valid values:
@@ -2722,17 +3015,21 @@ public com.google.protobuf.Int64ValueOrBuilder getStorageAutoResizeLimitOrBuilde
      * connection request arrives.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; + * + * * @param value The enum numeric value on the wire for activationPolicy to set. * @return This builder for chaining. */ public Builder setActivationPolicyValue(int value) { - + activationPolicy_ = value; onChanged(); return this; } /** + * + * *
      * The activation policy specifies when the instance is activated; it is
      * applicable only when the instance state is 'RUNNABLE'. Valid values:
@@ -2742,16 +3039,24 @@ public Builder setActivationPolicyValue(int value) {
      * connection request arrives.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; + * + * * @return The activationPolicy. */ @java.lang.Override public com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy getActivationPolicy() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy result = com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy.valueOf(activationPolicy_); - return result == null ? com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy.UNRECOGNIZED : result; + com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy result = + com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy.valueOf( + activationPolicy_); + return result == null + ? com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy.UNRECOGNIZED + : result; } /** + * + * *
      * The activation policy specifies when the instance is activated; it is
      * applicable only when the instance state is 'RUNNABLE'. Valid values:
@@ -2761,20 +3066,25 @@ public com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy getActi
      * connection request arrives.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; + * + * * @param value The activationPolicy to set. * @return This builder for chaining. */ - public Builder setActivationPolicy(com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy value) { + public Builder setActivationPolicy( + com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy value) { if (value == null) { throw new NullPointerException(); } - + activationPolicy_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The activation policy specifies when the instance is activated; it is
      * applicable only when the instance state is 'RUNNABLE'. Valid values:
@@ -2784,11 +3094,13 @@ public Builder setActivationPolicy(com.google.cloud.clouddms.v1.CloudSqlSettings
      * connection request arrives.
      * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; + * + * * @return This builder for chaining. */ public Builder clearActivationPolicy() { - + activationPolicy_ = 0; onChanged(); return this; @@ -2796,8 +3108,13 @@ public Builder clearActivationPolicy() { private com.google.cloud.clouddms.v1.SqlIpConfig ipConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.SqlIpConfig, com.google.cloud.clouddms.v1.SqlIpConfig.Builder, com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder> ipConfigBuilder_; + com.google.cloud.clouddms.v1.SqlIpConfig, + com.google.cloud.clouddms.v1.SqlIpConfig.Builder, + com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder> + ipConfigBuilder_; /** + * + * *
      * The settings for IP Management. This allows to enable or disable the
      * instance IP and manage which external networks can connect to the instance.
@@ -2805,12 +3122,15 @@ public Builder clearActivationPolicy() {
      * 
* * .google.cloud.clouddms.v1.SqlIpConfig ip_config = 6; + * * @return Whether the ipConfig field is set. */ public boolean hasIpConfig() { return ipConfigBuilder_ != null || ipConfig_ != null; } /** + * + * *
      * The settings for IP Management. This allows to enable or disable the
      * instance IP and manage which external networks can connect to the instance.
@@ -2818,16 +3138,21 @@ public boolean hasIpConfig() {
      * 
* * .google.cloud.clouddms.v1.SqlIpConfig ip_config = 6; + * * @return The ipConfig. */ public com.google.cloud.clouddms.v1.SqlIpConfig getIpConfig() { if (ipConfigBuilder_ == null) { - return ipConfig_ == null ? com.google.cloud.clouddms.v1.SqlIpConfig.getDefaultInstance() : ipConfig_; + return ipConfig_ == null + ? com.google.cloud.clouddms.v1.SqlIpConfig.getDefaultInstance() + : ipConfig_; } else { return ipConfigBuilder_.getMessage(); } } /** + * + * *
      * The settings for IP Management. This allows to enable or disable the
      * instance IP and manage which external networks can connect to the instance.
@@ -2850,6 +3175,8 @@ public Builder setIpConfig(com.google.cloud.clouddms.v1.SqlIpConfig value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The settings for IP Management. This allows to enable or disable the
      * instance IP and manage which external networks can connect to the instance.
@@ -2858,8 +3185,7 @@ public Builder setIpConfig(com.google.cloud.clouddms.v1.SqlIpConfig value) {
      *
      * .google.cloud.clouddms.v1.SqlIpConfig ip_config = 6;
      */
-    public Builder setIpConfig(
-        com.google.cloud.clouddms.v1.SqlIpConfig.Builder builderForValue) {
+    public Builder setIpConfig(com.google.cloud.clouddms.v1.SqlIpConfig.Builder builderForValue) {
       if (ipConfigBuilder_ == null) {
         ipConfig_ = builderForValue.build();
         onChanged();
@@ -2870,6 +3196,8 @@ public Builder setIpConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * The settings for IP Management. This allows to enable or disable the
      * instance IP and manage which external networks can connect to the instance.
@@ -2882,7 +3210,9 @@ public Builder mergeIpConfig(com.google.cloud.clouddms.v1.SqlIpConfig value) {
       if (ipConfigBuilder_ == null) {
         if (ipConfig_ != null) {
           ipConfig_ =
-            com.google.cloud.clouddms.v1.SqlIpConfig.newBuilder(ipConfig_).mergeFrom(value).buildPartial();
+              com.google.cloud.clouddms.v1.SqlIpConfig.newBuilder(ipConfig_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           ipConfig_ = value;
         }
@@ -2894,6 +3224,8 @@ public Builder mergeIpConfig(com.google.cloud.clouddms.v1.SqlIpConfig value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The settings for IP Management. This allows to enable or disable the
      * instance IP and manage which external networks can connect to the instance.
@@ -2914,6 +3246,8 @@ public Builder clearIpConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The settings for IP Management. This allows to enable or disable the
      * instance IP and manage which external networks can connect to the instance.
@@ -2923,11 +3257,13 @@ public Builder clearIpConfig() {
      * .google.cloud.clouddms.v1.SqlIpConfig ip_config = 6;
      */
     public com.google.cloud.clouddms.v1.SqlIpConfig.Builder getIpConfigBuilder() {
-      
+
       onChanged();
       return getIpConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The settings for IP Management. This allows to enable or disable the
      * instance IP and manage which external networks can connect to the instance.
@@ -2940,11 +3276,14 @@ public com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder getIpConfigOrBuilder()
       if (ipConfigBuilder_ != null) {
         return ipConfigBuilder_.getMessageOrBuilder();
       } else {
-        return ipConfig_ == null ?
-            com.google.cloud.clouddms.v1.SqlIpConfig.getDefaultInstance() : ipConfig_;
+        return ipConfig_ == null
+            ? com.google.cloud.clouddms.v1.SqlIpConfig.getDefaultInstance()
+            : ipConfig_;
       }
     }
     /**
+     *
+     *
      * 
      * The settings for IP Management. This allows to enable or disable the
      * instance IP and manage which external networks can connect to the instance.
@@ -2954,14 +3293,17 @@ public com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder getIpConfigOrBuilder()
      * .google.cloud.clouddms.v1.SqlIpConfig ip_config = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.clouddms.v1.SqlIpConfig, com.google.cloud.clouddms.v1.SqlIpConfig.Builder, com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder> 
+            com.google.cloud.clouddms.v1.SqlIpConfig,
+            com.google.cloud.clouddms.v1.SqlIpConfig.Builder,
+            com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder>
         getIpConfigFieldBuilder() {
       if (ipConfigBuilder_ == null) {
-        ipConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.clouddms.v1.SqlIpConfig, com.google.cloud.clouddms.v1.SqlIpConfig.Builder, com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder>(
-                getIpConfig(),
-                getParentForChildren(),
-                isClean());
+        ipConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.clouddms.v1.SqlIpConfig,
+                com.google.cloud.clouddms.v1.SqlIpConfig.Builder,
+                com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder>(
+                getIpConfig(), getParentForChildren(), isClean());
         ipConfig_ = null;
       }
       return ipConfigBuilder_;
@@ -2969,8 +3311,13 @@ public com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder getIpConfigOrBuilder()
 
     private com.google.protobuf.BoolValue autoStorageIncrease_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> autoStorageIncreaseBuilder_;
+            com.google.protobuf.BoolValue,
+            com.google.protobuf.BoolValue.Builder,
+            com.google.protobuf.BoolValueOrBuilder>
+        autoStorageIncreaseBuilder_;
     /**
+     *
+     *
      * 
      * [default: ON] If you enable this setting, Cloud SQL checks your available
      * storage every 30 seconds. If the available storage falls below a threshold
@@ -2980,12 +3327,15 @@ public com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder getIpConfigOrBuilder()
      * 
* * .google.protobuf.BoolValue auto_storage_increase = 7; + * * @return Whether the autoStorageIncrease field is set. */ public boolean hasAutoStorageIncrease() { return autoStorageIncreaseBuilder_ != null || autoStorageIncrease_ != null; } /** + * + * *
      * [default: ON] If you enable this setting, Cloud SQL checks your available
      * storage every 30 seconds. If the available storage falls below a threshold
@@ -2995,16 +3345,21 @@ public boolean hasAutoStorageIncrease() {
      * 
* * .google.protobuf.BoolValue auto_storage_increase = 7; + * * @return The autoStorageIncrease. */ public com.google.protobuf.BoolValue getAutoStorageIncrease() { if (autoStorageIncreaseBuilder_ == null) { - return autoStorageIncrease_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : autoStorageIncrease_; + return autoStorageIncrease_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : autoStorageIncrease_; } else { return autoStorageIncreaseBuilder_.getMessage(); } } /** + * + * *
      * [default: ON] If you enable this setting, Cloud SQL checks your available
      * storage every 30 seconds. If the available storage falls below a threshold
@@ -3029,6 +3384,8 @@ public Builder setAutoStorageIncrease(com.google.protobuf.BoolValue value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * [default: ON] If you enable this setting, Cloud SQL checks your available
      * storage every 30 seconds. If the available storage falls below a threshold
@@ -3039,8 +3396,7 @@ public Builder setAutoStorageIncrease(com.google.protobuf.BoolValue value) {
      *
      * .google.protobuf.BoolValue auto_storage_increase = 7;
      */
-    public Builder setAutoStorageIncrease(
-        com.google.protobuf.BoolValue.Builder builderForValue) {
+    public Builder setAutoStorageIncrease(com.google.protobuf.BoolValue.Builder builderForValue) {
       if (autoStorageIncreaseBuilder_ == null) {
         autoStorageIncrease_ = builderForValue.build();
         onChanged();
@@ -3051,6 +3407,8 @@ public Builder setAutoStorageIncrease(
       return this;
     }
     /**
+     *
+     *
      * 
      * [default: ON] If you enable this setting, Cloud SQL checks your available
      * storage every 30 seconds. If the available storage falls below a threshold
@@ -3065,7 +3423,9 @@ public Builder mergeAutoStorageIncrease(com.google.protobuf.BoolValue value) {
       if (autoStorageIncreaseBuilder_ == null) {
         if (autoStorageIncrease_ != null) {
           autoStorageIncrease_ =
-            com.google.protobuf.BoolValue.newBuilder(autoStorageIncrease_).mergeFrom(value).buildPartial();
+              com.google.protobuf.BoolValue.newBuilder(autoStorageIncrease_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           autoStorageIncrease_ = value;
         }
@@ -3077,6 +3437,8 @@ public Builder mergeAutoStorageIncrease(com.google.protobuf.BoolValue value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * [default: ON] If you enable this setting, Cloud SQL checks your available
      * storage every 30 seconds. If the available storage falls below a threshold
@@ -3099,6 +3461,8 @@ public Builder clearAutoStorageIncrease() {
       return this;
     }
     /**
+     *
+     *
      * 
      * [default: ON] If you enable this setting, Cloud SQL checks your available
      * storage every 30 seconds. If the available storage falls below a threshold
@@ -3110,11 +3474,13 @@ public Builder clearAutoStorageIncrease() {
      * .google.protobuf.BoolValue auto_storage_increase = 7;
      */
     public com.google.protobuf.BoolValue.Builder getAutoStorageIncreaseBuilder() {
-      
+
       onChanged();
       return getAutoStorageIncreaseFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * [default: ON] If you enable this setting, Cloud SQL checks your available
      * storage every 30 seconds. If the available storage falls below a threshold
@@ -3129,11 +3495,14 @@ public com.google.protobuf.BoolValueOrBuilder getAutoStorageIncreaseOrBuilder()
       if (autoStorageIncreaseBuilder_ != null) {
         return autoStorageIncreaseBuilder_.getMessageOrBuilder();
       } else {
-        return autoStorageIncrease_ == null ?
-            com.google.protobuf.BoolValue.getDefaultInstance() : autoStorageIncrease_;
+        return autoStorageIncrease_ == null
+            ? com.google.protobuf.BoolValue.getDefaultInstance()
+            : autoStorageIncrease_;
       }
     }
     /**
+     *
+     *
      * 
      * [default: ON] If you enable this setting, Cloud SQL checks your available
      * storage every 30 seconds. If the available storage falls below a threshold
@@ -3145,35 +3514,40 @@ public com.google.protobuf.BoolValueOrBuilder getAutoStorageIncreaseOrBuilder()
      * .google.protobuf.BoolValue auto_storage_increase = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> 
+            com.google.protobuf.BoolValue,
+            com.google.protobuf.BoolValue.Builder,
+            com.google.protobuf.BoolValueOrBuilder>
         getAutoStorageIncreaseFieldBuilder() {
       if (autoStorageIncreaseBuilder_ == null) {
-        autoStorageIncreaseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
-                getAutoStorageIncrease(),
-                getParentForChildren(),
-                isClean());
+        autoStorageIncreaseBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.BoolValue,
+                com.google.protobuf.BoolValue.Builder,
+                com.google.protobuf.BoolValueOrBuilder>(
+                getAutoStorageIncrease(), getParentForChildren(), isClean());
         autoStorageIncrease_ = null;
       }
       return autoStorageIncreaseBuilder_;
     }
 
-    private com.google.protobuf.MapField<
-        java.lang.String, java.lang.String> databaseFlags_;
+    private com.google.protobuf.MapField databaseFlags_;
+
     private com.google.protobuf.MapField
-    internalGetDatabaseFlags() {
+        internalGetDatabaseFlags() {
       if (databaseFlags_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
             DatabaseFlagsDefaultEntryHolder.defaultEntry);
       }
       return databaseFlags_;
     }
+
     private com.google.protobuf.MapField
-    internalGetMutableDatabaseFlags() {
-      onChanged();;
+        internalGetMutableDatabaseFlags() {
+      onChanged();
+      ;
       if (databaseFlags_ == null) {
-        databaseFlags_ = com.google.protobuf.MapField.newMapField(
-            DatabaseFlagsDefaultEntryHolder.defaultEntry);
+        databaseFlags_ =
+            com.google.protobuf.MapField.newMapField(DatabaseFlagsDefaultEntryHolder.defaultEntry);
       }
       if (!databaseFlags_.isMutable()) {
         databaseFlags_ = databaseFlags_.copy();
@@ -3185,6 +3559,8 @@ public int getDatabaseFlagsCount() {
       return internalGetDatabaseFlags().getMap().size();
     }
     /**
+     *
+     *
      * 
      * The database flags passed to the Cloud SQL instance at startup.
      * An object containing a list of "key": value pairs.
@@ -3193,22 +3569,22 @@ public int getDatabaseFlagsCount() {
      *
      * map<string, string> database_flags = 8;
      */
-
     @java.lang.Override
-    public boolean containsDatabaseFlags(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsDatabaseFlags(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       return internalGetDatabaseFlags().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getDatabaseFlagsMap()} instead.
-     */
+    /** Use {@link #getDatabaseFlagsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getDatabaseFlags() {
       return getDatabaseFlagsMap();
     }
     /**
+     *
+     *
      * 
      * The database flags passed to the Cloud SQL instance at startup.
      * An object containing a list of "key": value pairs.
@@ -3218,11 +3594,12 @@ public java.util.Map getDatabaseFlags() {
      * map<string, string> database_flags = 8;
      */
     @java.lang.Override
-
     public java.util.Map getDatabaseFlagsMap() {
       return internalGetDatabaseFlags().getMap();
     }
     /**
+     *
+     *
      * 
      * The database flags passed to the Cloud SQL instance at startup.
      * An object containing a list of "key": value pairs.
@@ -3232,16 +3609,17 @@ public java.util.Map getDatabaseFlagsMap() {
      * map<string, string> database_flags = 8;
      */
     @java.lang.Override
-
     public java.lang.String getDatabaseFlagsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetDatabaseFlags().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetDatabaseFlags().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * The database flags passed to the Cloud SQL instance at startup.
      * An object containing a list of "key": value pairs.
@@ -3251,12 +3629,11 @@ public java.lang.String getDatabaseFlagsOrDefault(
      * map<string, string> database_flags = 8;
      */
     @java.lang.Override
-
-    public java.lang.String getDatabaseFlagsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetDatabaseFlags().getMap();
+    public java.lang.String getDatabaseFlagsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetDatabaseFlags().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -3264,11 +3641,12 @@ public java.lang.String getDatabaseFlagsOrThrow(
     }
 
     public Builder clearDatabaseFlags() {
-      internalGetMutableDatabaseFlags().getMutableMap()
-          .clear();
+      internalGetMutableDatabaseFlags().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * The database flags passed to the Cloud SQL instance at startup.
      * An object containing a list of "key": value pairs.
@@ -3277,23 +3655,21 @@ public Builder clearDatabaseFlags() {
      *
      * map<string, string> database_flags = 8;
      */
-
-    public Builder removeDatabaseFlags(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableDatabaseFlags().getMutableMap()
-          .remove(key);
+    public Builder removeDatabaseFlags(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableDatabaseFlags().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableDatabaseFlags() {
+    public java.util.Map getMutableDatabaseFlags() {
       return internalGetMutableDatabaseFlags().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * The database flags passed to the Cloud SQL instance at startup.
      * An object containing a list of "key": value pairs.
@@ -3302,16 +3678,19 @@ public Builder removeDatabaseFlags(
      *
      * map<string, string> database_flags = 8;
      */
-    public Builder putDatabaseFlags(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableDatabaseFlags().getMutableMap()
-          .put(key, value);
+    public Builder putDatabaseFlags(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableDatabaseFlags().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * The database flags passed to the Cloud SQL instance at startup.
      * An object containing a list of "key": value pairs.
@@ -3320,83 +3699,100 @@ public Builder putDatabaseFlags(
      *
      * map<string, string> database_flags = 8;
      */
-
-    public Builder putAllDatabaseFlags(
-        java.util.Map values) {
-      internalGetMutableDatabaseFlags().getMutableMap()
-          .putAll(values);
+    public Builder putAllDatabaseFlags(java.util.Map values) {
+      internalGetMutableDatabaseFlags().getMutableMap().putAll(values);
       return this;
     }
 
     private int dataDiskType_ = 0;
     /**
+     *
+     *
      * 
      * The type of storage: `PD_SSD` (default) or `PD_HDD`.
      * 
* * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType data_disk_type = 9; + * * @return The enum numeric value on the wire for dataDiskType. */ - @java.lang.Override public int getDataDiskTypeValue() { + @java.lang.Override + public int getDataDiskTypeValue() { return dataDiskType_; } /** + * + * *
      * The type of storage: `PD_SSD` (default) or `PD_HDD`.
      * 
* * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType data_disk_type = 9; + * * @param value The enum numeric value on the wire for dataDiskType to set. * @return This builder for chaining. */ public Builder setDataDiskTypeValue(int value) { - + dataDiskType_ = value; onChanged(); return this; } /** + * + * *
      * The type of storage: `PD_SSD` (default) or `PD_HDD`.
      * 
* * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType data_disk_type = 9; + * * @return The dataDiskType. */ @java.lang.Override public com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType getDataDiskType() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType result = com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType.valueOf(dataDiskType_); - return result == null ? com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType.UNRECOGNIZED : result; + com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType result = + com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType.valueOf(dataDiskType_); + return result == null + ? com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType.UNRECOGNIZED + : result; } /** + * + * *
      * The type of storage: `PD_SSD` (default) or `PD_HDD`.
      * 
* * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType data_disk_type = 9; + * * @param value The dataDiskType to set. * @return This builder for chaining. */ - public Builder setDataDiskType(com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType value) { + public Builder setDataDiskType( + com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType value) { if (value == null) { throw new NullPointerException(); } - + dataDiskType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The type of storage: `PD_SSD` (default) or `PD_HDD`.
      * 
* * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType data_disk_type = 9; + * * @return This builder for chaining. */ public Builder clearDataDiskType() { - + dataDiskType_ = 0; onChanged(); return this; @@ -3404,36 +3800,49 @@ public Builder clearDataDiskType() { private com.google.protobuf.Int64Value dataDiskSizeGb_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> dataDiskSizeGbBuilder_; + com.google.protobuf.Int64Value, + com.google.protobuf.Int64Value.Builder, + com.google.protobuf.Int64ValueOrBuilder> + dataDiskSizeGbBuilder_; /** + * + * *
      * The storage capacity available to the database, in GB.
      * The minimum (and default) size is 10GB.
      * 
* * .google.protobuf.Int64Value data_disk_size_gb = 10; + * * @return Whether the dataDiskSizeGb field is set. */ public boolean hasDataDiskSizeGb() { return dataDiskSizeGbBuilder_ != null || dataDiskSizeGb_ != null; } /** + * + * *
      * The storage capacity available to the database, in GB.
      * The minimum (and default) size is 10GB.
      * 
* * .google.protobuf.Int64Value data_disk_size_gb = 10; + * * @return The dataDiskSizeGb. */ public com.google.protobuf.Int64Value getDataDiskSizeGb() { if (dataDiskSizeGbBuilder_ == null) { - return dataDiskSizeGb_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : dataDiskSizeGb_; + return dataDiskSizeGb_ == null + ? com.google.protobuf.Int64Value.getDefaultInstance() + : dataDiskSizeGb_; } else { return dataDiskSizeGbBuilder_.getMessage(); } } /** + * + * *
      * The storage capacity available to the database, in GB.
      * The minimum (and default) size is 10GB.
@@ -3455,6 +3864,8 @@ public Builder setDataDiskSizeGb(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The storage capacity available to the database, in GB.
      * The minimum (and default) size is 10GB.
@@ -3462,8 +3873,7 @@ public Builder setDataDiskSizeGb(com.google.protobuf.Int64Value value) {
      *
      * .google.protobuf.Int64Value data_disk_size_gb = 10;
      */
-    public Builder setDataDiskSizeGb(
-        com.google.protobuf.Int64Value.Builder builderForValue) {
+    public Builder setDataDiskSizeGb(com.google.protobuf.Int64Value.Builder builderForValue) {
       if (dataDiskSizeGbBuilder_ == null) {
         dataDiskSizeGb_ = builderForValue.build();
         onChanged();
@@ -3474,6 +3884,8 @@ public Builder setDataDiskSizeGb(
       return this;
     }
     /**
+     *
+     *
      * 
      * The storage capacity available to the database, in GB.
      * The minimum (and default) size is 10GB.
@@ -3485,7 +3897,9 @@ public Builder mergeDataDiskSizeGb(com.google.protobuf.Int64Value value) {
       if (dataDiskSizeGbBuilder_ == null) {
         if (dataDiskSizeGb_ != null) {
           dataDiskSizeGb_ =
-            com.google.protobuf.Int64Value.newBuilder(dataDiskSizeGb_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Int64Value.newBuilder(dataDiskSizeGb_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           dataDiskSizeGb_ = value;
         }
@@ -3497,6 +3911,8 @@ public Builder mergeDataDiskSizeGb(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The storage capacity available to the database, in GB.
      * The minimum (and default) size is 10GB.
@@ -3516,6 +3932,8 @@ public Builder clearDataDiskSizeGb() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The storage capacity available to the database, in GB.
      * The minimum (and default) size is 10GB.
@@ -3524,11 +3942,13 @@ public Builder clearDataDiskSizeGb() {
      * .google.protobuf.Int64Value data_disk_size_gb = 10;
      */
     public com.google.protobuf.Int64Value.Builder getDataDiskSizeGbBuilder() {
-      
+
       onChanged();
       return getDataDiskSizeGbFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The storage capacity available to the database, in GB.
      * The minimum (and default) size is 10GB.
@@ -3540,11 +3960,14 @@ public com.google.protobuf.Int64ValueOrBuilder getDataDiskSizeGbOrBuilder() {
       if (dataDiskSizeGbBuilder_ != null) {
         return dataDiskSizeGbBuilder_.getMessageOrBuilder();
       } else {
-        return dataDiskSizeGb_ == null ?
-            com.google.protobuf.Int64Value.getDefaultInstance() : dataDiskSizeGb_;
+        return dataDiskSizeGb_ == null
+            ? com.google.protobuf.Int64Value.getDefaultInstance()
+            : dataDiskSizeGb_;
       }
     }
     /**
+     *
+     *
      * 
      * The storage capacity available to the database, in GB.
      * The minimum (and default) size is 10GB.
@@ -3553,14 +3976,17 @@ public com.google.protobuf.Int64ValueOrBuilder getDataDiskSizeGbOrBuilder() {
      * .google.protobuf.Int64Value data_disk_size_gb = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> 
+            com.google.protobuf.Int64Value,
+            com.google.protobuf.Int64Value.Builder,
+            com.google.protobuf.Int64ValueOrBuilder>
         getDataDiskSizeGbFieldBuilder() {
       if (dataDiskSizeGbBuilder_ == null) {
-        dataDiskSizeGbBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
-                getDataDiskSizeGb(),
-                getParentForChildren(),
-                isClean());
+        dataDiskSizeGbBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Int64Value,
+                com.google.protobuf.Int64Value.Builder,
+                com.google.protobuf.Int64ValueOrBuilder>(
+                getDataDiskSizeGb(), getParentForChildren(), isClean());
         dataDiskSizeGb_ = null;
       }
       return dataDiskSizeGbBuilder_;
@@ -3568,19 +3994,21 @@ public com.google.protobuf.Int64ValueOrBuilder getDataDiskSizeGbOrBuilder() {
 
     private java.lang.Object zone_ = "";
     /**
+     *
+     *
      * 
      * The Google Cloud Platform zone where your Cloud SQL datdabse instance is
      * located.
      * 
* * string zone = 11; + * * @return The zone. */ public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zone_ = s; return s; @@ -3589,21 +4017,22 @@ public java.lang.String getZone() { } } /** + * + * *
      * The Google Cloud Platform zone where your Cloud SQL datdabse instance is
      * located.
      * 
* * string zone = 11; + * * @return The bytes for zone. */ - public com.google.protobuf.ByteString - getZoneBytes() { + public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); zone_ = b; return b; } else { @@ -3611,57 +4040,64 @@ public java.lang.String getZone() { } } /** + * + * *
      * The Google Cloud Platform zone where your Cloud SQL datdabse instance is
      * located.
      * 
* * string zone = 11; + * * @param value The zone to set. * @return This builder for chaining. */ - public Builder setZone( - java.lang.String value) { + public Builder setZone(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + zone_ = value; onChanged(); return this; } /** + * + * *
      * The Google Cloud Platform zone where your Cloud SQL datdabse instance is
      * located.
      * 
* * string zone = 11; + * * @return This builder for chaining. */ public Builder clearZone() { - + zone_ = getDefaultInstance().getZone(); onChanged(); return this; } /** + * + * *
      * The Google Cloud Platform zone where your Cloud SQL datdabse instance is
      * located.
      * 
* * string zone = 11; + * * @param value The bytes for zone to set. * @return This builder for chaining. */ - public Builder setZoneBytes( - com.google.protobuf.ByteString value) { + public Builder setZoneBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; onChanged(); return this; @@ -3669,6 +4105,8 @@ public Builder setZoneBytes( private java.lang.Object sourceId_ = ""; /** + * + * *
      * The Database Migration Service source connection profile ID,
      * in the format:
@@ -3676,13 +4114,13 @@ public Builder setZoneBytes(
      * 
* * string source_id = 12; + * * @return The sourceId. */ public java.lang.String getSourceId() { java.lang.Object ref = sourceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceId_ = s; return s; @@ -3691,6 +4129,8 @@ public java.lang.String getSourceId() { } } /** + * + * *
      * The Database Migration Service source connection profile ID,
      * in the format:
@@ -3698,15 +4138,14 @@ public java.lang.String getSourceId() {
      * 
* * string source_id = 12; + * * @return The bytes for sourceId. */ - public com.google.protobuf.ByteString - getSourceIdBytes() { + public com.google.protobuf.ByteString getSourceIdBytes() { java.lang.Object ref = sourceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceId_ = b; return b; } else { @@ -3714,6 +4153,8 @@ public java.lang.String getSourceId() { } } /** + * + * *
      * The Database Migration Service source connection profile ID,
      * in the format:
@@ -3721,20 +4162,22 @@ public java.lang.String getSourceId() {
      * 
* * string source_id = 12; + * * @param value The sourceId to set. * @return This builder for chaining. */ - public Builder setSourceId( - java.lang.String value) { + public Builder setSourceId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceId_ = value; onChanged(); return this; } /** + * + * *
      * The Database Migration Service source connection profile ID,
      * in the format:
@@ -3742,15 +4185,18 @@ public Builder setSourceId(
      * 
* * string source_id = 12; + * * @return This builder for chaining. */ public Builder clearSourceId() { - + sourceId_ = getDefaultInstance().getSourceId(); onChanged(); return this; } /** + * + * *
      * The Database Migration Service source connection profile ID,
      * in the format:
@@ -3758,16 +4204,16 @@ public Builder clearSourceId() {
      * 
* * string source_id = 12; + * * @param value The bytes for sourceId to set. * @return This builder for chaining. */ - public Builder setSourceIdBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceId_ = value; onChanged(); return this; @@ -3775,18 +4221,20 @@ public Builder setSourceIdBytes( private java.lang.Object rootPassword_ = ""; /** + * + * *
      * Input only. Initial root password.
      * 
* * string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The rootPassword. */ public java.lang.String getRootPassword() { java.lang.Object ref = rootPassword_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootPassword_ = s; return s; @@ -3795,20 +4243,21 @@ public java.lang.String getRootPassword() { } } /** + * + * *
      * Input only. Initial root password.
      * 
* * string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for rootPassword. */ - public com.google.protobuf.ByteString - getRootPasswordBytes() { + public com.google.protobuf.ByteString getRootPasswordBytes() { java.lang.Object ref = rootPassword_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rootPassword_ = b; return b; } else { @@ -3816,66 +4265,76 @@ public java.lang.String getRootPassword() { } } /** + * + * *
      * Input only. Initial root password.
      * 
* * string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The rootPassword to set. * @return This builder for chaining. */ - public Builder setRootPassword( - java.lang.String value) { + public Builder setRootPassword(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + rootPassword_ = value; onChanged(); return this; } /** + * + * *
      * Input only. Initial root password.
      * 
* * string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRootPassword() { - + rootPassword_ = getDefaultInstance().getRootPassword(); onChanged(); return this; } /** + * + * *
      * Input only. Initial root password.
      * 
* * string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The bytes for rootPassword to set. * @return This builder for chaining. */ - public Builder setRootPasswordBytes( - com.google.protobuf.ByteString value) { + public Builder setRootPasswordBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rootPassword_ = value; onChanged(); return this; } - private boolean rootPasswordSet_ ; + private boolean rootPasswordSet_; /** + * + * *
      * Output only. Indicates If this connection profile root password is stored.
      * 
* * bool root_password_set = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The rootPasswordSet. */ @java.lang.Override @@ -3883,30 +4342,36 @@ public boolean getRootPasswordSet() { return rootPasswordSet_; } /** + * + * *
      * Output only. Indicates If this connection profile root password is stored.
      * 
* * bool root_password_set = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The rootPasswordSet to set. * @return This builder for chaining. */ public Builder setRootPasswordSet(boolean value) { - + rootPasswordSet_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Indicates If this connection profile root password is stored.
      * 
* * bool root_password_set = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRootPasswordSet() { - + rootPasswordSet_ = false; onChanged(); return this; @@ -3914,18 +4379,20 @@ public Builder clearRootPasswordSet() { private java.lang.Object collation_ = ""; /** + * + * *
      * The Cloud SQL default instance level collation.
      * 
* * string collation = 15; + * * @return The collation. */ public java.lang.String getCollation() { java.lang.Object ref = collation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collation_ = s; return s; @@ -3934,20 +4401,21 @@ public java.lang.String getCollation() { } } /** + * + * *
      * The Cloud SQL default instance level collation.
      * 
* * string collation = 15; + * * @return The bytes for collation. */ - public com.google.protobuf.ByteString - getCollationBytes() { + public com.google.protobuf.ByteString getCollationBytes() { java.lang.Object ref = collation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); collation_ = b; return b; } else { @@ -3955,61 +4423,68 @@ public java.lang.String getCollation() { } } /** + * + * *
      * The Cloud SQL default instance level collation.
      * 
* * string collation = 15; + * * @param value The collation to set. * @return This builder for chaining. */ - public Builder setCollation( - java.lang.String value) { + public Builder setCollation(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + collation_ = value; onChanged(); return this; } /** + * + * *
      * The Cloud SQL default instance level collation.
      * 
* * string collation = 15; + * * @return This builder for chaining. */ public Builder clearCollation() { - + collation_ = getDefaultInstance().getCollation(); onChanged(); return this; } /** + * + * *
      * The Cloud SQL default instance level collation.
      * 
* * string collation = 15; + * * @param value The bytes for collation to set. * @return This builder for chaining. */ - public Builder setCollationBytes( - com.google.protobuf.ByteString value) { + public Builder setCollationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + collation_ = 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); } @@ -4019,12 +4494,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.CloudSqlSettings) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.CloudSqlSettings) private static final com.google.cloud.clouddms.v1.CloudSqlSettings DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.CloudSqlSettings(); } @@ -4033,16 +4508,16 @@ public static com.google.cloud.clouddms.v1.CloudSqlSettings getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudSqlSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudSqlSettings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudSqlSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CloudSqlSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4057,6 +4532,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.CloudSqlSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettingsOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettingsOrBuilder.java similarity index 85% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettingsOrBuilder.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettingsOrBuilder.java index 9c98e706..e88ace94 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettingsOrBuilder.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettingsOrBuilder.java @@ -1,32 +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/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; -public interface CloudSqlSettingsOrBuilder extends +public interface CloudSqlSettingsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.CloudSqlSettings) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The database engine type and version.
    * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; + * + * * @return The enum numeric value on the wire for databaseVersion. */ int getDatabaseVersionValue(); /** + * + * *
    * The database engine type and version.
    * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1; + * + * * @return The databaseVersion. */ com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion getDatabaseVersion(); /** + * + * *
    * The resource labels for a Cloud SQL instance to use to annotate any related
    * underlying resources such as Compute Engine VMs.
@@ -38,6 +64,8 @@ public interface CloudSqlSettingsOrBuilder extends
    */
   int getUserLabelsCount();
   /**
+   *
+   *
    * 
    * The resource labels for a Cloud SQL instance to use to annotate any related
    * underlying resources such as Compute Engine VMs.
@@ -47,15 +75,13 @@ public interface CloudSqlSettingsOrBuilder extends
    *
    * map<string, string> user_labels = 2;
    */
-  boolean containsUserLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getUserLabelsMap()} instead.
-   */
+  boolean containsUserLabels(java.lang.String key);
+  /** Use {@link #getUserLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getUserLabels();
+  java.util.Map getUserLabels();
   /**
+   *
+   *
    * 
    * The resource labels for a Cloud SQL instance to use to annotate any related
    * underlying resources such as Compute Engine VMs.
@@ -65,9 +91,10 @@ boolean containsUserLabels(
    *
    * map<string, string> user_labels = 2;
    */
-  java.util.Map
-  getUserLabelsMap();
+  java.util.Map getUserLabelsMap();
   /**
+   *
+   *
    * 
    * The resource labels for a Cloud SQL instance to use to annotate any related
    * underlying resources such as Compute Engine VMs.
@@ -77,11 +104,10 @@ boolean containsUserLabels(
    *
    * map<string, string> user_labels = 2;
    */
-
-  java.lang.String getUserLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getUserLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * The resource labels for a Cloud SQL instance to use to annotate any related
    * underlying resources such as Compute Engine VMs.
@@ -91,11 +117,11 @@ java.lang.String getUserLabelsOrDefault(
    *
    * map<string, string> user_labels = 2;
    */
-
-  java.lang.String getUserLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getUserLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * The tier (or machine type) for this instance, for example:
    * `db-n1-standard-1` (MySQL instances) or
@@ -106,10 +132,13 @@ java.lang.String getUserLabelsOrThrow(
    * 
* * string tier = 3; + * * @return The tier. */ java.lang.String getTier(); /** + * + * *
    * The tier (or machine type) for this instance, for example:
    * `db-n1-standard-1` (MySQL instances) or
@@ -120,32 +149,40 @@ java.lang.String getUserLabelsOrThrow(
    * 
* * string tier = 3; + * * @return The bytes for tier. */ - com.google.protobuf.ByteString - getTierBytes(); + com.google.protobuf.ByteString getTierBytes(); /** + * + * *
    * The maximum size to which storage capacity can be automatically increased.
    * The default value is 0, which specifies that there is no limit.
    * 
* * .google.protobuf.Int64Value storage_auto_resize_limit = 4; + * * @return Whether the storageAutoResizeLimit field is set. */ boolean hasStorageAutoResizeLimit(); /** + * + * *
    * The maximum size to which storage capacity can be automatically increased.
    * The default value is 0, which specifies that there is no limit.
    * 
* * .google.protobuf.Int64Value storage_auto_resize_limit = 4; + * * @return The storageAutoResizeLimit. */ com.google.protobuf.Int64Value getStorageAutoResizeLimit(); /** + * + * *
    * The maximum size to which storage capacity can be automatically increased.
    * The default value is 0, which specifies that there is no limit.
@@ -156,6 +193,8 @@ java.lang.String getUserLabelsOrThrow(
   com.google.protobuf.Int64ValueOrBuilder getStorageAutoResizeLimitOrBuilder();
 
   /**
+   *
+   *
    * 
    * The activation policy specifies when the instance is activated; it is
    * applicable only when the instance state is 'RUNNABLE'. Valid values:
@@ -165,11 +204,15 @@ java.lang.String getUserLabelsOrThrow(
    * connection request arrives.
    * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; + * + * * @return The enum numeric value on the wire for activationPolicy. */ int getActivationPolicyValue(); /** + * + * *
    * The activation policy specifies when the instance is activated; it is
    * applicable only when the instance state is 'RUNNABLE'. Valid values:
@@ -179,12 +222,16 @@ java.lang.String getUserLabelsOrThrow(
    * connection request arrives.
    * 
* - * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5; + * + * * @return The activationPolicy. */ com.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy getActivationPolicy(); /** + * + * *
    * The settings for IP Management. This allows to enable or disable the
    * instance IP and manage which external networks can connect to the instance.
@@ -192,10 +239,13 @@ java.lang.String getUserLabelsOrThrow(
    * 
* * .google.cloud.clouddms.v1.SqlIpConfig ip_config = 6; + * * @return Whether the ipConfig field is set. */ boolean hasIpConfig(); /** + * + * *
    * The settings for IP Management. This allows to enable or disable the
    * instance IP and manage which external networks can connect to the instance.
@@ -203,10 +253,13 @@ java.lang.String getUserLabelsOrThrow(
    * 
* * .google.cloud.clouddms.v1.SqlIpConfig ip_config = 6; + * * @return The ipConfig. */ com.google.cloud.clouddms.v1.SqlIpConfig getIpConfig(); /** + * + * *
    * The settings for IP Management. This allows to enable or disable the
    * instance IP and manage which external networks can connect to the instance.
@@ -218,6 +271,8 @@ java.lang.String getUserLabelsOrThrow(
   com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder getIpConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * [default: ON] If you enable this setting, Cloud SQL checks your available
    * storage every 30 seconds. If the available storage falls below a threshold
@@ -227,10 +282,13 @@ java.lang.String getUserLabelsOrThrow(
    * 
* * .google.protobuf.BoolValue auto_storage_increase = 7; + * * @return Whether the autoStorageIncrease field is set. */ boolean hasAutoStorageIncrease(); /** + * + * *
    * [default: ON] If you enable this setting, Cloud SQL checks your available
    * storage every 30 seconds. If the available storage falls below a threshold
@@ -240,10 +298,13 @@ java.lang.String getUserLabelsOrThrow(
    * 
* * .google.protobuf.BoolValue auto_storage_increase = 7; + * * @return The autoStorageIncrease. */ com.google.protobuf.BoolValue getAutoStorageIncrease(); /** + * + * *
    * [default: ON] If you enable this setting, Cloud SQL checks your available
    * storage every 30 seconds. If the available storage falls below a threshold
@@ -257,6 +318,8 @@ java.lang.String getUserLabelsOrThrow(
   com.google.protobuf.BoolValueOrBuilder getAutoStorageIncreaseOrBuilder();
 
   /**
+   *
+   *
    * 
    * The database flags passed to the Cloud SQL instance at startup.
    * An object containing a list of "key": value pairs.
@@ -267,6 +330,8 @@ java.lang.String getUserLabelsOrThrow(
    */
   int getDatabaseFlagsCount();
   /**
+   *
+   *
    * 
    * The database flags passed to the Cloud SQL instance at startup.
    * An object containing a list of "key": value pairs.
@@ -275,15 +340,13 @@ java.lang.String getUserLabelsOrThrow(
    *
    * map<string, string> database_flags = 8;
    */
-  boolean containsDatabaseFlags(
-      java.lang.String key);
-  /**
-   * Use {@link #getDatabaseFlagsMap()} instead.
-   */
+  boolean containsDatabaseFlags(java.lang.String key);
+  /** Use {@link #getDatabaseFlagsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getDatabaseFlags();
+  java.util.Map getDatabaseFlags();
   /**
+   *
+   *
    * 
    * The database flags passed to the Cloud SQL instance at startup.
    * An object containing a list of "key": value pairs.
@@ -292,9 +355,10 @@ boolean containsDatabaseFlags(
    *
    * map<string, string> database_flags = 8;
    */
-  java.util.Map
-  getDatabaseFlagsMap();
+  java.util.Map getDatabaseFlagsMap();
   /**
+   *
+   *
    * 
    * The database flags passed to the Cloud SQL instance at startup.
    * An object containing a list of "key": value pairs.
@@ -303,11 +367,10 @@ boolean containsDatabaseFlags(
    *
    * map<string, string> database_flags = 8;
    */
-
-  java.lang.String getDatabaseFlagsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getDatabaseFlagsOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * The database flags passed to the Cloud SQL instance at startup.
    * An object containing a list of "key": value pairs.
@@ -316,50 +379,62 @@ java.lang.String getDatabaseFlagsOrDefault(
    *
    * map<string, string> database_flags = 8;
    */
-
-  java.lang.String getDatabaseFlagsOrThrow(
-      java.lang.String key);
+  java.lang.String getDatabaseFlagsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * The type of storage: `PD_SSD` (default) or `PD_HDD`.
    * 
* * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType data_disk_type = 9; + * * @return The enum numeric value on the wire for dataDiskType. */ int getDataDiskTypeValue(); /** + * + * *
    * The type of storage: `PD_SSD` (default) or `PD_HDD`.
    * 
* * .google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType data_disk_type = 9; + * * @return The dataDiskType. */ com.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType getDataDiskType(); /** + * + * *
    * The storage capacity available to the database, in GB.
    * The minimum (and default) size is 10GB.
    * 
* * .google.protobuf.Int64Value data_disk_size_gb = 10; + * * @return Whether the dataDiskSizeGb field is set. */ boolean hasDataDiskSizeGb(); /** + * + * *
    * The storage capacity available to the database, in GB.
    * The minimum (and default) size is 10GB.
    * 
* * .google.protobuf.Int64Value data_disk_size_gb = 10; + * * @return The dataDiskSizeGb. */ com.google.protobuf.Int64Value getDataDiskSizeGb(); /** + * + * *
    * The storage capacity available to the database, in GB.
    * The minimum (and default) size is 10GB.
@@ -370,28 +445,35 @@ java.lang.String getDatabaseFlagsOrThrow(
   com.google.protobuf.Int64ValueOrBuilder getDataDiskSizeGbOrBuilder();
 
   /**
+   *
+   *
    * 
    * The Google Cloud Platform zone where your Cloud SQL datdabse instance is
    * located.
    * 
* * string zone = 11; + * * @return The zone. */ java.lang.String getZone(); /** + * + * *
    * The Google Cloud Platform zone where your Cloud SQL datdabse instance is
    * located.
    * 
* * string zone = 11; + * * @return The bytes for zone. */ - com.google.protobuf.ByteString - getZoneBytes(); + com.google.protobuf.ByteString getZoneBytes(); /** + * + * *
    * The Database Migration Service source connection profile ID,
    * in the format:
@@ -399,10 +481,13 @@ java.lang.String getDatabaseFlagsOrThrow(
    * 
* * string source_id = 12; + * * @return The sourceId. */ java.lang.String getSourceId(); /** + * + * *
    * The Database Migration Service source connection profile ID,
    * in the format:
@@ -410,58 +495,71 @@ java.lang.String getDatabaseFlagsOrThrow(
    * 
* * string source_id = 12; + * * @return The bytes for sourceId. */ - com.google.protobuf.ByteString - getSourceIdBytes(); + com.google.protobuf.ByteString getSourceIdBytes(); /** + * + * *
    * Input only. Initial root password.
    * 
* * string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The rootPassword. */ java.lang.String getRootPassword(); /** + * + * *
    * Input only. Initial root password.
    * 
* * string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for rootPassword. */ - com.google.protobuf.ByteString - getRootPasswordBytes(); + com.google.protobuf.ByteString getRootPasswordBytes(); /** + * + * *
    * Output only. Indicates If this connection profile root password is stored.
    * 
* * bool root_password_set = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The rootPasswordSet. */ boolean getRootPasswordSet(); /** + * + * *
    * The Cloud SQL default instance level collation.
    * 
* * string collation = 15; + * * @return The collation. */ java.lang.String getCollation(); /** + * + * *
    * The Cloud SQL default instance level collation.
    * 
* * string collation = 15; + * * @return The bytes for collation. */ - com.google.protobuf.ByteString - getCollationBytes(); + com.google.protobuf.ByteString getCollationBytes(); } diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsProto.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsProto.java new file mode 100644 index 00000000..ba258453 --- /dev/null +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsProto.java @@ -0,0 +1,548 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public final class ClouddmsProto { + private ClouddmsProto() {} + + 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_clouddms_v1_ListMigrationJobsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_VmCreationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_VmCreationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_VmSelectionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_VmSelectionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_SshScript_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_SshScript_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\'google/cloud/clouddms/v1/clouddms.prot" + + "o\022\030google.cloud.clouddms.v1\032\034google/api/" + + "annotations.proto\032\027google/api/client.pro" + + "to\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\0321google/cloud/clo" + + "uddms/v1/clouddms_resources.proto\032#googl" + + "e/longrunning/operations.proto\032 google/p" + + "rotobuf/field_mask.proto\032\037google/protobu" + + "f/timestamp.proto\"\246\001\n\030ListMigrationJobsR" + + "equest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)datamigr" + + "ation.googleapis.com/MigrationJob\022\021\n\tpag" + + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filt" + + "er\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\211\001\n\031ListMigra" + + "tionJobsResponse\022>\n\016migration_jobs\030\001 \003(\013" + + "2&.google.cloud.clouddms.v1.MigrationJob" + + "\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachable" + + "\030\003 \003(\t\"Y\n\026GetMigrationJobRequest\022?\n\004name" + + "\030\001 \001(\tB1\340A\002\372A+\n)datamigration.googleapis" + + ".com/MigrationJob\"\325\001\n\031CreateMigrationJob" + + "Request\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)datamig" + + "ration.googleapis.com/MigrationJob\022\035\n\020mi" + + "gration_job_id\030\002 \001(\tB\003\340A\002\022B\n\rmigration_j" + + "ob\030\003 \001(\0132&.google.cloud.clouddms.v1.Migr" + + "ationJobB\003\340A\002\022\022\n\nrequest_id\030\004 \001(\t\"\251\001\n\031Up" + + "dateMigrationJobRequest\0224\n\013update_mask\030\001" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022B\n" + + "\rmigration_job\030\002 \001(\0132&.google.cloud.clou" + + "ddms.v1.MigrationJobB\003\340A\002\022\022\n\nrequest_id\030" + + "\003 \001(\t\"\177\n\031DeleteMigrationJobRequest\022?\n\004na" + + "me\030\001 \001(\tB1\340A\002\372A+\n)datamigration.googleap" + + "is.com/MigrationJob\022\022\n\nrequest_id\030\002 \001(\t\022" + + "\r\n\005force\030\003 \001(\010\"X\n\030StartMigrationJobReque" + + "st\022<\n\004name\030\001 \001(\tB.\372A+\n)datamigration.goo" + + "gleapis.com/MigrationJob\"W\n\027StopMigratio" + + "nJobRequest\022<\n\004name\030\001 \001(\tB.\372A+\n)datamigr" + + "ation.googleapis.com/MigrationJob\"Y\n\031Res" + + "umeMigrationJobRequest\022<\n\004name\030\001 \001(\tB.\372A" + + "+\n)datamigration.googleapis.com/Migratio" + + "nJob\"Z\n\032PromoteMigrationJobRequest\022<\n\004na" + + "me\030\001 \001(\tB.\372A+\n)datamigration.googleapis." + + "com/MigrationJob\"Y\n\031VerifyMigrationJobRe" + + "quest\022<\n\004name\030\001 \001(\tB.\372A+\n)datamigration." + + "googleapis.com/MigrationJob\"Z\n\032RestartMi" + + "grationJobRequest\022<\n\004name\030\001 \001(\tB.\372A+\n)da" + + "tamigration.googleapis.com/MigrationJob\"" + + "\246\002\n\030GenerateSshScriptRequest\022E\n\rmigratio" + + "n_job\030\001 \001(\tB.\372A+\n)datamigration.googleap" + + "is.com/MigrationJob\022\017\n\002vm\030\002 \001(\tB\003\340A\002\022H\n\022" + + "vm_creation_config\030d \001(\0132*.google.cloud." + + "clouddms.v1.VmCreationConfigH\000\022J\n\023vm_sel" + + "ection_config\030e \001(\0132+.google.cloud.cloud" + + "dms.v1.VmSelectionConfigH\000\022\017\n\007vm_port\030\003 " + + "\001(\005B\013\n\tvm_config\"Q\n\020VmCreationConfig\022\034\n\017" + + "vm_machine_type\030\001 \001(\tB\003\340A\002\022\017\n\007vm_zone\030\002 " + + "\001(\t\022\016\n\006subnet\030\003 \001(\t\")\n\021VmSelectionConfig" + + "\022\024\n\007vm_zone\030\001 \001(\tB\003\340A\002\"\033\n\tSshScript\022\016\n\006s" + + "cript\030\001 \001(\t\"\260\001\n\035ListConnectionProfilesRe" + + "quest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.datamigra" + + "tion.googleapis.com/ConnectionProfile\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006" + + "filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\230\001\n\036ListC" + + "onnectionProfilesResponse\022H\n\023connection_" + + "profiles\030\001 \003(\0132+.google.cloud.clouddms.v" + + "1.ConnectionProfile\022\027\n\017next_page_token\030\002" + + " \001(\t\022\023\n\013unreachable\030\003 \003(\t\"c\n\033GetConnecti" + + "onProfileRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n." + + "datamigration.googleapis.com/ConnectionP" + + "rofile\"\356\001\n\036CreateConnectionProfileReques" + + "t\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.datamigration" + + ".googleapis.com/ConnectionProfile\022\"\n\025con" + + "nection_profile_id\030\002 \001(\tB\003\340A\002\022L\n\022connect" + + "ion_profile\030\003 \001(\0132+.google.cloud.clouddm" + + "s.v1.ConnectionProfileB\003\340A\002\022\022\n\nrequest_i" + + "d\030\004 \001(\t\"\270\001\n\036UpdateConnectionProfileReque" + + "st\0224\n\013update_mask\030\001 \001(\0132\032.google.protobu" + + "f.FieldMaskB\003\340A\002\022L\n\022connection_profile\030\002" + + " \001(\0132+.google.cloud.clouddms.v1.Connecti" + + "onProfileB\003\340A\002\022\022\n\nrequest_id\030\003 \001(\t\"\211\001\n\036D" + + "eleteConnectionProfileRequest\022D\n\004name\030\001 " + + "\001(\tB6\340A\002\372A0\n.datamigration.googleapis.co" + + "m/ConnectionProfile\022\022\n\nrequest_id\030\002 \001(\t\022" + + "\r\n\005force\030\003 \001(\010\"\200\002\n\021OperationMetadata\0224\n\013" + + "create_time\030\001 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340" + + "A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message\030" + + "\005 \001(\tB\003\340A\003\022#\n\026requested_cancellation\030\006 \001" + + "(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\0032\310\036\n\024Da" + + "taMigrationService\022\300\001\n\021ListMigrationJobs" + + "\0222.google.cloud.clouddms.v1.ListMigratio" + + "nJobsRequest\0323.google.cloud.clouddms.v1." + + "ListMigrationJobsResponse\"B\202\323\344\223\0023\0221/v1/{" + + "parent=projects/*/locations/*}/migration" + + "Jobs\332A\006parent\022\255\001\n\017GetMigrationJob\0220.goog" + + "le.cloud.clouddms.v1.GetMigrationJobRequ" + + "est\032&.google.cloud.clouddms.v1.Migration" + + "Job\"@\202\323\344\223\0023\0221/v1/{name=projects/*/locati" + + "ons/*/migrationJobs/*}\332A\004name\022\377\001\n\022Create" + + "MigrationJob\0223.google.cloud.clouddms.v1." + + "CreateMigrationJobRequest\032\035.google.longr" + + "unning.Operation\"\224\001\202\323\344\223\002B\"1/v1/{parent=p" + + "rojects/*/locations/*}/migrationJobs:\rmi" + + "gration_job\332A%parent,migration_job,migra" + + "tion_job_id\312A!\n\014MigrationJob\022\021OperationM" + + "etadata\022\201\002\n\022UpdateMigrationJob\0223.google." + + "cloud.clouddms.v1.UpdateMigrationJobRequ" + + "est\032\035.google.longrunning.Operation\"\226\001\202\323\344" + + "\223\002P2?/v1/{migration_job.name=projects/*/" + + "locations/*/migrationJobs/*}:\rmigration_" + + "job\332A\031migration_job,update_mask\312A!\n\014Migr" + + "ationJob\022\021OperationMetadata\022\327\001\n\022DeleteMi" + + "grationJob\0223.google.cloud.clouddms.v1.De" + + "leteMigrationJobRequest\032\035.google.longrun" + + "ning.Operation\"m\202\323\344\223\0023*1/v1/{name=projec" + + "ts/*/locations/*/migrationJobs/*}\332A\004name" + + "\312A*\n\025google.protobuf.Empty\022\021OperationMet" + + "adata\022\316\001\n\021StartMigrationJob\0222.google.clo" + + "ud.clouddms.v1.StartMigrationJobRequest\032" + + "\035.google.longrunning.Operation\"f\202\323\344\223\002<\"7" + + "/v1/{name=projects/*/locations/*/migrati" + + "onJobs/*}:start:\001*\312A!\n\014MigrationJob\022\021Ope" + + "rationMetadata\022\313\001\n\020StopMigrationJob\0221.go" + + "ogle.cloud.clouddms.v1.StopMigrationJobR" + + "equest\032\035.google.longrunning.Operation\"e\202" + + "\323\344\223\002;\"6/v1/{name=projects/*/locations/*/" + + "migrationJobs/*}:stop:\001*\312A!\n\014MigrationJo" + + "b\022\021OperationMetadata\022\321\001\n\022ResumeMigration" + + "Job\0223.google.cloud.clouddms.v1.ResumeMig" + + "rationJobRequest\032\035.google.longrunning.Op" + + "eration\"g\202\323\344\223\002=\"8/v1/{name=projects/*/lo" + + "cations/*/migrationJobs/*}:resume:\001*\312A!\n" + + "\014MigrationJob\022\021OperationMetadata\022\324\001\n\023Pro" + + "moteMigrationJob\0224.google.cloud.clouddms" + + ".v1.PromoteMigrationJobRequest\032\035.google." + + "longrunning.Operation\"h\202\323\344\223\002>\"9/v1/{name" + + "=projects/*/locations/*/migrationJobs/*}" + + ":promote:\001*\312A!\n\014MigrationJob\022\021OperationM" + + "etadata\022\321\001\n\022VerifyMigrationJob\0223.google." + + "cloud.clouddms.v1.VerifyMigrationJobRequ" + + "est\032\035.google.longrunning.Operation\"g\202\323\344\223" + + "\002=\"8/v1/{name=projects/*/locations/*/mig" + + "rationJobs/*}:verify:\001*\312A!\n\014MigrationJob" + + "\022\021OperationMetadata\022\324\001\n\023RestartMigration" + + "Job\0224.google.cloud.clouddms.v1.RestartMi" + + "grationJobRequest\032\035.google.longrunning.O" + + "peration\"h\202\323\344\223\002>\"9/v1/{name=projects/*/l" + + "ocations/*/migrationJobs/*}:restart:\001*\312A" + + "!\n\014MigrationJob\022\021OperationMetadata\022\305\001\n\021G" + + "enerateSshScript\0222.google.cloud.clouddms" + + ".v1.GenerateSshScriptRequest\032#.google.cl" + + "oud.clouddms.v1.SshScript\"W\202\323\344\223\002Q\"L/v1/{" + + "migration_job=projects/*/locations/*/mig" + + "rationJobs/*}:generateSshScript:\001*\022\324\001\n\026L" + + "istConnectionProfiles\0227.google.cloud.clo" + + "uddms.v1.ListConnectionProfilesRequest\0328" + + ".google.cloud.clouddms.v1.ListConnection" + + "ProfilesResponse\"G\202\323\344\223\0028\0226/v1/{parent=pr" + + "ojects/*/locations/*}/connectionProfiles" + + "\332A\006parent\022\301\001\n\024GetConnectionProfile\0225.goo" + + "gle.cloud.clouddms.v1.GetConnectionProfi" + + "leRequest\032+.google.cloud.clouddms.v1.Con" + + "nectionProfile\"E\202\323\344\223\0028\0226/v1/{name=projec" + + "ts/*/locations/*/connectionProfiles/*}\332A" + + "\004name\022\242\002\n\027CreateConnectionProfile\0228.goog" + + "le.cloud.clouddms.v1.CreateConnectionPro" + + "fileRequest\032\035.google.longrunning.Operati" + + "on\"\255\001\202\323\344\223\002L\"6/v1/{parent=projects/*/loca" + + "tions/*}/connectionProfiles:\022connection_" + + "profile\332A/parent,connection_profile,conn" + + "ection_profile_id\312A&\n\021ConnectionProfile\022" + + "\021OperationMetadata\022\244\002\n\027UpdateConnectionP" + + "rofile\0228.google.cloud.clouddms.v1.Update" + + "ConnectionProfileRequest\032\035.google.longru" + + "nning.Operation\"\257\001\202\323\344\223\002_2I/v1/{connectio" + + "n_profile.name=projects/*/locations/*/co" + + "nnectionProfiles/*}:\022connection_profile\332" + + "A\036connection_profile,update_mask\312A&\n\021Con" + + "nectionProfile\022\021OperationMetadata\022\346\001\n\027De" + + "leteConnectionProfile\0228.google.cloud.clo" + + "uddms.v1.DeleteConnectionProfileRequest\032" + + "\035.google.longrunning.Operation\"r\202\323\344\223\0028*6" + + "/v1/{name=projects/*/locations/*/connect" + + "ionProfiles/*}\332A\004name\312A*\n\025google.protobu" + + "f.Empty\022\021OperationMetadata\032P\312A\034datamigra" + + "tion.googleapis.com\322A.https://www.google" + + "apis.com/auth/cloud-platformB\305\001\n\034com.goo" + + "gle.cloud.clouddms.v1B\rClouddmsProtoP\001Z@" + + "google.golang.org/genproto/googleapis/cl" + + "oud/clouddms/v1;clouddms\252\002\030Google.Cloud." + + "CloudDms.V1\312\002\030Google\\Cloud\\CloudDms\\V1\352\002" + + "\033Google::Cloud::CloudDMS::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.clouddms.v1.ClouddmsResourcesProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_descriptor, + new java.lang.String[] { + "MigrationJobs", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_descriptor, + new java.lang.String[] { + "Parent", "MigrationJobId", "MigrationJob", "RequestId", + }); + internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "MigrationJob", "RequestId", + }); + internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", "Force", + }); + internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_descriptor, + new java.lang.String[] { + "MigrationJob", "Vm", "VmCreationConfig", "VmSelectionConfig", "VmPort", "VmConfig", + }); + internal_static_google_cloud_clouddms_v1_VmCreationConfig_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_clouddms_v1_VmCreationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_VmCreationConfig_descriptor, + new java.lang.String[] { + "VmMachineType", "VmZone", "Subnet", + }); + internal_static_google_cloud_clouddms_v1_VmSelectionConfig_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_clouddms_v1_VmSelectionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_VmSelectionConfig_descriptor, + new java.lang.String[] { + "VmZone", + }); + internal_static_google_cloud_clouddms_v1_SshScript_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_clouddms_v1_SshScript_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_SshScript_descriptor, + new java.lang.String[] { + "Script", + }); + internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_descriptor, + new java.lang.String[] { + "ConnectionProfiles", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_descriptor, + new java.lang.String[] { + "Parent", "ConnectionProfileId", "ConnectionProfile", "RequestId", + }); + internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "ConnectionProfile", "RequestId", + }); + internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", "Force", + }); + internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_clouddms_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + }); + 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.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + 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.clouddms.v1.ClouddmsResourcesProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java new file mode 100644 index 00000000..15d628b1 --- /dev/null +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java @@ -0,0 +1,505 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/clouddms/v1/clouddms_resources.proto + +package com.google.cloud.clouddms.v1; + +public final class ClouddmsResourcesProto { + private ClouddmsResourcesProto() {} + + 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_clouddms_v1_SslConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_SslConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_SqlAclEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_SqlAclEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_SqlIpConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_SqlIpConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_UserLabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_UserLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_DatabaseFlagsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_DatabaseFlagsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_DatabaseType_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_DatabaseType_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_MigrationJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ConnectionProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ConnectionProfile_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ConnectionProfile_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/clouddms/v1/clouddms_reso" + + "urces.proto\022\030google.cloud.clouddms.v1\032\037g" + + "oogle/api/field_behavior.proto\032\031google/a" + + "pi/resource.proto\032\036google/protobuf/durat" + + "ion.proto\032\037google/protobuf/timestamp.pro" + + "to\032\036google/protobuf/wrappers.proto\032\027goog" + + "le/rpc/status.proto\032\034google/api/annotati" + + "ons.proto\"\356\001\n\tSslConfig\022>\n\004type\030\001 \001(\0162+." + + "google.cloud.clouddms.v1.SslConfig.SslTy" + + "peB\003\340A\003\022\027\n\nclient_key\030\002 \001(\tB\003\340A\004\022\037\n\022clie" + + "nt_certificate\030\003 \001(\tB\003\340A\004\022\036\n\016ca_certific" + + "ate\030\004 \001(\tB\006\340A\004\340A\002\"G\n\007SslType\022\030\n\024SSL_TYPE" + + "_UNSPECIFIED\020\000\022\017\n\013SERVER_ONLY\020\001\022\021\n\rSERVE" + + "R_CLIENT\020\002\"\322\001\n\026MySqlConnectionProfile\022\021\n" + + "\004host\030\001 \001(\tB\003\340A\002\022\021\n\004port\030\002 \001(\005B\003\340A\002\022\025\n\010u" + + "sername\030\003 \001(\tB\003\340A\002\022\030\n\010password\030\004 \001(\tB\006\340A" + + "\004\340A\002\022\031\n\014password_set\030\005 \001(\010B\003\340A\003\0220\n\003ssl\030\006" + + " \001(\0132#.google.cloud.clouddms.v1.SslConfi" + + "g\022\024\n\014cloud_sql_id\030\007 \001(\t\"\327\001\n\033PostgreSqlCo" + + "nnectionProfile\022\021\n\004host\030\001 \001(\tB\003\340A\002\022\021\n\004po" + + "rt\030\002 \001(\005B\003\340A\002\022\025\n\010username\030\003 \001(\tB\003\340A\002\022\030\n\010" + + "password\030\004 \001(\tB\006\340A\004\340A\002\022\031\n\014password_set\030\005" + + " \001(\010B\003\340A\003\0220\n\003ssl\030\006 \001(\0132#.google.cloud.cl" + + "ouddms.v1.SslConfig\022\024\n\014cloud_sql_id\030\007 \001(" + + "\t\"\252\001\n\031CloudSqlConnectionProfile\022\031\n\014cloud" + + "_sql_id\030\001 \001(\tB\003\340A\003\022A\n\010settings\030\002 \001(\0132*.g" + + "oogle.cloud.clouddms.v1.CloudSqlSettings" + + "B\003\340A\005\022\027\n\nprivate_ip\030\003 \001(\tB\003\340A\003\022\026\n\tpublic" + + "_ip\030\004 \001(\tB\003\340A\003\"\233\001\n\013SqlAclEntry\022\r\n\005value\030" + + "\001 \001(\t\0221\n\013expire_time\030\n \001(\0132\032.google.prot" + + "obuf.TimestampH\000\022-\n\003ttl\030\013 \001(\0132\031.google.p" + + "rotobuf.DurationB\003\340A\004H\000\022\r\n\005label\030\003 \001(\tB\014" + + "\n\nexpiration\"\314\001\n\013SqlIpConfig\022/\n\013enable_i" + + "pv4\030\001 \001(\0132\032.google.protobuf.BoolValue\022\027\n" + + "\017private_network\030\002 \001(\t\022/\n\013require_ssl\030\003 " + + "\001(\0132\032.google.protobuf.BoolValue\022B\n\023autho" + + "rized_networks\030\004 \003(\0132%.google.cloud.clou" + + "ddms.v1.SqlAclEntry\"\372\t\n\020CloudSqlSettings" + + "\022W\n\020database_version\030\001 \001(\0162=.google.clou" + + "d.clouddms.v1.CloudSqlSettings.SqlDataba" + + "seVersion\022O\n\013user_labels\030\002 \003(\0132:.google." + + "cloud.clouddms.v1.CloudSqlSettings.UserL" + + "abelsEntry\022\014\n\004tier\030\003 \001(\t\022>\n\031storage_auto" + + "_resize_limit\030\004 \001(\0132\033.google.protobuf.In" + + "t64Value\022Y\n\021activation_policy\030\005 \001(\0162>.go" + + "ogle.cloud.clouddms.v1.CloudSqlSettings." + + "SqlActivationPolicy\0228\n\tip_config\030\006 \001(\0132%" + + ".google.cloud.clouddms.v1.SqlIpConfig\0229\n" + + "\025auto_storage_increase\030\007 \001(\0132\032.google.pr" + + "otobuf.BoolValue\022U\n\016database_flags\030\010 \003(\013" + + "2=.google.cloud.clouddms.v1.CloudSqlSett" + + "ings.DatabaseFlagsEntry\022R\n\016data_disk_typ" + + "e\030\t \001(\0162:.google.cloud.clouddms.v1.Cloud" + + "SqlSettings.SqlDataDiskType\0226\n\021data_disk" + + "_size_gb\030\n \001(\0132\033.google.protobuf.Int64Va" + + "lue\022\014\n\004zone\030\013 \001(\t\022\021\n\tsource_id\030\014 \001(\t\022\032\n\r" + + "root_password\030\r \001(\tB\003\340A\004\022\036\n\021root_passwor" + + "d_set\030\016 \001(\010B\003\340A\003\022\021\n\tcollation\030\017 \001(\t\0321\n\017U" + + "serLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\0324\n\022DatabaseFlagsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"S\n\023SqlActivationPol" + + "icy\022%\n!SQL_ACTIVATION_POLICY_UNSPECIFIED" + + "\020\000\022\n\n\006ALWAYS\020\001\022\t\n\005NEVER\020\002\"M\n\017SqlDataDisk" + + "Type\022\"\n\036SQL_DATA_DISK_TYPE_UNSPECIFIED\020\000" + + "\022\n\n\006PD_SSD\020\001\022\n\n\006PD_HDD\020\002\"\275\001\n\022SqlDatabase" + + "Version\022$\n SQL_DATABASE_VERSION_UNSPECIF" + + "IED\020\000\022\r\n\tMYSQL_5_6\020\001\022\r\n\tMYSQL_5_7\020\002\022\020\n\014P" + + "OSTGRES_9_6\020\003\022\017\n\013POSTGRES_11\020\004\022\017\n\013POSTGR" + + "ES_10\020\005\022\r\n\tMYSQL_8_0\020\006\022\017\n\013POSTGRES_12\020\007\022" + + "\017\n\013POSTGRES_13\020\010\"\026\n\024StaticIpConnectivity" + + "\"[\n\026ReverseSshConnectivity\022\022\n\005vm_ip\030\001 \001(" + + "\tB\003\340A\002\022\024\n\007vm_port\030\002 \001(\005B\003\340A\002\022\n\n\002vm\030\003 \001(\t" + + "\022\013\n\003vpc\030\004 \001(\t\"%\n\026VpcPeeringConnectivity\022" + + "\013\n\003vpc\030\001 \001(\t\"\206\001\n\014DatabaseType\022<\n\010provide" + + "r\030\001 \001(\0162*.google.cloud.clouddms.v1.Datab" + + "aseProvider\0228\n\006engine\030\002 \001(\0162(.google.clo" + + "ud.clouddms.v1.DatabaseEngine\"\354\014\n\014Migrat" + + "ionJob\022\014\n\004name\030\001 \001(\t\0224\n\013create_time\030\002 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" + + "date_time\030\003 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\022B\n\006labels\030\004 \003(\01322.google.cloud." + + "clouddms.v1.MigrationJob.LabelsEntry\022\024\n\014" + + "display_name\030\005 \001(\t\022;\n\005state\030\006 \001(\0162,.goog" + + "le.cloud.clouddms.v1.MigrationJob.State\022" + + "@\n\005phase\030\007 \001(\0162,.google.cloud.clouddms.v" + + "1.MigrationJob.PhaseB\003\340A\003\022>\n\004type\030\010 \001(\0162" + + "+.google.cloud.clouddms.v1.MigrationJob." + + "TypeB\003\340A\002\022\021\n\tdump_path\030\t \001(\t\022\023\n\006source\030\n" + + " \001(\tB\003\340A\002\022\030\n\013destination\030\013 \001(\tB\003\340A\002\022T\n\030r" + + "everse_ssh_connectivity\030e \001(\01320.google.c" + + "loud.clouddms.v1.ReverseSshConnectivityH" + + "\000\022T\n\030vpc_peering_connectivity\030f \001(\01320.go" + + "ogle.cloud.clouddms.v1.VpcPeeringConnect" + + "ivityH\000\022P\n\026static_ip_connectivity\030g \001(\0132" + + "..google.cloud.clouddms.v1.StaticIpConne" + + "ctivityH\000\0220\n\010duration\030\014 \001(\0132\031.google.pro" + + "tobuf.DurationB\003\340A\003\022&\n\005error\030\r \001(\0132\022.goo" + + "gle.rpc.StatusB\003\340A\003\022?\n\017source_database\030\016" + + " \001(\0132&.google.cloud.clouddms.v1.Database" + + "Type\022D\n\024destination_database\030\017 \001(\0132&.goo" + + "gle.cloud.clouddms.v1.DatabaseType\0221\n\010en" + + "d_time\030\020 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001\"\361\001\n\005State\022\025\n\021STATE_UNSPECIF" + + "IED\020\000\022\017\n\013MAINTENANCE\020\001\022\t\n\005DRAFT\020\002\022\014\n\010CRE" + + "ATING\020\003\022\017\n\013NOT_STARTED\020\004\022\013\n\007RUNNING\020\005\022\n\n" + + "\006FAILED\020\006\022\r\n\tCOMPLETED\020\007\022\014\n\010DELETING\020\010\022\014" + + "\n\010STOPPING\020\t\022\013\n\007STOPPED\020\n\022\013\n\007DELETED\020\013\022\014" + + "\n\010UPDATING\020\014\022\014\n\010STARTING\020\r\022\016\n\nRESTARTING" + + "\020\016\022\014\n\010RESUMING\020\017\"\216\001\n\005Phase\022\025\n\021PHASE_UNSP" + + "ECIFIED\020\000\022\r\n\tFULL_DUMP\020\001\022\007\n\003CDC\020\002\022\027\n\023PRO" + + "MOTE_IN_PROGRESS\020\003\022%\n!WAITING_FOR_SOURCE" + + "_WRITES_TO_STOP\020\004\022\026\n\022PREPARING_THE_DUMP\020" + + "\005\":\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\014\n\010ONE_T" + + "IME\020\001\022\016\n\nCONTINUOUS\020\002:u\352Ar\n)datamigratio" + + "n.googleapis.com/MigrationJob\022Eprojects/" + + "{project}/locations/{location}/migration" + + "Jobs/{migration_job}B\016\n\014connectivity\"\263\007\n" + + "\021ConnectionProfile\022\014\n\004name\030\001 \001(\t\0224\n\013crea" + + "te_time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\022G\n\006labels\030\004 \003(\01327.g" + + "oogle.cloud.clouddms.v1.ConnectionProfil" + + "e.LabelsEntry\022@\n\005state\030\005 \001(\01621.google.cl" + + "oud.clouddms.v1.ConnectionProfile.State\022" + + "\024\n\014display_name\030\006 \001(\t\022A\n\005mysql\030d \001(\01320.g" + + "oogle.cloud.clouddms.v1.MySqlConnectionP" + + "rofileH\000\022K\n\npostgresql\030e \001(\01325.google.cl" + + "oud.clouddms.v1.PostgreSqlConnectionProf" + + "ileH\000\022G\n\010cloudsql\030f \001(\01323.google.cloud.c" + + "louddms.v1.CloudSqlConnectionProfileH\000\022&" + + "\n\005error\030\007 \001(\0132\022.google.rpc.StatusB\003\340A\003\022<" + + "\n\010provider\030\010 \001(\0162*.google.cloud.clouddms" + + ".v1.DatabaseProvider\032-\n\013LabelsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n\005State\022\025\n\021" + + "STATE_UNSPECIFIED\020\000\022\t\n\005DRAFT\020\001\022\014\n\010CREATI" + + "NG\020\002\022\t\n\005READY\020\003\022\014\n\010UPDATING\020\004\022\014\n\010DELETIN" + + "G\020\005\022\013\n\007DELETED\020\006\022\n\n\006FAILED\020\007:\205\001\352A\201\001\n.dat" + + "amigration.googleapis.com/ConnectionProf" + + "ile\022Oprojects/{project}/locations/{locat" + + "ion}/connectionProfiles/{connection_prof" + + "ile}B\024\n\022connection_profile\"\320\006\n\035Migration" + + "JobVerificationError\022Z\n\nerror_code\030\001 \001(\016" + + "2A.google.cloud.clouddms.v1.MigrationJob" + + "VerificationError.ErrorCodeB\003\340A\003\022\032\n\rerro" + + "r_message\030\002 \001(\tB\003\340A\003\022!\n\024error_detail_mes" + + "sage\030\003 \001(\tB\003\340A\003\"\223\005\n\tErrorCode\022\032\n\026ERROR_C" + + "ODE_UNSPECIFIED\020\000\022\026\n\022CONNECTION_FAILURE\020" + + "\001\022\032\n\026AUTHENTICATION_FAILURE\020\002\022%\n!INVALID" + + "_CONNECTION_PROFILE_CONFIG\020\003\022\033\n\027VERSION_" + + "INCOMPATIBILITY\020\004\022,\n(CONNECTION_PROFILE_" + + "TYPES_INCOMPATIBILITY\020\005\022\032\n\026NO_PGLOGICAL_" + + "INSTALLED\020\007\022!\n\035PGLOGICAL_NODE_ALREADY_EX" + + "ISTS\020\010\022\025\n\021INVALID_WAL_LEVEL\020\t\022\"\n\036INVALID" + + "_SHARED_PRELOAD_LIBRARY\020\n\022&\n\"INSUFFICIEN" + + "T_MAX_REPLICATION_SLOTS\020\013\022 \n\034INSUFFICIEN" + + "T_MAX_WAL_SENDERS\020\014\022%\n!INSUFFICIENT_MAX_" + + "WORKER_PROCESSES\020\r\022\032\n\026UNSUPPORTED_EXTENS" + + "IONS\020\016\022\036\n\032UNSUPPORTED_MIGRATION_TYPE\020\017\022#" + + "\n\037INVALID_RDS_LOGICAL_REPLICATION\020\020\022\031\n\025U" + + "NSUPPORTED_GTID_MODE\020\021\022 \n\034UNSUPPORTED_TA" + + "BLE_DEFINITION\020\022\022\027\n\023UNSUPPORTED_DEFINER\020" + + "\023\022\"\n\036CANT_RESTART_RUNNING_MIGRATION\020\025*L\n" + + "\016DatabaseEngine\022\037\n\033DATABASE_ENGINE_UNSPE" + + "CIFIED\020\000\022\t\n\005MYSQL\020\001\022\016\n\nPOSTGRESQL\020\002*L\n\020D" + + "atabaseProvider\022!\n\035DATABASE_PROVIDER_UNS" + + "PECIFIED\020\000\022\014\n\010CLOUDSQL\020\001\022\007\n\003RDS\020\002B\316\001\n\034co" + + "m.google.cloud.clouddms.v1B\026ClouddmsReso" + + "urcesProtoP\001Z@google.golang.org/genproto" + + "/googleapis/cloud/clouddms/v1;clouddms\252\002" + + "\030Google.Cloud.CloudDms.V1\312\002\030Google\\Cloud" + + "\\CloudDms\\V1\352\002\033Google::Cloud::CloudDMS::" + + "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.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_clouddms_v1_SslConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_clouddms_v1_SslConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_SslConfig_descriptor, + new java.lang.String[] { + "Type", "ClientKey", "ClientCertificate", "CaCertificate", + }); + internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_descriptor, + new java.lang.String[] { + "Host", "Port", "Username", "Password", "PasswordSet", "Ssl", "CloudSqlId", + }); + internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_descriptor, + new java.lang.String[] { + "Host", "Port", "Username", "Password", "PasswordSet", "Ssl", "CloudSqlId", + }); + internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor, + new java.lang.String[] { + "CloudSqlId", "Settings", "PrivateIp", "PublicIp", + }); + internal_static_google_cloud_clouddms_v1_SqlAclEntry_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_clouddms_v1_SqlAclEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_SqlAclEntry_descriptor, + new java.lang.String[] { + "Value", "ExpireTime", "Ttl", "Label", "Expiration", + }); + internal_static_google_cloud_clouddms_v1_SqlIpConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_clouddms_v1_SqlIpConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_SqlIpConfig_descriptor, + new java.lang.String[] { + "EnableIpv4", "PrivateNetwork", "RequireSsl", "AuthorizedNetworks", + }); + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor, + new java.lang.String[] { + "DatabaseVersion", + "UserLabels", + "Tier", + "StorageAutoResizeLimit", + "ActivationPolicy", + "IpConfig", + "AutoStorageIncrease", + "DatabaseFlags", + "DataDiskType", + "DataDiskSizeGb", + "Zone", + "SourceId", + "RootPassword", + "RootPasswordSet", + "Collation", + }); + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_UserLabelsEntry_descriptor = + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_UserLabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_UserLabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_DatabaseFlagsEntry_descriptor = + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_DatabaseFlagsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_CloudSqlSettings_DatabaseFlagsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_descriptor, + new java.lang.String[] { + "VmIp", "VmPort", "Vm", "Vpc", + }); + internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_descriptor, + new java.lang.String[] { + "Vpc", + }); + internal_static_google_cloud_clouddms_v1_DatabaseType_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_clouddms_v1_DatabaseType_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_DatabaseType_descriptor, + new java.lang.String[] { + "Provider", "Engine", + }); + internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_clouddms_v1_MigrationJob_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "DisplayName", + "State", + "Phase", + "Type", + "DumpPath", + "Source", + "Destination", + "ReverseSshConnectivity", + "VpcPeeringConnectivity", + "StaticIpConnectivity", + "Duration", + "Error", + "SourceDatabase", + "DestinationDatabase", + "EndTime", + "Connectivity", + }); + internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_descriptor = + internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_clouddms_v1_ConnectionProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "State", + "DisplayName", + "Mysql", + "Postgresql", + "Cloudsql", + "Error", + "Provider", + "ConnectionProfile", + }); + internal_static_google_cloud_clouddms_v1_ConnectionProfile_LabelsEntry_descriptor = + internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_clouddms_v1_ConnectionProfile_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ConnectionProfile_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_descriptor, + new java.lang.String[] { + "ErrorCode", "ErrorMessage", "ErrorDetailMessage", + }); + 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.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfile.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfile.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfile.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfile.java index 8ed7c4c1..8dcb9b43 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfile.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfile.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * A connection profile definition.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.ConnectionProfile} */ -public final class ConnectionProfile extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ConnectionProfile extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ConnectionProfile) ConnectionProfileOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConnectionProfile.newBuilder() to construct. private ConnectionProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ConnectionProfile() { name_ = ""; state_ = 0; @@ -28,16 +46,15 @@ private ConnectionProfile() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConnectionProfile(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ConnectionProfile( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,178 +74,209 @@ private ConnectionProfile( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + name_ = s; + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } + case 40: + { + int rawValue = input.readEnum(); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + state_ = rawValue; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 40: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - case 58: { - com.google.rpc.Status.Builder subBuilder = null; - if (error_ != null) { - subBuilder = error_.toBuilder(); + displayName_ = s; + break; } - error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(error_); - error_ = subBuilder.buildPartial(); + case 58: + { + com.google.rpc.Status.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = subBuilder.buildPartial(); + } + + break; } + case 64: + { + int rawValue = input.readEnum(); - break; - } - case 64: { - int rawValue = input.readEnum(); - - provider_ = rawValue; - break; - } - case 802: { - com.google.cloud.clouddms.v1.MySqlConnectionProfile.Builder subBuilder = null; - if (connectionProfileCase_ == 100) { - subBuilder = ((com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_).toBuilder(); - } - connectionProfile_ = - input.readMessage(com.google.cloud.clouddms.v1.MySqlConnectionProfile.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_); - connectionProfile_ = subBuilder.buildPartial(); + provider_ = rawValue; + break; } - connectionProfileCase_ = 100; - break; - } - case 810: { - com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder subBuilder = null; - if (connectionProfileCase_ == 101) { - subBuilder = ((com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_).toBuilder(); + case 802: + { + com.google.cloud.clouddms.v1.MySqlConnectionProfile.Builder subBuilder = null; + if (connectionProfileCase_ == 100) { + subBuilder = + ((com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_) + .toBuilder(); + } + connectionProfile_ = + input.readMessage( + com.google.cloud.clouddms.v1.MySqlConnectionProfile.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_); + connectionProfile_ = subBuilder.buildPartial(); + } + connectionProfileCase_ = 100; + break; } - connectionProfile_ = - input.readMessage(com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_); - connectionProfile_ = subBuilder.buildPartial(); + case 810: + { + com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder subBuilder = null; + if (connectionProfileCase_ == 101) { + subBuilder = + ((com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_) + .toBuilder(); + } + connectionProfile_ = + input.readMessage( + com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_); + connectionProfile_ = subBuilder.buildPartial(); + } + connectionProfileCase_ = 101; + break; } - connectionProfileCase_ = 101; - break; - } - case 818: { - com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.Builder subBuilder = null; - if (connectionProfileCase_ == 102) { - subBuilder = ((com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_).toBuilder(); + case 818: + { + com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.Builder subBuilder = null; + if (connectionProfileCase_ == 102) { + subBuilder = + ((com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_) + .toBuilder(); + } + connectionProfile_ = + input.readMessage( + com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_); + connectionProfile_ = subBuilder.buildPartial(); + } + connectionProfileCase_ = 102; + break; } - connectionProfile_ = - input.readMessage(com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_); - connectionProfile_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - connectionProfileCase_ = 102; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_ConnectionProfile_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_ConnectionProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.ConnectionProfile.class, com.google.cloud.clouddms.v1.ConnectionProfile.Builder.class); + com.google.cloud.clouddms.v1.ConnectionProfile.class, + com.google.cloud.clouddms.v1.ConnectionProfile.Builder.class); } /** + * + * *
    * The current connection profile state (e.g. DRAFT, READY, or FAILED).
    * 
* * Protobuf enum {@code google.cloud.clouddms.v1.ConnectionProfile.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The state of the connection profile is unknown.
      * 
@@ -237,6 +285,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The connection profile is in draft mode and fully editable.
      * 
@@ -245,6 +295,8 @@ public enum State */ DRAFT(1), /** + * + * *
      * The connection profile is being created.
      * 
@@ -253,6 +305,8 @@ public enum State */ CREATING(2), /** + * + * *
      * The connection profile is ready.
      * 
@@ -261,6 +315,8 @@ public enum State */ READY(3), /** + * + * *
      * The connection profile is being updated.
      * 
@@ -269,6 +325,8 @@ public enum State */ UPDATING(4), /** + * + * *
      * The connection profile is being deleted.
      * 
@@ -277,6 +335,8 @@ public enum State */ DELETING(5), /** + * + * *
      * The connection profile has been deleted.
      * 
@@ -285,6 +345,8 @@ public enum State */ DELETED(6), /** + * + * *
      * The last action on the connection profile failed.
      * 
@@ -296,6 +358,8 @@ public enum State ; /** + * + * *
      * The state of the connection profile is unknown.
      * 
@@ -304,6 +368,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The connection profile is in draft mode and fully editable.
      * 
@@ -312,6 +378,8 @@ public enum State */ public static final int DRAFT_VALUE = 1; /** + * + * *
      * The connection profile is being created.
      * 
@@ -320,6 +388,8 @@ public enum State */ public static final int CREATING_VALUE = 2; /** + * + * *
      * The connection profile is ready.
      * 
@@ -328,6 +398,8 @@ public enum State */ public static final int READY_VALUE = 3; /** + * + * *
      * The connection profile is being updated.
      * 
@@ -336,6 +408,8 @@ public enum State */ public static final int UPDATING_VALUE = 4; /** + * + * *
      * The connection profile is being deleted.
      * 
@@ -344,6 +418,8 @@ public enum State */ public static final int DELETING_VALUE = 5; /** + * + * *
      * The connection profile has been deleted.
      * 
@@ -352,6 +428,8 @@ public enum State */ public static final int DELETED_VALUE = 6; /** + * + * *
      * The last action on the connection profile failed.
      * 
@@ -360,7 +438,6 @@ public enum State */ public static final int FAILED_VALUE = 7; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -385,54 +462,59 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return DRAFT; - case 2: return CREATING; - case 3: return READY; - case 4: return UPDATING; - case 5: return DELETING; - case 6: return DELETED; - case 7: return FAILED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return DRAFT; + case 2: + return CREATING; + case 3: + return READY; + case 4: + return UPDATING; + case 5: + return DELETING; + case 6: + return DELETED; + case 7: + return FAILED; + 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< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.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() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.clouddms.v1.ConnectionProfile.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -451,14 +533,17 @@ private State(int value) { private int connectionProfileCase_ = 0; private java.lang.Object connectionProfile_; + public enum ConnectionProfileCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MYSQL(100), POSTGRESQL(101), CLOUDSQL(102), CONNECTIONPROFILE_NOT_SET(0); private final int value; + private ConnectionProfileCase(int value) { this.value = value; } @@ -474,33 +559,40 @@ public static ConnectionProfileCase valueOf(int value) { public static ConnectionProfileCase forNumber(int value) { switch (value) { - case 100: return MYSQL; - case 101: return POSTGRESQL; - case 102: return CLOUDSQL; - case 0: return CONNECTIONPROFILE_NOT_SET; - default: return null; + case 100: + return MYSQL; + case 101: + return POSTGRESQL; + case 102: + return CLOUDSQL; + case 0: + return CONNECTIONPROFILE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ConnectionProfileCase - getConnectionProfileCase() { - return ConnectionProfileCase.forNumber( - connectionProfileCase_); + public ConnectionProfileCase getConnectionProfileCase() { + return ConnectionProfileCase.forNumber(connectionProfileCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The name of this connection profile resource in the form of
    * projects/{project}/locations/{location}/instances/{instance}.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -509,30 +601,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of this connection profile resource in the form of
    * projects/{project}/locations/{location}/instances/{instance}.
    * 
* * 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 { @@ -543,13 +635,17 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The timestamp when the resource was created.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -557,13 +653,17 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The timestamp when the resource was created.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -571,13 +671,16 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The timestamp when the resource was created.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -587,13 +690,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The timestamp when the resource was last updated.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -601,13 +708,17 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The timestamp when the resource was last updated.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -615,13 +726,16 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The timestamp when the resource was last updated.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -629,24 +743,23 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_ConnectionProfile_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_ConnectionProfile_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -655,6 +768,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * The resource labels for connection profile to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -664,22 +779,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4;
    */
-
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * The resource labels for connection profile to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -690,11 +805,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * The resource labels for connection profile to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -705,16 +821,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * The resource labels for connection profile to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -725,12 +841,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -740,38 +855,52 @@ public java.lang.String getLabelsOrThrow(
   public static final int STATE_FIELD_NUMBER = 5;
   private int state_;
   /**
+   *
+   *
    * 
    * The current connection profile state (e.g. DRAFT, READY, or FAILED).
    * 
* * .google.cloud.clouddms.v1.ConnectionProfile.State state = 5; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The current connection profile state (e.g. DRAFT, READY, or FAILED).
    * 
* * .google.cloud.clouddms.v1.ConnectionProfile.State state = 5; + * * @return The state. */ - @java.lang.Override public com.google.cloud.clouddms.v1.ConnectionProfile.State getState() { + @java.lang.Override + public com.google.cloud.clouddms.v1.ConnectionProfile.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.ConnectionProfile.State result = com.google.cloud.clouddms.v1.ConnectionProfile.State.valueOf(state_); - return result == null ? com.google.cloud.clouddms.v1.ConnectionProfile.State.UNRECOGNIZED : result; + com.google.cloud.clouddms.v1.ConnectionProfile.State result = + com.google.cloud.clouddms.v1.ConnectionProfile.State.valueOf(state_); + return result == null + ? com.google.cloud.clouddms.v1.ConnectionProfile.State.UNRECOGNIZED + : result; } public static final int DISPLAY_NAME_FIELD_NUMBER = 6; private volatile java.lang.Object displayName_; /** + * + * *
    * The connection profile display name.
    * 
* * string display_name = 6; + * * @return The displayName. */ @java.lang.Override @@ -780,29 +909,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; } } /** + * + * *
    * The connection profile display name.
    * 
* * string display_name = 6; + * * @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 { @@ -812,11 +941,14 @@ public java.lang.String getDisplayName() { public static final int MYSQL_FIELD_NUMBER = 100; /** + * + * *
    * A MySQL database connection profile.
    * 
* * .google.cloud.clouddms.v1.MySqlConnectionProfile mysql = 100; + * * @return Whether the mysql field is set. */ @java.lang.Override @@ -824,21 +956,26 @@ public boolean hasMysql() { return connectionProfileCase_ == 100; } /** + * + * *
    * A MySQL database connection profile.
    * 
* * .google.cloud.clouddms.v1.MySqlConnectionProfile mysql = 100; + * * @return The mysql. */ @java.lang.Override public com.google.cloud.clouddms.v1.MySqlConnectionProfile getMysql() { if (connectionProfileCase_ == 100) { - return (com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_; + return (com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_; } return com.google.cloud.clouddms.v1.MySqlConnectionProfile.getDefaultInstance(); } /** + * + * *
    * A MySQL database connection profile.
    * 
@@ -848,18 +985,21 @@ public com.google.cloud.clouddms.v1.MySqlConnectionProfile getMysql() { @java.lang.Override public com.google.cloud.clouddms.v1.MySqlConnectionProfileOrBuilder getMysqlOrBuilder() { if (connectionProfileCase_ == 100) { - return (com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_; + return (com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_; } return com.google.cloud.clouddms.v1.MySqlConnectionProfile.getDefaultInstance(); } public static final int POSTGRESQL_FIELD_NUMBER = 101; /** + * + * *
    * A PostgreSQL database connection profile.
    * 
* * .google.cloud.clouddms.v1.PostgreSqlConnectionProfile postgresql = 101; + * * @return Whether the postgresql field is set. */ @java.lang.Override @@ -867,21 +1007,26 @@ public boolean hasPostgresql() { return connectionProfileCase_ == 101; } /** + * + * *
    * A PostgreSQL database connection profile.
    * 
* * .google.cloud.clouddms.v1.PostgreSqlConnectionProfile postgresql = 101; + * * @return The postgresql. */ @java.lang.Override public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile getPostgresql() { if (connectionProfileCase_ == 101) { - return (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_; + return (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_; } return com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.getDefaultInstance(); } /** + * + * *
    * A PostgreSQL database connection profile.
    * 
@@ -889,20 +1034,24 @@ public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile getPostgresql() * .google.cloud.clouddms.v1.PostgreSqlConnectionProfile postgresql = 101; */ @java.lang.Override - public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfileOrBuilder getPostgresqlOrBuilder() { + public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfileOrBuilder + getPostgresqlOrBuilder() { if (connectionProfileCase_ == 101) { - return (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_; + return (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_; } return com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.getDefaultInstance(); } public static final int CLOUDSQL_FIELD_NUMBER = 102; /** + * + * *
    * A CloudSQL database connection profile.
    * 
* * .google.cloud.clouddms.v1.CloudSqlConnectionProfile cloudsql = 102; + * * @return Whether the cloudsql field is set. */ @java.lang.Override @@ -910,21 +1059,26 @@ public boolean hasCloudsql() { return connectionProfileCase_ == 102; } /** + * + * *
    * A CloudSQL database connection profile.
    * 
* * .google.cloud.clouddms.v1.CloudSqlConnectionProfile cloudsql = 102; + * * @return The cloudsql. */ @java.lang.Override public com.google.cloud.clouddms.v1.CloudSqlConnectionProfile getCloudsql() { if (connectionProfileCase_ == 102) { - return (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_; + return (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_; } return com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.getDefaultInstance(); } /** + * + * *
    * A CloudSQL database connection profile.
    * 
@@ -934,7 +1088,7 @@ public com.google.cloud.clouddms.v1.CloudSqlConnectionProfile getCloudsql() { @java.lang.Override public com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder getCloudsqlOrBuilder() { if (connectionProfileCase_ == 102) { - return (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_; + return (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_; } return com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.getDefaultInstance(); } @@ -942,11 +1096,14 @@ public com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder getClouds public static final int ERROR_FIELD_NUMBER = 7; private com.google.rpc.Status error_; /** + * + * *
    * Output only. The error details in case of state FAILED.
    * 
* * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the error field is set. */ @java.lang.Override @@ -954,11 +1111,14 @@ public boolean hasError() { return error_ != null; } /** + * + * *
    * Output only. The error details in case of state FAILED.
    * 
* * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The error. */ @java.lang.Override @@ -966,6 +1126,8 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** + * + * *
    * Output only. The error details in case of state FAILED.
    * 
@@ -980,31 +1142,41 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { public static final int PROVIDER_FIELD_NUMBER = 8; private int provider_; /** + * + * *
    * The database provider.
    * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 8; + * * @return The enum numeric value on the wire for provider. */ - @java.lang.Override public int getProviderValue() { + @java.lang.Override + public int getProviderValue() { return provider_; } /** + * + * *
    * The database provider.
    * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 8; + * * @return The provider. */ - @java.lang.Override public com.google.cloud.clouddms.v1.DatabaseProvider getProvider() { + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseProvider getProvider() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.DatabaseProvider result = com.google.cloud.clouddms.v1.DatabaseProvider.valueOf(provider_); + com.google.cloud.clouddms.v1.DatabaseProvider result = + com.google.cloud.clouddms.v1.DatabaseProvider.valueOf(provider_); return result == null ? com.google.cloud.clouddms.v1.DatabaseProvider.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1016,8 +1188,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1027,13 +1198,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); - if (state_ != com.google.cloud.clouddms.v1.ConnectionProfile.State.STATE_UNSPECIFIED.getNumber()) { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (state_ + != com.google.cloud.clouddms.v1.ConnectionProfile.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(5, state_); } if (!getDisplayNameBytes().isEmpty()) { @@ -1042,17 +1210,22 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (error_ != null) { output.writeMessage(7, getError()); } - if (provider_ != com.google.cloud.clouddms.v1.DatabaseProvider.DATABASE_PROVIDER_UNSPECIFIED.getNumber()) { + if (provider_ + != com.google.cloud.clouddms.v1.DatabaseProvider.DATABASE_PROVIDER_UNSPECIFIED + .getNumber()) { output.writeEnum(8, provider_); } if (connectionProfileCase_ == 100) { - output.writeMessage(100, (com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_); + output.writeMessage( + 100, (com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_); } if (connectionProfileCase_ == 101) { - output.writeMessage(101, (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_); + output.writeMessage( + 101, (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_); } if (connectionProfileCase_ == 102) { - output.writeMessage(102, (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_); + output.writeMessage( + 102, (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_); } unknownFields.writeTo(output); } @@ -1067,49 +1240,50 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); - } - if (state_ != com.google.cloud.clouddms.v1.ConnectionProfile.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, state_); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (state_ + != com.google.cloud.clouddms.v1.ConnectionProfile.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); } if (!getDisplayNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, displayName_); } if (error_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getError()); } - if (provider_ != com.google.cloud.clouddms.v1.DatabaseProvider.DATABASE_PROVIDER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, provider_); + if (provider_ + != com.google.cloud.clouddms.v1.DatabaseProvider.DATABASE_PROVIDER_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, provider_); } if (connectionProfileCase_ == 100) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(100, (com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_); } if (connectionProfileCase_ == 101) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(101, (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_); } if (connectionProfileCase_ == 102) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(102, (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1119,49 +1293,41 @@ 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.clouddms.v1.ConnectionProfile)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.ConnectionProfile other = (com.google.cloud.clouddms.v1.ConnectionProfile) obj; + com.google.cloud.clouddms.v1.ConnectionProfile other = + (com.google.cloud.clouddms.v1.ConnectionProfile) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) 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 (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (state_ != other.state_) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError() - .equals(other.getError())) return false; + if (!getError().equals(other.getError())) return false; } if (provider_ != other.provider_) return false; if (!getConnectionProfileCase().equals(other.getConnectionProfileCase())) return false; switch (connectionProfileCase_) { case 100: - if (!getMysql() - .equals(other.getMysql())) return false; + if (!getMysql().equals(other.getMysql())) return false; break; case 101: - if (!getPostgresql() - .equals(other.getPostgresql())) return false; + if (!getPostgresql().equals(other.getPostgresql())) return false; break; case 102: - if (!getCloudsql() - .equals(other.getCloudsql())) return false; + if (!getCloudsql().equals(other.getCloudsql())) return false; break; case 0: default: @@ -1222,140 +1388,147 @@ public int hashCode() { return hash; } - public static com.google.cloud.clouddms.v1.ConnectionProfile parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.clouddms.v1.ConnectionProfile parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.ConnectionProfile 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.clouddms.v1.ConnectionProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.ConnectionProfile 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.clouddms.v1.ConnectionProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.ConnectionProfile 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.clouddms.v1.ConnectionProfile parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.ConnectionProfile 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.clouddms.v1.ConnectionProfile parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.ConnectionProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.ConnectionProfile 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.clouddms.v1.ConnectionProfile 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.clouddms.v1.ConnectionProfile 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.clouddms.v1.ConnectionProfile 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 connection profile definition.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.ConnectionProfile} */ - 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.clouddms.v1.ConnectionProfile) com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 4: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_ConnectionProfile_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_ConnectionProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.ConnectionProfile.class, com.google.cloud.clouddms.v1.ConnectionProfile.Builder.class); + com.google.cloud.clouddms.v1.ConnectionProfile.class, + com.google.cloud.clouddms.v1.ConnectionProfile.Builder.class); } // Construct using com.google.cloud.clouddms.v1.ConnectionProfile.newBuilder() @@ -1363,16 +1536,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1409,9 +1581,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor; } @java.lang.Override @@ -1430,7 +1602,8 @@ public com.google.cloud.clouddms.v1.ConnectionProfile build() { @java.lang.Override public com.google.cloud.clouddms.v1.ConnectionProfile buildPartial() { - com.google.cloud.clouddms.v1.ConnectionProfile result = new com.google.cloud.clouddms.v1.ConnectionProfile(this); + com.google.cloud.clouddms.v1.ConnectionProfile result = + new com.google.cloud.clouddms.v1.ConnectionProfile(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (createTimeBuilder_ == null) { @@ -1483,38 +1656,39 @@ public com.google.cloud.clouddms.v1.ConnectionProfile 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.clouddms.v1.ConnectionProfile) { - return mergeFrom((com.google.cloud.clouddms.v1.ConnectionProfile)other); + return mergeFrom((com.google.cloud.clouddms.v1.ConnectionProfile) other); } else { super.mergeFrom(other); return this; @@ -1533,8 +1707,7 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.ConnectionProfile other) { if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -1549,21 +1722,25 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.ConnectionProfile other) { setProviderValue(other.getProviderValue()); } switch (other.getConnectionProfileCase()) { - case MYSQL: { - mergeMysql(other.getMysql()); - break; - } - case POSTGRESQL: { - mergePostgresql(other.getPostgresql()); - break; - } - case CLOUDSQL: { - mergeCloudsql(other.getCloudsql()); - break; - } - case CONNECTIONPROFILE_NOT_SET: { - break; - } + case MYSQL: + { + mergeMysql(other.getMysql()); + break; + } + case POSTGRESQL: + { + mergePostgresql(other.getPostgresql()); + break; + } + case CLOUDSQL: + { + mergeCloudsql(other.getCloudsql()); + break; + } + case CONNECTIONPROFILE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1593,12 +1770,12 @@ public Builder mergeFrom( } return this; } + private int connectionProfileCase_ = 0; private java.lang.Object connectionProfile_; - public ConnectionProfileCase - getConnectionProfileCase() { - return ConnectionProfileCase.forNumber( - connectionProfileCase_); + + public ConnectionProfileCase getConnectionProfileCase() { + return ConnectionProfileCase.forNumber(connectionProfileCase_); } public Builder clearConnectionProfile() { @@ -1612,19 +1789,21 @@ public Builder clearConnectionProfile() { private java.lang.Object name_ = ""; /** + * + * *
      * The name of this connection profile resource in the form of
      * projects/{project}/locations/{location}/instances/{instance}.
      * 
* * 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; @@ -1633,21 +1812,22 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of this connection profile resource in the form of
      * projects/{project}/locations/{location}/instances/{instance}.
      * 
* * 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 { @@ -1655,57 +1835,64 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of this connection profile resource in the form of
      * projects/{project}/locations/{location}/instances/{instance}.
      * 
* * 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 this connection profile resource in the form of
      * projects/{project}/locations/{location}/instances/{instance}.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The name of this connection profile resource in the form of
      * projects/{project}/locations/{location}/instances/{instance}.
      * 
* * 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; @@ -1713,45 +1900,64 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The timestamp when the resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The timestamp when the resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The timestamp when the resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1767,16 +1973,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when the resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1787,19 +1996,23 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The timestamp when the resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1811,13 +2024,17 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when the resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1831,54 +2048,70 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The timestamp when the resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp when the resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The timestamp when the resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1886,45 +2119,64 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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. The timestamp when the resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. The timestamp when the resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.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. The timestamp when the resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1940,16 +2192,19 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when the resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.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(); @@ -1960,19 +2215,23 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The timestamp when the resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.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; } @@ -1984,13 +2243,17 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when the resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2004,75 +2267,90 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The timestamp when the resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp when the resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.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. The timestamp when the resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.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_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2084,6 +2362,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * The resource labels for connection profile to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -2093,22 +2373,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4;
      */
-
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * The resource labels for connection profile to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -2119,11 +2399,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * The resource labels for connection profile to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -2134,16 +2415,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * The resource labels for connection profile to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -2154,12 +2436,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2167,11 +2448,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * The resource labels for connection profile to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -2181,23 +2463,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * The resource labels for connection profile to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -2207,16 +2487,19 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 4;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * The resource labels for connection profile to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -2226,61 +2509,74 @@ public Builder putLabels(
      *
      * map<string, string> labels = 4;
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       return this;
     }
 
     private int state_ = 0;
     /**
+     *
+     *
      * 
      * The current connection profile state (e.g. DRAFT, READY, or FAILED).
      * 
* * .google.cloud.clouddms.v1.ConnectionProfile.State state = 5; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The current connection profile state (e.g. DRAFT, READY, or FAILED).
      * 
* * .google.cloud.clouddms.v1.ConnectionProfile.State state = 5; + * * @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; } /** + * + * *
      * The current connection profile state (e.g. DRAFT, READY, or FAILED).
      * 
* * .google.cloud.clouddms.v1.ConnectionProfile.State state = 5; + * * @return The state. */ @java.lang.Override public com.google.cloud.clouddms.v1.ConnectionProfile.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.ConnectionProfile.State result = com.google.cloud.clouddms.v1.ConnectionProfile.State.valueOf(state_); - return result == null ? com.google.cloud.clouddms.v1.ConnectionProfile.State.UNRECOGNIZED : result; + com.google.cloud.clouddms.v1.ConnectionProfile.State result = + com.google.cloud.clouddms.v1.ConnectionProfile.State.valueOf(state_); + return result == null + ? com.google.cloud.clouddms.v1.ConnectionProfile.State.UNRECOGNIZED + : result; } /** + * + * *
      * The current connection profile state (e.g. DRAFT, READY, or FAILED).
      * 
* * .google.cloud.clouddms.v1.ConnectionProfile.State state = 5; + * * @param value The state to set. * @return This builder for chaining. */ @@ -2288,21 +2584,24 @@ public Builder setState(com.google.cloud.clouddms.v1.ConnectionProfile.State val if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The current connection profile state (e.g. DRAFT, READY, or FAILED).
      * 
* * .google.cloud.clouddms.v1.ConnectionProfile.State state = 5; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2310,18 +2609,20 @@ public Builder clearState() { private java.lang.Object displayName_ = ""; /** + * + * *
      * The connection profile display name.
      * 
* * string display_name = 6; + * * @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; @@ -2330,20 +2631,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The connection profile display name.
      * 
* * string display_name = 6; + * * @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 { @@ -2351,67 +2653,80 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The connection profile display name.
      * 
* * string display_name = 6; + * * @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; } /** + * + * *
      * The connection profile display name.
      * 
* * string display_name = 6; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * The connection profile display name.
      * 
* * string display_name = 6; + * * @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; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.MySqlConnectionProfile, com.google.cloud.clouddms.v1.MySqlConnectionProfile.Builder, com.google.cloud.clouddms.v1.MySqlConnectionProfileOrBuilder> mysqlBuilder_; + com.google.cloud.clouddms.v1.MySqlConnectionProfile, + com.google.cloud.clouddms.v1.MySqlConnectionProfile.Builder, + com.google.cloud.clouddms.v1.MySqlConnectionProfileOrBuilder> + mysqlBuilder_; /** + * + * *
      * A MySQL database connection profile.
      * 
* * .google.cloud.clouddms.v1.MySqlConnectionProfile mysql = 100; + * * @return Whether the mysql field is set. */ @java.lang.Override @@ -2419,11 +2734,14 @@ public boolean hasMysql() { return connectionProfileCase_ == 100; } /** + * + * *
      * A MySQL database connection profile.
      * 
* * .google.cloud.clouddms.v1.MySqlConnectionProfile mysql = 100; + * * @return The mysql. */ @java.lang.Override @@ -2441,6 +2759,8 @@ public com.google.cloud.clouddms.v1.MySqlConnectionProfile getMysql() { } } /** + * + * *
      * A MySQL database connection profile.
      * 
@@ -2461,6 +2781,8 @@ public Builder setMysql(com.google.cloud.clouddms.v1.MySqlConnectionProfile valu return this; } /** + * + * *
      * A MySQL database connection profile.
      * 
@@ -2479,6 +2801,8 @@ public Builder setMysql( return this; } /** + * + * *
      * A MySQL database connection profile.
      * 
@@ -2487,10 +2811,14 @@ public Builder setMysql( */ public Builder mergeMysql(com.google.cloud.clouddms.v1.MySqlConnectionProfile value) { if (mysqlBuilder_ == null) { - if (connectionProfileCase_ == 100 && - connectionProfile_ != com.google.cloud.clouddms.v1.MySqlConnectionProfile.getDefaultInstance()) { - connectionProfile_ = com.google.cloud.clouddms.v1.MySqlConnectionProfile.newBuilder((com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_) - .mergeFrom(value).buildPartial(); + if (connectionProfileCase_ == 100 + && connectionProfile_ + != com.google.cloud.clouddms.v1.MySqlConnectionProfile.getDefaultInstance()) { + connectionProfile_ = + com.google.cloud.clouddms.v1.MySqlConnectionProfile.newBuilder( + (com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_) + .mergeFrom(value) + .buildPartial(); } else { connectionProfile_ = value; } @@ -2505,6 +2833,8 @@ public Builder mergeMysql(com.google.cloud.clouddms.v1.MySqlConnectionProfile va return this; } /** + * + * *
      * A MySQL database connection profile.
      * 
@@ -2528,6 +2858,8 @@ public Builder clearMysql() { return this; } /** + * + * *
      * A MySQL database connection profile.
      * 
@@ -2538,6 +2870,8 @@ public com.google.cloud.clouddms.v1.MySqlConnectionProfile.Builder getMysqlBuild return getMysqlFieldBuilder().getBuilder(); } /** + * + * *
      * A MySQL database connection profile.
      * 
@@ -2556,6 +2890,8 @@ public com.google.cloud.clouddms.v1.MySqlConnectionProfileOrBuilder getMysqlOrBu } } /** + * + * *
      * A MySQL database connection profile.
      * 
@@ -2563,32 +2899,45 @@ public com.google.cloud.clouddms.v1.MySqlConnectionProfileOrBuilder getMysqlOrBu * .google.cloud.clouddms.v1.MySqlConnectionProfile mysql = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.MySqlConnectionProfile, com.google.cloud.clouddms.v1.MySqlConnectionProfile.Builder, com.google.cloud.clouddms.v1.MySqlConnectionProfileOrBuilder> + com.google.cloud.clouddms.v1.MySqlConnectionProfile, + com.google.cloud.clouddms.v1.MySqlConnectionProfile.Builder, + com.google.cloud.clouddms.v1.MySqlConnectionProfileOrBuilder> getMysqlFieldBuilder() { if (mysqlBuilder_ == null) { if (!(connectionProfileCase_ == 100)) { - connectionProfile_ = com.google.cloud.clouddms.v1.MySqlConnectionProfile.getDefaultInstance(); + connectionProfile_ = + com.google.cloud.clouddms.v1.MySqlConnectionProfile.getDefaultInstance(); } - mysqlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.MySqlConnectionProfile, com.google.cloud.clouddms.v1.MySqlConnectionProfile.Builder, com.google.cloud.clouddms.v1.MySqlConnectionProfileOrBuilder>( + mysqlBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.MySqlConnectionProfile, + com.google.cloud.clouddms.v1.MySqlConnectionProfile.Builder, + com.google.cloud.clouddms.v1.MySqlConnectionProfileOrBuilder>( (com.google.cloud.clouddms.v1.MySqlConnectionProfile) connectionProfile_, getParentForChildren(), isClean()); connectionProfile_ = null; } connectionProfileCase_ = 100; - onChanged();; + onChanged(); + ; return mysqlBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile, com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder, com.google.cloud.clouddms.v1.PostgreSqlConnectionProfileOrBuilder> postgresqlBuilder_; + com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile, + com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder, + com.google.cloud.clouddms.v1.PostgreSqlConnectionProfileOrBuilder> + postgresqlBuilder_; /** + * + * *
      * A PostgreSQL database connection profile.
      * 
* * .google.cloud.clouddms.v1.PostgreSqlConnectionProfile postgresql = 101; + * * @return Whether the postgresql field is set. */ @java.lang.Override @@ -2596,11 +2945,14 @@ public boolean hasPostgresql() { return connectionProfileCase_ == 101; } /** + * + * *
      * A PostgreSQL database connection profile.
      * 
* * .google.cloud.clouddms.v1.PostgreSqlConnectionProfile postgresql = 101; + * * @return The postgresql. */ @java.lang.Override @@ -2618,6 +2970,8 @@ public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile getPostgresql() } } /** + * + * *
      * A PostgreSQL database connection profile.
      * 
@@ -2638,6 +2992,8 @@ public Builder setPostgresql(com.google.cloud.clouddms.v1.PostgreSqlConnectionPr return this; } /** + * + * *
      * A PostgreSQL database connection profile.
      * 
@@ -2656,6 +3012,8 @@ public Builder setPostgresql( return this; } /** + * + * *
      * A PostgreSQL database connection profile.
      * 
@@ -2664,10 +3022,14 @@ public Builder setPostgresql( */ public Builder mergePostgresql(com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile value) { if (postgresqlBuilder_ == null) { - if (connectionProfileCase_ == 101 && - connectionProfile_ != com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.getDefaultInstance()) { - connectionProfile_ = com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.newBuilder((com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_) - .mergeFrom(value).buildPartial(); + if (connectionProfileCase_ == 101 + && connectionProfile_ + != com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.getDefaultInstance()) { + connectionProfile_ = + com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.newBuilder( + (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_) + .mergeFrom(value) + .buildPartial(); } else { connectionProfile_ = value; } @@ -2682,6 +3044,8 @@ public Builder mergePostgresql(com.google.cloud.clouddms.v1.PostgreSqlConnection return this; } /** + * + * *
      * A PostgreSQL database connection profile.
      * 
@@ -2705,6 +3069,8 @@ public Builder clearPostgresql() { return this; } /** + * + * *
      * A PostgreSQL database connection profile.
      * 
@@ -2715,6 +3081,8 @@ public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder getPostg return getPostgresqlFieldBuilder().getBuilder(); } /** + * + * *
      * A PostgreSQL database connection profile.
      * 
@@ -2722,7 +3090,8 @@ public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder getPostg * .google.cloud.clouddms.v1.PostgreSqlConnectionProfile postgresql = 101; */ @java.lang.Override - public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfileOrBuilder getPostgresqlOrBuilder() { + public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfileOrBuilder + getPostgresqlOrBuilder() { if ((connectionProfileCase_ == 101) && (postgresqlBuilder_ != null)) { return postgresqlBuilder_.getMessageOrBuilder(); } else { @@ -2733,6 +3102,8 @@ public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfileOrBuilder getPost } } /** + * + * *
      * A PostgreSQL database connection profile.
      * 
@@ -2740,32 +3111,45 @@ public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfileOrBuilder getPost * .google.cloud.clouddms.v1.PostgreSqlConnectionProfile postgresql = 101; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile, com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder, com.google.cloud.clouddms.v1.PostgreSqlConnectionProfileOrBuilder> + com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile, + com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder, + com.google.cloud.clouddms.v1.PostgreSqlConnectionProfileOrBuilder> getPostgresqlFieldBuilder() { if (postgresqlBuilder_ == null) { if (!(connectionProfileCase_ == 101)) { - connectionProfile_ = com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.getDefaultInstance(); + connectionProfile_ = + com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.getDefaultInstance(); } - postgresqlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile, com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder, com.google.cloud.clouddms.v1.PostgreSqlConnectionProfileOrBuilder>( + postgresqlBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile, + com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder, + com.google.cloud.clouddms.v1.PostgreSqlConnectionProfileOrBuilder>( (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) connectionProfile_, getParentForChildren(), isClean()); connectionProfile_ = null; } connectionProfileCase_ = 101; - onChanged();; + onChanged(); + ; return postgresqlBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.CloudSqlConnectionProfile, com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.Builder, com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder> cloudsqlBuilder_; + com.google.cloud.clouddms.v1.CloudSqlConnectionProfile, + com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.Builder, + com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder> + cloudsqlBuilder_; /** + * + * *
      * A CloudSQL database connection profile.
      * 
* * .google.cloud.clouddms.v1.CloudSqlConnectionProfile cloudsql = 102; + * * @return Whether the cloudsql field is set. */ @java.lang.Override @@ -2773,11 +3157,14 @@ public boolean hasCloudsql() { return connectionProfileCase_ == 102; } /** + * + * *
      * A CloudSQL database connection profile.
      * 
* * .google.cloud.clouddms.v1.CloudSqlConnectionProfile cloudsql = 102; + * * @return The cloudsql. */ @java.lang.Override @@ -2795,6 +3182,8 @@ public com.google.cloud.clouddms.v1.CloudSqlConnectionProfile getCloudsql() { } } /** + * + * *
      * A CloudSQL database connection profile.
      * 
@@ -2815,6 +3204,8 @@ public Builder setCloudsql(com.google.cloud.clouddms.v1.CloudSqlConnectionProfil return this; } /** + * + * *
      * A CloudSQL database connection profile.
      * 
@@ -2833,6 +3224,8 @@ public Builder setCloudsql( return this; } /** + * + * *
      * A CloudSQL database connection profile.
      * 
@@ -2841,10 +3234,14 @@ public Builder setCloudsql( */ public Builder mergeCloudsql(com.google.cloud.clouddms.v1.CloudSqlConnectionProfile value) { if (cloudsqlBuilder_ == null) { - if (connectionProfileCase_ == 102 && - connectionProfile_ != com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.getDefaultInstance()) { - connectionProfile_ = com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.newBuilder((com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_) - .mergeFrom(value).buildPartial(); + if (connectionProfileCase_ == 102 + && connectionProfile_ + != com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.getDefaultInstance()) { + connectionProfile_ = + com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.newBuilder( + (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_) + .mergeFrom(value) + .buildPartial(); } else { connectionProfile_ = value; } @@ -2859,6 +3256,8 @@ public Builder mergeCloudsql(com.google.cloud.clouddms.v1.CloudSqlConnectionProf return this; } /** + * + * *
      * A CloudSQL database connection profile.
      * 
@@ -2882,6 +3281,8 @@ public Builder clearCloudsql() { return this; } /** + * + * *
      * A CloudSQL database connection profile.
      * 
@@ -2892,6 +3293,8 @@ public com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.Builder getCloudsq return getCloudsqlFieldBuilder().getBuilder(); } /** + * + * *
      * A CloudSQL database connection profile.
      * 
@@ -2910,6 +3313,8 @@ public com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder getClouds } } /** + * + * *
      * A CloudSQL database connection profile.
      * 
@@ -2917,44 +3322,58 @@ public com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder getClouds * .google.cloud.clouddms.v1.CloudSqlConnectionProfile cloudsql = 102; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.CloudSqlConnectionProfile, com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.Builder, com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder> + com.google.cloud.clouddms.v1.CloudSqlConnectionProfile, + com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.Builder, + com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder> getCloudsqlFieldBuilder() { if (cloudsqlBuilder_ == null) { if (!(connectionProfileCase_ == 102)) { - connectionProfile_ = com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.getDefaultInstance(); + connectionProfile_ = + com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.getDefaultInstance(); } - cloudsqlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.CloudSqlConnectionProfile, com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.Builder, com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder>( + cloudsqlBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.CloudSqlConnectionProfile, + com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.Builder, + com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder>( (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_, getParentForChildren(), isClean()); connectionProfile_ = null; } connectionProfileCase_ = 102; - onChanged();; + onChanged(); + ; return cloudsqlBuilder_; } private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; /** + * + * *
      * Output only. The error details in case of state FAILED.
      * 
* * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** + * + * *
      * Output only. The error details in case of state FAILED.
      * 
* * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The error. */ public com.google.rpc.Status getError() { @@ -2965,6 +3384,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
      * Output only. The error details in case of state FAILED.
      * 
@@ -2985,14 +3406,15 @@ public Builder setError(com.google.rpc.Status value) { return this; } /** + * + * *
      * Output only. The error details in case of state FAILED.
      * 
* * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setError( - com.google.rpc.Status.Builder builderForValue) { + public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); @@ -3003,6 +3425,8 @@ public Builder setError( return this; } /** + * + * *
      * Output only. The error details in case of state FAILED.
      * 
@@ -3012,8 +3436,7 @@ public Builder setError( public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { if (error_ != null) { - error_ = - com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } @@ -3025,6 +3448,8 @@ public Builder mergeError(com.google.rpc.Status value) { return this; } /** + * + * *
      * Output only. The error details in case of state FAILED.
      * 
@@ -3043,6 +3468,8 @@ public Builder clearError() { return this; } /** + * + * *
      * Output only. The error details in case of state FAILED.
      * 
@@ -3050,11 +3477,13 @@ public Builder clearError() { * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - + onChanged(); return getErrorFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The error details in case of state FAILED.
      * 
@@ -3065,11 +3494,12 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { - return error_ == null ? - com.google.rpc.Status.getDefaultInstance() : error_; + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } } /** + * + * *
      * Output only. The error details in case of state FAILED.
      * 
@@ -3077,14 +3507,14 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getErrorFieldBuilder() { if (errorBuilder_ == null) { - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - getError(), - getParentForChildren(), - isClean()); + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; @@ -3092,51 +3522,65 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { private int provider_ = 0; /** + * + * *
      * The database provider.
      * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 8; + * * @return The enum numeric value on the wire for provider. */ - @java.lang.Override public int getProviderValue() { + @java.lang.Override + public int getProviderValue() { return provider_; } /** + * + * *
      * The database provider.
      * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 8; + * * @param value The enum numeric value on the wire for provider to set. * @return This builder for chaining. */ public Builder setProviderValue(int value) { - + provider_ = value; onChanged(); return this; } /** + * + * *
      * The database provider.
      * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 8; + * * @return The provider. */ @java.lang.Override public com.google.cloud.clouddms.v1.DatabaseProvider getProvider() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.DatabaseProvider result = com.google.cloud.clouddms.v1.DatabaseProvider.valueOf(provider_); + com.google.cloud.clouddms.v1.DatabaseProvider result = + com.google.cloud.clouddms.v1.DatabaseProvider.valueOf(provider_); return result == null ? com.google.cloud.clouddms.v1.DatabaseProvider.UNRECOGNIZED : result; } /** + * + * *
      * The database provider.
      * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 8; + * * @param value The provider to set. * @return This builder for chaining. */ @@ -3144,28 +3588,31 @@ public Builder setProvider(com.google.cloud.clouddms.v1.DatabaseProvider value) if (value == null) { throw new NullPointerException(); } - + provider_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The database provider.
      * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 8; + * * @return This builder for chaining. */ public Builder clearProvider() { - + provider_ = 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); } @@ -3175,12 +3622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.ConnectionProfile) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ConnectionProfile) private static final com.google.cloud.clouddms.v1.ConnectionProfile DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ConnectionProfile(); } @@ -3189,16 +3636,16 @@ public static com.google.cloud.clouddms.v1.ConnectionProfile getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectionProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConnectionProfile(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectionProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConnectionProfile(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3213,6 +3660,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.ConnectionProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileName.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileName.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileOrBuilder.java similarity index 83% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileOrBuilder.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileOrBuilder.java index f3508231..9a9a15db 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileOrBuilder.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileOrBuilder.java @@ -1,101 +1,146 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; -public interface ConnectionProfileOrBuilder extends +public interface ConnectionProfileOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ConnectionProfile) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of this connection profile resource in the form of
    * projects/{project}/locations/{location}/instances/{instance}.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of this connection profile resource in the form of
    * projects/{project}/locations/{location}/instances/{instance}.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. The timestamp when the resource was created.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The timestamp when the resource was created.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The timestamp when the resource was created.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The timestamp when the resource was last updated.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The timestamp when the resource was last updated.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The timestamp when the resource was last updated.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * The resource labels for connection profile to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -107,6 +152,8 @@ public interface ConnectionProfileOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * The resource labels for connection profile to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -116,15 +163,13 @@ public interface ConnectionProfileOrBuilder extends
    *
    * map<string, string> labels = 4;
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * The resource labels for connection profile to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -134,9 +179,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * The resource labels for connection profile to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -146,11 +192,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 4;
    */
-
-  java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * The resource labels for connection profile to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -160,68 +205,85 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4;
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * The current connection profile state (e.g. DRAFT, READY, or FAILED).
    * 
* * .google.cloud.clouddms.v1.ConnectionProfile.State state = 5; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The current connection profile state (e.g. DRAFT, READY, or FAILED).
    * 
* * .google.cloud.clouddms.v1.ConnectionProfile.State state = 5; + * * @return The state. */ com.google.cloud.clouddms.v1.ConnectionProfile.State getState(); /** + * + * *
    * The connection profile display name.
    * 
* * string display_name = 6; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * The connection profile display name.
    * 
* * string display_name = 6; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * A MySQL database connection profile.
    * 
* * .google.cloud.clouddms.v1.MySqlConnectionProfile mysql = 100; + * * @return Whether the mysql field is set. */ boolean hasMysql(); /** + * + * *
    * A MySQL database connection profile.
    * 
* * .google.cloud.clouddms.v1.MySqlConnectionProfile mysql = 100; + * * @return The mysql. */ com.google.cloud.clouddms.v1.MySqlConnectionProfile getMysql(); /** + * + * *
    * A MySQL database connection profile.
    * 
@@ -231,24 +293,32 @@ java.lang.String getLabelsOrThrow( com.google.cloud.clouddms.v1.MySqlConnectionProfileOrBuilder getMysqlOrBuilder(); /** + * + * *
    * A PostgreSQL database connection profile.
    * 
* * .google.cloud.clouddms.v1.PostgreSqlConnectionProfile postgresql = 101; + * * @return Whether the postgresql field is set. */ boolean hasPostgresql(); /** + * + * *
    * A PostgreSQL database connection profile.
    * 
* * .google.cloud.clouddms.v1.PostgreSqlConnectionProfile postgresql = 101; + * * @return The postgresql. */ com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile getPostgresql(); /** + * + * *
    * A PostgreSQL database connection profile.
    * 
@@ -258,24 +328,32 @@ java.lang.String getLabelsOrThrow( com.google.cloud.clouddms.v1.PostgreSqlConnectionProfileOrBuilder getPostgresqlOrBuilder(); /** + * + * *
    * A CloudSQL database connection profile.
    * 
* * .google.cloud.clouddms.v1.CloudSqlConnectionProfile cloudsql = 102; + * * @return Whether the cloudsql field is set. */ boolean hasCloudsql(); /** + * + * *
    * A CloudSQL database connection profile.
    * 
* * .google.cloud.clouddms.v1.CloudSqlConnectionProfile cloudsql = 102; + * * @return The cloudsql. */ com.google.cloud.clouddms.v1.CloudSqlConnectionProfile getCloudsql(); /** + * + * *
    * A CloudSQL database connection profile.
    * 
@@ -285,24 +363,32 @@ java.lang.String getLabelsOrThrow( com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder getCloudsqlOrBuilder(); /** + * + * *
    * Output only. The error details in case of state FAILED.
    * 
* * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * Output only. The error details in case of state FAILED.
    * 
* * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * Output only. The error details in case of state FAILED.
    * 
@@ -312,23 +398,30 @@ java.lang.String getLabelsOrThrow( com.google.rpc.StatusOrBuilder getErrorOrBuilder(); /** + * + * *
    * The database provider.
    * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 8; + * * @return The enum numeric value on the wire for provider. */ int getProviderValue(); /** + * + * *
    * The database provider.
    * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 8; + * * @return The provider. */ com.google.cloud.clouddms.v1.DatabaseProvider getProvider(); - public com.google.cloud.clouddms.v1.ConnectionProfile.ConnectionProfileCase getConnectionProfileCase(); + public com.google.cloud.clouddms.v1.ConnectionProfile.ConnectionProfileCase + getConnectionProfileCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequest.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequest.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequest.java index 67a74654..017a7e92 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequest.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * Request message for 'CreateConnectionProfile' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.CreateConnectionProfileRequest} */ -public final class CreateConnectionProfileRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.CreateConnectionProfileRequest) CreateConnectionProfileRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateConnectionProfileRequest.newBuilder() to construct. - private CreateConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateConnectionProfileRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateConnectionProfileRequest() { parent_ = ""; connectionProfileId_ = ""; @@ -27,16 +46,15 @@ private CreateConnectionProfileRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateConnectionProfileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,77 +73,90 @@ private CreateConnectionProfileRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - connectionProfileId_ = s; - break; - } - case 26: { - com.google.cloud.clouddms.v1.ConnectionProfile.Builder subBuilder = null; - if (connectionProfile_ != null) { - subBuilder = connectionProfile_.toBuilder(); + parent_ = s; + break; } - connectionProfile_ = input.readMessage(com.google.cloud.clouddms.v1.ConnectionProfile.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(connectionProfile_); - connectionProfile_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + connectionProfileId_ = s; + break; } + case 26: + { + com.google.cloud.clouddms.v1.ConnectionProfile.Builder subBuilder = null; + if (connectionProfile_ != null) { + subBuilder = connectionProfile_.toBuilder(); + } + connectionProfile_ = + input.readMessage( + com.google.cloud.clouddms.v1.ConnectionProfile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(connectionProfile_); + connectionProfile_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.class, com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.Builder.class); + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.class, + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent, which owns this collection of connection profiles.
    * 
* - * string 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 @@ -134,29 +165,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 parent, which owns this collection of connection profiles.
    * 
* - * string 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 { @@ -167,11 +200,14 @@ public java.lang.String getParent() { public static final int CONNECTION_PROFILE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object connectionProfileId_; /** + * + * *
    * Required. The connection profile identifier.
    * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The connectionProfileId. */ @java.lang.Override @@ -180,29 +216,29 @@ public java.lang.String getConnectionProfileId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connectionProfileId_ = s; return s; } } /** + * + * *
    * Required. The connection profile identifier.
    * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for connectionProfileId. */ @java.lang.Override - public com.google.protobuf.ByteString - getConnectionProfileIdBytes() { + public com.google.protobuf.ByteString getConnectionProfileIdBytes() { java.lang.Object ref = connectionProfileId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); connectionProfileId_ = b; return b; } else { @@ -213,11 +249,16 @@ public java.lang.String getConnectionProfileId() { public static final int CONNECTION_PROFILE_FIELD_NUMBER = 3; private com.google.cloud.clouddms.v1.ConnectionProfile connectionProfile_; /** + * + * *
    * Required. The create request body including the connection profile data
    * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connectionProfile field is set. */ @java.lang.Override @@ -225,23 +266,34 @@ public boolean hasConnectionProfile() { return connectionProfile_ != null; } /** + * + * *
    * Required. The create request body including the connection profile data
    * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connectionProfile. */ @java.lang.Override public com.google.cloud.clouddms.v1.ConnectionProfile getConnectionProfile() { - return connectionProfile_ == null ? com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; + return connectionProfile_ == null + ? com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance() + : connectionProfile_; } /** + * + * *
    * Required. The create request body including the connection profile data
    * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { @@ -251,6 +303,8 @@ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProf public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** + * + * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -260,6 +314,7 @@ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProf
    * 
* * string request_id = 4; + * * @return The requestId. */ @java.lang.Override @@ -268,14 +323,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -285,16 +341,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -303,6 +358,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -314,8 +370,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -344,8 +399,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, connectionProfileId_); } if (connectionProfile_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getConnectionProfile()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConnectionProfile()); } if (!getRequestIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -358,24 +412,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.clouddms.v1.CreateConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.CreateConnectionProfileRequest other = (com.google.cloud.clouddms.v1.CreateConnectionProfileRequest) obj; + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest other = + (com.google.cloud.clouddms.v1.CreateConnectionProfileRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getConnectionProfileId() - .equals(other.getConnectionProfileId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getConnectionProfileId().equals(other.getConnectionProfileId())) return false; if (hasConnectionProfile() != other.hasConnectionProfile()) return false; if (hasConnectionProfile()) { - if (!getConnectionProfile() - .equals(other.getConnectionProfile())) return false; + if (!getConnectionProfile().equals(other.getConnectionProfile())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -403,117 +454,127 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.CreateConnectionProfileRequest 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.clouddms.v1.CreateConnectionProfileRequest 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.clouddms.v1.CreateConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.CreateConnectionProfileRequest 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.clouddms.v1.CreateConnectionProfileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.CreateConnectionProfileRequest 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.clouddms.v1.CreateConnectionProfileRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.CreateConnectionProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.CreateConnectionProfileRequest 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.clouddms.v1.CreateConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.CreateConnectionProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.CreateConnectionProfileRequest 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.clouddms.v1.CreateConnectionProfileRequest 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.clouddms.v1.CreateConnectionProfileRequest 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.clouddms.v1.CreateConnectionProfileRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest 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 message for 'CreateConnectionProfile' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.CreateConnectionProfileRequest} */ - 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.clouddms.v1.CreateConnectionProfileRequest) com.google.cloud.clouddms.v1.CreateConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.class, com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.Builder.class); + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.class, + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.newBuilder() @@ -521,16 +582,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -550,9 +610,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_descriptor; } @java.lang.Override @@ -571,7 +631,8 @@ public com.google.cloud.clouddms.v1.CreateConnectionProfileRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.CreateConnectionProfileRequest buildPartial() { - com.google.cloud.clouddms.v1.CreateConnectionProfileRequest result = new com.google.cloud.clouddms.v1.CreateConnectionProfileRequest(this); + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest result = + new com.google.cloud.clouddms.v1.CreateConnectionProfileRequest(this); result.parent_ = parent_; result.connectionProfileId_ = connectionProfileId_; if (connectionProfileBuilder_ == null) { @@ -588,38 +649,39 @@ public com.google.cloud.clouddms.v1.CreateConnectionProfileRequest 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.clouddms.v1.CreateConnectionProfileRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.CreateConnectionProfileRequest)other); + return mergeFrom((com.google.cloud.clouddms.v1.CreateConnectionProfileRequest) other); } else { super.mergeFrom(other); return this; @@ -627,7 +689,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.CreateConnectionProfileRequest other) { - if (other == com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.clouddms.v1.CreateConnectionProfileRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -662,7 +725,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.clouddms.v1.CreateConnectionProfileRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.clouddms.v1.CreateConnectionProfileRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -674,18 +738,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent, which owns this collection of connection profiles.
      * 
* - * string 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; @@ -694,20 +762,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of connection profiles.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -715,54 +786,67 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of connection profiles.
      * 
* - * 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 parent, which owns this collection of connection profiles.
      * 
* - * string 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 parent, which owns this collection of connection profiles.
      * 
* - * 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; @@ -770,18 +854,20 @@ public Builder setParentBytes( private java.lang.Object connectionProfileId_ = ""; /** + * + * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The connectionProfileId. */ public java.lang.String getConnectionProfileId() { java.lang.Object ref = connectionProfileId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connectionProfileId_ = s; return s; @@ -790,20 +876,21 @@ public java.lang.String getConnectionProfileId() { } } /** + * + * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for connectionProfileId. */ - public com.google.protobuf.ByteString - getConnectionProfileIdBytes() { + public com.google.protobuf.ByteString getConnectionProfileIdBytes() { java.lang.Object ref = connectionProfileId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); connectionProfileId_ = b; return b; } else { @@ -811,54 +898,61 @@ public java.lang.String getConnectionProfileId() { } } /** + * + * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The connectionProfileId to set. * @return This builder for chaining. */ - public Builder setConnectionProfileId( - java.lang.String value) { + public Builder setConnectionProfileId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + connectionProfileId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearConnectionProfileId() { - + connectionProfileId_ = getDefaultInstance().getConnectionProfileId(); onChanged(); return this; } /** + * + * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for connectionProfileId to set. * @return This builder for chaining. */ - public Builder setConnectionProfileIdBytes( - com.google.protobuf.ByteString value) { + public Builder setConnectionProfileIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connectionProfileId_ = value; onChanged(); return this; @@ -866,39 +960,58 @@ public Builder setConnectionProfileIdBytes( private com.google.cloud.clouddms.v1.ConnectionProfile connectionProfile_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.ConnectionProfile, com.google.cloud.clouddms.v1.ConnectionProfile.Builder, com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder> connectionProfileBuilder_; + com.google.cloud.clouddms.v1.ConnectionProfile, + com.google.cloud.clouddms.v1.ConnectionProfile.Builder, + com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder> + connectionProfileBuilder_; /** + * + * *
      * Required. The create request body including the connection profile data
      * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connectionProfile field is set. */ public boolean hasConnectionProfile() { return connectionProfileBuilder_ != null || connectionProfile_ != null; } /** + * + * *
      * Required. The create request body including the connection profile data
      * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connectionProfile. */ public com.google.cloud.clouddms.v1.ConnectionProfile getConnectionProfile() { if (connectionProfileBuilder_ == null) { - return connectionProfile_ == null ? com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; + return connectionProfile_ == null + ? com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance() + : connectionProfile_; } else { return connectionProfileBuilder_.getMessage(); } } /** + * + * *
      * Required. The create request body including the connection profile data
      * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConnectionProfile(com.google.cloud.clouddms.v1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { @@ -914,11 +1027,15 @@ public Builder setConnectionProfile(com.google.cloud.clouddms.v1.ConnectionProfi return this; } /** + * + * *
      * Required. The create request body including the connection profile data
      * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConnectionProfile( com.google.cloud.clouddms.v1.ConnectionProfile.Builder builderForValue) { @@ -932,17 +1049,23 @@ public Builder setConnectionProfile( return this; } /** + * + * *
      * Required. The create request body including the connection profile data
      * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConnectionProfile(com.google.cloud.clouddms.v1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { if (connectionProfile_ != null) { connectionProfile_ = - com.google.cloud.clouddms.v1.ConnectionProfile.newBuilder(connectionProfile_).mergeFrom(value).buildPartial(); + com.google.cloud.clouddms.v1.ConnectionProfile.newBuilder(connectionProfile_) + .mergeFrom(value) + .buildPartial(); } else { connectionProfile_ = value; } @@ -954,11 +1077,15 @@ public Builder mergeConnectionProfile(com.google.cloud.clouddms.v1.ConnectionPro return this; } /** + * + * *
      * Required. The create request body including the connection profile data
      * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConnectionProfile() { if (connectionProfileBuilder_ == null) { @@ -972,48 +1099,64 @@ public Builder clearConnectionProfile() { return this; } /** + * + * *
      * Required. The create request body including the connection profile data
      * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.clouddms.v1.ConnectionProfile.Builder getConnectionProfileBuilder() { - + onChanged(); return getConnectionProfileFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The create request body including the connection profile data
      * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { if (connectionProfileBuilder_ != null) { return connectionProfileBuilder_.getMessageOrBuilder(); } else { - return connectionProfile_ == null ? - com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; + return connectionProfile_ == null + ? com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance() + : connectionProfile_; } } /** + * + * *
      * Required. The create request body including the connection profile data
      * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.ConnectionProfile, com.google.cloud.clouddms.v1.ConnectionProfile.Builder, com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder> + com.google.cloud.clouddms.v1.ConnectionProfile, + com.google.cloud.clouddms.v1.ConnectionProfile.Builder, + com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder> getConnectionProfileFieldBuilder() { if (connectionProfileBuilder_ == null) { - connectionProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.ConnectionProfile, com.google.cloud.clouddms.v1.ConnectionProfile.Builder, com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder>( - getConnectionProfile(), - getParentForChildren(), - isClean()); + connectionProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ConnectionProfile, + com.google.cloud.clouddms.v1.ConnectionProfile.Builder, + com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder>( + getConnectionProfile(), getParentForChildren(), isClean()); connectionProfile_ = null; } return connectionProfileBuilder_; @@ -1021,6 +1164,8 @@ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProf private java.lang.Object requestId_ = ""; /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1030,13 +1175,13 @@ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProf
      * 
* * string request_id = 4; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1045,6 +1190,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1054,15 +1201,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1070,6 +1216,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1079,20 +1227,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1102,15 +1252,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1120,23 +1273,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1146,12 +1299,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.CreateConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.CreateConnectionProfileRequest) private static final com.google.cloud.clouddms.v1.CreateConnectionProfileRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.CreateConnectionProfileRequest(); } @@ -1160,16 +1313,16 @@ public static com.google.cloud.clouddms.v1.CreateConnectionProfileRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateConnectionProfileRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateConnectionProfileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1184,6 +1337,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.clouddms.v1.CreateConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequestOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequestOrBuilder.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequestOrBuilder.java index 06ac2dd6..60a3a5bb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequestOrBuilder.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequestOrBuilder.java @@ -1,80 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface CreateConnectionProfileRequestOrBuilder extends +public interface CreateConnectionProfileRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.CreateConnectionProfileRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent, which owns this collection of connection profiles.
    * 
* - * string 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 parent, which owns this collection of connection profiles.
    * 
* - * string 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. The connection profile identifier.
    * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The connectionProfileId. */ java.lang.String getConnectionProfileId(); /** + * + * *
    * Required. The connection profile identifier.
    * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for connectionProfileId. */ - com.google.protobuf.ByteString - getConnectionProfileIdBytes(); + com.google.protobuf.ByteString getConnectionProfileIdBytes(); /** + * + * *
    * Required. The create request body including the connection profile data
    * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connectionProfile field is set. */ boolean hasConnectionProfile(); /** + * + * *
    * Required. The create request body including the connection profile data
    * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connectionProfile. */ com.google.cloud.clouddms.v1.ConnectionProfile getConnectionProfile(); /** + * + * *
    * Required. The create request body including the connection profile data
    * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder(); /** + * + * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -84,10 +130,13 @@ public interface CreateConnectionProfileRequestOrBuilder extends
    * 
* * string request_id = 4; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -97,8 +146,8 @@ public interface CreateConnectionProfileRequestOrBuilder extends
    * 
* * string request_id = 4; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequest.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequest.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequest.java index 1d2e9b5f..fae2a530 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequest.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * Request message to create a new Database Migration Service migration job
  * in the specified project and region.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.clouddms.v1.CreateMigrationJobRequest}
  */
-public final class CreateMigrationJobRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CreateMigrationJobRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.CreateMigrationJobRequest)
     CreateMigrationJobRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateMigrationJobRequest.newBuilder() to construct.
   private CreateMigrationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CreateMigrationJobRequest() {
     parent_ = "";
     migrationJobId_ = "";
@@ -28,16 +46,15 @@ private CreateMigrationJobRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateMigrationJobRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CreateMigrationJobRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,77 +73,90 @@ private CreateMigrationJobRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            parent_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            migrationJobId_ = s;
-            break;
-          }
-          case 26: {
-            com.google.cloud.clouddms.v1.MigrationJob.Builder subBuilder = null;
-            if (migrationJob_ != null) {
-              subBuilder = migrationJob_.toBuilder();
+              parent_ = s;
+              break;
             }
-            migrationJob_ = input.readMessage(com.google.cloud.clouddms.v1.MigrationJob.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(migrationJob_);
-              migrationJob_ = subBuilder.buildPartial();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              migrationJobId_ = s;
+              break;
             }
+          case 26:
+            {
+              com.google.cloud.clouddms.v1.MigrationJob.Builder subBuilder = null;
+              if (migrationJob_ != null) {
+                subBuilder = migrationJob_.toBuilder();
+              }
+              migrationJob_ =
+                  input.readMessage(
+                      com.google.cloud.clouddms.v1.MigrationJob.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(migrationJob_);
+                migrationJob_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            requestId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              requestId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.clouddms.v1.ClouddmsProto
+        .internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_fieldAccessorTable
+    return com.google.cloud.clouddms.v1.ClouddmsProto
+        .internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.clouddms.v1.CreateMigrationJobRequest.class, com.google.cloud.clouddms.v1.CreateMigrationJobRequest.Builder.class);
+            com.google.cloud.clouddms.v1.CreateMigrationJobRequest.class,
+            com.google.cloud.clouddms.v1.CreateMigrationJobRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
+   *
+   *
    * 
    * Required. The parent, which owns this collection of migration jobs.
    * 
* - * string 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 @@ -135,29 +165,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 parent, which owns this collection of migration jobs.
    * 
* - * string 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 { @@ -168,11 +200,14 @@ public java.lang.String getParent() { public static final int MIGRATION_JOB_ID_FIELD_NUMBER = 2; private volatile java.lang.Object migrationJobId_; /** + * + * *
    * Required. The ID of the instance to create.
    * 
* * string migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The migrationJobId. */ @java.lang.Override @@ -181,29 +216,29 @@ public java.lang.String getMigrationJobId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); migrationJobId_ = s; return s; } } /** + * + * *
    * Required. The ID of the instance to create.
    * 
* * string migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for migrationJobId. */ @java.lang.Override - public com.google.protobuf.ByteString - getMigrationJobIdBytes() { + public com.google.protobuf.ByteString getMigrationJobIdBytes() { java.lang.Object ref = migrationJobId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); migrationJobId_ = b; return b; } else { @@ -214,13 +249,18 @@ public java.lang.String getMigrationJobId() { public static final int MIGRATION_JOB_FIELD_NUMBER = 3; private com.google.cloud.clouddms.v1.MigrationJob migrationJob_; /** + * + * *
    * Required. Represents a [migration
    * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
    * object.
    * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the migrationJob field is set. */ @java.lang.Override @@ -228,27 +268,38 @@ public boolean hasMigrationJob() { return migrationJob_ != null; } /** + * + * *
    * Required. Represents a [migration
    * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
    * object.
    * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The migrationJob. */ @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJob getMigrationJob() { - return migrationJob_ == null ? com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() : migrationJob_; + return migrationJob_ == null + ? com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() + : migrationJob_; } /** + * + * *
    * Required. Represents a [migration
    * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
    * object.
    * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuilder() { @@ -258,6 +309,8 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuild public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** + * + * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -267,6 +320,7 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuild
    * 
* * string request_id = 4; + * * @return The requestId. */ @java.lang.Override @@ -275,14 +329,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -292,16 +347,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -310,6 +364,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -321,8 +376,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -351,8 +405,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, migrationJobId_); } if (migrationJob_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMigrationJob()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMigrationJob()); } if (!getRequestIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -365,24 +418,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.clouddms.v1.CreateMigrationJobRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.CreateMigrationJobRequest other = (com.google.cloud.clouddms.v1.CreateMigrationJobRequest) obj; + com.google.cloud.clouddms.v1.CreateMigrationJobRequest other = + (com.google.cloud.clouddms.v1.CreateMigrationJobRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getMigrationJobId() - .equals(other.getMigrationJobId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getMigrationJobId().equals(other.getMigrationJobId())) return false; if (hasMigrationJob() != other.hasMigrationJob()) return false; if (hasMigrationJob()) { - if (!getMigrationJob() - .equals(other.getMigrationJob())) return false; + if (!getMigrationJob().equals(other.getMigrationJob())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -410,96 +460,104 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.CreateMigrationJobRequest 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.clouddms.v1.CreateMigrationJobRequest 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.clouddms.v1.CreateMigrationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.CreateMigrationJobRequest 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.clouddms.v1.CreateMigrationJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.CreateMigrationJobRequest 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.clouddms.v1.CreateMigrationJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.CreateMigrationJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.CreateMigrationJobRequest 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.clouddms.v1.CreateMigrationJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.CreateMigrationJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.CreateMigrationJobRequest 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.clouddms.v1.CreateMigrationJobRequest 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.clouddms.v1.CreateMigrationJobRequest 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.clouddms.v1.CreateMigrationJobRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.clouddms.v1.CreateMigrationJobRequest 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 message to create a new Database Migration Service migration job
    * in the specified project and region.
@@ -507,21 +565,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.clouddms.v1.CreateMigrationJobRequest}
    */
-  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.clouddms.v1.CreateMigrationJobRequest)
       com.google.cloud.clouddms.v1.CreateMigrationJobRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.clouddms.v1.ClouddmsProto
+          .internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_fieldAccessorTable
+      return com.google.cloud.clouddms.v1.ClouddmsProto
+          .internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.clouddms.v1.CreateMigrationJobRequest.class, com.google.cloud.clouddms.v1.CreateMigrationJobRequest.Builder.class);
+              com.google.cloud.clouddms.v1.CreateMigrationJobRequest.class,
+              com.google.cloud.clouddms.v1.CreateMigrationJobRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.clouddms.v1.CreateMigrationJobRequest.newBuilder()
@@ -529,16 +589,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -558,9 +617,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.clouddms.v1.ClouddmsProto
+          .internal_static_google_cloud_clouddms_v1_CreateMigrationJobRequest_descriptor;
     }
 
     @java.lang.Override
@@ -579,7 +638,8 @@ public com.google.cloud.clouddms.v1.CreateMigrationJobRequest build() {
 
     @java.lang.Override
     public com.google.cloud.clouddms.v1.CreateMigrationJobRequest buildPartial() {
-      com.google.cloud.clouddms.v1.CreateMigrationJobRequest result = new com.google.cloud.clouddms.v1.CreateMigrationJobRequest(this);
+      com.google.cloud.clouddms.v1.CreateMigrationJobRequest result =
+          new com.google.cloud.clouddms.v1.CreateMigrationJobRequest(this);
       result.parent_ = parent_;
       result.migrationJobId_ = migrationJobId_;
       if (migrationJobBuilder_ == null) {
@@ -596,38 +656,39 @@ public com.google.cloud.clouddms.v1.CreateMigrationJobRequest 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.clouddms.v1.CreateMigrationJobRequest) {
-        return mergeFrom((com.google.cloud.clouddms.v1.CreateMigrationJobRequest)other);
+        return mergeFrom((com.google.cloud.clouddms.v1.CreateMigrationJobRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -635,7 +696,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.clouddms.v1.CreateMigrationJobRequest other) {
-      if (other == com.google.cloud.clouddms.v1.CreateMigrationJobRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.clouddms.v1.CreateMigrationJobRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -670,7 +732,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.clouddms.v1.CreateMigrationJobRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.clouddms.v1.CreateMigrationJobRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -682,18 +745,22 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The parent, which owns this collection of migration jobs.
      * 
* - * string 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; @@ -702,20 +769,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of migration jobs.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -723,54 +793,67 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of migration jobs.
      * 
* - * 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 parent, which owns this collection of migration jobs.
      * 
* - * string 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 parent, which owns this collection of migration jobs.
      * 
* - * 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; @@ -778,18 +861,20 @@ public Builder setParentBytes( private java.lang.Object migrationJobId_ = ""; /** + * + * *
      * Required. The ID of the instance to create.
      * 
* * string migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The migrationJobId. */ public java.lang.String getMigrationJobId() { java.lang.Object ref = migrationJobId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); migrationJobId_ = s; return s; @@ -798,20 +883,21 @@ public java.lang.String getMigrationJobId() { } } /** + * + * *
      * Required. The ID of the instance to create.
      * 
* * string migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for migrationJobId. */ - public com.google.protobuf.ByteString - getMigrationJobIdBytes() { + public com.google.protobuf.ByteString getMigrationJobIdBytes() { java.lang.Object ref = migrationJobId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); migrationJobId_ = b; return b; } else { @@ -819,54 +905,61 @@ public java.lang.String getMigrationJobId() { } } /** + * + * *
      * Required. The ID of the instance to create.
      * 
* * string migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The migrationJobId to set. * @return This builder for chaining. */ - public Builder setMigrationJobId( - java.lang.String value) { + public Builder setMigrationJobId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + migrationJobId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID of the instance to create.
      * 
* * string migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMigrationJobId() { - + migrationJobId_ = getDefaultInstance().getMigrationJobId(); onChanged(); return this; } /** + * + * *
      * Required. The ID of the instance to create.
      * 
* * string migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for migrationJobId to set. * @return This builder for chaining. */ - public Builder setMigrationJobIdBytes( - com.google.protobuf.ByteString value) { + public Builder setMigrationJobIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + migrationJobId_ = value; onChanged(); return this; @@ -874,45 +967,64 @@ public Builder setMigrationJobIdBytes( private com.google.cloud.clouddms.v1.MigrationJob migrationJob_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.MigrationJob, com.google.cloud.clouddms.v1.MigrationJob.Builder, com.google.cloud.clouddms.v1.MigrationJobOrBuilder> migrationJobBuilder_; + com.google.cloud.clouddms.v1.MigrationJob, + com.google.cloud.clouddms.v1.MigrationJob.Builder, + com.google.cloud.clouddms.v1.MigrationJobOrBuilder> + migrationJobBuilder_; /** + * + * *
      * Required. Represents a [migration
      * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
      * object.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the migrationJob field is set. */ public boolean hasMigrationJob() { return migrationJobBuilder_ != null || migrationJob_ != null; } /** + * + * *
      * Required. Represents a [migration
      * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
      * object.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The migrationJob. */ public com.google.cloud.clouddms.v1.MigrationJob getMigrationJob() { if (migrationJobBuilder_ == null) { - return migrationJob_ == null ? com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() : migrationJob_; + return migrationJob_ == null + ? com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() + : migrationJob_; } else { return migrationJobBuilder_.getMessage(); } } /** + * + * *
      * Required. Represents a [migration
      * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
      * object.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMigrationJob(com.google.cloud.clouddms.v1.MigrationJob value) { if (migrationJobBuilder_ == null) { @@ -928,13 +1040,17 @@ public Builder setMigrationJob(com.google.cloud.clouddms.v1.MigrationJob value) return this; } /** + * + * *
      * Required. Represents a [migration
      * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
      * object.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMigrationJob( com.google.cloud.clouddms.v1.MigrationJob.Builder builderForValue) { @@ -948,19 +1064,25 @@ public Builder setMigrationJob( return this; } /** + * + * *
      * Required. Represents a [migration
      * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
      * object.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeMigrationJob(com.google.cloud.clouddms.v1.MigrationJob value) { if (migrationJobBuilder_ == null) { if (migrationJob_ != null) { migrationJob_ = - com.google.cloud.clouddms.v1.MigrationJob.newBuilder(migrationJob_).mergeFrom(value).buildPartial(); + com.google.cloud.clouddms.v1.MigrationJob.newBuilder(migrationJob_) + .mergeFrom(value) + .buildPartial(); } else { migrationJob_ = value; } @@ -972,13 +1094,17 @@ public Builder mergeMigrationJob(com.google.cloud.clouddms.v1.MigrationJob value return this; } /** + * + * *
      * Required. Represents a [migration
      * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
      * object.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearMigrationJob() { if (migrationJobBuilder_ == null) { @@ -992,54 +1118,70 @@ public Builder clearMigrationJob() { return this; } /** + * + * *
      * Required. Represents a [migration
      * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
      * object.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.clouddms.v1.MigrationJob.Builder getMigrationJobBuilder() { - + onChanged(); return getMigrationJobFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Represents a [migration
      * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
      * object.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuilder() { if (migrationJobBuilder_ != null) { return migrationJobBuilder_.getMessageOrBuilder(); } else { - return migrationJob_ == null ? - com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() : migrationJob_; + return migrationJob_ == null + ? com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() + : migrationJob_; } } /** + * + * *
      * Required. Represents a [migration
      * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
      * object.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.MigrationJob, com.google.cloud.clouddms.v1.MigrationJob.Builder, com.google.cloud.clouddms.v1.MigrationJobOrBuilder> + com.google.cloud.clouddms.v1.MigrationJob, + com.google.cloud.clouddms.v1.MigrationJob.Builder, + com.google.cloud.clouddms.v1.MigrationJobOrBuilder> getMigrationJobFieldBuilder() { if (migrationJobBuilder_ == null) { - migrationJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.MigrationJob, com.google.cloud.clouddms.v1.MigrationJob.Builder, com.google.cloud.clouddms.v1.MigrationJobOrBuilder>( - getMigrationJob(), - getParentForChildren(), - isClean()); + migrationJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.MigrationJob, + com.google.cloud.clouddms.v1.MigrationJob.Builder, + com.google.cloud.clouddms.v1.MigrationJobOrBuilder>( + getMigrationJob(), getParentForChildren(), isClean()); migrationJob_ = null; } return migrationJobBuilder_; @@ -1047,6 +1189,8 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuild private java.lang.Object requestId_ = ""; /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1056,13 +1200,13 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuild
      * 
* * string request_id = 4; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1071,6 +1215,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1080,15 +1226,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1096,6 +1241,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1105,20 +1252,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1128,15 +1277,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1146,23 +1298,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1172,12 +1324,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.CreateMigrationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.CreateMigrationJobRequest) private static final com.google.cloud.clouddms.v1.CreateMigrationJobRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.CreateMigrationJobRequest(); } @@ -1186,16 +1338,16 @@ public static com.google.cloud.clouddms.v1.CreateMigrationJobRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateMigrationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateMigrationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMigrationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateMigrationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1210,6 +1362,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.clouddms.v1.CreateMigrationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequestOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequestOrBuilder.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequestOrBuilder.java index 45344916..5c20f7de 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequestOrBuilder.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequestOrBuilder.java @@ -1,86 +1,132 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface CreateMigrationJobRequestOrBuilder extends +public interface CreateMigrationJobRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.CreateMigrationJobRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent, which owns this collection of migration jobs.
    * 
* - * string 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 parent, which owns this collection of migration jobs.
    * 
* - * string 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. The ID of the instance to create.
    * 
* * string migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The migrationJobId. */ java.lang.String getMigrationJobId(); /** + * + * *
    * Required. The ID of the instance to create.
    * 
* * string migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for migrationJobId. */ - com.google.protobuf.ByteString - getMigrationJobIdBytes(); + com.google.protobuf.ByteString getMigrationJobIdBytes(); /** + * + * *
    * Required. Represents a [migration
    * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
    * object.
    * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the migrationJob field is set. */ boolean hasMigrationJob(); /** + * + * *
    * Required. Represents a [migration
    * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
    * object.
    * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The migrationJob. */ com.google.cloud.clouddms.v1.MigrationJob getMigrationJob(); /** + * + * *
    * Required. Represents a [migration
    * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
    * object.
    * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuilder(); /** + * + * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -90,10 +136,13 @@ public interface CreateMigrationJobRequestOrBuilder extends
    * 
* * string request_id = 4; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -103,8 +152,8 @@ public interface CreateMigrationJobRequestOrBuilder extends
    * 
* * string request_id = 4; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEngine.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEngine.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEngine.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEngine.java index ae8453dd..61db75fd 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEngine.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEngine.java @@ -1,18 +1,36 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * The database engine types.
  * 
* * Protobuf enum {@code google.cloud.clouddms.v1.DatabaseEngine} */ -public enum DatabaseEngine - implements com.google.protobuf.ProtocolMessageEnum { +public enum DatabaseEngine implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * The source database engine of the migration job is unknown.
    * 
@@ -21,6 +39,8 @@ public enum DatabaseEngine */ DATABASE_ENGINE_UNSPECIFIED(0), /** + * + * *
    * The source engine is MySQL.
    * 
@@ -29,6 +49,8 @@ public enum DatabaseEngine */ MYSQL(1), /** + * + * *
    * The source engine is PostgreSQL.
    * 
@@ -40,6 +62,8 @@ public enum DatabaseEngine ; /** + * + * *
    * The source database engine of the migration job is unknown.
    * 
@@ -48,6 +72,8 @@ public enum DatabaseEngine */ public static final int DATABASE_ENGINE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * The source engine is MySQL.
    * 
@@ -56,6 +82,8 @@ public enum DatabaseEngine */ public static final int MYSQL_VALUE = 1; /** + * + * *
    * The source engine is PostgreSQL.
    * 
@@ -64,7 +92,6 @@ public enum DatabaseEngine */ public static final int POSTGRESQL_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -89,49 +116,51 @@ public static DatabaseEngine valueOf(int value) { */ public static DatabaseEngine forNumber(int value) { switch (value) { - case 0: return DATABASE_ENGINE_UNSPECIFIED; - case 1: return MYSQL; - case 2: return POSTGRESQL; - default: return null; + case 0: + return DATABASE_ENGINE_UNSPECIFIED; + case 1: + return MYSQL; + case 2: + return POSTGRESQL; + 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< - DatabaseEngine> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DatabaseEngine findValueByNumber(int number) { - return DatabaseEngine.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DatabaseEngine findValueByNumber(int number) { + return DatabaseEngine.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.clouddms.v1.ClouddmsResourcesProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.getDescriptor() + .getEnumTypes() + .get(0); } private static final DatabaseEngine[] VALUES = values(); - public static DatabaseEngine valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DatabaseEngine 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; @@ -147,4 +176,3 @@ private DatabaseEngine(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.clouddms.v1.DatabaseEngine) } - diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseProvider.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseProvider.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseProvider.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseProvider.java index 5ac0e809..c17ee0c1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseProvider.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseProvider.java @@ -1,18 +1,36 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * The database providers.
  * 
* * Protobuf enum {@code google.cloud.clouddms.v1.DatabaseProvider} */ -public enum DatabaseProvider - implements com.google.protobuf.ProtocolMessageEnum { +public enum DatabaseProvider implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * The database provider is unknown.
    * 
@@ -21,6 +39,8 @@ public enum DatabaseProvider */ DATABASE_PROVIDER_UNSPECIFIED(0), /** + * + * *
    * CloudSQL runs the database.
    * 
@@ -29,6 +49,8 @@ public enum DatabaseProvider */ CLOUDSQL(1), /** + * + * *
    * RDS runs the database.
    * 
@@ -40,6 +62,8 @@ public enum DatabaseProvider ; /** + * + * *
    * The database provider is unknown.
    * 
@@ -48,6 +72,8 @@ public enum DatabaseProvider */ public static final int DATABASE_PROVIDER_UNSPECIFIED_VALUE = 0; /** + * + * *
    * CloudSQL runs the database.
    * 
@@ -56,6 +82,8 @@ public enum DatabaseProvider */ public static final int CLOUDSQL_VALUE = 1; /** + * + * *
    * RDS runs the database.
    * 
@@ -64,7 +92,6 @@ public enum DatabaseProvider */ public static final int RDS_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -89,49 +116,51 @@ public static DatabaseProvider valueOf(int value) { */ public static DatabaseProvider forNumber(int value) { switch (value) { - case 0: return DATABASE_PROVIDER_UNSPECIFIED; - case 1: return CLOUDSQL; - case 2: return RDS; - default: return null; + case 0: + return DATABASE_PROVIDER_UNSPECIFIED; + case 1: + return CLOUDSQL; + case 2: + return RDS; + 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< - DatabaseProvider> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DatabaseProvider findValueByNumber(int number) { - return DatabaseProvider.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DatabaseProvider findValueByNumber(int number) { + return DatabaseProvider.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.clouddms.v1.ClouddmsResourcesProto.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.getDescriptor() + .getEnumTypes() + .get(1); } private static final DatabaseProvider[] VALUES = values(); - public static DatabaseProvider valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DatabaseProvider 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; @@ -147,4 +176,3 @@ private DatabaseProvider(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.clouddms.v1.DatabaseProvider) } - diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseType.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseType.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseType.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseType.java index 067b266a..351b251a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseType.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseType.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * A message defining the database engine and provider.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.DatabaseType} */ -public final class DatabaseType extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DatabaseType extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.DatabaseType) DatabaseTypeOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DatabaseType.newBuilder() to construct. private DatabaseType(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DatabaseType() { provider_ = 0; engine_ = 0; @@ -26,16 +44,15 @@ private DatabaseType() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DatabaseType(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DatabaseType( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,105 +71,128 @@ private DatabaseType( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - provider_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); + provider_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); - engine_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + engine_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_DatabaseType_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_DatabaseType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_DatabaseType_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_DatabaseType_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.DatabaseType.class, com.google.cloud.clouddms.v1.DatabaseType.Builder.class); + com.google.cloud.clouddms.v1.DatabaseType.class, + com.google.cloud.clouddms.v1.DatabaseType.Builder.class); } public static final int PROVIDER_FIELD_NUMBER = 1; private int provider_; /** + * + * *
    * The database provider.
    * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 1; + * * @return The enum numeric value on the wire for provider. */ - @java.lang.Override public int getProviderValue() { + @java.lang.Override + public int getProviderValue() { return provider_; } /** + * + * *
    * The database provider.
    * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 1; + * * @return The provider. */ - @java.lang.Override public com.google.cloud.clouddms.v1.DatabaseProvider getProvider() { + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseProvider getProvider() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.DatabaseProvider result = com.google.cloud.clouddms.v1.DatabaseProvider.valueOf(provider_); + com.google.cloud.clouddms.v1.DatabaseProvider result = + com.google.cloud.clouddms.v1.DatabaseProvider.valueOf(provider_); return result == null ? com.google.cloud.clouddms.v1.DatabaseProvider.UNRECOGNIZED : result; } public static final int ENGINE_FIELD_NUMBER = 2; private int engine_; /** + * + * *
    * The database engine.
    * 
* * .google.cloud.clouddms.v1.DatabaseEngine engine = 2; + * * @return The enum numeric value on the wire for engine. */ - @java.lang.Override public int getEngineValue() { + @java.lang.Override + public int getEngineValue() { return engine_; } /** + * + * *
    * The database engine.
    * 
* * .google.cloud.clouddms.v1.DatabaseEngine engine = 2; + * * @return The engine. */ - @java.lang.Override public com.google.cloud.clouddms.v1.DatabaseEngine getEngine() { + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEngine getEngine() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.DatabaseEngine result = com.google.cloud.clouddms.v1.DatabaseEngine.valueOf(engine_); + com.google.cloud.clouddms.v1.DatabaseEngine result = + com.google.cloud.clouddms.v1.DatabaseEngine.valueOf(engine_); return result == null ? com.google.cloud.clouddms.v1.DatabaseEngine.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,12 +204,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (provider_ != com.google.cloud.clouddms.v1.DatabaseProvider.DATABASE_PROVIDER_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (provider_ + != com.google.cloud.clouddms.v1.DatabaseProvider.DATABASE_PROVIDER_UNSPECIFIED + .getNumber()) { output.writeEnum(1, provider_); } - if (engine_ != com.google.cloud.clouddms.v1.DatabaseEngine.DATABASE_ENGINE_UNSPECIFIED.getNumber()) { + if (engine_ + != com.google.cloud.clouddms.v1.DatabaseEngine.DATABASE_ENGINE_UNSPECIFIED.getNumber()) { output.writeEnum(2, engine_); } unknownFields.writeTo(output); @@ -181,13 +223,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (provider_ != com.google.cloud.clouddms.v1.DatabaseProvider.DATABASE_PROVIDER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, provider_); + if (provider_ + != com.google.cloud.clouddms.v1.DatabaseProvider.DATABASE_PROVIDER_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, provider_); } - if (engine_ != com.google.cloud.clouddms.v1.DatabaseEngine.DATABASE_ENGINE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, engine_); + if (engine_ + != com.google.cloud.clouddms.v1.DatabaseEngine.DATABASE_ENGINE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, engine_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -197,12 +240,13 @@ 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.clouddms.v1.DatabaseType)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.DatabaseType other = (com.google.cloud.clouddms.v1.DatabaseType) obj; + com.google.cloud.clouddms.v1.DatabaseType other = + (com.google.cloud.clouddms.v1.DatabaseType) obj; if (provider_ != other.provider_) return false; if (engine_ != other.engine_) return false; @@ -226,118 +270,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.clouddms.v1.DatabaseType parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.clouddms.v1.DatabaseType parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.DatabaseType 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.clouddms.v1.DatabaseType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.DatabaseType 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.clouddms.v1.DatabaseType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.DatabaseType 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.clouddms.v1.DatabaseType parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.DatabaseType 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.clouddms.v1.DatabaseType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.DatabaseType parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.DatabaseType 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.clouddms.v1.DatabaseType 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.clouddms.v1.DatabaseType 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.clouddms.v1.DatabaseType 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 message defining the database engine and provider.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.DatabaseType} */ - 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.clouddms.v1.DatabaseType) com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_DatabaseType_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_DatabaseType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_DatabaseType_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_DatabaseType_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.DatabaseType.class, com.google.cloud.clouddms.v1.DatabaseType.Builder.class); + com.google.cloud.clouddms.v1.DatabaseType.class, + com.google.cloud.clouddms.v1.DatabaseType.Builder.class); } // Construct using com.google.cloud.clouddms.v1.DatabaseType.newBuilder() @@ -345,16 +398,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -366,9 +418,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_DatabaseType_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_DatabaseType_descriptor; } @java.lang.Override @@ -387,7 +439,8 @@ public com.google.cloud.clouddms.v1.DatabaseType build() { @java.lang.Override public com.google.cloud.clouddms.v1.DatabaseType buildPartial() { - com.google.cloud.clouddms.v1.DatabaseType result = new com.google.cloud.clouddms.v1.DatabaseType(this); + com.google.cloud.clouddms.v1.DatabaseType result = + new com.google.cloud.clouddms.v1.DatabaseType(this); result.provider_ = provider_; result.engine_ = engine_; onBuilt(); @@ -398,38 +451,39 @@ public com.google.cloud.clouddms.v1.DatabaseType 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.clouddms.v1.DatabaseType) { - return mergeFrom((com.google.cloud.clouddms.v1.DatabaseType)other); + return mergeFrom((com.google.cloud.clouddms.v1.DatabaseType) other); } else { super.mergeFrom(other); return this; @@ -475,51 +529,65 @@ public Builder mergeFrom( private int provider_ = 0; /** + * + * *
      * The database provider.
      * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 1; + * * @return The enum numeric value on the wire for provider. */ - @java.lang.Override public int getProviderValue() { + @java.lang.Override + public int getProviderValue() { return provider_; } /** + * + * *
      * The database provider.
      * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 1; + * * @param value The enum numeric value on the wire for provider to set. * @return This builder for chaining. */ public Builder setProviderValue(int value) { - + provider_ = value; onChanged(); return this; } /** + * + * *
      * The database provider.
      * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 1; + * * @return The provider. */ @java.lang.Override public com.google.cloud.clouddms.v1.DatabaseProvider getProvider() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.DatabaseProvider result = com.google.cloud.clouddms.v1.DatabaseProvider.valueOf(provider_); + com.google.cloud.clouddms.v1.DatabaseProvider result = + com.google.cloud.clouddms.v1.DatabaseProvider.valueOf(provider_); return result == null ? com.google.cloud.clouddms.v1.DatabaseProvider.UNRECOGNIZED : result; } /** + * + * *
      * The database provider.
      * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 1; + * * @param value The provider to set. * @return This builder for chaining. */ @@ -527,21 +595,24 @@ public Builder setProvider(com.google.cloud.clouddms.v1.DatabaseProvider value) if (value == null) { throw new NullPointerException(); } - + provider_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The database provider.
      * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 1; + * * @return This builder for chaining. */ public Builder clearProvider() { - + provider_ = 0; onChanged(); return this; @@ -549,51 +620,65 @@ public Builder clearProvider() { private int engine_ = 0; /** + * + * *
      * The database engine.
      * 
* * .google.cloud.clouddms.v1.DatabaseEngine engine = 2; + * * @return The enum numeric value on the wire for engine. */ - @java.lang.Override public int getEngineValue() { + @java.lang.Override + public int getEngineValue() { return engine_; } /** + * + * *
      * The database engine.
      * 
* * .google.cloud.clouddms.v1.DatabaseEngine engine = 2; + * * @param value The enum numeric value on the wire for engine to set. * @return This builder for chaining. */ public Builder setEngineValue(int value) { - + engine_ = value; onChanged(); return this; } /** + * + * *
      * The database engine.
      * 
* * .google.cloud.clouddms.v1.DatabaseEngine engine = 2; + * * @return The engine. */ @java.lang.Override public com.google.cloud.clouddms.v1.DatabaseEngine getEngine() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.DatabaseEngine result = com.google.cloud.clouddms.v1.DatabaseEngine.valueOf(engine_); + com.google.cloud.clouddms.v1.DatabaseEngine result = + com.google.cloud.clouddms.v1.DatabaseEngine.valueOf(engine_); return result == null ? com.google.cloud.clouddms.v1.DatabaseEngine.UNRECOGNIZED : result; } /** + * + * *
      * The database engine.
      * 
* * .google.cloud.clouddms.v1.DatabaseEngine engine = 2; + * * @param value The engine to set. * @return This builder for chaining. */ @@ -601,28 +686,31 @@ public Builder setEngine(com.google.cloud.clouddms.v1.DatabaseEngine value) { if (value == null) { throw new NullPointerException(); } - + engine_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The database engine.
      * 
* * .google.cloud.clouddms.v1.DatabaseEngine engine = 2; + * * @return This builder for chaining. */ public Builder clearEngine() { - + engine_ = 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); } @@ -632,12 +720,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.DatabaseType) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.DatabaseType) private static final com.google.cloud.clouddms.v1.DatabaseType DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.DatabaseType(); } @@ -646,16 +734,16 @@ public static com.google.cloud.clouddms.v1.DatabaseType getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DatabaseType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DatabaseType(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatabaseType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DatabaseType(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -670,6 +758,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.DatabaseType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseTypeOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseTypeOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseTypeOrBuilder.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseTypeOrBuilder.java index 87d362d9..be1b81a3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseTypeOrBuilder.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseTypeOrBuilder.java @@ -1,46 +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/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; -public interface DatabaseTypeOrBuilder extends +public interface DatabaseTypeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.DatabaseType) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The database provider.
    * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 1; + * * @return The enum numeric value on the wire for provider. */ int getProviderValue(); /** + * + * *
    * The database provider.
    * 
* * .google.cloud.clouddms.v1.DatabaseProvider provider = 1; + * * @return The provider. */ com.google.cloud.clouddms.v1.DatabaseProvider getProvider(); /** + * + * *
    * The database engine.
    * 
* * .google.cloud.clouddms.v1.DatabaseEngine engine = 2; + * * @return The enum numeric value on the wire for engine. */ int getEngineValue(); /** + * + * *
    * The database engine.
    * 
* * .google.cloud.clouddms.v1.DatabaseEngine engine = 2; + * * @return The engine. */ com.google.cloud.clouddms.v1.DatabaseEngine getEngine(); diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequest.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequest.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequest.java index 41deda40..7982f6a9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequest.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * Request message for 'DeleteConnectionProfile' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.DeleteConnectionProfileRequest} */ -public final class DeleteConnectionProfileRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.DeleteConnectionProfileRequest) DeleteConnectionProfileRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteConnectionProfileRequest.newBuilder() to construct. - private DeleteConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteConnectionProfileRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteConnectionProfileRequest() { name_ = ""; requestId_ = ""; @@ -26,16 +45,15 @@ private DeleteConnectionProfileRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteConnectionProfileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,63 +72,72 @@ private DeleteConnectionProfileRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - case 24: { + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - force_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + case 24: + { + force_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.class, com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.Builder.class); + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.class, + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the connection profile resource to delete.
    * 
* - * string name = 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 @@ -119,29 +146,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. Name of the connection profile resource to delete.
    * 
* - * string name = 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 { @@ -152,6 +181,8 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** + * + * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -161,6 +192,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2; + * * @return The requestId. */ @java.lang.Override @@ -169,14 +201,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -186,16 +219,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -206,12 +238,15 @@ public java.lang.String getRequestId() { public static final int FORCE_FIELD_NUMBER = 3; private boolean force_; /** + * + * *
    * In case of force delete, the CloudSQL replica database is also deleted
    * (only for CloudSQL connection profile).
    * 
* * bool force = 3; + * * @return The force. */ @java.lang.Override @@ -220,6 +255,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,8 +267,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -258,8 +293,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -269,19 +303,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.clouddms.v1.DeleteConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest other = (com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest) obj; + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest other = + (com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (getForce() - != other.getForce()) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (getForce() != other.getForce()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -298,125 +330,134 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest 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.clouddms.v1.DeleteConnectionProfileRequest 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.clouddms.v1.DeleteConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest 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.clouddms.v1.DeleteConnectionProfileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest 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.clouddms.v1.DeleteConnectionProfileRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest 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.clouddms.v1.DeleteConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest 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.clouddms.v1.DeleteConnectionProfileRequest 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.clouddms.v1.DeleteConnectionProfileRequest 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.clouddms.v1.DeleteConnectionProfileRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest 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 message for 'DeleteConnectionProfile' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.DeleteConnectionProfileRequest} */ - 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.clouddms.v1.DeleteConnectionProfileRequest) com.google.cloud.clouddms.v1.DeleteConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.class, com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.Builder.class); + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.class, + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.newBuilder() @@ -424,16 +465,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -447,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor; } @java.lang.Override @@ -468,7 +508,8 @@ public com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest buildPartial() { - com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest result = new com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest(this); + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest result = + new com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest(this); result.name_ = name_; result.requestId_ = requestId_; result.force_ = force_; @@ -480,38 +521,39 @@ public com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest 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.clouddms.v1.DeleteConnectionProfileRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest)other); + return mergeFrom((com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest) other); } else { super.mergeFrom(other); return this; @@ -519,7 +561,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest other) { - if (other == com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -550,7 +593,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -562,18 +606,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the connection profile resource to delete.
      * 
* - * string name = 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; @@ -582,20 +630,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the connection profile resource to delete.
      * 
* - * string name = 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 { @@ -603,54 +654,67 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the connection profile resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the connection profile resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the connection profile resource to delete.
      * 
* - * 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; @@ -658,6 +722,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -667,13 +733,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -682,6 +748,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -691,15 +759,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -707,6 +774,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -716,20 +785,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -739,15 +810,18 @@ public Builder setRequestId(
      * 
* * string request_id = 2; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -757,29 +831,32 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * In case of force delete, the CloudSQL replica database is also deleted
      * (only for CloudSQL connection profile).
      * 
* * bool force = 3; + * * @return The force. */ @java.lang.Override @@ -787,39 +864,45 @@ public boolean getForce() { return force_; } /** + * + * *
      * In case of force delete, the CloudSQL replica database is also deleted
      * (only for CloudSQL connection profile).
      * 
* * bool force = 3; + * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; onChanged(); return this; } /** + * + * *
      * In case of force delete, the CloudSQL replica database is also deleted
      * (only for CloudSQL connection profile).
      * 
* * bool force = 3; + * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = 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); } @@ -829,12 +912,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.DeleteConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.DeleteConnectionProfileRequest) private static final com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest(); } @@ -843,16 +926,16 @@ public static com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteConnectionProfileRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteConnectionProfileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +950,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequestOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequestOrBuilder.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequestOrBuilder.java index 7d2bd9e1..730faf52 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequestOrBuilder.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequestOrBuilder.java @@ -1,33 +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/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface DeleteConnectionProfileRequestOrBuilder extends +public interface DeleteConnectionProfileRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.DeleteConnectionProfileRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the connection profile resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Name of the connection profile resource to delete.
    * 
* - * string name = 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(); /** + * + * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -37,10 +64,13 @@ public interface DeleteConnectionProfileRequestOrBuilder extends
    * 
* * string request_id = 2; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -50,18 +80,21 @@ public interface DeleteConnectionProfileRequestOrBuilder extends
    * 
* * string request_id = 2; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); /** + * + * *
    * In case of force delete, the CloudSQL replica database is also deleted
    * (only for CloudSQL connection profile).
    * 
* * bool force = 3; + * * @return The force. */ boolean getForce(); diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequest.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequest.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequest.java index bcf2a329..db26e30c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequest.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * Request message for 'DeleteMigrationJob' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.DeleteMigrationJobRequest} */ -public final class DeleteMigrationJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteMigrationJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.DeleteMigrationJobRequest) DeleteMigrationJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteMigrationJobRequest.newBuilder() to construct. private DeleteMigrationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteMigrationJobRequest() { name_ = ""; requestId_ = ""; @@ -26,16 +44,15 @@ private DeleteMigrationJobRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteMigrationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteMigrationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,63 +71,72 @@ private DeleteMigrationJobRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - case 24: { + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - force_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + case 24: + { + force_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.class, com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.class, + com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the migration job resource to delete.
    * 
* - * string name = 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 @@ -119,29 +145,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. Name of the migration job resource to delete.
    * 
* - * string name = 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 { @@ -152,6 +180,8 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** + * + * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -161,6 +191,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2; + * * @return The requestId. */ @java.lang.Override @@ -169,14 +200,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -186,16 +218,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -206,6 +237,8 @@ public java.lang.String getRequestId() { public static final int FORCE_FIELD_NUMBER = 3; private boolean force_; /** + * + * *
    * The destination CloudSQL connection profile is always deleted with the
    * migration job. In case of force delete, the destination CloudSQL replica
@@ -213,6 +246,7 @@ public java.lang.String getRequestId() {
    * 
* * bool force = 3; + * * @return The force. */ @java.lang.Override @@ -221,6 +255,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,8 +267,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -259,8 +293,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -270,19 +303,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.clouddms.v1.DeleteMigrationJobRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.DeleteMigrationJobRequest other = (com.google.cloud.clouddms.v1.DeleteMigrationJobRequest) obj; + com.google.cloud.clouddms.v1.DeleteMigrationJobRequest other = + (com.google.cloud.clouddms.v1.DeleteMigrationJobRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (getForce() - != other.getForce()) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (getForce() != other.getForce()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -299,125 +330,134 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.clouddms.v1.DeleteMigrationJobRequest 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.clouddms.v1.DeleteMigrationJobRequest 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.clouddms.v1.DeleteMigrationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.DeleteMigrationJobRequest 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.clouddms.v1.DeleteMigrationJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.DeleteMigrationJobRequest 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.clouddms.v1.DeleteMigrationJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.DeleteMigrationJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.DeleteMigrationJobRequest 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.clouddms.v1.DeleteMigrationJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.DeleteMigrationJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.DeleteMigrationJobRequest 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.clouddms.v1.DeleteMigrationJobRequest 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.clouddms.v1.DeleteMigrationJobRequest 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.clouddms.v1.DeleteMigrationJobRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.clouddms.v1.DeleteMigrationJobRequest 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 message for 'DeleteMigrationJob' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.DeleteMigrationJobRequest} */ - 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.clouddms.v1.DeleteMigrationJobRequest) com.google.cloud.clouddms.v1.DeleteMigrationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.class, com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.class, + com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.newBuilder() @@ -425,16 +465,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DeleteMigrationJobRequest_descriptor; } @java.lang.Override @@ -469,7 +508,8 @@ public com.google.cloud.clouddms.v1.DeleteMigrationJobRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.DeleteMigrationJobRequest buildPartial() { - com.google.cloud.clouddms.v1.DeleteMigrationJobRequest result = new com.google.cloud.clouddms.v1.DeleteMigrationJobRequest(this); + com.google.cloud.clouddms.v1.DeleteMigrationJobRequest result = + new com.google.cloud.clouddms.v1.DeleteMigrationJobRequest(this); result.name_ = name_; result.requestId_ = requestId_; result.force_ = force_; @@ -481,38 +521,39 @@ public com.google.cloud.clouddms.v1.DeleteMigrationJobRequest 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.clouddms.v1.DeleteMigrationJobRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.DeleteMigrationJobRequest)other); + return mergeFrom((com.google.cloud.clouddms.v1.DeleteMigrationJobRequest) other); } else { super.mergeFrom(other); return this; @@ -520,7 +561,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.DeleteMigrationJobRequest other) { - if (other == com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.clouddms.v1.DeleteMigrationJobRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -551,7 +593,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.clouddms.v1.DeleteMigrationJobRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.clouddms.v1.DeleteMigrationJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -563,18 +606,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the migration job resource to delete.
      * 
* - * string name = 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; @@ -583,20 +630,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the migration job resource to delete.
      * 
* - * string name = 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 { @@ -604,54 +654,67 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the migration job resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the migration job resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the migration job resource to delete.
      * 
* - * 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; @@ -659,6 +722,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -668,13 +733,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -683,6 +748,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -692,15 +759,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -708,6 +774,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -717,20 +785,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -740,15 +810,18 @@ public Builder setRequestId(
      * 
* * string request_id = 2; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -758,23 +831,25 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * The destination CloudSQL connection profile is always deleted with the
      * migration job. In case of force delete, the destination CloudSQL replica
@@ -782,6 +857,7 @@ public Builder setRequestIdBytes(
      * 
* * bool force = 3; + * * @return The force. */ @java.lang.Override @@ -789,6 +865,8 @@ public boolean getForce() { return force_; } /** + * + * *
      * The destination CloudSQL connection profile is always deleted with the
      * migration job. In case of force delete, the destination CloudSQL replica
@@ -796,16 +874,19 @@ public boolean getForce() {
      * 
* * bool force = 3; + * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; onChanged(); return this; } /** + * + * *
      * The destination CloudSQL connection profile is always deleted with the
      * migration job. In case of force delete, the destination CloudSQL replica
@@ -813,17 +894,18 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 3; + * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = 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); } @@ -833,12 +915,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.DeleteMigrationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.DeleteMigrationJobRequest) private static final com.google.cloud.clouddms.v1.DeleteMigrationJobRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.DeleteMigrationJobRequest(); } @@ -847,16 +929,16 @@ public static com.google.cloud.clouddms.v1.DeleteMigrationJobRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteMigrationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteMigrationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMigrationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteMigrationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -871,6 +953,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.clouddms.v1.DeleteMigrationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequestOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequestOrBuilder.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequestOrBuilder.java index 8c70fc34..97d25bc4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequestOrBuilder.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequestOrBuilder.java @@ -1,33 +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/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface DeleteMigrationJobRequestOrBuilder extends +public interface DeleteMigrationJobRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.DeleteMigrationJobRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the migration job resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Name of the migration job resource to delete.
    * 
* - * string name = 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(); /** + * + * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -37,10 +64,13 @@ public interface DeleteMigrationJobRequestOrBuilder extends
    * 
* * string request_id = 2; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -50,12 +80,14 @@ public interface DeleteMigrationJobRequestOrBuilder extends
    * 
* * string request_id = 2; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); /** + * + * *
    * The destination CloudSQL connection profile is always deleted with the
    * migration job. In case of force delete, the destination CloudSQL replica
@@ -63,6 +95,7 @@ public interface DeleteMigrationJobRequestOrBuilder extends
    * 
* * bool force = 3; + * * @return The force. */ boolean getForce(); diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequest.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequest.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequest.java index 89ce43d3..c9705631 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequest.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * Request message for 'GenerateSshScript' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.GenerateSshScriptRequest} */ -public final class GenerateSshScriptRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateSshScriptRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.GenerateSshScriptRequest) GenerateSshScriptRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateSshScriptRequest.newBuilder() to construct. private GenerateSshScriptRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateSshScriptRequest() { migrationJob_ = ""; vm_ = ""; @@ -26,16 +44,15 @@ private GenerateSshScriptRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateSshScriptRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GenerateSshScriptRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,92 +71,105 @@ private GenerateSshScriptRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - migrationJob_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - vm_ = s; - break; - } - case 24: { + migrationJob_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - vmPort_ = input.readInt32(); - break; - } - case 802: { - com.google.cloud.clouddms.v1.VmCreationConfig.Builder subBuilder = null; - if (vmConfigCase_ == 100) { - subBuilder = ((com.google.cloud.clouddms.v1.VmCreationConfig) vmConfig_).toBuilder(); + vm_ = s; + break; } - vmConfig_ = - input.readMessage(com.google.cloud.clouddms.v1.VmCreationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.clouddms.v1.VmCreationConfig) vmConfig_); - vmConfig_ = subBuilder.buildPartial(); + case 24: + { + vmPort_ = input.readInt32(); + break; } - vmConfigCase_ = 100; - break; - } - case 810: { - com.google.cloud.clouddms.v1.VmSelectionConfig.Builder subBuilder = null; - if (vmConfigCase_ == 101) { - subBuilder = ((com.google.cloud.clouddms.v1.VmSelectionConfig) vmConfig_).toBuilder(); + case 802: + { + com.google.cloud.clouddms.v1.VmCreationConfig.Builder subBuilder = null; + if (vmConfigCase_ == 100) { + subBuilder = + ((com.google.cloud.clouddms.v1.VmCreationConfig) vmConfig_).toBuilder(); + } + vmConfig_ = + input.readMessage( + com.google.cloud.clouddms.v1.VmCreationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.clouddms.v1.VmCreationConfig) vmConfig_); + vmConfig_ = subBuilder.buildPartial(); + } + vmConfigCase_ = 100; + break; } - vmConfig_ = - input.readMessage(com.google.cloud.clouddms.v1.VmSelectionConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.clouddms.v1.VmSelectionConfig) vmConfig_); - vmConfig_ = subBuilder.buildPartial(); + case 810: + { + com.google.cloud.clouddms.v1.VmSelectionConfig.Builder subBuilder = null; + if (vmConfigCase_ == 101) { + subBuilder = + ((com.google.cloud.clouddms.v1.VmSelectionConfig) vmConfig_).toBuilder(); + } + vmConfig_ = + input.readMessage( + com.google.cloud.clouddms.v1.VmSelectionConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.clouddms.v1.VmSelectionConfig) vmConfig_); + vmConfig_ = subBuilder.buildPartial(); + } + vmConfigCase_ = 101; + break; } - vmConfigCase_ = 101; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.GenerateSshScriptRequest.class, com.google.cloud.clouddms.v1.GenerateSshScriptRequest.Builder.class); + com.google.cloud.clouddms.v1.GenerateSshScriptRequest.class, + com.google.cloud.clouddms.v1.GenerateSshScriptRequest.Builder.class); } private int vmConfigCase_ = 0; private java.lang.Object vmConfig_; + public enum VmConfigCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VM_CREATION_CONFIG(100), VM_SELECTION_CONFIG(101), VMCONFIG_NOT_SET(0); private final int value; + private VmConfigCase(int value) { this.value = value; } @@ -155,31 +185,37 @@ public static VmConfigCase valueOf(int value) { public static VmConfigCase forNumber(int value) { switch (value) { - case 100: return VM_CREATION_CONFIG; - case 101: return VM_SELECTION_CONFIG; - case 0: return VMCONFIG_NOT_SET; - default: return null; + case 100: + return VM_CREATION_CONFIG; + case 101: + return VM_SELECTION_CONFIG; + case 0: + return VMCONFIG_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public VmConfigCase - getVmConfigCase() { - return VmConfigCase.forNumber( - vmConfigCase_); + public VmConfigCase getVmConfigCase() { + return VmConfigCase.forNumber(vmConfigCase_); } public static final int MIGRATION_JOB_FIELD_NUMBER = 1; private volatile java.lang.Object migrationJob_; /** + * + * *
    * Name of the migration job resource to generate the SSH script.
    * 
* * string migration_job = 1 [(.google.api.resource_reference) = { ... } + * * @return The migrationJob. */ @java.lang.Override @@ -188,29 +224,29 @@ public java.lang.String getMigrationJob() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); migrationJob_ = s; return s; } } /** + * + * *
    * Name of the migration job resource to generate the SSH script.
    * 
* * string migration_job = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for migrationJob. */ @java.lang.Override - public com.google.protobuf.ByteString - getMigrationJobBytes() { + public com.google.protobuf.ByteString getMigrationJobBytes() { java.lang.Object ref = migrationJob_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); migrationJob_ = b; return b; } else { @@ -221,11 +257,14 @@ public java.lang.String getMigrationJob() { public static final int VM_FIELD_NUMBER = 2; private volatile java.lang.Object vm_; /** + * + * *
    * Required. Bastion VM Instance name to use or to create.
    * 
* * string vm = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vm. */ @java.lang.Override @@ -234,29 +273,29 @@ public java.lang.String getVm() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vm_ = s; return s; } } /** + * + * *
    * Required. Bastion VM Instance name to use or to create.
    * 
* * string vm = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vm. */ @java.lang.Override - public com.google.protobuf.ByteString - getVmBytes() { + public com.google.protobuf.ByteString getVmBytes() { java.lang.Object ref = vm_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vm_ = b; return b; } else { @@ -266,11 +305,14 @@ public java.lang.String getVm() { public static final int VM_CREATION_CONFIG_FIELD_NUMBER = 100; /** + * + * *
    * The VM creation configuration
    * 
* * .google.cloud.clouddms.v1.VmCreationConfig vm_creation_config = 100; + * * @return Whether the vmCreationConfig field is set. */ @java.lang.Override @@ -278,21 +320,26 @@ public boolean hasVmCreationConfig() { return vmConfigCase_ == 100; } /** + * + * *
    * The VM creation configuration
    * 
* * .google.cloud.clouddms.v1.VmCreationConfig vm_creation_config = 100; + * * @return The vmCreationConfig. */ @java.lang.Override public com.google.cloud.clouddms.v1.VmCreationConfig getVmCreationConfig() { if (vmConfigCase_ == 100) { - return (com.google.cloud.clouddms.v1.VmCreationConfig) vmConfig_; + return (com.google.cloud.clouddms.v1.VmCreationConfig) vmConfig_; } return com.google.cloud.clouddms.v1.VmCreationConfig.getDefaultInstance(); } /** + * + * *
    * The VM creation configuration
    * 
@@ -302,18 +349,21 @@ public com.google.cloud.clouddms.v1.VmCreationConfig getVmCreationConfig() { @java.lang.Override public com.google.cloud.clouddms.v1.VmCreationConfigOrBuilder getVmCreationConfigOrBuilder() { if (vmConfigCase_ == 100) { - return (com.google.cloud.clouddms.v1.VmCreationConfig) vmConfig_; + return (com.google.cloud.clouddms.v1.VmCreationConfig) vmConfig_; } return com.google.cloud.clouddms.v1.VmCreationConfig.getDefaultInstance(); } public static final int VM_SELECTION_CONFIG_FIELD_NUMBER = 101; /** + * + * *
    * The VM selection configuration
    * 
* * .google.cloud.clouddms.v1.VmSelectionConfig vm_selection_config = 101; + * * @return Whether the vmSelectionConfig field is set. */ @java.lang.Override @@ -321,21 +371,26 @@ public boolean hasVmSelectionConfig() { return vmConfigCase_ == 101; } /** + * + * *
    * The VM selection configuration
    * 
* * .google.cloud.clouddms.v1.VmSelectionConfig vm_selection_config = 101; + * * @return The vmSelectionConfig. */ @java.lang.Override public com.google.cloud.clouddms.v1.VmSelectionConfig getVmSelectionConfig() { if (vmConfigCase_ == 101) { - return (com.google.cloud.clouddms.v1.VmSelectionConfig) vmConfig_; + return (com.google.cloud.clouddms.v1.VmSelectionConfig) vmConfig_; } return com.google.cloud.clouddms.v1.VmSelectionConfig.getDefaultInstance(); } /** + * + * *
    * The VM selection configuration
    * 
@@ -345,7 +400,7 @@ public com.google.cloud.clouddms.v1.VmSelectionConfig getVmSelectionConfig() { @java.lang.Override public com.google.cloud.clouddms.v1.VmSelectionConfigOrBuilder getVmSelectionConfigOrBuilder() { if (vmConfigCase_ == 101) { - return (com.google.cloud.clouddms.v1.VmSelectionConfig) vmConfig_; + return (com.google.cloud.clouddms.v1.VmSelectionConfig) vmConfig_; } return com.google.cloud.clouddms.v1.VmSelectionConfig.getDefaultInstance(); } @@ -353,11 +408,14 @@ public com.google.cloud.clouddms.v1.VmSelectionConfigOrBuilder getVmSelectionCon public static final int VM_PORT_FIELD_NUMBER = 3; private int vmPort_; /** + * + * *
    * The port that will be open on the bastion host
    * 
* * int32 vm_port = 3; + * * @return The vmPort. */ @java.lang.Override @@ -366,6 +424,7 @@ public int getVmPort() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -377,8 +436,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getMigrationJobBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, migrationJob_); } @@ -410,16 +468,17 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vm_); } if (vmPort_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, vmPort_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, vmPort_); } if (vmConfigCase_ == 100) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(100, (com.google.cloud.clouddms.v1.VmCreationConfig) vmConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.cloud.clouddms.v1.VmCreationConfig) vmConfig_); } if (vmConfigCase_ == 101) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(101, (com.google.cloud.clouddms.v1.VmSelectionConfig) vmConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.clouddms.v1.VmSelectionConfig) vmConfig_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -429,28 +488,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.clouddms.v1.GenerateSshScriptRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.GenerateSshScriptRequest other = (com.google.cloud.clouddms.v1.GenerateSshScriptRequest) obj; + com.google.cloud.clouddms.v1.GenerateSshScriptRequest other = + (com.google.cloud.clouddms.v1.GenerateSshScriptRequest) obj; - if (!getMigrationJob() - .equals(other.getMigrationJob())) return false; - if (!getVm() - .equals(other.getVm())) return false; - if (getVmPort() - != other.getVmPort()) return false; + if (!getMigrationJob().equals(other.getMigrationJob())) return false; + if (!getVm().equals(other.getVm())) return false; + if (getVmPort() != other.getVmPort()) return false; if (!getVmConfigCase().equals(other.getVmConfigCase())) return false; switch (vmConfigCase_) { case 100: - if (!getVmCreationConfig() - .equals(other.getVmCreationConfig())) return false; + if (!getVmCreationConfig().equals(other.getVmCreationConfig())) return false; break; case 101: - if (!getVmSelectionConfig() - .equals(other.getVmSelectionConfig())) return false; + if (!getVmSelectionConfig().equals(other.getVmSelectionConfig())) return false; break; case 0: default: @@ -490,117 +545,127 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.GenerateSshScriptRequest 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.clouddms.v1.GenerateSshScriptRequest 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.clouddms.v1.GenerateSshScriptRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.GenerateSshScriptRequest 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.clouddms.v1.GenerateSshScriptRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.GenerateSshScriptRequest 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.clouddms.v1.GenerateSshScriptRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.GenerateSshScriptRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.GenerateSshScriptRequest 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.clouddms.v1.GenerateSshScriptRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.GenerateSshScriptRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.GenerateSshScriptRequest 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.clouddms.v1.GenerateSshScriptRequest 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.clouddms.v1.GenerateSshScriptRequest 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.clouddms.v1.GenerateSshScriptRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.clouddms.v1.GenerateSshScriptRequest 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 message for 'GenerateSshScript' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.GenerateSshScriptRequest} */ - 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.clouddms.v1.GenerateSshScriptRequest) com.google.cloud.clouddms.v1.GenerateSshScriptRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.GenerateSshScriptRequest.class, com.google.cloud.clouddms.v1.GenerateSshScriptRequest.Builder.class); + com.google.cloud.clouddms.v1.GenerateSshScriptRequest.class, + com.google.cloud.clouddms.v1.GenerateSshScriptRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.GenerateSshScriptRequest.newBuilder() @@ -608,16 +673,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -633,9 +697,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GenerateSshScriptRequest_descriptor; } @java.lang.Override @@ -654,7 +718,8 @@ public com.google.cloud.clouddms.v1.GenerateSshScriptRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.GenerateSshScriptRequest buildPartial() { - com.google.cloud.clouddms.v1.GenerateSshScriptRequest result = new com.google.cloud.clouddms.v1.GenerateSshScriptRequest(this); + com.google.cloud.clouddms.v1.GenerateSshScriptRequest result = + new com.google.cloud.clouddms.v1.GenerateSshScriptRequest(this); result.migrationJob_ = migrationJob_; result.vm_ = vm_; if (vmConfigCase_ == 100) { @@ -681,38 +746,39 @@ public com.google.cloud.clouddms.v1.GenerateSshScriptRequest 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.clouddms.v1.GenerateSshScriptRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.GenerateSshScriptRequest)other); + return mergeFrom((com.google.cloud.clouddms.v1.GenerateSshScriptRequest) other); } else { super.mergeFrom(other); return this; @@ -720,7 +786,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.GenerateSshScriptRequest other) { - if (other == com.google.cloud.clouddms.v1.GenerateSshScriptRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.clouddms.v1.GenerateSshScriptRequest.getDefaultInstance()) + return this; if (!other.getMigrationJob().isEmpty()) { migrationJob_ = other.migrationJob_; onChanged(); @@ -733,17 +800,20 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.GenerateSshScriptRequest o setVmPort(other.getVmPort()); } switch (other.getVmConfigCase()) { - case VM_CREATION_CONFIG: { - mergeVmCreationConfig(other.getVmCreationConfig()); - break; - } - case VM_SELECTION_CONFIG: { - mergeVmSelectionConfig(other.getVmSelectionConfig()); - break; - } - case VMCONFIG_NOT_SET: { - break; - } + case VM_CREATION_CONFIG: + { + mergeVmCreationConfig(other.getVmCreationConfig()); + break; + } + case VM_SELECTION_CONFIG: + { + mergeVmSelectionConfig(other.getVmSelectionConfig()); + break; + } + case VMCONFIG_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -764,7 +834,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.clouddms.v1.GenerateSshScriptRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.clouddms.v1.GenerateSshScriptRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -773,12 +844,12 @@ public Builder mergeFrom( } return this; } + private int vmConfigCase_ = 0; private java.lang.Object vmConfig_; - public VmConfigCase - getVmConfigCase() { - return VmConfigCase.forNumber( - vmConfigCase_); + + public VmConfigCase getVmConfigCase() { + return VmConfigCase.forNumber(vmConfigCase_); } public Builder clearVmConfig() { @@ -788,21 +859,22 @@ public Builder clearVmConfig() { return this; } - private java.lang.Object migrationJob_ = ""; /** + * + * *
      * Name of the migration job resource to generate the SSH script.
      * 
* * string migration_job = 1 [(.google.api.resource_reference) = { ... } + * * @return The migrationJob. */ public java.lang.String getMigrationJob() { java.lang.Object ref = migrationJob_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); migrationJob_ = s; return s; @@ -811,20 +883,21 @@ public java.lang.String getMigrationJob() { } } /** + * + * *
      * Name of the migration job resource to generate the SSH script.
      * 
* * string migration_job = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for migrationJob. */ - public com.google.protobuf.ByteString - getMigrationJobBytes() { + public com.google.protobuf.ByteString getMigrationJobBytes() { java.lang.Object ref = migrationJob_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); migrationJob_ = b; return b; } else { @@ -832,54 +905,61 @@ public java.lang.String getMigrationJob() { } } /** + * + * *
      * Name of the migration job resource to generate the SSH script.
      * 
* * string migration_job = 1 [(.google.api.resource_reference) = { ... } + * * @param value The migrationJob to set. * @return This builder for chaining. */ - public Builder setMigrationJob( - java.lang.String value) { + public Builder setMigrationJob(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + migrationJob_ = value; onChanged(); return this; } /** + * + * *
      * Name of the migration job resource to generate the SSH script.
      * 
* * string migration_job = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearMigrationJob() { - + migrationJob_ = getDefaultInstance().getMigrationJob(); onChanged(); return this; } /** + * + * *
      * Name of the migration job resource to generate the SSH script.
      * 
* * string migration_job = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for migrationJob to set. * @return This builder for chaining. */ - public Builder setMigrationJobBytes( - com.google.protobuf.ByteString value) { + public Builder setMigrationJobBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + migrationJob_ = value; onChanged(); return this; @@ -887,18 +967,20 @@ public Builder setMigrationJobBytes( private java.lang.Object vm_ = ""; /** + * + * *
      * Required. Bastion VM Instance name to use or to create.
      * 
* * string vm = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vm. */ public java.lang.String getVm() { java.lang.Object ref = vm_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vm_ = s; return s; @@ -907,20 +989,21 @@ public java.lang.String getVm() { } } /** + * + * *
      * Required. Bastion VM Instance name to use or to create.
      * 
* * string vm = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vm. */ - public com.google.protobuf.ByteString - getVmBytes() { + public com.google.protobuf.ByteString getVmBytes() { java.lang.Object ref = vm_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vm_ = b; return b; } else { @@ -928,67 +1011,80 @@ public java.lang.String getVm() { } } /** + * + * *
      * Required. Bastion VM Instance name to use or to create.
      * 
* * string vm = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The vm to set. * @return This builder for chaining. */ - public Builder setVm( - java.lang.String value) { + public Builder setVm(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vm_ = value; onChanged(); return this; } /** + * + * *
      * Required. Bastion VM Instance name to use or to create.
      * 
* * string vm = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearVm() { - + vm_ = getDefaultInstance().getVm(); onChanged(); return this; } /** + * + * *
      * Required. Bastion VM Instance name to use or to create.
      * 
* * string vm = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for vm to set. * @return This builder for chaining. */ - public Builder setVmBytes( - com.google.protobuf.ByteString value) { + public Builder setVmBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vm_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.VmCreationConfig, com.google.cloud.clouddms.v1.VmCreationConfig.Builder, com.google.cloud.clouddms.v1.VmCreationConfigOrBuilder> vmCreationConfigBuilder_; + com.google.cloud.clouddms.v1.VmCreationConfig, + com.google.cloud.clouddms.v1.VmCreationConfig.Builder, + com.google.cloud.clouddms.v1.VmCreationConfigOrBuilder> + vmCreationConfigBuilder_; /** + * + * *
      * The VM creation configuration
      * 
* * .google.cloud.clouddms.v1.VmCreationConfig vm_creation_config = 100; + * * @return Whether the vmCreationConfig field is set. */ @java.lang.Override @@ -996,11 +1092,14 @@ public boolean hasVmCreationConfig() { return vmConfigCase_ == 100; } /** + * + * *
      * The VM creation configuration
      * 
* * .google.cloud.clouddms.v1.VmCreationConfig vm_creation_config = 100; + * * @return The vmCreationConfig. */ @java.lang.Override @@ -1018,6 +1117,8 @@ public com.google.cloud.clouddms.v1.VmCreationConfig getVmCreationConfig() { } } /** + * + * *
      * The VM creation configuration
      * 
@@ -1038,6 +1139,8 @@ public Builder setVmCreationConfig(com.google.cloud.clouddms.v1.VmCreationConfig return this; } /** + * + * *
      * The VM creation configuration
      * 
@@ -1056,6 +1159,8 @@ public Builder setVmCreationConfig( return this; } /** + * + * *
      * The VM creation configuration
      * 
@@ -1064,10 +1169,13 @@ public Builder setVmCreationConfig( */ public Builder mergeVmCreationConfig(com.google.cloud.clouddms.v1.VmCreationConfig value) { if (vmCreationConfigBuilder_ == null) { - if (vmConfigCase_ == 100 && - vmConfig_ != com.google.cloud.clouddms.v1.VmCreationConfig.getDefaultInstance()) { - vmConfig_ = com.google.cloud.clouddms.v1.VmCreationConfig.newBuilder((com.google.cloud.clouddms.v1.VmCreationConfig) vmConfig_) - .mergeFrom(value).buildPartial(); + if (vmConfigCase_ == 100 + && vmConfig_ != com.google.cloud.clouddms.v1.VmCreationConfig.getDefaultInstance()) { + vmConfig_ = + com.google.cloud.clouddms.v1.VmCreationConfig.newBuilder( + (com.google.cloud.clouddms.v1.VmCreationConfig) vmConfig_) + .mergeFrom(value) + .buildPartial(); } else { vmConfig_ = value; } @@ -1082,6 +1190,8 @@ public Builder mergeVmCreationConfig(com.google.cloud.clouddms.v1.VmCreationConf return this; } /** + * + * *
      * The VM creation configuration
      * 
@@ -1105,6 +1215,8 @@ public Builder clearVmCreationConfig() { return this; } /** + * + * *
      * The VM creation configuration
      * 
@@ -1115,6 +1227,8 @@ public com.google.cloud.clouddms.v1.VmCreationConfig.Builder getVmCreationConfig return getVmCreationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The VM creation configuration
      * 
@@ -1133,6 +1247,8 @@ public com.google.cloud.clouddms.v1.VmCreationConfigOrBuilder getVmCreationConfi } } /** + * + * *
      * The VM creation configuration
      * 
@@ -1140,32 +1256,44 @@ public com.google.cloud.clouddms.v1.VmCreationConfigOrBuilder getVmCreationConfi * .google.cloud.clouddms.v1.VmCreationConfig vm_creation_config = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.VmCreationConfig, com.google.cloud.clouddms.v1.VmCreationConfig.Builder, com.google.cloud.clouddms.v1.VmCreationConfigOrBuilder> + com.google.cloud.clouddms.v1.VmCreationConfig, + com.google.cloud.clouddms.v1.VmCreationConfig.Builder, + com.google.cloud.clouddms.v1.VmCreationConfigOrBuilder> getVmCreationConfigFieldBuilder() { if (vmCreationConfigBuilder_ == null) { if (!(vmConfigCase_ == 100)) { vmConfig_ = com.google.cloud.clouddms.v1.VmCreationConfig.getDefaultInstance(); } - vmCreationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.VmCreationConfig, com.google.cloud.clouddms.v1.VmCreationConfig.Builder, com.google.cloud.clouddms.v1.VmCreationConfigOrBuilder>( + vmCreationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.VmCreationConfig, + com.google.cloud.clouddms.v1.VmCreationConfig.Builder, + com.google.cloud.clouddms.v1.VmCreationConfigOrBuilder>( (com.google.cloud.clouddms.v1.VmCreationConfig) vmConfig_, getParentForChildren(), isClean()); vmConfig_ = null; } vmConfigCase_ = 100; - onChanged();; + onChanged(); + ; return vmCreationConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.VmSelectionConfig, com.google.cloud.clouddms.v1.VmSelectionConfig.Builder, com.google.cloud.clouddms.v1.VmSelectionConfigOrBuilder> vmSelectionConfigBuilder_; + com.google.cloud.clouddms.v1.VmSelectionConfig, + com.google.cloud.clouddms.v1.VmSelectionConfig.Builder, + com.google.cloud.clouddms.v1.VmSelectionConfigOrBuilder> + vmSelectionConfigBuilder_; /** + * + * *
      * The VM selection configuration
      * 
* * .google.cloud.clouddms.v1.VmSelectionConfig vm_selection_config = 101; + * * @return Whether the vmSelectionConfig field is set. */ @java.lang.Override @@ -1173,11 +1301,14 @@ public boolean hasVmSelectionConfig() { return vmConfigCase_ == 101; } /** + * + * *
      * The VM selection configuration
      * 
* * .google.cloud.clouddms.v1.VmSelectionConfig vm_selection_config = 101; + * * @return The vmSelectionConfig. */ @java.lang.Override @@ -1195,6 +1326,8 @@ public com.google.cloud.clouddms.v1.VmSelectionConfig getVmSelectionConfig() { } } /** + * + * *
      * The VM selection configuration
      * 
@@ -1215,6 +1348,8 @@ public Builder setVmSelectionConfig(com.google.cloud.clouddms.v1.VmSelectionConf return this; } /** + * + * *
      * The VM selection configuration
      * 
@@ -1233,6 +1368,8 @@ public Builder setVmSelectionConfig( return this; } /** + * + * *
      * The VM selection configuration
      * 
@@ -1241,10 +1378,13 @@ public Builder setVmSelectionConfig( */ public Builder mergeVmSelectionConfig(com.google.cloud.clouddms.v1.VmSelectionConfig value) { if (vmSelectionConfigBuilder_ == null) { - if (vmConfigCase_ == 101 && - vmConfig_ != com.google.cloud.clouddms.v1.VmSelectionConfig.getDefaultInstance()) { - vmConfig_ = com.google.cloud.clouddms.v1.VmSelectionConfig.newBuilder((com.google.cloud.clouddms.v1.VmSelectionConfig) vmConfig_) - .mergeFrom(value).buildPartial(); + if (vmConfigCase_ == 101 + && vmConfig_ != com.google.cloud.clouddms.v1.VmSelectionConfig.getDefaultInstance()) { + vmConfig_ = + com.google.cloud.clouddms.v1.VmSelectionConfig.newBuilder( + (com.google.cloud.clouddms.v1.VmSelectionConfig) vmConfig_) + .mergeFrom(value) + .buildPartial(); } else { vmConfig_ = value; } @@ -1259,6 +1399,8 @@ public Builder mergeVmSelectionConfig(com.google.cloud.clouddms.v1.VmSelectionCo return this; } /** + * + * *
      * The VM selection configuration
      * 
@@ -1282,6 +1424,8 @@ public Builder clearVmSelectionConfig() { return this; } /** + * + * *
      * The VM selection configuration
      * 
@@ -1292,6 +1436,8 @@ public com.google.cloud.clouddms.v1.VmSelectionConfig.Builder getVmSelectionConf return getVmSelectionConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The VM selection configuration
      * 
@@ -1310,6 +1456,8 @@ public com.google.cloud.clouddms.v1.VmSelectionConfigOrBuilder getVmSelectionCon } } /** + * + * *
      * The VM selection configuration
      * 
@@ -1317,31 +1465,40 @@ public com.google.cloud.clouddms.v1.VmSelectionConfigOrBuilder getVmSelectionCon * .google.cloud.clouddms.v1.VmSelectionConfig vm_selection_config = 101; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.VmSelectionConfig, com.google.cloud.clouddms.v1.VmSelectionConfig.Builder, com.google.cloud.clouddms.v1.VmSelectionConfigOrBuilder> + com.google.cloud.clouddms.v1.VmSelectionConfig, + com.google.cloud.clouddms.v1.VmSelectionConfig.Builder, + com.google.cloud.clouddms.v1.VmSelectionConfigOrBuilder> getVmSelectionConfigFieldBuilder() { if (vmSelectionConfigBuilder_ == null) { if (!(vmConfigCase_ == 101)) { vmConfig_ = com.google.cloud.clouddms.v1.VmSelectionConfig.getDefaultInstance(); } - vmSelectionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.VmSelectionConfig, com.google.cloud.clouddms.v1.VmSelectionConfig.Builder, com.google.cloud.clouddms.v1.VmSelectionConfigOrBuilder>( + vmSelectionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.VmSelectionConfig, + com.google.cloud.clouddms.v1.VmSelectionConfig.Builder, + com.google.cloud.clouddms.v1.VmSelectionConfigOrBuilder>( (com.google.cloud.clouddms.v1.VmSelectionConfig) vmConfig_, getParentForChildren(), isClean()); vmConfig_ = null; } vmConfigCase_ = 101; - onChanged();; + onChanged(); + ; return vmSelectionConfigBuilder_; } - private int vmPort_ ; + private int vmPort_; /** + * + * *
      * The port that will be open on the bastion host
      * 
* * int32 vm_port = 3; + * * @return The vmPort. */ @java.lang.Override @@ -1349,37 +1506,43 @@ public int getVmPort() { return vmPort_; } /** + * + * *
      * The port that will be open on the bastion host
      * 
* * int32 vm_port = 3; + * * @param value The vmPort to set. * @return This builder for chaining. */ public Builder setVmPort(int value) { - + vmPort_ = value; onChanged(); return this; } /** + * + * *
      * The port that will be open on the bastion host
      * 
* * int32 vm_port = 3; + * * @return This builder for chaining. */ public Builder clearVmPort() { - + vmPort_ = 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); } @@ -1389,12 +1552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.GenerateSshScriptRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.GenerateSshScriptRequest) private static final com.google.cloud.clouddms.v1.GenerateSshScriptRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.GenerateSshScriptRequest(); } @@ -1403,16 +1566,16 @@ public static com.google.cloud.clouddms.v1.GenerateSshScriptRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateSshScriptRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateSshScriptRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateSshScriptRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateSshScriptRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1427,6 +1590,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.GenerateSshScriptRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequestOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequestOrBuilder.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequestOrBuilder.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequestOrBuilder.java index d9575fdb..c1a829a3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequestOrBuilder.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequestOrBuilder.java @@ -1,71 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface GenerateSshScriptRequestOrBuilder extends +public interface GenerateSshScriptRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.GenerateSshScriptRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Name of the migration job resource to generate the SSH script.
    * 
* * string migration_job = 1 [(.google.api.resource_reference) = { ... } + * * @return The migrationJob. */ java.lang.String getMigrationJob(); /** + * + * *
    * Name of the migration job resource to generate the SSH script.
    * 
* * string migration_job = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for migrationJob. */ - com.google.protobuf.ByteString - getMigrationJobBytes(); + com.google.protobuf.ByteString getMigrationJobBytes(); /** + * + * *
    * Required. Bastion VM Instance name to use or to create.
    * 
* * string vm = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vm. */ java.lang.String getVm(); /** + * + * *
    * Required. Bastion VM Instance name to use or to create.
    * 
* * string vm = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vm. */ - com.google.protobuf.ByteString - getVmBytes(); + com.google.protobuf.ByteString getVmBytes(); /** + * + * *
    * The VM creation configuration
    * 
* * .google.cloud.clouddms.v1.VmCreationConfig vm_creation_config = 100; + * * @return Whether the vmCreationConfig field is set. */ boolean hasVmCreationConfig(); /** + * + * *
    * The VM creation configuration
    * 
* * .google.cloud.clouddms.v1.VmCreationConfig vm_creation_config = 100; + * * @return The vmCreationConfig. */ com.google.cloud.clouddms.v1.VmCreationConfig getVmCreationConfig(); /** + * + * *
    * The VM creation configuration
    * 
@@ -75,24 +109,32 @@ public interface GenerateSshScriptRequestOrBuilder extends com.google.cloud.clouddms.v1.VmCreationConfigOrBuilder getVmCreationConfigOrBuilder(); /** + * + * *
    * The VM selection configuration
    * 
* * .google.cloud.clouddms.v1.VmSelectionConfig vm_selection_config = 101; + * * @return Whether the vmSelectionConfig field is set. */ boolean hasVmSelectionConfig(); /** + * + * *
    * The VM selection configuration
    * 
* * .google.cloud.clouddms.v1.VmSelectionConfig vm_selection_config = 101; + * * @return The vmSelectionConfig. */ com.google.cloud.clouddms.v1.VmSelectionConfig getVmSelectionConfig(); /** + * + * *
    * The VM selection configuration
    * 
@@ -102,11 +144,14 @@ public interface GenerateSshScriptRequestOrBuilder extends com.google.cloud.clouddms.v1.VmSelectionConfigOrBuilder getVmSelectionConfigOrBuilder(); /** + * + * *
    * The port that will be open on the bastion host
    * 
* * int32 vm_port = 3; + * * @return The vmPort. */ int getVmPort(); diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequest.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequest.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequest.java index c0b85dec..571e547f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequest.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * Request message for 'GetConnectionProfile' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.GetConnectionProfileRequest} */ -public final class GetConnectionProfileRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.GetConnectionProfileRequest) GetConnectionProfileRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetConnectionProfileRequest.newBuilder() to construct. private GetConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetConnectionProfileRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetConnectionProfileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,60 @@ private GetConnectionProfileRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.GetConnectionProfileRequest.class, com.google.cloud.clouddms.v1.GetConnectionProfileRequest.Builder.class); + com.google.cloud.clouddms.v1.GetConnectionProfileRequest.class, + com.google.cloud.clouddms.v1.GetConnectionProfileRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the connection profile resource to get.
    * 
* - * string name = 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 @@ -107,29 +132,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. Name of the connection profile resource to get.
    * 
* - * string name = 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 { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -174,15 +201,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.clouddms.v1.GetConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.GetConnectionProfileRequest other = (com.google.cloud.clouddms.v1.GetConnectionProfileRequest) obj; + com.google.cloud.clouddms.v1.GetConnectionProfileRequest other = + (com.google.cloud.clouddms.v1.GetConnectionProfileRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,117 +229,127 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.GetConnectionProfileRequest 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.clouddms.v1.GetConnectionProfileRequest 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.clouddms.v1.GetConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.GetConnectionProfileRequest 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.clouddms.v1.GetConnectionProfileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.GetConnectionProfileRequest 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.clouddms.v1.GetConnectionProfileRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.GetConnectionProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.GetConnectionProfileRequest 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.clouddms.v1.GetConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.GetConnectionProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.GetConnectionProfileRequest 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.clouddms.v1.GetConnectionProfileRequest 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.clouddms.v1.GetConnectionProfileRequest 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.clouddms.v1.GetConnectionProfileRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.clouddms.v1.GetConnectionProfileRequest 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 message for 'GetConnectionProfile' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.GetConnectionProfileRequest} */ - 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.clouddms.v1.GetConnectionProfileRequest) com.google.cloud.clouddms.v1.GetConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.GetConnectionProfileRequest.class, com.google.cloud.clouddms.v1.GetConnectionProfileRequest.Builder.class); + com.google.cloud.clouddms.v1.GetConnectionProfileRequest.class, + com.google.cloud.clouddms.v1.GetConnectionProfileRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.GetConnectionProfileRequest.newBuilder() @@ -320,16 +357,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GetConnectionProfileRequest_descriptor; } @java.lang.Override @@ -360,7 +396,8 @@ public com.google.cloud.clouddms.v1.GetConnectionProfileRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.GetConnectionProfileRequest buildPartial() { - com.google.cloud.clouddms.v1.GetConnectionProfileRequest result = new com.google.cloud.clouddms.v1.GetConnectionProfileRequest(this); + com.google.cloud.clouddms.v1.GetConnectionProfileRequest result = + new com.google.cloud.clouddms.v1.GetConnectionProfileRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +407,39 @@ public com.google.cloud.clouddms.v1.GetConnectionProfileRequest 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.clouddms.v1.GetConnectionProfileRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.GetConnectionProfileRequest)other); + return mergeFrom((com.google.cloud.clouddms.v1.GetConnectionProfileRequest) other); } else { super.mergeFrom(other); return this; @@ -409,7 +447,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.GetConnectionProfileRequest other) { - if (other == com.google.cloud.clouddms.v1.GetConnectionProfileRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.clouddms.v1.GetConnectionProfileRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -433,7 +472,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.clouddms.v1.GetConnectionProfileRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.clouddms.v1.GetConnectionProfileRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -445,18 +485,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the connection profile resource to get.
      * 
* - * string name = 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; @@ -465,20 +509,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the connection profile resource to get.
      * 
* - * string name = 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 { @@ -486,61 +533,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the connection profile resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the connection profile resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the connection profile resource to get.
      * 
* - * 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); } @@ -550,12 +610,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.GetConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.GetConnectionProfileRequest) private static final com.google.cloud.clouddms.v1.GetConnectionProfileRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.GetConnectionProfileRequest(); } @@ -564,16 +624,16 @@ public static com.google.cloud.clouddms.v1.GetConnectionProfileRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetConnectionProfileRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetConnectionProfileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +648,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.clouddms.v1.GetConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequestOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequestOrBuilder.java new file mode 100644 index 00000000..f2e536ff --- /dev/null +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConnectionProfileRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface GetConnectionProfileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.GetConnectionProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the connection profile resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the connection profile resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequest.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequest.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequest.java index 2f6c3af8..31092fb4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequest.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * Request message for 'GetMigrationJob' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.GetMigrationJobRequest} */ -public final class GetMigrationJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetMigrationJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.GetMigrationJobRequest) GetMigrationJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetMigrationJobRequest.newBuilder() to construct. private GetMigrationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetMigrationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetMigrationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetMigrationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,60 @@ private GetMigrationJobRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.GetMigrationJobRequest.class, com.google.cloud.clouddms.v1.GetMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.GetMigrationJobRequest.class, + com.google.cloud.clouddms.v1.GetMigrationJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the migration job resource to get.
    * 
* - * string name = 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 @@ -107,29 +132,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. Name of the migration job resource to get.
    * 
* - * string name = 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 { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -174,15 +201,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.clouddms.v1.GetMigrationJobRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.GetMigrationJobRequest other = (com.google.cloud.clouddms.v1.GetMigrationJobRequest) obj; + com.google.cloud.clouddms.v1.GetMigrationJobRequest other = + (com.google.cloud.clouddms.v1.GetMigrationJobRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,117 +229,126 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.GetMigrationJobRequest 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.clouddms.v1.GetMigrationJobRequest 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.clouddms.v1.GetMigrationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.GetMigrationJobRequest 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.clouddms.v1.GetMigrationJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.GetMigrationJobRequest 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.clouddms.v1.GetMigrationJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.GetMigrationJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.GetMigrationJobRequest 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.clouddms.v1.GetMigrationJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.GetMigrationJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.GetMigrationJobRequest 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.clouddms.v1.GetMigrationJobRequest 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.clouddms.v1.GetMigrationJobRequest 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.clouddms.v1.GetMigrationJobRequest 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 message for 'GetMigrationJob' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.GetMigrationJobRequest} */ - 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.clouddms.v1.GetMigrationJobRequest) com.google.cloud.clouddms.v1.GetMigrationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.GetMigrationJobRequest.class, com.google.cloud.clouddms.v1.GetMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.GetMigrationJobRequest.class, + com.google.cloud.clouddms.v1.GetMigrationJobRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.GetMigrationJobRequest.newBuilder() @@ -320,16 +356,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GetMigrationJobRequest_descriptor; } @java.lang.Override @@ -360,7 +395,8 @@ public com.google.cloud.clouddms.v1.GetMigrationJobRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.GetMigrationJobRequest buildPartial() { - com.google.cloud.clouddms.v1.GetMigrationJobRequest result = new com.google.cloud.clouddms.v1.GetMigrationJobRequest(this); + com.google.cloud.clouddms.v1.GetMigrationJobRequest result = + new com.google.cloud.clouddms.v1.GetMigrationJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +406,39 @@ public com.google.cloud.clouddms.v1.GetMigrationJobRequest 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.clouddms.v1.GetMigrationJobRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.GetMigrationJobRequest)other); + return mergeFrom((com.google.cloud.clouddms.v1.GetMigrationJobRequest) other); } else { super.mergeFrom(other); return this; @@ -409,7 +446,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.GetMigrationJobRequest other) { - if (other == com.google.cloud.clouddms.v1.GetMigrationJobRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.clouddms.v1.GetMigrationJobRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -433,7 +471,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.clouddms.v1.GetMigrationJobRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.clouddms.v1.GetMigrationJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -445,18 +484,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the migration job resource to get.
      * 
* - * string name = 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; @@ -465,20 +508,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the migration job resource to get.
      * 
* - * string name = 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 { @@ -486,61 +532,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the migration job resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the migration job resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the migration job resource to get.
      * 
* - * 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); } @@ -550,12 +609,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.GetMigrationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.GetMigrationJobRequest) private static final com.google.cloud.clouddms.v1.GetMigrationJobRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.GetMigrationJobRequest(); } @@ -564,16 +623,16 @@ public static com.google.cloud.clouddms.v1.GetMigrationJobRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetMigrationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetMigrationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMigrationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetMigrationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +647,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.GetMigrationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequestOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequestOrBuilder.java new file mode 100644 index 00000000..aae2d7ea --- /dev/null +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetMigrationJobRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface GetMigrationJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.GetMigrationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the migration job resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the migration job resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequest.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequest.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequest.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequest.java index 19d38351..9409900e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequest.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * Request message for 'ListConnectionProfiles' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.ListConnectionProfilesRequest} */ -public final class ListConnectionProfilesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListConnectionProfilesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ListConnectionProfilesRequest) ListConnectionProfilesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListConnectionProfilesRequest.newBuilder() to construct. private ListConnectionProfilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListConnectionProfilesRequest() { parent_ = ""; pageToken_ = ""; @@ -28,16 +46,15 @@ private ListConnectionProfilesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListConnectionProfilesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListConnectionProfilesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,75 +73,86 @@ private ListConnectionProfilesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.class, com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.Builder.class); + com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.class, + com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent, which owns this collection of connection profiles.
    * 
* - * string 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 @@ -133,29 +161,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 parent, which owns this collection of connection profiles.
    * 
* - * string 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 { @@ -166,6 +196,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of connection profiles to return. The service may return
    * fewer than this value. If unspecified, at most 50 connection profiles will
@@ -174,6 +206,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -184,6 +217,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A page token, received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -192,6 +227,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -200,14 +236,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A page token, received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -216,16 +253,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -236,6 +272,8 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * A filter expression that filters connection profiles listed in the
    * response. The expression must specify the field name, a comparison
@@ -249,6 +287,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -257,14 +296,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * A filter expression that filters connection profiles listed in the
    * response. The expression must specify the field name, a comparison
@@ -278,16 +318,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -298,11 +337,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * the order by fields for the result.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -311,29 +353,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * the order by fields for the result.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -342,6 +384,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -353,8 +396,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -383,8 +425,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!getPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -403,23 +444,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.clouddms.v1.ListConnectionProfilesRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.ListConnectionProfilesRequest other = (com.google.cloud.clouddms.v1.ListConnectionProfilesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.clouddms.v1.ListConnectionProfilesRequest other = + (com.google.cloud.clouddms.v1.ListConnectionProfilesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -447,117 +484,127 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.ListConnectionProfilesRequest 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.clouddms.v1.ListConnectionProfilesRequest 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.clouddms.v1.ListConnectionProfilesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.ListConnectionProfilesRequest 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.clouddms.v1.ListConnectionProfilesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.ListConnectionProfilesRequest 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.clouddms.v1.ListConnectionProfilesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.ListConnectionProfilesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.ListConnectionProfilesRequest 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.clouddms.v1.ListConnectionProfilesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.ListConnectionProfilesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.ListConnectionProfilesRequest 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.clouddms.v1.ListConnectionProfilesRequest 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.clouddms.v1.ListConnectionProfilesRequest 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.clouddms.v1.ListConnectionProfilesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.clouddms.v1.ListConnectionProfilesRequest 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 message for 'ListConnectionProfiles' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.ListConnectionProfilesRequest} */ - 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.clouddms.v1.ListConnectionProfilesRequest) com.google.cloud.clouddms.v1.ListConnectionProfilesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.class, com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.Builder.class); + com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.class, + com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.newBuilder() @@ -565,16 +612,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -592,9 +638,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListConnectionProfilesRequest_descriptor; } @java.lang.Override @@ -613,7 +659,8 @@ public com.google.cloud.clouddms.v1.ListConnectionProfilesRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.ListConnectionProfilesRequest buildPartial() { - com.google.cloud.clouddms.v1.ListConnectionProfilesRequest result = new com.google.cloud.clouddms.v1.ListConnectionProfilesRequest(this); + com.google.cloud.clouddms.v1.ListConnectionProfilesRequest result = + new com.google.cloud.clouddms.v1.ListConnectionProfilesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -627,38 +674,39 @@ public com.google.cloud.clouddms.v1.ListConnectionProfilesRequest 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.clouddms.v1.ListConnectionProfilesRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.ListConnectionProfilesRequest)other); + return mergeFrom((com.google.cloud.clouddms.v1.ListConnectionProfilesRequest) other); } else { super.mergeFrom(other); return this; @@ -666,7 +714,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.ListConnectionProfilesRequest other) { - if (other == com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.clouddms.v1.ListConnectionProfilesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -705,7 +754,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.clouddms.v1.ListConnectionProfilesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.clouddms.v1.ListConnectionProfilesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -717,18 +767,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent, which owns this collection of connection profiles.
      * 
* - * string 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; @@ -737,20 +791,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of connection profiles.
      * 
* - * string 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 { @@ -758,61 +815,76 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of connection profiles.
      * 
* - * 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 parent, which owns this collection of connection profiles.
      * 
* - * string 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 parent, which owns this collection of connection profiles.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of connection profiles to return. The service may return
      * fewer than this value. If unspecified, at most 50 connection profiles will
@@ -821,6 +893,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -828,6 +901,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of connection profiles to return. The service may return
      * fewer than this value. If unspecified, at most 50 connection profiles will
@@ -836,16 +911,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of connection profiles to return. The service may return
      * fewer than this value. If unspecified, at most 50 connection profiles will
@@ -854,10 +932,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -865,6 +944,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -873,13 +954,13 @@ public Builder clearPageSize() {
      * 
* * 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; @@ -888,6 +969,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -896,15 +979,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -912,6 +994,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -920,20 +1004,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -942,15 +1028,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -959,16 +1048,16 @@ 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; @@ -976,6 +1065,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * A filter expression that filters connection profiles listed in the
      * response. The expression must specify the field name, a comparison
@@ -989,13 +1080,13 @@ public Builder setPageTokenBytes(
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1004,6 +1095,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A filter expression that filters connection profiles listed in the
      * response. The expression must specify the field name, a comparison
@@ -1017,15 +1110,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1033,6 +1125,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A filter expression that filters connection profiles listed in the
      * response. The expression must specify the field name, a comparison
@@ -1046,20 +1140,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * A filter expression that filters connection profiles listed in the
      * response. The expression must specify the field name, a comparison
@@ -1073,15 +1169,18 @@ public Builder setFilter(
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * A filter expression that filters connection profiles listed in the
      * response. The expression must specify the field name, a comparison
@@ -1095,16 +1194,16 @@ public Builder clearFilter() {
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1112,18 +1211,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * the order by fields for the result.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1132,20 +1233,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * the order by fields for the result.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1153,61 +1255,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * the order by fields for the result.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * the order by fields for the result.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * the order by fields for the result.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = 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); } @@ -1217,12 +1326,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.ListConnectionProfilesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ListConnectionProfilesRequest) private static final com.google.cloud.clouddms.v1.ListConnectionProfilesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ListConnectionProfilesRequest(); } @@ -1231,16 +1340,16 @@ public static com.google.cloud.clouddms.v1.ListConnectionProfilesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectionProfilesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListConnectionProfilesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectionProfilesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListConnectionProfilesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1255,6 +1364,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.clouddms.v1.ListConnectionProfilesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequestOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequestOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequestOrBuilder.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequestOrBuilder.java index 1508da1a..92ea3aef 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequestOrBuilder.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequestOrBuilder.java @@ -1,33 +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/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface ListConnectionProfilesRequestOrBuilder extends +public interface ListConnectionProfilesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ListConnectionProfilesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent, which owns this collection of connection profiles.
    * 
* - * string 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 parent, which owns this collection of connection profiles.
    * 
* - * string 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(); /** + * + * *
    * The maximum number of connection profiles to return. The service may return
    * fewer than this value. If unspecified, at most 50 connection profiles will
@@ -36,11 +63,14 @@ public interface ListConnectionProfilesRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -49,10 +79,13 @@ public interface ListConnectionProfilesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -61,12 +94,14 @@ public interface ListConnectionProfilesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * A filter expression that filters connection profiles listed in the
    * response. The expression must specify the field name, a comparison
@@ -80,10 +115,13 @@ public interface ListConnectionProfilesRequestOrBuilder extends
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * A filter expression that filters connection profiles listed in the
    * response. The expression must specify the field name, a comparison
@@ -97,28 +135,33 @@ public interface ListConnectionProfilesRequestOrBuilder extends
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * the order by fields for the result.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * the order by fields for the result.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponse.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponse.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponse.java index e55c5c30..c0acb73c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponse.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponse.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * Response message for 'ListConnectionProfiles' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.ListConnectionProfilesResponse} */ -public final class ListConnectionProfilesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListConnectionProfilesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ListConnectionProfilesResponse) ListConnectionProfilesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListConnectionProfilesResponse.newBuilder() to construct. - private ListConnectionProfilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListConnectionProfilesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListConnectionProfilesResponse() { connectionProfiles_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +46,15 @@ private ListConnectionProfilesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListConnectionProfilesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListConnectionProfilesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,44 +74,48 @@ private ListConnectionProfilesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - connectionProfiles_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + connectionProfiles_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + connectionProfiles_.add( + input.readMessage( + com.google.cloud.clouddms.v1.ConnectionProfile.parser(), extensionRegistry)); + break; } - connectionProfiles_.add( - input.readMessage(com.google.cloud.clouddms.v1.ConnectionProfile.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { connectionProfiles_ = java.util.Collections.unmodifiableList(connectionProfiles_); @@ -105,22 +127,27 @@ private ListConnectionProfilesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.class, com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.Builder.class); + com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.class, + com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.Builder.class); } public static final int CONNECTION_PROFILES_FIELD_NUMBER = 1; private java.util.List connectionProfiles_; /** + * + * *
    * The response list of connection profiles.
    * 
@@ -128,10 +155,13 @@ private ListConnectionProfilesResponse( * repeated .google.cloud.clouddms.v1.ConnectionProfile connection_profiles = 1; */ @java.lang.Override - public java.util.List getConnectionProfilesList() { + public java.util.List + getConnectionProfilesList() { return connectionProfiles_; } /** + * + * *
    * The response list of connection profiles.
    * 
@@ -139,11 +169,13 @@ public java.util.List getConnect * repeated .google.cloud.clouddms.v1.ConnectionProfile connection_profiles = 1; */ @java.lang.Override - public java.util.List + public java.util.List getConnectionProfilesOrBuilderList() { return connectionProfiles_; } /** + * + * *
    * The response list of connection profiles.
    * 
@@ -155,6 +187,8 @@ public int getConnectionProfilesCount() { return connectionProfiles_.size(); } /** + * + * *
    * The response list of connection profiles.
    * 
@@ -166,6 +200,8 @@ public com.google.cloud.clouddms.v1.ConnectionProfile getConnectionProfiles(int return connectionProfiles_.get(index); } /** + * + * *
    * The response list of connection profiles.
    * 
@@ -181,12 +217,15 @@ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProf public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -195,30 +234,30 @@ 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; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @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 { @@ -229,34 +268,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -264,20 +311,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +339,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < connectionProfiles_.size(); i++) { output.writeMessage(1, connectionProfiles_.get(i)); } @@ -310,8 +359,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < connectionProfiles_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, connectionProfiles_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, connectionProfiles_.get(i)); } if (!getNextPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -332,19 +381,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.clouddms.v1.ListConnectionProfilesResponse)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.ListConnectionProfilesResponse other = (com.google.cloud.clouddms.v1.ListConnectionProfilesResponse) obj; + com.google.cloud.clouddms.v1.ListConnectionProfilesResponse other = + (com.google.cloud.clouddms.v1.ListConnectionProfilesResponse) obj; - if (!getConnectionProfilesList() - .equals(other.getConnectionProfilesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getConnectionProfilesList().equals(other.getConnectionProfilesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -372,117 +419,127 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.ListConnectionProfilesResponse 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.clouddms.v1.ListConnectionProfilesResponse 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.clouddms.v1.ListConnectionProfilesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.ListConnectionProfilesResponse 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.clouddms.v1.ListConnectionProfilesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.ListConnectionProfilesResponse 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.clouddms.v1.ListConnectionProfilesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.ListConnectionProfilesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.ListConnectionProfilesResponse 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.clouddms.v1.ListConnectionProfilesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.ListConnectionProfilesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.ListConnectionProfilesResponse 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.clouddms.v1.ListConnectionProfilesResponse 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.clouddms.v1.ListConnectionProfilesResponse 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.clouddms.v1.ListConnectionProfilesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.clouddms.v1.ListConnectionProfilesResponse 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; } /** + * + * *
    * Response message for 'ListConnectionProfiles' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.ListConnectionProfilesResponse} */ - 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.clouddms.v1.ListConnectionProfilesResponse) com.google.cloud.clouddms.v1.ListConnectionProfilesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.class, com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.Builder.class); + com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.class, + com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.Builder.class); } // Construct using com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.newBuilder() @@ -490,17 +547,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) { getConnectionProfilesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -518,9 +575,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListConnectionProfilesResponse_descriptor; } @java.lang.Override @@ -539,7 +596,8 @@ public com.google.cloud.clouddms.v1.ListConnectionProfilesResponse build() { @java.lang.Override public com.google.cloud.clouddms.v1.ListConnectionProfilesResponse buildPartial() { - com.google.cloud.clouddms.v1.ListConnectionProfilesResponse result = new com.google.cloud.clouddms.v1.ListConnectionProfilesResponse(this); + com.google.cloud.clouddms.v1.ListConnectionProfilesResponse result = + new com.google.cloud.clouddms.v1.ListConnectionProfilesResponse(this); int from_bitField0_ = bitField0_; if (connectionProfilesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -564,38 +622,39 @@ public com.google.cloud.clouddms.v1.ListConnectionProfilesResponse 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.clouddms.v1.ListConnectionProfilesResponse) { - return mergeFrom((com.google.cloud.clouddms.v1.ListConnectionProfilesResponse)other); + return mergeFrom((com.google.cloud.clouddms.v1.ListConnectionProfilesResponse) other); } else { super.mergeFrom(other); return this; @@ -603,7 +662,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.ListConnectionProfilesResponse other) { - if (other == com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.clouddms.v1.ListConnectionProfilesResponse.getDefaultInstance()) + return this; if (connectionProfilesBuilder_ == null) { if (!other.connectionProfiles_.isEmpty()) { if (connectionProfiles_.isEmpty()) { @@ -622,9 +682,10 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.ListConnectionProfilesResp connectionProfilesBuilder_ = null; connectionProfiles_ = other.connectionProfiles_; bitField0_ = (bitField0_ & ~0x00000001); - connectionProfilesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConnectionProfilesFieldBuilder() : null; + connectionProfilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConnectionProfilesFieldBuilder() + : null; } else { connectionProfilesBuilder_.addAllMessages(other.connectionProfiles_); } @@ -663,7 +724,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.clouddms.v1.ListConnectionProfilesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.clouddms.v1.ListConnectionProfilesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,28 +734,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List connectionProfiles_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureConnectionProfilesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - connectionProfiles_ = new java.util.ArrayList(connectionProfiles_); + connectionProfiles_ = + new java.util.ArrayList( + connectionProfiles_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.clouddms.v1.ConnectionProfile, com.google.cloud.clouddms.v1.ConnectionProfile.Builder, com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder> connectionProfilesBuilder_; + com.google.cloud.clouddms.v1.ConnectionProfile, + com.google.cloud.clouddms.v1.ConnectionProfile.Builder, + com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder> + connectionProfilesBuilder_; /** + * + * *
      * The response list of connection profiles.
      * 
* * repeated .google.cloud.clouddms.v1.ConnectionProfile connection_profiles = 1; */ - public java.util.List getConnectionProfilesList() { + public java.util.List + getConnectionProfilesList() { if (connectionProfilesBuilder_ == null) { return java.util.Collections.unmodifiableList(connectionProfiles_); } else { @@ -701,6 +773,8 @@ public java.util.List getConnect } } /** + * + * *
      * The response list of connection profiles.
      * 
@@ -715,6 +789,8 @@ public int getConnectionProfilesCount() { } } /** + * + * *
      * The response list of connection profiles.
      * 
@@ -729,6 +805,8 @@ public com.google.cloud.clouddms.v1.ConnectionProfile getConnectionProfiles(int } } /** + * + * *
      * The response list of connection profiles.
      * 
@@ -750,6 +828,8 @@ public Builder setConnectionProfiles( return this; } /** + * + * *
      * The response list of connection profiles.
      * 
@@ -768,6 +848,8 @@ public Builder setConnectionProfiles( return this; } /** + * + * *
      * The response list of connection profiles.
      * 
@@ -788,6 +870,8 @@ public Builder addConnectionProfiles(com.google.cloud.clouddms.v1.ConnectionProf return this; } /** + * + * *
      * The response list of connection profiles.
      * 
@@ -809,6 +893,8 @@ public Builder addConnectionProfiles( return this; } /** + * + * *
      * The response list of connection profiles.
      * 
@@ -827,6 +913,8 @@ public Builder addConnectionProfiles( return this; } /** + * + * *
      * The response list of connection profiles.
      * 
@@ -845,6 +933,8 @@ public Builder addConnectionProfiles( return this; } /** + * + * *
      * The response list of connection profiles.
      * 
@@ -855,8 +945,7 @@ public Builder addAllConnectionProfiles( java.lang.Iterable values) { if (connectionProfilesBuilder_ == null) { ensureConnectionProfilesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, connectionProfiles_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connectionProfiles_); onChanged(); } else { connectionProfilesBuilder_.addAllMessages(values); @@ -864,6 +953,8 @@ public Builder addAllConnectionProfiles( return this; } /** + * + * *
      * The response list of connection profiles.
      * 
@@ -881,6 +972,8 @@ public Builder clearConnectionProfiles() { return this; } /** + * + * *
      * The response list of connection profiles.
      * 
@@ -898,6 +991,8 @@ public Builder removeConnectionProfiles(int index) { return this; } /** + * + * *
      * The response list of connection profiles.
      * 
@@ -909,6 +1004,8 @@ public com.google.cloud.clouddms.v1.ConnectionProfile.Builder getConnectionProfi return getConnectionProfilesFieldBuilder().getBuilder(index); } /** + * + * *
      * The response list of connection profiles.
      * 
@@ -918,19 +1015,22 @@ public com.google.cloud.clouddms.v1.ConnectionProfile.Builder getConnectionProfi public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProfilesOrBuilder( int index) { if (connectionProfilesBuilder_ == null) { - return connectionProfiles_.get(index); } else { + return connectionProfiles_.get(index); + } else { return connectionProfilesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The response list of connection profiles.
      * 
* * repeated .google.cloud.clouddms.v1.ConnectionProfile connection_profiles = 1; */ - public java.util.List - getConnectionProfilesOrBuilderList() { + public java.util.List + getConnectionProfilesOrBuilderList() { if (connectionProfilesBuilder_ != null) { return connectionProfilesBuilder_.getMessageOrBuilderList(); } else { @@ -938,6 +1038,8 @@ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProf } } /** + * + * *
      * The response list of connection profiles.
      * 
@@ -945,10 +1047,12 @@ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProf * repeated .google.cloud.clouddms.v1.ConnectionProfile connection_profiles = 1; */ public com.google.cloud.clouddms.v1.ConnectionProfile.Builder addConnectionProfilesBuilder() { - return getConnectionProfilesFieldBuilder().addBuilder( - com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance()); + return getConnectionProfilesFieldBuilder() + .addBuilder(com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance()); } /** + * + * *
      * The response list of connection profiles.
      * 
@@ -957,26 +1061,34 @@ public com.google.cloud.clouddms.v1.ConnectionProfile.Builder addConnectionProfi */ public com.google.cloud.clouddms.v1.ConnectionProfile.Builder addConnectionProfilesBuilder( int index) { - return getConnectionProfilesFieldBuilder().addBuilder( - index, com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance()); + return getConnectionProfilesFieldBuilder() + .addBuilder(index, com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance()); } /** + * + * *
      * The response list of connection profiles.
      * 
* * repeated .google.cloud.clouddms.v1.ConnectionProfile connection_profiles = 1; */ - public java.util.List - getConnectionProfilesBuilderList() { + public java.util.List + getConnectionProfilesBuilderList() { return getConnectionProfilesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.clouddms.v1.ConnectionProfile, com.google.cloud.clouddms.v1.ConnectionProfile.Builder, com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder> + com.google.cloud.clouddms.v1.ConnectionProfile, + com.google.cloud.clouddms.v1.ConnectionProfile.Builder, + com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder> getConnectionProfilesFieldBuilder() { if (connectionProfilesBuilder_ == null) { - connectionProfilesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.clouddms.v1.ConnectionProfile, com.google.cloud.clouddms.v1.ConnectionProfile.Builder, com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder>( + connectionProfilesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.ConnectionProfile, + com.google.cloud.clouddms.v1.ConnectionProfile.Builder, + com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder>( connectionProfiles_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -988,19 +1100,21 @@ public com.google.cloud.clouddms.v1.ConnectionProfile.Builder addConnectionProfi private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @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; @@ -1009,21 +1123,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @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 { @@ -1031,98 +1146,115 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @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; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1130,80 +1262,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1213,28 +1355,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.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); } @@ -1244,12 +1388,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.ListConnectionProfilesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ListConnectionProfilesResponse) private static final com.google.cloud.clouddms.v1.ListConnectionProfilesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ListConnectionProfilesResponse(); } @@ -1258,16 +1402,16 @@ public static com.google.cloud.clouddms.v1.ListConnectionProfilesResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectionProfilesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListConnectionProfilesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectionProfilesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListConnectionProfilesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1282,6 +1426,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.clouddms.v1.ListConnectionProfilesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponseOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponseOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponseOrBuilder.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponseOrBuilder.java index cc778ad6..9497172a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponseOrBuilder.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface ListConnectionProfilesResponseOrBuilder extends +public interface ListConnectionProfilesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ListConnectionProfilesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The response list of connection profiles.
    * 
* * repeated .google.cloud.clouddms.v1.ConnectionProfile connection_profiles = 1; */ - java.util.List - getConnectionProfilesList(); + java.util.List getConnectionProfilesList(); /** + * + * *
    * The response list of connection profiles.
    * 
@@ -25,6 +44,8 @@ public interface ListConnectionProfilesResponseOrBuilder extends */ com.google.cloud.clouddms.v1.ConnectionProfile getConnectionProfiles(int index); /** + * + * *
    * The response list of connection profiles.
    * 
@@ -33,84 +54,102 @@ public interface ListConnectionProfilesResponseOrBuilder extends */ int getConnectionProfilesCount(); /** + * + * *
    * The response list of connection profiles.
    * 
* * repeated .google.cloud.clouddms.v1.ConnectionProfile connection_profiles = 1; */ - java.util.List + java.util.List getConnectionProfilesOrBuilderList(); /** + * + * *
    * The response list of connection profiles.
    * 
* * repeated .google.cloud.clouddms.v1.ConnectionProfile connection_profiles = 1; */ - com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProfilesOrBuilder( - int index); + com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProfilesOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequest.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequest.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequest.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequest.java index e6143b73..a9b51092 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequest.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * Retrieve a list of all migration jobs in a given project and location.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.ListMigrationJobsRequest} */ -public final class ListMigrationJobsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListMigrationJobsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ListMigrationJobsRequest) ListMigrationJobsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListMigrationJobsRequest.newBuilder() to construct. private ListMigrationJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListMigrationJobsRequest() { parent_ = ""; pageToken_ = ""; @@ -28,16 +46,15 @@ private ListMigrationJobsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListMigrationJobsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListMigrationJobsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,75 +73,86 @@ private ListMigrationJobsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.ListMigrationJobsRequest.class, com.google.cloud.clouddms.v1.ListMigrationJobsRequest.Builder.class); + com.google.cloud.clouddms.v1.ListMigrationJobsRequest.class, + com.google.cloud.clouddms.v1.ListMigrationJobsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent, which owns this collection of migrationJobs.
    * 
* - * string 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 @@ -133,29 +161,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 parent, which owns this collection of migrationJobs.
    * 
* - * string 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 { @@ -166,6 +196,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of migration jobs to return. The service may return
    * fewer than this value. If unspecified, at most 50 migration jobs will be
@@ -174,6 +206,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -184,6 +217,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The nextPageToken value received in the previous call to
    * migrationJobs.list, used in the subsequent request to retrieve the next
@@ -193,6 +228,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -201,14 +237,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The nextPageToken value received in the previous call to
    * migrationJobs.list, used in the subsequent request to retrieve the next
@@ -218,16 +255,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -238,6 +274,8 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * A filter expression that filters migration jobs listed in the response.
    * The expression must specify the field name, a comparison operator, and the
@@ -251,6 +289,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -259,14 +298,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * A filter expression that filters migration jobs listed in the response.
    * The expression must specify the field name, a comparison operator, and the
@@ -280,16 +320,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -300,12 +339,15 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Sort the results based on the migration job name.
    * Valid values are: "name", "name asc", and "name desc".
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -314,30 +356,30 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Sort the results based on the migration job name.
    * Valid values are: "name", "name asc", and "name desc".
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -346,6 +388,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -357,8 +400,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -387,8 +429,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!getPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -407,23 +448,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.clouddms.v1.ListMigrationJobsRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.ListMigrationJobsRequest other = (com.google.cloud.clouddms.v1.ListMigrationJobsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.clouddms.v1.ListMigrationJobsRequest other = + (com.google.cloud.clouddms.v1.ListMigrationJobsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -451,117 +488,127 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.ListMigrationJobsRequest 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.clouddms.v1.ListMigrationJobsRequest 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.clouddms.v1.ListMigrationJobsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.ListMigrationJobsRequest 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.clouddms.v1.ListMigrationJobsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.ListMigrationJobsRequest 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.clouddms.v1.ListMigrationJobsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.ListMigrationJobsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.ListMigrationJobsRequest 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.clouddms.v1.ListMigrationJobsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.ListMigrationJobsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.ListMigrationJobsRequest 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.clouddms.v1.ListMigrationJobsRequest 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.clouddms.v1.ListMigrationJobsRequest 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.clouddms.v1.ListMigrationJobsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.clouddms.v1.ListMigrationJobsRequest 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; } /** + * + * *
    * Retrieve a list of all migration jobs in a given project and location.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.ListMigrationJobsRequest} */ - 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.clouddms.v1.ListMigrationJobsRequest) com.google.cloud.clouddms.v1.ListMigrationJobsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.ListMigrationJobsRequest.class, com.google.cloud.clouddms.v1.ListMigrationJobsRequest.Builder.class); + com.google.cloud.clouddms.v1.ListMigrationJobsRequest.class, + com.google.cloud.clouddms.v1.ListMigrationJobsRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.ListMigrationJobsRequest.newBuilder() @@ -569,16 +616,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -596,9 +642,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListMigrationJobsRequest_descriptor; } @java.lang.Override @@ -617,7 +663,8 @@ public com.google.cloud.clouddms.v1.ListMigrationJobsRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.ListMigrationJobsRequest buildPartial() { - com.google.cloud.clouddms.v1.ListMigrationJobsRequest result = new com.google.cloud.clouddms.v1.ListMigrationJobsRequest(this); + com.google.cloud.clouddms.v1.ListMigrationJobsRequest result = + new com.google.cloud.clouddms.v1.ListMigrationJobsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -631,38 +678,39 @@ public com.google.cloud.clouddms.v1.ListMigrationJobsRequest 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.clouddms.v1.ListMigrationJobsRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.ListMigrationJobsRequest)other); + return mergeFrom((com.google.cloud.clouddms.v1.ListMigrationJobsRequest) other); } else { super.mergeFrom(other); return this; @@ -670,7 +718,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.ListMigrationJobsRequest other) { - if (other == com.google.cloud.clouddms.v1.ListMigrationJobsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.clouddms.v1.ListMigrationJobsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -709,7 +758,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.clouddms.v1.ListMigrationJobsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.clouddms.v1.ListMigrationJobsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -721,18 +771,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent, which owns this collection of migrationJobs.
      * 
* - * string 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; @@ -741,20 +795,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of migrationJobs.
      * 
* - * string 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 { @@ -762,61 +819,76 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of migrationJobs.
      * 
* - * 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 parent, which owns this collection of migrationJobs.
      * 
* - * string 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 parent, which owns this collection of migrationJobs.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of migration jobs to return. The service may return
      * fewer than this value. If unspecified, at most 50 migration jobs will be
@@ -825,6 +897,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -832,6 +905,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of migration jobs to return. The service may return
      * fewer than this value. If unspecified, at most 50 migration jobs will be
@@ -840,16 +915,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of migration jobs to return. The service may return
      * fewer than this value. If unspecified, at most 50 migration jobs will be
@@ -858,10 +936,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -869,6 +948,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The nextPageToken value received in the previous call to
      * migrationJobs.list, used in the subsequent request to retrieve the next
@@ -878,13 +959,13 @@ public Builder clearPageSize() {
      * 
* * 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; @@ -893,6 +974,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The nextPageToken value received in the previous call to
      * migrationJobs.list, used in the subsequent request to retrieve the next
@@ -902,15 +985,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -918,6 +1000,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The nextPageToken value received in the previous call to
      * migrationJobs.list, used in the subsequent request to retrieve the next
@@ -927,20 +1011,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The nextPageToken value received in the previous call to
      * migrationJobs.list, used in the subsequent request to retrieve the next
@@ -950,15 +1036,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The nextPageToken value received in the previous call to
      * migrationJobs.list, used in the subsequent request to retrieve the next
@@ -968,16 +1057,16 @@ 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; @@ -985,6 +1074,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * A filter expression that filters migration jobs listed in the response.
      * The expression must specify the field name, a comparison operator, and the
@@ -998,13 +1089,13 @@ public Builder setPageTokenBytes(
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1013,6 +1104,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A filter expression that filters migration jobs listed in the response.
      * The expression must specify the field name, a comparison operator, and the
@@ -1026,15 +1119,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1042,6 +1134,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A filter expression that filters migration jobs listed in the response.
      * The expression must specify the field name, a comparison operator, and the
@@ -1055,20 +1149,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * A filter expression that filters migration jobs listed in the response.
      * The expression must specify the field name, a comparison operator, and the
@@ -1082,15 +1178,18 @@ public Builder setFilter(
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * A filter expression that filters migration jobs listed in the response.
      * The expression must specify the field name, a comparison operator, and the
@@ -1104,16 +1203,16 @@ public Builder clearFilter() {
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1121,19 +1220,21 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort the results based on the migration job name.
      * Valid values are: "name", "name asc", and "name desc".
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1142,21 +1243,22 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results based on the migration job name.
      * Valid values are: "name", "name asc", and "name desc".
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1164,64 +1266,71 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results based on the migration job name.
      * Valid values are: "name", "name asc", and "name desc".
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Sort the results based on the migration job name.
      * Valid values are: "name", "name asc", and "name desc".
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Sort the results based on the migration job name.
      * Valid values are: "name", "name asc", and "name desc".
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = 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); } @@ -1231,12 +1340,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.ListMigrationJobsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ListMigrationJobsRequest) private static final com.google.cloud.clouddms.v1.ListMigrationJobsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ListMigrationJobsRequest(); } @@ -1245,16 +1354,16 @@ public static com.google.cloud.clouddms.v1.ListMigrationJobsRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMigrationJobsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListMigrationJobsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMigrationJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMigrationJobsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1269,6 +1378,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.ListMigrationJobsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequestOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequestOrBuilder.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequestOrBuilder.java index 0fd2dfe7..95bc7bfb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequestOrBuilder.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequestOrBuilder.java @@ -1,33 +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/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface ListMigrationJobsRequestOrBuilder extends +public interface ListMigrationJobsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ListMigrationJobsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent, which owns this collection of migrationJobs.
    * 
* - * string 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 parent, which owns this collection of migrationJobs.
    * 
* - * string 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(); /** + * + * *
    * The maximum number of migration jobs to return. The service may return
    * fewer than this value. If unspecified, at most 50 migration jobs will be
@@ -36,11 +63,14 @@ public interface ListMigrationJobsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The nextPageToken value received in the previous call to
    * migrationJobs.list, used in the subsequent request to retrieve the next
@@ -50,10 +80,13 @@ public interface ListMigrationJobsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The nextPageToken value received in the previous call to
    * migrationJobs.list, used in the subsequent request to retrieve the next
@@ -63,12 +96,14 @@ public interface ListMigrationJobsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * A filter expression that filters migration jobs listed in the response.
    * The expression must specify the field name, a comparison operator, and the
@@ -82,10 +117,13 @@ public interface ListMigrationJobsRequestOrBuilder extends
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * A filter expression that filters migration jobs listed in the response.
    * The expression must specify the field name, a comparison operator, and the
@@ -99,30 +137,35 @@ public interface ListMigrationJobsRequestOrBuilder extends
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Sort the results based on the migration job name.
    * Valid values are: "name", "name asc", and "name desc".
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort the results based on the migration job name.
    * Valid values are: "name", "name asc", and "name desc".
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponse.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponse.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponse.java index b2919ab5..223e06cb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponse.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * Response message for 'ListMigrationJobs' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.ListMigrationJobsResponse} */ -public final class ListMigrationJobsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListMigrationJobsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ListMigrationJobsResponse) ListMigrationJobsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListMigrationJobsResponse.newBuilder() to construct. private ListMigrationJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListMigrationJobsResponse() { migrationJobs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListMigrationJobsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListMigrationJobsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListMigrationJobsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,44 +73,48 @@ private ListMigrationJobsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - migrationJobs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + migrationJobs_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + migrationJobs_.add( + input.readMessage( + com.google.cloud.clouddms.v1.MigrationJob.parser(), extensionRegistry)); + break; } - migrationJobs_.add( - input.readMessage(com.google.cloud.clouddms.v1.MigrationJob.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { migrationJobs_ = java.util.Collections.unmodifiableList(migrationJobs_); @@ -105,22 +126,27 @@ private ListMigrationJobsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.ListMigrationJobsResponse.class, com.google.cloud.clouddms.v1.ListMigrationJobsResponse.Builder.class); + com.google.cloud.clouddms.v1.ListMigrationJobsResponse.class, + com.google.cloud.clouddms.v1.ListMigrationJobsResponse.Builder.class); } public static final int MIGRATION_JOBS_FIELD_NUMBER = 1; private java.util.List migrationJobs_; /** + * + * *
    * The list of migration jobs objects.
    * 
@@ -132,6 +158,8 @@ public java.util.List getMigrationJob return migrationJobs_; } /** + * + * *
    * The list of migration jobs objects.
    * 
@@ -139,11 +167,13 @@ public java.util.List getMigrationJob * repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getMigrationJobsOrBuilderList() { return migrationJobs_; } /** + * + * *
    * The list of migration jobs objects.
    * 
@@ -155,6 +185,8 @@ public int getMigrationJobsCount() { return migrationJobs_.size(); } /** + * + * *
    * The list of migration jobs objects.
    * 
@@ -166,6 +198,8 @@ public com.google.cloud.clouddms.v1.MigrationJob getMigrationJobs(int index) { return migrationJobs_.get(index); } /** + * + * *
    * The list of migration jobs objects.
    * 
@@ -173,20 +207,22 @@ public com.google.cloud.clouddms.v1.MigrationJob getMigrationJobs(int index) { * repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1; */ @java.lang.Override - public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobsOrBuilder( - int index) { + public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobsOrBuilder(int index) { return migrationJobs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -195,30 +231,30 @@ 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; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @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 { @@ -229,34 +265,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -264,20 +308,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +336,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < migrationJobs_.size(); i++) { output.writeMessage(1, migrationJobs_.get(i)); } @@ -310,8 +356,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < migrationJobs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, migrationJobs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, migrationJobs_.get(i)); } if (!getNextPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -332,19 +377,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.clouddms.v1.ListMigrationJobsResponse)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.ListMigrationJobsResponse other = (com.google.cloud.clouddms.v1.ListMigrationJobsResponse) obj; + com.google.cloud.clouddms.v1.ListMigrationJobsResponse other = + (com.google.cloud.clouddms.v1.ListMigrationJobsResponse) obj; - if (!getMigrationJobsList() - .equals(other.getMigrationJobsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getMigrationJobsList().equals(other.getMigrationJobsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -372,117 +415,127 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.ListMigrationJobsResponse 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.clouddms.v1.ListMigrationJobsResponse 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.clouddms.v1.ListMigrationJobsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.ListMigrationJobsResponse 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.clouddms.v1.ListMigrationJobsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.ListMigrationJobsResponse 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.clouddms.v1.ListMigrationJobsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.ListMigrationJobsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.ListMigrationJobsResponse 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.clouddms.v1.ListMigrationJobsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.ListMigrationJobsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.ListMigrationJobsResponse 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.clouddms.v1.ListMigrationJobsResponse 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.clouddms.v1.ListMigrationJobsResponse 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.clouddms.v1.ListMigrationJobsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.clouddms.v1.ListMigrationJobsResponse 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; } /** + * + * *
    * Response message for 'ListMigrationJobs' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.ListMigrationJobsResponse} */ - 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.clouddms.v1.ListMigrationJobsResponse) com.google.cloud.clouddms.v1.ListMigrationJobsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.ListMigrationJobsResponse.class, com.google.cloud.clouddms.v1.ListMigrationJobsResponse.Builder.class); + com.google.cloud.clouddms.v1.ListMigrationJobsResponse.class, + com.google.cloud.clouddms.v1.ListMigrationJobsResponse.Builder.class); } // Construct using com.google.cloud.clouddms.v1.ListMigrationJobsResponse.newBuilder() @@ -490,17 +543,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) { getMigrationJobsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -518,9 +571,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListMigrationJobsResponse_descriptor; } @java.lang.Override @@ -539,7 +592,8 @@ public com.google.cloud.clouddms.v1.ListMigrationJobsResponse build() { @java.lang.Override public com.google.cloud.clouddms.v1.ListMigrationJobsResponse buildPartial() { - com.google.cloud.clouddms.v1.ListMigrationJobsResponse result = new com.google.cloud.clouddms.v1.ListMigrationJobsResponse(this); + com.google.cloud.clouddms.v1.ListMigrationJobsResponse result = + new com.google.cloud.clouddms.v1.ListMigrationJobsResponse(this); int from_bitField0_ = bitField0_; if (migrationJobsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -564,38 +618,39 @@ public com.google.cloud.clouddms.v1.ListMigrationJobsResponse 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.clouddms.v1.ListMigrationJobsResponse) { - return mergeFrom((com.google.cloud.clouddms.v1.ListMigrationJobsResponse)other); + return mergeFrom((com.google.cloud.clouddms.v1.ListMigrationJobsResponse) other); } else { super.mergeFrom(other); return this; @@ -603,7 +658,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.ListMigrationJobsResponse other) { - if (other == com.google.cloud.clouddms.v1.ListMigrationJobsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.clouddms.v1.ListMigrationJobsResponse.getDefaultInstance()) + return this; if (migrationJobsBuilder_ == null) { if (!other.migrationJobs_.isEmpty()) { if (migrationJobs_.isEmpty()) { @@ -622,9 +678,10 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.ListMigrationJobsResponse migrationJobsBuilder_ = null; migrationJobs_ = other.migrationJobs_; bitField0_ = (bitField0_ & ~0x00000001); - migrationJobsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMigrationJobsFieldBuilder() : null; + migrationJobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMigrationJobsFieldBuilder() + : null; } else { migrationJobsBuilder_.addAllMessages(other.migrationJobs_); } @@ -663,7 +720,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.clouddms.v1.ListMigrationJobsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.clouddms.v1.ListMigrationJobsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,21 +730,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List migrationJobs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMigrationJobsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - migrationJobs_ = new java.util.ArrayList(migrationJobs_); + migrationJobs_ = + new java.util.ArrayList(migrationJobs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.clouddms.v1.MigrationJob, com.google.cloud.clouddms.v1.MigrationJob.Builder, com.google.cloud.clouddms.v1.MigrationJobOrBuilder> migrationJobsBuilder_; + com.google.cloud.clouddms.v1.MigrationJob, + com.google.cloud.clouddms.v1.MigrationJob.Builder, + com.google.cloud.clouddms.v1.MigrationJobOrBuilder> + migrationJobsBuilder_; /** + * + * *
      * The list of migration jobs objects.
      * 
@@ -701,6 +767,8 @@ public java.util.List getMigrationJob } } /** + * + * *
      * The list of migration jobs objects.
      * 
@@ -715,6 +783,8 @@ public int getMigrationJobsCount() { } } /** + * + * *
      * The list of migration jobs objects.
      * 
@@ -729,14 +799,15 @@ public com.google.cloud.clouddms.v1.MigrationJob getMigrationJobs(int index) { } } /** + * + * *
      * The list of migration jobs objects.
      * 
* * repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1; */ - public Builder setMigrationJobs( - int index, com.google.cloud.clouddms.v1.MigrationJob value) { + public Builder setMigrationJobs(int index, com.google.cloud.clouddms.v1.MigrationJob value) { if (migrationJobsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -750,6 +821,8 @@ public Builder setMigrationJobs( return this; } /** + * + * *
      * The list of migration jobs objects.
      * 
@@ -768,6 +841,8 @@ public Builder setMigrationJobs( return this; } /** + * + * *
      * The list of migration jobs objects.
      * 
@@ -788,14 +863,15 @@ public Builder addMigrationJobs(com.google.cloud.clouddms.v1.MigrationJob value) return this; } /** + * + * *
      * The list of migration jobs objects.
      * 
* * repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1; */ - public Builder addMigrationJobs( - int index, com.google.cloud.clouddms.v1.MigrationJob value) { + public Builder addMigrationJobs(int index, com.google.cloud.clouddms.v1.MigrationJob value) { if (migrationJobsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -809,6 +885,8 @@ public Builder addMigrationJobs( return this; } /** + * + * *
      * The list of migration jobs objects.
      * 
@@ -827,6 +905,8 @@ public Builder addMigrationJobs( return this; } /** + * + * *
      * The list of migration jobs objects.
      * 
@@ -845,6 +925,8 @@ public Builder addMigrationJobs( return this; } /** + * + * *
      * The list of migration jobs objects.
      * 
@@ -855,8 +937,7 @@ public Builder addAllMigrationJobs( java.lang.Iterable values) { if (migrationJobsBuilder_ == null) { ensureMigrationJobsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, migrationJobs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, migrationJobs_); onChanged(); } else { migrationJobsBuilder_.addAllMessages(values); @@ -864,6 +945,8 @@ public Builder addAllMigrationJobs( return this; } /** + * + * *
      * The list of migration jobs objects.
      * 
@@ -881,6 +964,8 @@ public Builder clearMigrationJobs() { return this; } /** + * + * *
      * The list of migration jobs objects.
      * 
@@ -898,39 +983,44 @@ public Builder removeMigrationJobs(int index) { return this; } /** + * + * *
      * The list of migration jobs objects.
      * 
* * repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1; */ - public com.google.cloud.clouddms.v1.MigrationJob.Builder getMigrationJobsBuilder( - int index) { + public com.google.cloud.clouddms.v1.MigrationJob.Builder getMigrationJobsBuilder(int index) { return getMigrationJobsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of migration jobs objects.
      * 
* * repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1; */ - public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobsOrBuilder( - int index) { + public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobsOrBuilder(int index) { if (migrationJobsBuilder_ == null) { - return migrationJobs_.get(index); } else { + return migrationJobs_.get(index); + } else { return migrationJobsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of migration jobs objects.
      * 
* * repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1; */ - public java.util.List - getMigrationJobsOrBuilderList() { + public java.util.List + getMigrationJobsOrBuilderList() { if (migrationJobsBuilder_ != null) { return migrationJobsBuilder_.getMessageOrBuilderList(); } else { @@ -938,6 +1028,8 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobsOrBuil } } /** + * + * *
      * The list of migration jobs objects.
      * 
@@ -945,38 +1037,47 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobsOrBuil * repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1; */ public com.google.cloud.clouddms.v1.MigrationJob.Builder addMigrationJobsBuilder() { - return getMigrationJobsFieldBuilder().addBuilder( - com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance()); + return getMigrationJobsFieldBuilder() + .addBuilder(com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance()); } /** + * + * *
      * The list of migration jobs objects.
      * 
* * repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1; */ - public com.google.cloud.clouddms.v1.MigrationJob.Builder addMigrationJobsBuilder( - int index) { - return getMigrationJobsFieldBuilder().addBuilder( - index, com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance()); + public com.google.cloud.clouddms.v1.MigrationJob.Builder addMigrationJobsBuilder(int index) { + return getMigrationJobsFieldBuilder() + .addBuilder(index, com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance()); } /** + * + * *
      * The list of migration jobs objects.
      * 
* * repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1; */ - public java.util.List - getMigrationJobsBuilderList() { + public java.util.List + getMigrationJobsBuilderList() { return getMigrationJobsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.clouddms.v1.MigrationJob, com.google.cloud.clouddms.v1.MigrationJob.Builder, com.google.cloud.clouddms.v1.MigrationJobOrBuilder> + com.google.cloud.clouddms.v1.MigrationJob, + com.google.cloud.clouddms.v1.MigrationJob.Builder, + com.google.cloud.clouddms.v1.MigrationJobOrBuilder> getMigrationJobsFieldBuilder() { if (migrationJobsBuilder_ == null) { - migrationJobsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.clouddms.v1.MigrationJob, com.google.cloud.clouddms.v1.MigrationJob.Builder, com.google.cloud.clouddms.v1.MigrationJobOrBuilder>( + migrationJobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.MigrationJob, + com.google.cloud.clouddms.v1.MigrationJob.Builder, + com.google.cloud.clouddms.v1.MigrationJobOrBuilder>( migrationJobs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -988,19 +1089,21 @@ public com.google.cloud.clouddms.v1.MigrationJob.Builder addMigrationJobsBuilder private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @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; @@ -1009,21 +1112,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @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 { @@ -1031,98 +1135,115 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @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; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1130,80 +1251,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1213,28 +1344,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.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); } @@ -1244,12 +1377,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.ListMigrationJobsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ListMigrationJobsResponse) private static final com.google.cloud.clouddms.v1.ListMigrationJobsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ListMigrationJobsResponse(); } @@ -1258,16 +1391,16 @@ public static com.google.cloud.clouddms.v1.ListMigrationJobsResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMigrationJobsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListMigrationJobsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMigrationJobsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMigrationJobsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1282,6 +1415,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.clouddms.v1.ListMigrationJobsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponseOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponseOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponseOrBuilder.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponseOrBuilder.java index 45782d7b..d9cf91e3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponseOrBuilder.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface ListMigrationJobsResponseOrBuilder extends +public interface ListMigrationJobsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ListMigrationJobsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of migration jobs objects.
    * 
* * repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1; */ - java.util.List - getMigrationJobsList(); + java.util.List getMigrationJobsList(); /** + * + * *
    * The list of migration jobs objects.
    * 
@@ -25,6 +44,8 @@ public interface ListMigrationJobsResponseOrBuilder extends */ com.google.cloud.clouddms.v1.MigrationJob getMigrationJobs(int index); /** + * + * *
    * The list of migration jobs objects.
    * 
@@ -33,84 +54,102 @@ public interface ListMigrationJobsResponseOrBuilder extends */ int getMigrationJobsCount(); /** + * + * *
    * The list of migration jobs objects.
    * 
* * repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1; */ - java.util.List + java.util.List getMigrationJobsOrBuilderList(); /** + * + * *
    * The list of migration jobs objects.
    * 
* * repeated .google.cloud.clouddms.v1.MigrationJob migration_jobs = 1; */ - com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobsOrBuilder( - int index); + com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobsOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/LocationName.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/LocationName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/LocationName.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/LocationName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJob.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJob.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJob.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJob.java index f469c0b0..94736a47 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJob.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJob.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * Represents a Database Migration Service migration job object.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.MigrationJob} */ -public final class MigrationJob extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MigrationJob extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.MigrationJob) MigrationJobOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MigrationJob.newBuilder() to construct. private MigrationJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MigrationJob() { name_ = ""; displayName_ = ""; @@ -32,16 +50,15 @@ private MigrationJob() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MigrationJob(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private MigrationJob( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -61,254 +78,298 @@ private MigrationJob( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + name_ = s; + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + displayName_ = s; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - case 48: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 56: { - int rawValue = input.readEnum(); + case 48: + { + int rawValue = input.readEnum(); - phase_ = rawValue; - break; - } - case 64: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); - - dumpPath_ = s; - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - - source_ = s; - break; - } - case 90: { - java.lang.String s = input.readStringRequireUtf8(); - - destination_ = s; - break; - } - case 98: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (duration_ != null) { - subBuilder = duration_.toBuilder(); - } - duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(duration_); - duration_ = subBuilder.buildPartial(); + state_ = rawValue; + break; } + case 56: + { + int rawValue = input.readEnum(); - break; - } - case 106: { - com.google.rpc.Status.Builder subBuilder = null; - if (error_ != null) { - subBuilder = error_.toBuilder(); - } - error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(error_); - error_ = subBuilder.buildPartial(); + phase_ = rawValue; + break; } + case 64: + { + int rawValue = input.readEnum(); - break; - } - case 114: { - com.google.cloud.clouddms.v1.DatabaseType.Builder subBuilder = null; - if (sourceDatabase_ != null) { - subBuilder = sourceDatabase_.toBuilder(); - } - sourceDatabase_ = input.readMessage(com.google.cloud.clouddms.v1.DatabaseType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sourceDatabase_); - sourceDatabase_ = subBuilder.buildPartial(); + type_ = rawValue; + break; } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 122: { - com.google.cloud.clouddms.v1.DatabaseType.Builder subBuilder = null; - if (destinationDatabase_ != null) { - subBuilder = destinationDatabase_.toBuilder(); + dumpPath_ = s; + break; } - destinationDatabase_ = input.readMessage(com.google.cloud.clouddms.v1.DatabaseType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(destinationDatabase_); - destinationDatabase_ = subBuilder.buildPartial(); + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + + source_ = s; + break; } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 130: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); + destination_ = s; + break; } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); + case 98: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (duration_ != null) { + subBuilder = duration_.toBuilder(); + } + duration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(duration_); + duration_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 810: { - com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder subBuilder = null; - if (connectivityCase_ == 101) { - subBuilder = ((com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_).toBuilder(); + case 106: + { + com.google.rpc.Status.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = subBuilder.buildPartial(); + } + + break; } - connectivity_ = - input.readMessage(com.google.cloud.clouddms.v1.ReverseSshConnectivity.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_); - connectivity_ = subBuilder.buildPartial(); + case 114: + { + com.google.cloud.clouddms.v1.DatabaseType.Builder subBuilder = null; + if (sourceDatabase_ != null) { + subBuilder = sourceDatabase_.toBuilder(); + } + sourceDatabase_ = + input.readMessage( + com.google.cloud.clouddms.v1.DatabaseType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sourceDatabase_); + sourceDatabase_ = subBuilder.buildPartial(); + } + + break; } - connectivityCase_ = 101; - break; - } - case 818: { - com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder subBuilder = null; - if (connectivityCase_ == 102) { - subBuilder = ((com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_).toBuilder(); + case 122: + { + com.google.cloud.clouddms.v1.DatabaseType.Builder subBuilder = null; + if (destinationDatabase_ != null) { + subBuilder = destinationDatabase_.toBuilder(); + } + destinationDatabase_ = + input.readMessage( + com.google.cloud.clouddms.v1.DatabaseType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(destinationDatabase_); + destinationDatabase_ = subBuilder.buildPartial(); + } + + break; } - connectivity_ = - input.readMessage(com.google.cloud.clouddms.v1.VpcPeeringConnectivity.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_); - connectivity_ = subBuilder.buildPartial(); + case 130: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } - connectivityCase_ = 102; - break; - } - case 826: { - com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder subBuilder = null; - if (connectivityCase_ == 103) { - subBuilder = ((com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_).toBuilder(); + case 810: + { + com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder subBuilder = null; + if (connectivityCase_ == 101) { + subBuilder = + ((com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_) + .toBuilder(); + } + connectivity_ = + input.readMessage( + com.google.cloud.clouddms.v1.ReverseSshConnectivity.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_); + connectivity_ = subBuilder.buildPartial(); + } + connectivityCase_ = 101; + break; } - connectivity_ = - input.readMessage(com.google.cloud.clouddms.v1.StaticIpConnectivity.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_); - connectivity_ = subBuilder.buildPartial(); + case 818: + { + com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder subBuilder = null; + if (connectivityCase_ == 102) { + subBuilder = + ((com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_) + .toBuilder(); + } + connectivity_ = + input.readMessage( + com.google.cloud.clouddms.v1.VpcPeeringConnectivity.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_); + connectivity_ = subBuilder.buildPartial(); + } + connectivityCase_ = 102; + break; } - connectivityCase_ = 103; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 826: + { + com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder subBuilder = null; + if (connectivityCase_ == 103) { + subBuilder = + ((com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_).toBuilder(); + } + connectivity_ = + input.readMessage( + com.google.cloud.clouddms.v1.StaticIpConnectivity.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_); + connectivity_ = subBuilder.buildPartial(); + } + connectivityCase_ = 103; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MigrationJob_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.MigrationJob.class, com.google.cloud.clouddms.v1.MigrationJob.Builder.class); + com.google.cloud.clouddms.v1.MigrationJob.class, + com.google.cloud.clouddms.v1.MigrationJob.Builder.class); } /** + * + * *
    * The current migration job states.
    * 
* * Protobuf enum {@code google.cloud.clouddms.v1.MigrationJob.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The state of the migration job is unknown.
      * 
@@ -317,6 +378,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The migration job is down for maintenance.
      * 
@@ -325,6 +388,8 @@ public enum State */ MAINTENANCE(1), /** + * + * *
      * The migration job is in draft mode and no resources are created.
      * 
@@ -333,6 +398,8 @@ public enum State */ DRAFT(2), /** + * + * *
      * The migration job is being created.
      * 
@@ -341,6 +408,8 @@ public enum State */ CREATING(3), /** + * + * *
      * The migration job is created, not started and is fully editable.
      * 
@@ -349,6 +418,8 @@ public enum State */ NOT_STARTED(4), /** + * + * *
      * The migration job is running.
      * 
@@ -357,6 +428,8 @@ public enum State */ RUNNING(5), /** + * + * *
      * The migration job failed.
      * 
@@ -365,6 +438,8 @@ public enum State */ FAILED(6), /** + * + * *
      * The migration job has been completed.
      * 
@@ -373,6 +448,8 @@ public enum State */ COMPLETED(7), /** + * + * *
      * The migration job is being deleted.
      * 
@@ -381,6 +458,8 @@ public enum State */ DELETING(8), /** + * + * *
      * The migration job is being stopped.
      * 
@@ -389,6 +468,8 @@ public enum State */ STOPPING(9), /** + * + * *
      * The migration job is currently stopped.
      * 
@@ -397,6 +478,8 @@ public enum State */ STOPPED(10), /** + * + * *
      * The migration job has been deleted.
      * 
@@ -405,6 +488,8 @@ public enum State */ DELETED(11), /** + * + * *
      * The migration job is being updated.
      * 
@@ -413,6 +498,8 @@ public enum State */ UPDATING(12), /** + * + * *
      * The migration job is starting.
      * 
@@ -421,6 +508,8 @@ public enum State */ STARTING(13), /** + * + * *
      * The migration job is restarting.
      * 
@@ -429,6 +518,8 @@ public enum State */ RESTARTING(14), /** + * + * *
      * The migration job is resuming.
      * 
@@ -440,6 +531,8 @@ public enum State ; /** + * + * *
      * The state of the migration job is unknown.
      * 
@@ -448,6 +541,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The migration job is down for maintenance.
      * 
@@ -456,6 +551,8 @@ public enum State */ public static final int MAINTENANCE_VALUE = 1; /** + * + * *
      * The migration job is in draft mode and no resources are created.
      * 
@@ -464,6 +561,8 @@ public enum State */ public static final int DRAFT_VALUE = 2; /** + * + * *
      * The migration job is being created.
      * 
@@ -472,6 +571,8 @@ public enum State */ public static final int CREATING_VALUE = 3; /** + * + * *
      * The migration job is created, not started and is fully editable.
      * 
@@ -480,6 +581,8 @@ public enum State */ public static final int NOT_STARTED_VALUE = 4; /** + * + * *
      * The migration job is running.
      * 
@@ -488,6 +591,8 @@ public enum State */ public static final int RUNNING_VALUE = 5; /** + * + * *
      * The migration job failed.
      * 
@@ -496,6 +601,8 @@ public enum State */ public static final int FAILED_VALUE = 6; /** + * + * *
      * The migration job has been completed.
      * 
@@ -504,6 +611,8 @@ public enum State */ public static final int COMPLETED_VALUE = 7; /** + * + * *
      * The migration job is being deleted.
      * 
@@ -512,6 +621,8 @@ public enum State */ public static final int DELETING_VALUE = 8; /** + * + * *
      * The migration job is being stopped.
      * 
@@ -520,6 +631,8 @@ public enum State */ public static final int STOPPING_VALUE = 9; /** + * + * *
      * The migration job is currently stopped.
      * 
@@ -528,6 +641,8 @@ public enum State */ public static final int STOPPED_VALUE = 10; /** + * + * *
      * The migration job has been deleted.
      * 
@@ -536,6 +651,8 @@ public enum State */ public static final int DELETED_VALUE = 11; /** + * + * *
      * The migration job is being updated.
      * 
@@ -544,6 +661,8 @@ public enum State */ public static final int UPDATING_VALUE = 12; /** + * + * *
      * The migration job is starting.
      * 
@@ -552,6 +671,8 @@ public enum State */ public static final int STARTING_VALUE = 13; /** + * + * *
      * The migration job is restarting.
      * 
@@ -560,6 +681,8 @@ public enum State */ public static final int RESTARTING_VALUE = 14; /** + * + * *
      * The migration job is resuming.
      * 
@@ -568,7 +691,6 @@ public enum State */ public static final int RESUMING_VALUE = 15; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -593,62 +715,75 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return MAINTENANCE; - case 2: return DRAFT; - case 3: return CREATING; - case 4: return NOT_STARTED; - case 5: return RUNNING; - case 6: return FAILED; - case 7: return COMPLETED; - case 8: return DELETING; - case 9: return STOPPING; - case 10: return STOPPED; - case 11: return DELETED; - case 12: return UPDATING; - case 13: return STARTING; - case 14: return RESTARTING; - case 15: return RESUMING; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return STATE_UNSPECIFIED; + case 1: + return MAINTENANCE; + case 2: + return DRAFT; + case 3: + return CREATING; + case 4: + return NOT_STARTED; + case 5: + return RUNNING; + case 6: + return FAILED; + case 7: + return COMPLETED; + case 8: + return DELETING; + case 9: + return STOPPING; + case 10: + return STOPPED; + case 11: + return DELETED; + case 12: + return UPDATING; + case 13: + return STARTING; + case 14: + return RESTARTING; + case 15: + return RESUMING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.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() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.clouddms.v1.MigrationJob.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -666,15 +801,18 @@ private State(int value) { } /** + * + * *
    * The current migration job phase.
    * 
* * Protobuf enum {@code google.cloud.clouddms.v1.MigrationJob.Phase} */ - public enum Phase - implements com.google.protobuf.ProtocolMessageEnum { + public enum Phase implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The phase of the migration job is unknown.
      * 
@@ -683,6 +821,8 @@ public enum Phase */ PHASE_UNSPECIFIED(0), /** + * + * *
      * The migration job is in the full dump phase.
      * 
@@ -691,6 +831,8 @@ public enum Phase */ FULL_DUMP(1), /** + * + * *
      * The migration job is CDC phase.
      * 
@@ -699,6 +841,8 @@ public enum Phase */ CDC(2), /** + * + * *
      * The migration job is running the promote phase.
      * 
@@ -707,6 +851,8 @@ public enum Phase */ PROMOTE_IN_PROGRESS(3), /** + * + * *
      * Only RDS flow - waiting for source writes to stop
      * 
@@ -715,6 +861,8 @@ public enum Phase */ WAITING_FOR_SOURCE_WRITES_TO_STOP(4), /** + * + * *
      * Only RDS flow - the sources writes stopped, waiting for dump to begin
      * 
@@ -726,6 +874,8 @@ public enum Phase ; /** + * + * *
      * The phase of the migration job is unknown.
      * 
@@ -734,6 +884,8 @@ public enum Phase */ public static final int PHASE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The migration job is in the full dump phase.
      * 
@@ -742,6 +894,8 @@ public enum Phase */ public static final int FULL_DUMP_VALUE = 1; /** + * + * *
      * The migration job is CDC phase.
      * 
@@ -750,6 +904,8 @@ public enum Phase */ public static final int CDC_VALUE = 2; /** + * + * *
      * The migration job is running the promote phase.
      * 
@@ -758,6 +914,8 @@ public enum Phase */ public static final int PROMOTE_IN_PROGRESS_VALUE = 3; /** + * + * *
      * Only RDS flow - waiting for source writes to stop
      * 
@@ -766,6 +924,8 @@ public enum Phase */ public static final int WAITING_FOR_SOURCE_WRITES_TO_STOP_VALUE = 4; /** + * + * *
      * Only RDS flow - the sources writes stopped, waiting for dump to begin
      * 
@@ -774,7 +934,6 @@ public enum Phase */ public static final int PREPARING_THE_DUMP_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -799,52 +958,55 @@ public static Phase valueOf(int value) { */ public static Phase forNumber(int value) { switch (value) { - case 0: return PHASE_UNSPECIFIED; - case 1: return FULL_DUMP; - case 2: return CDC; - case 3: return PROMOTE_IN_PROGRESS; - case 4: return WAITING_FOR_SOURCE_WRITES_TO_STOP; - case 5: return PREPARING_THE_DUMP; - default: return null; + case 0: + return PHASE_UNSPECIFIED; + case 1: + return FULL_DUMP; + case 2: + return CDC; + case 3: + return PROMOTE_IN_PROGRESS; + case 4: + return WAITING_FOR_SOURCE_WRITES_TO_STOP; + case 5: + return PREPARING_THE_DUMP; + 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< - Phase> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Phase findValueByNumber(int number) { - return Phase.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Phase findValueByNumber(int number) { + return Phase.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() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.clouddms.v1.MigrationJob.getDescriptor().getEnumTypes().get(1); } private static final Phase[] VALUES = values(); - public static Phase valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Phase 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; @@ -862,15 +1024,18 @@ private Phase(int value) { } /** + * + * *
    * The type of migration job (one-time or continuous).
    * 
* * Protobuf enum {@code google.cloud.clouddms.v1.MigrationJob.Type} */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { + public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The type of the migration job is unknown.
      * 
@@ -879,6 +1044,8 @@ public enum Type */ TYPE_UNSPECIFIED(0), /** + * + * *
      * The migration job is a one time migration.
      * 
@@ -887,6 +1054,8 @@ public enum Type */ ONE_TIME(1), /** + * + * *
      * The migration job is a continuous migration.
      * 
@@ -898,6 +1067,8 @@ public enum Type ; /** + * + * *
      * The type of the migration job is unknown.
      * 
@@ -906,6 +1077,8 @@ public enum Type */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The migration job is a one time migration.
      * 
@@ -914,6 +1087,8 @@ public enum Type */ public static final int ONE_TIME_VALUE = 1; /** + * + * *
      * The migration job is a continuous migration.
      * 
@@ -922,7 +1097,6 @@ public enum Type */ public static final int CONTINUOUS_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -947,49 +1121,49 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: return TYPE_UNSPECIFIED; - case 1: return ONE_TIME; - case 2: return CONTINUOUS; - default: return null; + case 0: + return TYPE_UNSPECIFIED; + case 1: + return ONE_TIME; + case 2: + return CONTINUOUS; + 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< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.clouddms.v1.MigrationJob.getDescriptor().getEnumTypes().get(2); } 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; @@ -1008,14 +1182,17 @@ private Type(int value) { private int connectivityCase_ = 0; private java.lang.Object connectivity_; + public enum ConnectivityCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { REVERSE_SSH_CONNECTIVITY(101), VPC_PEERING_CONNECTIVITY(102), STATIC_IP_CONNECTIVITY(103), CONNECTIVITY_NOT_SET(0); private final int value; + private ConnectivityCase(int value) { this.value = value; } @@ -1031,33 +1208,40 @@ public static ConnectivityCase valueOf(int value) { public static ConnectivityCase forNumber(int value) { switch (value) { - case 101: return REVERSE_SSH_CONNECTIVITY; - case 102: return VPC_PEERING_CONNECTIVITY; - case 103: return STATIC_IP_CONNECTIVITY; - case 0: return CONNECTIVITY_NOT_SET; - default: return null; + case 101: + return REVERSE_SSH_CONNECTIVITY; + case 102: + return VPC_PEERING_CONNECTIVITY; + case 103: + return STATIC_IP_CONNECTIVITY; + case 0: + return CONNECTIVITY_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ConnectivityCase - getConnectivityCase() { - return ConnectivityCase.forNumber( - connectivityCase_); + public ConnectivityCase getConnectivityCase() { + return ConnectivityCase.forNumber(connectivityCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The name (URI) of this migration job resource, in the form of:
    * projects/{project}/locations/{location}/instances/{instance}.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -1066,30 +1250,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name (URI) of this migration job resource, in the form of:
    * projects/{project}/locations/{location}/instances/{instance}.
    * 
* * 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 { @@ -1100,13 +1284,17 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The timestamp when the migration job resource was created.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1114,13 +1302,17 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The timestamp when the migration job resource was created.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -1128,13 +1320,16 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The timestamp when the migration job resource was created.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1144,13 +1339,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The timestamp when the migration job resource was last updated.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1158,13 +1357,17 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The timestamp when the migration job resource was last updated.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -1172,13 +1375,16 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The timestamp when the migration job resource was last updated.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1186,24 +1392,23 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -1212,6 +1417,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * The resource labels for migration job to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -1221,22 +1428,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4;
    */
-
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * The resource labels for migration job to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -1247,11 +1454,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * The resource labels for migration job to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -1262,16 +1470,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * The resource labels for migration job to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -1282,12 +1490,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1297,11 +1504,14 @@ public java.lang.String getLabelsOrThrow(
   public static final int DISPLAY_NAME_FIELD_NUMBER = 5;
   private volatile java.lang.Object displayName_;
   /**
+   *
+   *
    * 
    * The migration job display name.
    * 
* * string display_name = 5; + * * @return The displayName. */ @java.lang.Override @@ -1310,29 +1520,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; } } /** + * + * *
    * The migration job display name.
    * 
* * string display_name = 5; + * * @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 { @@ -1343,93 +1553,131 @@ public java.lang.String getDisplayName() { public static final int STATE_FIELD_NUMBER = 6; private int state_; /** + * + * *
    * The current migration job state.
    * 
* * .google.cloud.clouddms.v1.MigrationJob.State state = 6; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The current migration job state.
    * 
* * .google.cloud.clouddms.v1.MigrationJob.State state = 6; + * * @return The state. */ - @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJob.State getState() { + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.MigrationJob.State result = com.google.cloud.clouddms.v1.MigrationJob.State.valueOf(state_); + com.google.cloud.clouddms.v1.MigrationJob.State result = + com.google.cloud.clouddms.v1.MigrationJob.State.valueOf(state_); return result == null ? com.google.cloud.clouddms.v1.MigrationJob.State.UNRECOGNIZED : result; } public static final int PHASE_FIELD_NUMBER = 7; private int phase_; /** + * + * *
    * Output only. The current migration job phase.
    * 
* - * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for phase. */ - @java.lang.Override public int getPhaseValue() { + @java.lang.Override + public int getPhaseValue() { return phase_; } /** + * + * *
    * Output only. The current migration job phase.
    * 
* - * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The phase. */ - @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJob.Phase getPhase() { + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.Phase getPhase() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.MigrationJob.Phase result = com.google.cloud.clouddms.v1.MigrationJob.Phase.valueOf(phase_); + com.google.cloud.clouddms.v1.MigrationJob.Phase result = + com.google.cloud.clouddms.v1.MigrationJob.Phase.valueOf(phase_); return result == null ? com.google.cloud.clouddms.v1.MigrationJob.Phase.UNRECOGNIZED : result; } public static final int TYPE_FIELD_NUMBER = 8; private int type_; /** + * + * *
    * Required. The migration job type.
    * 
* - * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * Required. The migration job type.
    * 
* - * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The type. */ - @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJob.Type getType() { + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.MigrationJob.Type result = com.google.cloud.clouddms.v1.MigrationJob.Type.valueOf(type_); + com.google.cloud.clouddms.v1.MigrationJob.Type result = + com.google.cloud.clouddms.v1.MigrationJob.Type.valueOf(type_); return result == null ? com.google.cloud.clouddms.v1.MigrationJob.Type.UNRECOGNIZED : result; } public static final int DUMP_PATH_FIELD_NUMBER = 9; private volatile java.lang.Object dumpPath_; /** + * + * *
    * The path to the dump file in Google Cloud Storage,
    * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
    * 
* * string dump_path = 9; + * * @return The dumpPath. */ @java.lang.Override @@ -1438,30 +1686,30 @@ public java.lang.String getDumpPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dumpPath_ = s; return s; } } /** + * + * *
    * The path to the dump file in Google Cloud Storage,
    * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
    * 
* * string dump_path = 9; + * * @return The bytes for dumpPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getDumpPathBytes() { + public com.google.protobuf.ByteString getDumpPathBytes() { java.lang.Object ref = dumpPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dumpPath_ = b; return b; } else { @@ -1472,11 +1720,14 @@ public java.lang.String getDumpPath() { public static final int SOURCE_FIELD_NUMBER = 10; private volatile java.lang.Object source_; /** + * + * *
    * Required. The resource name (URI) of the source connection profile.
    * 
* * string source = 10 [(.google.api.field_behavior) = REQUIRED]; + * * @return The source. */ @java.lang.Override @@ -1485,29 +1736,29 @@ public java.lang.String getSource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); source_ = s; return s; } } /** + * + * *
    * Required. The resource name (URI) of the source connection profile.
    * 
* * string source = 10 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for source. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceBytes() { + public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); source_ = b; return b; } else { @@ -1518,11 +1769,14 @@ public java.lang.String getSource() { public static final int DESTINATION_FIELD_NUMBER = 11; private volatile java.lang.Object destination_; /** + * + * *
    * Required. The resource name (URI) of the destination connection profile.
    * 
* * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return The destination. */ @java.lang.Override @@ -1531,29 +1785,29 @@ public java.lang.String getDestination() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destination_ = s; return s; } } /** + * + * *
    * Required. The resource name (URI) of the destination connection profile.
    * 
* * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for destination. */ @java.lang.Override - public com.google.protobuf.ByteString - getDestinationBytes() { + public com.google.protobuf.ByteString getDestinationBytes() { java.lang.Object 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); destination_ = b; return b; } else { @@ -1563,12 +1817,15 @@ public java.lang.String getDestination() { public static final int REVERSE_SSH_CONNECTIVITY_FIELD_NUMBER = 101; /** + * + * *
    * The details needed to communicate to the source over Reverse SSH
    * tunnel connectivity.
    * 
* * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; + * * @return Whether the reverseSshConnectivity field is set. */ @java.lang.Override @@ -1576,22 +1833,27 @@ public boolean hasReverseSshConnectivity() { return connectivityCase_ == 101; } /** + * + * *
    * The details needed to communicate to the source over Reverse SSH
    * tunnel connectivity.
    * 
* * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; + * * @return The reverseSshConnectivity. */ @java.lang.Override public com.google.cloud.clouddms.v1.ReverseSshConnectivity getReverseSshConnectivity() { if (connectivityCase_ == 101) { - return (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_; + return (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_; } return com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance(); } /** + * + * *
    * The details needed to communicate to the source over Reverse SSH
    * tunnel connectivity.
@@ -1600,20 +1862,24 @@ public com.google.cloud.clouddms.v1.ReverseSshConnectivity getReverseSshConnecti
    * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101;
    */
   @java.lang.Override
-  public com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder getReverseSshConnectivityOrBuilder() {
+  public com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder
+      getReverseSshConnectivityOrBuilder() {
     if (connectivityCase_ == 101) {
-       return (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_;
+      return (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_;
     }
     return com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance();
   }
 
   public static final int VPC_PEERING_CONNECTIVITY_FIELD_NUMBER = 102;
   /**
+   *
+   *
    * 
    * The details of the VPC network that the source database is located in.
    * 
* * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; + * * @return Whether the vpcPeeringConnectivity field is set. */ @java.lang.Override @@ -1621,21 +1887,26 @@ public boolean hasVpcPeeringConnectivity() { return connectivityCase_ == 102; } /** + * + * *
    * The details of the VPC network that the source database is located in.
    * 
* * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; + * * @return The vpcPeeringConnectivity. */ @java.lang.Override public com.google.cloud.clouddms.v1.VpcPeeringConnectivity getVpcPeeringConnectivity() { if (connectivityCase_ == 102) { - return (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_; + return (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_; } return com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance(); } /** + * + * *
    * The details of the VPC network that the source database is located in.
    * 
@@ -1643,20 +1914,24 @@ public com.google.cloud.clouddms.v1.VpcPeeringConnectivity getVpcPeeringConnecti * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; */ @java.lang.Override - public com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder getVpcPeeringConnectivityOrBuilder() { + public com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder + getVpcPeeringConnectivityOrBuilder() { if (connectivityCase_ == 102) { - return (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_; + return (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_; } return com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance(); } public static final int STATIC_IP_CONNECTIVITY_FIELD_NUMBER = 103; /** + * + * *
    * static ip connectivity data (default, no additional details needed).
    * 
* * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; + * * @return Whether the staticIpConnectivity field is set. */ @java.lang.Override @@ -1664,21 +1939,26 @@ public boolean hasStaticIpConnectivity() { return connectivityCase_ == 103; } /** + * + * *
    * static ip connectivity data (default, no additional details needed).
    * 
* * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; + * * @return The staticIpConnectivity. */ @java.lang.Override public com.google.cloud.clouddms.v1.StaticIpConnectivity getStaticIpConnectivity() { if (connectivityCase_ == 103) { - return (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_; + return (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_; } return com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance(); } /** + * + * *
    * static ip connectivity data (default, no additional details needed).
    * 
@@ -1686,9 +1966,10 @@ public com.google.cloud.clouddms.v1.StaticIpConnectivity getStaticIpConnectivity * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; */ @java.lang.Override - public com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder getStaticIpConnectivityOrBuilder() { + public com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder + getStaticIpConnectivityOrBuilder() { if (connectivityCase_ == 103) { - return (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_; + return (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_; } return com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance(); } @@ -1696,12 +1977,16 @@ public com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder getStaticIpCon public static final int DURATION_FIELD_NUMBER = 12; private com.google.protobuf.Duration duration_; /** + * + * *
    * Output only. The duration of the migration job (in seconds). A duration in seconds
    * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
    * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the duration field is set. */ @java.lang.Override @@ -1709,12 +1994,16 @@ public boolean hasDuration() { return duration_ != null; } /** + * + * *
    * Output only. The duration of the migration job (in seconds). A duration in seconds
    * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
    * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The duration. */ @java.lang.Override @@ -1722,12 +2011,15 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** + * + * *
    * Output only. The duration of the migration job (in seconds). A duration in seconds
    * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
    * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { @@ -1737,11 +2029,14 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { public static final int ERROR_FIELD_NUMBER = 13; private com.google.rpc.Status error_; /** + * + * *
    * Output only. The error details in case of state FAILED.
    * 
* * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the error field is set. */ @java.lang.Override @@ -1749,11 +2044,14 @@ public boolean hasError() { return error_ != null; } /** + * + * *
    * Output only. The error details in case of state FAILED.
    * 
* * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The error. */ @java.lang.Override @@ -1761,6 +2059,8 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** + * + * *
    * Output only. The error details in case of state FAILED.
    * 
@@ -1775,11 +2075,14 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { public static final int SOURCE_DATABASE_FIELD_NUMBER = 14; private com.google.cloud.clouddms.v1.DatabaseType sourceDatabase_; /** + * + * *
    * The database engine type and provider of the source.
    * 
* * .google.cloud.clouddms.v1.DatabaseType source_database = 14; + * * @return Whether the sourceDatabase field is set. */ @java.lang.Override @@ -1787,18 +2090,25 @@ public boolean hasSourceDatabase() { return sourceDatabase_ != null; } /** + * + * *
    * The database engine type and provider of the source.
    * 
* * .google.cloud.clouddms.v1.DatabaseType source_database = 14; + * * @return The sourceDatabase. */ @java.lang.Override public com.google.cloud.clouddms.v1.DatabaseType getSourceDatabase() { - return sourceDatabase_ == null ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() : sourceDatabase_; + return sourceDatabase_ == null + ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() + : sourceDatabase_; } /** + * + * *
    * The database engine type and provider of the source.
    * 
@@ -1813,11 +2123,14 @@ public com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder getSourceDatabaseOrBui public static final int DESTINATION_DATABASE_FIELD_NUMBER = 15; private com.google.cloud.clouddms.v1.DatabaseType destinationDatabase_; /** + * + * *
    * The database engine type and provider of the destination.
    * 
* * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; + * * @return Whether the destinationDatabase field is set. */ @java.lang.Override @@ -1825,18 +2138,25 @@ public boolean hasDestinationDatabase() { return destinationDatabase_ != null; } /** + * + * *
    * The database engine type and provider of the destination.
    * 
* * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; + * * @return The destinationDatabase. */ @java.lang.Override public com.google.cloud.clouddms.v1.DatabaseType getDestinationDatabase() { - return destinationDatabase_ == null ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() : destinationDatabase_; + return destinationDatabase_ == null + ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() + : destinationDatabase_; } /** + * + * *
    * The database engine type and provider of the destination.
    * 
@@ -1851,11 +2171,15 @@ public com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder getDestinationDatabase public static final int END_TIME_FIELD_NUMBER = 16; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. If the migration job is completed, the time when it was completed.
    * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -1863,11 +2187,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. If the migration job is completed, the time when it was completed.
    * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -1875,11 +2203,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. If the migration job is completed, the time when it was completed.
    * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -1887,6 +2218,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1898,8 +2230,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1909,12 +2240,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (!getDisplayNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } @@ -1973,37 +2300,32 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } if (!getDisplayNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } if (state_ != com.google.cloud.clouddms.v1.MigrationJob.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); } if (phase_ != com.google.cloud.clouddms.v1.MigrationJob.Phase.PHASE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, phase_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, phase_); } if (type_ != com.google.cloud.clouddms.v1.MigrationJob.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, type_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, type_); } if (!getDumpPathBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, dumpPath_); @@ -2015,36 +2337,35 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, destination_); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getDuration()); } if (error_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getError()); } if (sourceDatabase_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getSourceDatabase()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getSourceDatabase()); } if (destinationDatabase_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getDestinationDatabase()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(15, getDestinationDatabase()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getEndTime()); } if (connectivityCase_ == 101) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(101, (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_); } if (connectivityCase_ == 102) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(102, (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_); } if (connectivityCase_ == 103) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(103, (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 103, (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2054,76 +2375,61 @@ 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.clouddms.v1.MigrationJob)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.MigrationJob other = (com.google.cloud.clouddms.v1.MigrationJob) obj; + com.google.cloud.clouddms.v1.MigrationJob other = + (com.google.cloud.clouddms.v1.MigrationJob) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) 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 (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (state_ != other.state_) return false; if (phase_ != other.phase_) return false; if (type_ != other.type_) return false; - if (!getDumpPath() - .equals(other.getDumpPath())) return false; - if (!getSource() - .equals(other.getSource())) return false; - if (!getDestination() - .equals(other.getDestination())) return false; + if (!getDumpPath().equals(other.getDumpPath())) return false; + if (!getSource().equals(other.getSource())) return false; + if (!getDestination().equals(other.getDestination())) return false; if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { - if (!getDuration() - .equals(other.getDuration())) return false; + if (!getDuration().equals(other.getDuration())) return false; } if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError() - .equals(other.getError())) return false; + if (!getError().equals(other.getError())) return false; } if (hasSourceDatabase() != other.hasSourceDatabase()) return false; if (hasSourceDatabase()) { - if (!getSourceDatabase() - .equals(other.getSourceDatabase())) return false; + if (!getSourceDatabase().equals(other.getSourceDatabase())) return false; } if (hasDestinationDatabase() != other.hasDestinationDatabase()) return false; if (hasDestinationDatabase()) { - if (!getDestinationDatabase() - .equals(other.getDestinationDatabase())) return false; + if (!getDestinationDatabase().equals(other.getDestinationDatabase())) 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 (!getConnectivityCase().equals(other.getConnectivityCase())) return false; switch (connectivityCase_) { case 101: - if (!getReverseSshConnectivity() - .equals(other.getReverseSshConnectivity())) return false; + if (!getReverseSshConnectivity().equals(other.getReverseSshConnectivity())) return false; break; case 102: - if (!getVpcPeeringConnectivity() - .equals(other.getVpcPeeringConnectivity())) return false; + if (!getVpcPeeringConnectivity().equals(other.getVpcPeeringConnectivity())) return false; break; case 103: - if (!getStaticIpConnectivity() - .equals(other.getStaticIpConnectivity())) return false; + if (!getStaticIpConnectivity().equals(other.getStaticIpConnectivity())) return false; break; case 0: default: @@ -2208,140 +2514,147 @@ public int hashCode() { return hash; } - public static com.google.cloud.clouddms.v1.MigrationJob parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.clouddms.v1.MigrationJob parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.MigrationJob 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.clouddms.v1.MigrationJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.MigrationJob 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.clouddms.v1.MigrationJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.MigrationJob 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.clouddms.v1.MigrationJob parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.MigrationJob 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.clouddms.v1.MigrationJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.MigrationJob parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.MigrationJob 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.clouddms.v1.MigrationJob 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.clouddms.v1.MigrationJob 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.clouddms.v1.MigrationJob 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 Database Migration Service migration job object.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.MigrationJob} */ - 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.clouddms.v1.MigrationJob) com.google.cloud.clouddms.v1.MigrationJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 4: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MigrationJob_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.MigrationJob.class, com.google.cloud.clouddms.v1.MigrationJob.Builder.class); + com.google.cloud.clouddms.v1.MigrationJob.class, + com.google.cloud.clouddms.v1.MigrationJob.Builder.class); } // Construct using com.google.cloud.clouddms.v1.MigrationJob.newBuilder() @@ -2349,16 +2662,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -2427,9 +2739,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor; } @java.lang.Override @@ -2448,7 +2760,8 @@ public com.google.cloud.clouddms.v1.MigrationJob build() { @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJob buildPartial() { - com.google.cloud.clouddms.v1.MigrationJob result = new com.google.cloud.clouddms.v1.MigrationJob(this); + com.google.cloud.clouddms.v1.MigrationJob result = + new com.google.cloud.clouddms.v1.MigrationJob(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (createTimeBuilder_ == null) { @@ -2525,38 +2838,39 @@ public com.google.cloud.clouddms.v1.MigrationJob 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.clouddms.v1.MigrationJob) { - return mergeFrom((com.google.cloud.clouddms.v1.MigrationJob)other); + return mergeFrom((com.google.cloud.clouddms.v1.MigrationJob) other); } else { super.mergeFrom(other); return this; @@ -2575,8 +2889,7 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.MigrationJob other) { if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; onChanged(); @@ -2618,21 +2931,25 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.MigrationJob other) { mergeEndTime(other.getEndTime()); } switch (other.getConnectivityCase()) { - case REVERSE_SSH_CONNECTIVITY: { - mergeReverseSshConnectivity(other.getReverseSshConnectivity()); - break; - } - case VPC_PEERING_CONNECTIVITY: { - mergeVpcPeeringConnectivity(other.getVpcPeeringConnectivity()); - break; - } - case STATIC_IP_CONNECTIVITY: { - mergeStaticIpConnectivity(other.getStaticIpConnectivity()); - break; - } - case CONNECTIVITY_NOT_SET: { - break; - } + case REVERSE_SSH_CONNECTIVITY: + { + mergeReverseSshConnectivity(other.getReverseSshConnectivity()); + break; + } + case VPC_PEERING_CONNECTIVITY: + { + mergeVpcPeeringConnectivity(other.getVpcPeeringConnectivity()); + break; + } + case STATIC_IP_CONNECTIVITY: + { + mergeStaticIpConnectivity(other.getStaticIpConnectivity()); + break; + } + case CONNECTIVITY_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -2662,12 +2979,12 @@ public Builder mergeFrom( } return this; } + private int connectivityCase_ = 0; private java.lang.Object connectivity_; - public ConnectivityCase - getConnectivityCase() { - return ConnectivityCase.forNumber( - connectivityCase_); + + public ConnectivityCase getConnectivityCase() { + return ConnectivityCase.forNumber(connectivityCase_); } public Builder clearConnectivity() { @@ -2681,19 +2998,21 @@ public Builder clearConnectivity() { private java.lang.Object name_ = ""; /** + * + * *
      * The name (URI) of this migration job resource, in the form of:
      * projects/{project}/locations/{location}/instances/{instance}.
      * 
* * 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; @@ -2702,21 +3021,22 @@ public java.lang.String getName() { } } /** + * + * *
      * The name (URI) of this migration job resource, in the form of:
      * projects/{project}/locations/{location}/instances/{instance}.
      * 
* * 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 { @@ -2724,57 +3044,64 @@ public java.lang.String getName() { } } /** + * + * *
      * The name (URI) of this migration job resource, in the form of:
      * projects/{project}/locations/{location}/instances/{instance}.
      * 
* * 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 (URI) of this migration job resource, in the form of:
      * projects/{project}/locations/{location}/instances/{instance}.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The name (URI) of this migration job resource, in the form of:
      * projects/{project}/locations/{location}/instances/{instance}.
      * 
* * 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; @@ -2782,45 +3109,64 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The timestamp when the migration job resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The timestamp when the migration job resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The timestamp when the migration job resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2836,16 +3182,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when the migration job resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2856,19 +3205,23 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The timestamp when the migration job resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2880,13 +3233,17 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when the migration job resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2900,54 +3257,70 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The timestamp when the migration job resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp when the migration job resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The timestamp when the migration job resource was created.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2955,45 +3328,64 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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. The timestamp when the migration job resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. The timestamp when the migration job resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.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. The timestamp when the migration job resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3009,16 +3401,19 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when the migration job resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.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(); @@ -3029,19 +3424,23 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The timestamp when the migration job resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.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; } @@ -3053,13 +3452,17 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when the migration job resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -3073,75 +3476,90 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The timestamp when the migration job resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp when the migration job resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.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. The timestamp when the migration job resource was last updated.
      * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
      * Example: "2014-10-02T15:01:23.045123456Z".
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.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_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3153,6 +3571,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * The resource labels for migration job to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -3162,22 +3582,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4;
      */
-
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * The resource labels for migration job to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -3188,11 +3608,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * The resource labels for migration job to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -3203,16 +3624,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * The resource labels for migration job to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -3223,12 +3645,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -3236,11 +3657,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * The resource labels for migration job to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -3250,23 +3672,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * The resource labels for migration job to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -3276,16 +3696,19 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 4;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * The resource labels for migration job to use to annotate any related
      * underlying resources such as Compute Engine VMs. An object containing a
@@ -3295,28 +3718,27 @@ public Builder putLabels(
      *
      * map<string, string> labels = 4;
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       return this;
     }
 
     private java.lang.Object displayName_ = "";
     /**
+     *
+     *
      * 
      * The migration job display name.
      * 
* * string display_name = 5; + * * @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; @@ -3325,20 +3747,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The migration job display name.
      * 
* * string display_name = 5; + * * @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 { @@ -3346,54 +3769,61 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The migration job display name.
      * 
* * string display_name = 5; + * * @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; } /** + * + * *
      * The migration job display name.
      * 
* * string display_name = 5; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * The migration job display name.
      * 
* * string display_name = 5; + * * @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; @@ -3401,51 +3831,65 @@ public Builder setDisplayNameBytes( private int state_ = 0; /** + * + * *
      * The current migration job state.
      * 
* * .google.cloud.clouddms.v1.MigrationJob.State state = 6; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The current migration job state.
      * 
* * .google.cloud.clouddms.v1.MigrationJob.State state = 6; + * * @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; } /** + * + * *
      * The current migration job state.
      * 
* * .google.cloud.clouddms.v1.MigrationJob.State state = 6; + * * @return The state. */ @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJob.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.MigrationJob.State result = com.google.cloud.clouddms.v1.MigrationJob.State.valueOf(state_); + com.google.cloud.clouddms.v1.MigrationJob.State result = + com.google.cloud.clouddms.v1.MigrationJob.State.valueOf(state_); return result == null ? com.google.cloud.clouddms.v1.MigrationJob.State.UNRECOGNIZED : result; } /** + * + * *
      * The current migration job state.
      * 
* * .google.cloud.clouddms.v1.MigrationJob.State state = 6; + * * @param value The state to set. * @return This builder for chaining. */ @@ -3453,21 +3897,24 @@ public Builder setState(com.google.cloud.clouddms.v1.MigrationJob.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The current migration job state.
      * 
* * .google.cloud.clouddms.v1.MigrationJob.State state = 6; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -3475,51 +3922,73 @@ public Builder clearState() { private int phase_ = 0; /** + * + * *
      * Output only. The current migration job phase.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for phase. */ - @java.lang.Override public int getPhaseValue() { + @java.lang.Override + public int getPhaseValue() { return phase_; } /** + * + * *
      * Output only. The current migration job phase.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for phase to set. * @return This builder for chaining. */ public Builder setPhaseValue(int value) { - + phase_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The current migration job phase.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The phase. */ @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJob.Phase getPhase() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.MigrationJob.Phase result = com.google.cloud.clouddms.v1.MigrationJob.Phase.valueOf(phase_); + com.google.cloud.clouddms.v1.MigrationJob.Phase result = + com.google.cloud.clouddms.v1.MigrationJob.Phase.valueOf(phase_); return result == null ? com.google.cloud.clouddms.v1.MigrationJob.Phase.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The current migration job phase.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The phase to set. * @return This builder for chaining. */ @@ -3527,21 +3996,26 @@ public Builder setPhase(com.google.cloud.clouddms.v1.MigrationJob.Phase value) { if (value == null) { throw new NullPointerException(); } - + phase_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The current migration job phase.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearPhase() { - + phase_ = 0; onChanged(); return this; @@ -3549,51 +4023,73 @@ public Builder clearPhase() { private int type_ = 0; /** + * + * *
      * Required. The migration job type.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Required. The migration job type.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * * @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; } /** + * + * *
      * Required. The migration job type.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The type. */ @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJob.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.MigrationJob.Type result = com.google.cloud.clouddms.v1.MigrationJob.Type.valueOf(type_); + com.google.cloud.clouddms.v1.MigrationJob.Type result = + com.google.cloud.clouddms.v1.MigrationJob.Type.valueOf(type_); return result == null ? com.google.cloud.clouddms.v1.MigrationJob.Type.UNRECOGNIZED : result; } /** + * + * *
      * Required. The migration job type.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The type to set. * @return This builder for chaining. */ @@ -3601,21 +4097,26 @@ public Builder setType(com.google.cloud.clouddms.v1.MigrationJob.Type value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. The migration job type.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -3623,19 +4124,21 @@ public Builder clearType() { private java.lang.Object dumpPath_ = ""; /** + * + * *
      * The path to the dump file in Google Cloud Storage,
      * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
      * 
* * string dump_path = 9; + * * @return The dumpPath. */ public java.lang.String getDumpPath() { java.lang.Object ref = dumpPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dumpPath_ = s; return s; @@ -3644,21 +4147,22 @@ public java.lang.String getDumpPath() { } } /** + * + * *
      * The path to the dump file in Google Cloud Storage,
      * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
      * 
* * string dump_path = 9; + * * @return The bytes for dumpPath. */ - public com.google.protobuf.ByteString - getDumpPathBytes() { + public com.google.protobuf.ByteString getDumpPathBytes() { java.lang.Object ref = dumpPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dumpPath_ = b; return b; } else { @@ -3666,57 +4170,64 @@ public java.lang.String getDumpPath() { } } /** + * + * *
      * The path to the dump file in Google Cloud Storage,
      * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
      * 
* * string dump_path = 9; + * * @param value The dumpPath to set. * @return This builder for chaining. */ - public Builder setDumpPath( - java.lang.String value) { + public Builder setDumpPath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dumpPath_ = value; onChanged(); return this; } /** + * + * *
      * The path to the dump file in Google Cloud Storage,
      * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
      * 
* * string dump_path = 9; + * * @return This builder for chaining. */ public Builder clearDumpPath() { - + dumpPath_ = getDefaultInstance().getDumpPath(); onChanged(); return this; } /** + * + * *
      * The path to the dump file in Google Cloud Storage,
      * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
      * 
* * string dump_path = 9; + * * @param value The bytes for dumpPath to set. * @return This builder for chaining. */ - public Builder setDumpPathBytes( - com.google.protobuf.ByteString value) { + public Builder setDumpPathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dumpPath_ = value; onChanged(); return this; @@ -3724,18 +4235,20 @@ public Builder setDumpPathBytes( private java.lang.Object source_ = ""; /** + * + * *
      * Required. The resource name (URI) of the source connection profile.
      * 
* * string source = 10 [(.google.api.field_behavior) = REQUIRED]; + * * @return The source. */ public java.lang.String getSource() { java.lang.Object ref = source_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); source_ = s; return s; @@ -3744,20 +4257,21 @@ public java.lang.String getSource() { } } /** + * + * *
      * Required. The resource name (URI) of the source connection profile.
      * 
* * string source = 10 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for source. */ - public com.google.protobuf.ByteString - getSourceBytes() { + public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); source_ = b; return b; } else { @@ -3765,54 +4279,61 @@ public java.lang.String getSource() { } } /** + * + * *
      * Required. The resource name (URI) of the source connection profile.
      * 
* * string source = 10 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The source to set. * @return This builder for chaining. */ - public Builder setSource( - java.lang.String value) { + public Builder setSource(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + source_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name (URI) of the source connection profile.
      * 
* * string source = 10 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSource() { - + source_ = getDefaultInstance().getSource(); onChanged(); return this; } /** + * + * *
      * Required. The resource name (URI) of the source connection profile.
      * 
* * string source = 10 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for source to set. * @return This builder for chaining. */ - public Builder setSourceBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + source_ = value; onChanged(); return this; @@ -3820,18 +4341,20 @@ public Builder setSourceBytes( private java.lang.Object destination_ = ""; /** + * + * *
      * Required. The resource name (URI) of the destination connection profile.
      * 
* * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return The destination. */ public java.lang.String getDestination() { java.lang.Object 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(); destination_ = s; return s; @@ -3840,20 +4363,21 @@ public java.lang.String getDestination() { } } /** + * + * *
      * Required. The resource name (URI) of the destination connection profile.
      * 
* * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for destination. */ - public com.google.protobuf.ByteString - getDestinationBytes() { + public com.google.protobuf.ByteString getDestinationBytes() { java.lang.Object 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); destination_ = b; return b; } else { @@ -3861,68 +4385,81 @@ public java.lang.String getDestination() { } } /** + * + * *
      * Required. The resource name (URI) of the destination connection profile.
      * 
* * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The destination to set. * @return This builder for chaining. */ - public Builder setDestination( - java.lang.String value) { + public Builder setDestination(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + destination_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name (URI) of the destination connection profile.
      * 
* * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDestination() { - + destination_ = getDefaultInstance().getDestination(); onChanged(); return this; } /** + * + * *
      * Required. The resource name (URI) of the destination connection profile.
      * 
* * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for destination to set. * @return This builder for chaining. */ - public Builder setDestinationBytes( - com.google.protobuf.ByteString value) { + public Builder setDestinationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destination_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.ReverseSshConnectivity, com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder, com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder> reverseSshConnectivityBuilder_; + com.google.cloud.clouddms.v1.ReverseSshConnectivity, + com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder, + com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder> + reverseSshConnectivityBuilder_; /** + * + * *
      * The details needed to communicate to the source over Reverse SSH
      * tunnel connectivity.
      * 
* * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; + * * @return Whether the reverseSshConnectivity field is set. */ @java.lang.Override @@ -3930,12 +4467,15 @@ public boolean hasReverseSshConnectivity() { return connectivityCase_ == 101; } /** + * + * *
      * The details needed to communicate to the source over Reverse SSH
      * tunnel connectivity.
      * 
* * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; + * * @return The reverseSshConnectivity. */ @java.lang.Override @@ -3953,6 +4493,8 @@ public com.google.cloud.clouddms.v1.ReverseSshConnectivity getReverseSshConnecti } } /** + * + * *
      * The details needed to communicate to the source over Reverse SSH
      * tunnel connectivity.
@@ -3960,7 +4502,8 @@ public com.google.cloud.clouddms.v1.ReverseSshConnectivity getReverseSshConnecti
      *
      * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101;
      */
-    public Builder setReverseSshConnectivity(com.google.cloud.clouddms.v1.ReverseSshConnectivity value) {
+    public Builder setReverseSshConnectivity(
+        com.google.cloud.clouddms.v1.ReverseSshConnectivity value) {
       if (reverseSshConnectivityBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3974,6 +4517,8 @@ public Builder setReverseSshConnectivity(com.google.cloud.clouddms.v1.ReverseSsh
       return this;
     }
     /**
+     *
+     *
      * 
      * The details needed to communicate to the source over Reverse SSH
      * tunnel connectivity.
@@ -3993,6 +4538,8 @@ public Builder setReverseSshConnectivity(
       return this;
     }
     /**
+     *
+     *
      * 
      * The details needed to communicate to the source over Reverse SSH
      * tunnel connectivity.
@@ -4000,12 +4547,17 @@ public Builder setReverseSshConnectivity(
      *
      * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101;
      */
-    public Builder mergeReverseSshConnectivity(com.google.cloud.clouddms.v1.ReverseSshConnectivity value) {
+    public Builder mergeReverseSshConnectivity(
+        com.google.cloud.clouddms.v1.ReverseSshConnectivity value) {
       if (reverseSshConnectivityBuilder_ == null) {
-        if (connectivityCase_ == 101 &&
-            connectivity_ != com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance()) {
-          connectivity_ = com.google.cloud.clouddms.v1.ReverseSshConnectivity.newBuilder((com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_)
-              .mergeFrom(value).buildPartial();
+        if (connectivityCase_ == 101
+            && connectivity_
+                != com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance()) {
+          connectivity_ =
+              com.google.cloud.clouddms.v1.ReverseSshConnectivity.newBuilder(
+                      (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           connectivity_ = value;
         }
@@ -4020,6 +4572,8 @@ public Builder mergeReverseSshConnectivity(com.google.cloud.clouddms.v1.ReverseS
       return this;
     }
     /**
+     *
+     *
      * 
      * The details needed to communicate to the source over Reverse SSH
      * tunnel connectivity.
@@ -4044,6 +4598,8 @@ public Builder clearReverseSshConnectivity() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The details needed to communicate to the source over Reverse SSH
      * tunnel connectivity.
@@ -4051,10 +4607,13 @@ public Builder clearReverseSshConnectivity() {
      *
      * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101;
      */
-    public com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder getReverseSshConnectivityBuilder() {
+    public com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder
+        getReverseSshConnectivityBuilder() {
       return getReverseSshConnectivityFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The details needed to communicate to the source over Reverse SSH
      * tunnel connectivity.
@@ -4063,7 +4622,8 @@ public com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder getReverseSsh
      * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101;
      */
     @java.lang.Override
-    public com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder getReverseSshConnectivityOrBuilder() {
+    public com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder
+        getReverseSshConnectivityOrBuilder() {
       if ((connectivityCase_ == 101) && (reverseSshConnectivityBuilder_ != null)) {
         return reverseSshConnectivityBuilder_.getMessageOrBuilder();
       } else {
@@ -4074,6 +4634,8 @@ public com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder getReverseSs
       }
     }
     /**
+     *
+     *
      * 
      * The details needed to communicate to the source over Reverse SSH
      * tunnel connectivity.
@@ -4082,32 +4644,44 @@ public com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder getReverseSs
      * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.clouddms.v1.ReverseSshConnectivity, com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder, com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder> 
+            com.google.cloud.clouddms.v1.ReverseSshConnectivity,
+            com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder,
+            com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder>
         getReverseSshConnectivityFieldBuilder() {
       if (reverseSshConnectivityBuilder_ == null) {
         if (!(connectivityCase_ == 101)) {
           connectivity_ = com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance();
         }
-        reverseSshConnectivityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.clouddms.v1.ReverseSshConnectivity, com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder, com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder>(
+        reverseSshConnectivityBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.clouddms.v1.ReverseSshConnectivity,
+                com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder,
+                com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder>(
                 (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_,
                 getParentForChildren(),
                 isClean());
         connectivity_ = null;
       }
       connectivityCase_ = 101;
-      onChanged();;
+      onChanged();
+      ;
       return reverseSshConnectivityBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.clouddms.v1.VpcPeeringConnectivity, com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder, com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder> vpcPeeringConnectivityBuilder_;
+            com.google.cloud.clouddms.v1.VpcPeeringConnectivity,
+            com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder,
+            com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder>
+        vpcPeeringConnectivityBuilder_;
     /**
+     *
+     *
      * 
      * The details of the VPC network that the source database is located in.
      * 
* * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; + * * @return Whether the vpcPeeringConnectivity field is set. */ @java.lang.Override @@ -4115,11 +4689,14 @@ public boolean hasVpcPeeringConnectivity() { return connectivityCase_ == 102; } /** + * + * *
      * The details of the VPC network that the source database is located in.
      * 
* * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; + * * @return The vpcPeeringConnectivity. */ @java.lang.Override @@ -4137,13 +4714,16 @@ public com.google.cloud.clouddms.v1.VpcPeeringConnectivity getVpcPeeringConnecti } } /** + * + * *
      * The details of the VPC network that the source database is located in.
      * 
* * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; */ - public Builder setVpcPeeringConnectivity(com.google.cloud.clouddms.v1.VpcPeeringConnectivity value) { + public Builder setVpcPeeringConnectivity( + com.google.cloud.clouddms.v1.VpcPeeringConnectivity value) { if (vpcPeeringConnectivityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4157,6 +4737,8 @@ public Builder setVpcPeeringConnectivity(com.google.cloud.clouddms.v1.VpcPeering return this; } /** + * + * *
      * The details of the VPC network that the source database is located in.
      * 
@@ -4175,18 +4757,25 @@ public Builder setVpcPeeringConnectivity( return this; } /** + * + * *
      * The details of the VPC network that the source database is located in.
      * 
* * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; */ - public Builder mergeVpcPeeringConnectivity(com.google.cloud.clouddms.v1.VpcPeeringConnectivity value) { + public Builder mergeVpcPeeringConnectivity( + com.google.cloud.clouddms.v1.VpcPeeringConnectivity value) { if (vpcPeeringConnectivityBuilder_ == null) { - if (connectivityCase_ == 102 && - connectivity_ != com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance()) { - connectivity_ = com.google.cloud.clouddms.v1.VpcPeeringConnectivity.newBuilder((com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_) - .mergeFrom(value).buildPartial(); + if (connectivityCase_ == 102 + && connectivity_ + != com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance()) { + connectivity_ = + com.google.cloud.clouddms.v1.VpcPeeringConnectivity.newBuilder( + (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_) + .mergeFrom(value) + .buildPartial(); } else { connectivity_ = value; } @@ -4201,6 +4790,8 @@ public Builder mergeVpcPeeringConnectivity(com.google.cloud.clouddms.v1.VpcPeeri return this; } /** + * + * *
      * The details of the VPC network that the source database is located in.
      * 
@@ -4224,16 +4815,21 @@ public Builder clearVpcPeeringConnectivity() { return this; } /** + * + * *
      * The details of the VPC network that the source database is located in.
      * 
* * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; */ - public com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder getVpcPeeringConnectivityBuilder() { + public com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder + getVpcPeeringConnectivityBuilder() { return getVpcPeeringConnectivityFieldBuilder().getBuilder(); } /** + * + * *
      * The details of the VPC network that the source database is located in.
      * 
@@ -4241,7 +4837,8 @@ public com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder getVpcPeering * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; */ @java.lang.Override - public com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder getVpcPeeringConnectivityOrBuilder() { + public com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder + getVpcPeeringConnectivityOrBuilder() { if ((connectivityCase_ == 102) && (vpcPeeringConnectivityBuilder_ != null)) { return vpcPeeringConnectivityBuilder_.getMessageOrBuilder(); } else { @@ -4252,6 +4849,8 @@ public com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder getVpcPeerin } } /** + * + * *
      * The details of the VPC network that the source database is located in.
      * 
@@ -4259,32 +4858,44 @@ public com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder getVpcPeerin * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.VpcPeeringConnectivity, com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder, com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder> + com.google.cloud.clouddms.v1.VpcPeeringConnectivity, + com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder, + com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder> getVpcPeeringConnectivityFieldBuilder() { if (vpcPeeringConnectivityBuilder_ == null) { if (!(connectivityCase_ == 102)) { connectivity_ = com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance(); } - vpcPeeringConnectivityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.VpcPeeringConnectivity, com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder, com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder>( + vpcPeeringConnectivityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.VpcPeeringConnectivity, + com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder, + com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder>( (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_, getParentForChildren(), isClean()); connectivity_ = null; } connectivityCase_ = 102; - onChanged();; + onChanged(); + ; return vpcPeeringConnectivityBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.StaticIpConnectivity, com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder, com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder> staticIpConnectivityBuilder_; + com.google.cloud.clouddms.v1.StaticIpConnectivity, + com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder, + com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder> + staticIpConnectivityBuilder_; /** + * + * *
      * static ip connectivity data (default, no additional details needed).
      * 
* * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; + * * @return Whether the staticIpConnectivity field is set. */ @java.lang.Override @@ -4292,11 +4903,14 @@ public boolean hasStaticIpConnectivity() { return connectivityCase_ == 103; } /** + * + * *
      * static ip connectivity data (default, no additional details needed).
      * 
* * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; + * * @return The staticIpConnectivity. */ @java.lang.Override @@ -4314,13 +4928,16 @@ public com.google.cloud.clouddms.v1.StaticIpConnectivity getStaticIpConnectivity } } /** + * + * *
      * static ip connectivity data (default, no additional details needed).
      * 
* * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; */ - public Builder setStaticIpConnectivity(com.google.cloud.clouddms.v1.StaticIpConnectivity value) { + public Builder setStaticIpConnectivity( + com.google.cloud.clouddms.v1.StaticIpConnectivity value) { if (staticIpConnectivityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4334,6 +4951,8 @@ public Builder setStaticIpConnectivity(com.google.cloud.clouddms.v1.StaticIpConn return this; } /** + * + * *
      * static ip connectivity data (default, no additional details needed).
      * 
@@ -4352,18 +4971,25 @@ public Builder setStaticIpConnectivity( return this; } /** + * + * *
      * static ip connectivity data (default, no additional details needed).
      * 
* * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; */ - public Builder mergeStaticIpConnectivity(com.google.cloud.clouddms.v1.StaticIpConnectivity value) { + public Builder mergeStaticIpConnectivity( + com.google.cloud.clouddms.v1.StaticIpConnectivity value) { if (staticIpConnectivityBuilder_ == null) { - if (connectivityCase_ == 103 && - connectivity_ != com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance()) { - connectivity_ = com.google.cloud.clouddms.v1.StaticIpConnectivity.newBuilder((com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_) - .mergeFrom(value).buildPartial(); + if (connectivityCase_ == 103 + && connectivity_ + != com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance()) { + connectivity_ = + com.google.cloud.clouddms.v1.StaticIpConnectivity.newBuilder( + (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_) + .mergeFrom(value) + .buildPartial(); } else { connectivity_ = value; } @@ -4378,6 +5004,8 @@ public Builder mergeStaticIpConnectivity(com.google.cloud.clouddms.v1.StaticIpCo return this; } /** + * + * *
      * static ip connectivity data (default, no additional details needed).
      * 
@@ -4401,16 +5029,21 @@ public Builder clearStaticIpConnectivity() { return this; } /** + * + * *
      * static ip connectivity data (default, no additional details needed).
      * 
* * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; */ - public com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder getStaticIpConnectivityBuilder() { + public com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder + getStaticIpConnectivityBuilder() { return getStaticIpConnectivityFieldBuilder().getBuilder(); } /** + * + * *
      * static ip connectivity data (default, no additional details needed).
      * 
@@ -4418,7 +5051,8 @@ public com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder getStaticIpConn * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; */ @java.lang.Override - public com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder getStaticIpConnectivityOrBuilder() { + public com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder + getStaticIpConnectivityOrBuilder() { if ((connectivityCase_ == 103) && (staticIpConnectivityBuilder_ != null)) { return staticIpConnectivityBuilder_.getMessageOrBuilder(); } else { @@ -4429,6 +5063,8 @@ public com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder getStaticIpCon } } /** + * + * *
      * static ip connectivity data (default, no additional details needed).
      * 
@@ -4436,46 +5072,63 @@ public com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder getStaticIpCon * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.StaticIpConnectivity, com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder, com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder> + com.google.cloud.clouddms.v1.StaticIpConnectivity, + com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder, + com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder> getStaticIpConnectivityFieldBuilder() { if (staticIpConnectivityBuilder_ == null) { if (!(connectivityCase_ == 103)) { connectivity_ = com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance(); } - staticIpConnectivityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.StaticIpConnectivity, com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder, com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder>( + staticIpConnectivityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.StaticIpConnectivity, + com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder, + com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder>( (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_, getParentForChildren(), isClean()); connectivity_ = null; } connectivityCase_ = 103; - onChanged();; + onChanged(); + ; return staticIpConnectivityBuilder_; } private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + durationBuilder_; /** + * + * *
      * Output only. The duration of the migration job (in seconds). A duration in seconds
      * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the duration field is set. */ public boolean hasDuration() { return durationBuilder_ != null || duration_ != null; } /** + * + * *
      * Output only. The duration of the migration job (in seconds). A duration in seconds
      * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -4486,12 +5139,15 @@ public com.google.protobuf.Duration getDuration() { } } /** + * + * *
      * Output only. The duration of the migration job (in seconds). A duration in seconds
      * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { @@ -4507,15 +5163,17 @@ public Builder setDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Output only. The duration of the migration job (in seconds). A duration in seconds
      * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); onChanged(); @@ -4526,18 +5184,21 @@ public Builder setDuration( return this; } /** + * + * *
      * Output only. The duration of the migration job (in seconds). A duration in seconds
      * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (duration_ != null) { duration_ = - com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); } else { duration_ = value; } @@ -4549,12 +5210,15 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Output only. The duration of the migration job (in seconds). A duration in seconds
      * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDuration() { if (durationBuilder_ == null) { @@ -4568,51 +5232,62 @@ public Builder clearDuration() { return this; } /** + * + * *
      * Output only. The duration of the migration job (in seconds). A duration in seconds
      * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Duration.Builder getDurationBuilder() { - + onChanged(); return getDurationFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The duration of the migration job (in seconds). A duration in seconds
      * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { - return duration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : duration_; + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** + * + * *
      * Output only. The duration of the migration job (in seconds). A duration in seconds
      * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getDurationFieldBuilder() { if (durationBuilder_ == null) { - durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDuration(), - getParentForChildren(), - isClean()); + durationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDuration(), getParentForChildren(), isClean()); duration_ = null; } return durationBuilder_; @@ -4620,24 +5295,31 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; /** + * + * *
      * Output only. The error details in case of state FAILED.
      * 
* * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** + * + * *
      * Output only. The error details in case of state FAILED.
      * 
* * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The error. */ public com.google.rpc.Status getError() { @@ -4648,6 +5330,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
      * Output only. The error details in case of state FAILED.
      * 
@@ -4668,14 +5352,15 @@ public Builder setError(com.google.rpc.Status value) { return this; } /** + * + * *
      * Output only. The error details in case of state FAILED.
      * 
* * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setError( - com.google.rpc.Status.Builder builderForValue) { + public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); @@ -4686,6 +5371,8 @@ public Builder setError( return this; } /** + * + * *
      * Output only. The error details in case of state FAILED.
      * 
@@ -4695,8 +5382,7 @@ public Builder setError( public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { if (error_ != null) { - error_ = - com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } @@ -4708,6 +5394,8 @@ public Builder mergeError(com.google.rpc.Status value) { return this; } /** + * + * *
      * Output only. The error details in case of state FAILED.
      * 
@@ -4726,6 +5414,8 @@ public Builder clearError() { return this; } /** + * + * *
      * Output only. The error details in case of state FAILED.
      * 
@@ -4733,11 +5423,13 @@ public Builder clearError() { * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - + onChanged(); return getErrorFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The error details in case of state FAILED.
      * 
@@ -4748,11 +5440,12 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { - return error_ == null ? - com.google.rpc.Status.getDefaultInstance() : error_; + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } } /** + * + * *
      * Output only. The error details in case of state FAILED.
      * 
@@ -4760,14 +5453,14 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getErrorFieldBuilder() { if (errorBuilder_ == null) { - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - getError(), - getParentForChildren(), - isClean()); + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; @@ -4775,34 +5468,47 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { private com.google.cloud.clouddms.v1.DatabaseType sourceDatabase_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.DatabaseType, com.google.cloud.clouddms.v1.DatabaseType.Builder, com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder> sourceDatabaseBuilder_; + com.google.cloud.clouddms.v1.DatabaseType, + com.google.cloud.clouddms.v1.DatabaseType.Builder, + com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder> + sourceDatabaseBuilder_; /** + * + * *
      * The database engine type and provider of the source.
      * 
* * .google.cloud.clouddms.v1.DatabaseType source_database = 14; + * * @return Whether the sourceDatabase field is set. */ public boolean hasSourceDatabase() { return sourceDatabaseBuilder_ != null || sourceDatabase_ != null; } /** + * + * *
      * The database engine type and provider of the source.
      * 
* * .google.cloud.clouddms.v1.DatabaseType source_database = 14; + * * @return The sourceDatabase. */ public com.google.cloud.clouddms.v1.DatabaseType getSourceDatabase() { if (sourceDatabaseBuilder_ == null) { - return sourceDatabase_ == null ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() : sourceDatabase_; + return sourceDatabase_ == null + ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() + : sourceDatabase_; } else { return sourceDatabaseBuilder_.getMessage(); } } /** + * + * *
      * The database engine type and provider of the source.
      * 
@@ -4823,6 +5529,8 @@ public Builder setSourceDatabase(com.google.cloud.clouddms.v1.DatabaseType value return this; } /** + * + * *
      * The database engine type and provider of the source.
      * 
@@ -4841,6 +5549,8 @@ public Builder setSourceDatabase( return this; } /** + * + * *
      * The database engine type and provider of the source.
      * 
@@ -4851,7 +5561,9 @@ public Builder mergeSourceDatabase(com.google.cloud.clouddms.v1.DatabaseType val if (sourceDatabaseBuilder_ == null) { if (sourceDatabase_ != null) { sourceDatabase_ = - com.google.cloud.clouddms.v1.DatabaseType.newBuilder(sourceDatabase_).mergeFrom(value).buildPartial(); + com.google.cloud.clouddms.v1.DatabaseType.newBuilder(sourceDatabase_) + .mergeFrom(value) + .buildPartial(); } else { sourceDatabase_ = value; } @@ -4863,6 +5575,8 @@ public Builder mergeSourceDatabase(com.google.cloud.clouddms.v1.DatabaseType val return this; } /** + * + * *
      * The database engine type and provider of the source.
      * 
@@ -4881,6 +5595,8 @@ public Builder clearSourceDatabase() { return this; } /** + * + * *
      * The database engine type and provider of the source.
      * 
@@ -4888,11 +5604,13 @@ public Builder clearSourceDatabase() { * .google.cloud.clouddms.v1.DatabaseType source_database = 14; */ public com.google.cloud.clouddms.v1.DatabaseType.Builder getSourceDatabaseBuilder() { - + onChanged(); return getSourceDatabaseFieldBuilder().getBuilder(); } /** + * + * *
      * The database engine type and provider of the source.
      * 
@@ -4903,11 +5621,14 @@ public com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder getSourceDatabaseOrBui if (sourceDatabaseBuilder_ != null) { return sourceDatabaseBuilder_.getMessageOrBuilder(); } else { - return sourceDatabase_ == null ? - com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() : sourceDatabase_; + return sourceDatabase_ == null + ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() + : sourceDatabase_; } } /** + * + * *
      * The database engine type and provider of the source.
      * 
@@ -4915,14 +5636,17 @@ public com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder getSourceDatabaseOrBui * .google.cloud.clouddms.v1.DatabaseType source_database = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.DatabaseType, com.google.cloud.clouddms.v1.DatabaseType.Builder, com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder> + com.google.cloud.clouddms.v1.DatabaseType, + com.google.cloud.clouddms.v1.DatabaseType.Builder, + com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder> getSourceDatabaseFieldBuilder() { if (sourceDatabaseBuilder_ == null) { - sourceDatabaseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.DatabaseType, com.google.cloud.clouddms.v1.DatabaseType.Builder, com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder>( - getSourceDatabase(), - getParentForChildren(), - isClean()); + sourceDatabaseBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.DatabaseType, + com.google.cloud.clouddms.v1.DatabaseType.Builder, + com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder>( + getSourceDatabase(), getParentForChildren(), isClean()); sourceDatabase_ = null; } return sourceDatabaseBuilder_; @@ -4930,34 +5654,47 @@ public com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder getSourceDatabaseOrBui private com.google.cloud.clouddms.v1.DatabaseType destinationDatabase_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.DatabaseType, com.google.cloud.clouddms.v1.DatabaseType.Builder, com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder> destinationDatabaseBuilder_; + com.google.cloud.clouddms.v1.DatabaseType, + com.google.cloud.clouddms.v1.DatabaseType.Builder, + com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder> + destinationDatabaseBuilder_; /** + * + * *
      * The database engine type and provider of the destination.
      * 
* * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; + * * @return Whether the destinationDatabase field is set. */ public boolean hasDestinationDatabase() { return destinationDatabaseBuilder_ != null || destinationDatabase_ != null; } /** + * + * *
      * The database engine type and provider of the destination.
      * 
* * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; + * * @return The destinationDatabase. */ public com.google.cloud.clouddms.v1.DatabaseType getDestinationDatabase() { if (destinationDatabaseBuilder_ == null) { - return destinationDatabase_ == null ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() : destinationDatabase_; + return destinationDatabase_ == null + ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() + : destinationDatabase_; } else { return destinationDatabaseBuilder_.getMessage(); } } /** + * + * *
      * The database engine type and provider of the destination.
      * 
@@ -4978,6 +5715,8 @@ public Builder setDestinationDatabase(com.google.cloud.clouddms.v1.DatabaseType return this; } /** + * + * *
      * The database engine type and provider of the destination.
      * 
@@ -4996,6 +5735,8 @@ public Builder setDestinationDatabase( return this; } /** + * + * *
      * The database engine type and provider of the destination.
      * 
@@ -5006,7 +5747,9 @@ public Builder mergeDestinationDatabase(com.google.cloud.clouddms.v1.DatabaseTyp if (destinationDatabaseBuilder_ == null) { if (destinationDatabase_ != null) { destinationDatabase_ = - com.google.cloud.clouddms.v1.DatabaseType.newBuilder(destinationDatabase_).mergeFrom(value).buildPartial(); + com.google.cloud.clouddms.v1.DatabaseType.newBuilder(destinationDatabase_) + .mergeFrom(value) + .buildPartial(); } else { destinationDatabase_ = value; } @@ -5018,6 +5761,8 @@ public Builder mergeDestinationDatabase(com.google.cloud.clouddms.v1.DatabaseTyp return this; } /** + * + * *
      * The database engine type and provider of the destination.
      * 
@@ -5036,6 +5781,8 @@ public Builder clearDestinationDatabase() { return this; } /** + * + * *
      * The database engine type and provider of the destination.
      * 
@@ -5043,11 +5790,13 @@ public Builder clearDestinationDatabase() { * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; */ public com.google.cloud.clouddms.v1.DatabaseType.Builder getDestinationDatabaseBuilder() { - + onChanged(); return getDestinationDatabaseFieldBuilder().getBuilder(); } /** + * + * *
      * The database engine type and provider of the destination.
      * 
@@ -5058,11 +5807,14 @@ public com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder getDestinationDatabase if (destinationDatabaseBuilder_ != null) { return destinationDatabaseBuilder_.getMessageOrBuilder(); } else { - return destinationDatabase_ == null ? - com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() : destinationDatabase_; + return destinationDatabase_ == null + ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() + : destinationDatabase_; } } /** + * + * *
      * The database engine type and provider of the destination.
      * 
@@ -5070,14 +5822,17 @@ public com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder getDestinationDatabase * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.DatabaseType, com.google.cloud.clouddms.v1.DatabaseType.Builder, com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder> + com.google.cloud.clouddms.v1.DatabaseType, + com.google.cloud.clouddms.v1.DatabaseType.Builder, + com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder> getDestinationDatabaseFieldBuilder() { if (destinationDatabaseBuilder_ == null) { - destinationDatabaseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.DatabaseType, com.google.cloud.clouddms.v1.DatabaseType.Builder, com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder>( - getDestinationDatabase(), - getParentForChildren(), - isClean()); + destinationDatabaseBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.DatabaseType, + com.google.cloud.clouddms.v1.DatabaseType.Builder, + com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder>( + getDestinationDatabase(), getParentForChildren(), isClean()); destinationDatabase_ = null; } return destinationDatabaseBuilder_; @@ -5085,24 +5840,35 @@ public com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder getDestinationDatabase 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. If the migration job is completed, the time when it was completed.
      * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * Output only. If the migration job is completed, the time when it was completed.
      * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -5113,11 +5879,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. If the migration job is completed, the time when it was completed.
      * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -5133,14 +5902,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. If the migration job is completed, the time when it was completed.
      * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 16 [(.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(); @@ -5151,17 +5922,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. If the migration job is completed, the time when it was completed.
      * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 16 [(.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; } @@ -5173,11 +5947,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. If the migration job is completed, the time when it was completed.
      * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -5191,55 +5968,66 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. If the migration job is completed, the time when it was completed.
      * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. If the migration job is completed, the time when it was completed.
      * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 16 [(.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. If the migration job is completed, the time when it was completed.
      * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 16 [(.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_; } + @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); } @@ -5249,12 +6037,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.MigrationJob) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.MigrationJob) private static final com.google.cloud.clouddms.v1.MigrationJob DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.MigrationJob(); } @@ -5263,16 +6051,16 @@ public static com.google.cloud.clouddms.v1.MigrationJob getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MigrationJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MigrationJob(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MigrationJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MigrationJob(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5287,6 +6075,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.MigrationJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobName.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobName.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobOrBuilder.java similarity index 83% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobOrBuilder.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobOrBuilder.java index 505ed9b6..a376a31d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobOrBuilder.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobOrBuilder.java @@ -1,101 +1,146 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; -public interface MigrationJobOrBuilder extends +public interface MigrationJobOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.MigrationJob) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name (URI) of this migration job resource, in the form of:
    * projects/{project}/locations/{location}/instances/{instance}.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name (URI) of this migration job resource, in the form of:
    * projects/{project}/locations/{location}/instances/{instance}.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. The timestamp when the migration job resource was created.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The timestamp when the migration job resource was created.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The timestamp when the migration job resource was created.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The timestamp when the migration job resource was last updated.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The timestamp when the migration job resource was last updated.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The timestamp when the migration job resource was last updated.
    * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * The resource labels for migration job to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -107,6 +152,8 @@ public interface MigrationJobOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * The resource labels for migration job to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -116,15 +163,13 @@ public interface MigrationJobOrBuilder extends
    *
    * map<string, string> labels = 4;
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * The resource labels for migration job to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -134,9 +179,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * The resource labels for migration job to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -146,11 +192,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 4;
    */
-
-  java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * The resource labels for migration job to use to annotate any related
    * underlying resources such as Compute Engine VMs. An object containing a
@@ -160,170 +205,222 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4;
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * The migration job display name.
    * 
* * string display_name = 5; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * The migration job display name.
    * 
* * string display_name = 5; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * The current migration job state.
    * 
* * .google.cloud.clouddms.v1.MigrationJob.State state = 6; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The current migration job state.
    * 
* * .google.cloud.clouddms.v1.MigrationJob.State state = 6; + * * @return The state. */ com.google.cloud.clouddms.v1.MigrationJob.State getState(); /** + * + * *
    * Output only. The current migration job phase.
    * 
* - * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for phase. */ int getPhaseValue(); /** + * + * *
    * Output only. The current migration job phase.
    * 
* - * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The phase. */ com.google.cloud.clouddms.v1.MigrationJob.Phase getPhase(); /** + * + * *
    * Required. The migration job type.
    * 
* - * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * Required. The migration job type.
    * 
* - * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The type. */ com.google.cloud.clouddms.v1.MigrationJob.Type getType(); /** + * + * *
    * The path to the dump file in Google Cloud Storage,
    * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
    * 
* * string dump_path = 9; + * * @return The dumpPath. */ java.lang.String getDumpPath(); /** + * + * *
    * The path to the dump file in Google Cloud Storage,
    * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
    * 
* * string dump_path = 9; + * * @return The bytes for dumpPath. */ - com.google.protobuf.ByteString - getDumpPathBytes(); + com.google.protobuf.ByteString getDumpPathBytes(); /** + * + * *
    * Required. The resource name (URI) of the source connection profile.
    * 
* * string source = 10 [(.google.api.field_behavior) = REQUIRED]; + * * @return The source. */ java.lang.String getSource(); /** + * + * *
    * Required. The resource name (URI) of the source connection profile.
    * 
* * string source = 10 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for source. */ - com.google.protobuf.ByteString - getSourceBytes(); + com.google.protobuf.ByteString getSourceBytes(); /** + * + * *
    * Required. The resource name (URI) of the destination connection profile.
    * 
* * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return The destination. */ java.lang.String getDestination(); /** + * + * *
    * Required. The resource name (URI) of the destination connection profile.
    * 
* * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for destination. */ - com.google.protobuf.ByteString - getDestinationBytes(); + com.google.protobuf.ByteString getDestinationBytes(); /** + * + * *
    * The details needed to communicate to the source over Reverse SSH
    * tunnel connectivity.
    * 
* * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; + * * @return Whether the reverseSshConnectivity field is set. */ boolean hasReverseSshConnectivity(); /** + * + * *
    * The details needed to communicate to the source over Reverse SSH
    * tunnel connectivity.
    * 
* * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; + * * @return The reverseSshConnectivity. */ com.google.cloud.clouddms.v1.ReverseSshConnectivity getReverseSshConnectivity(); /** + * + * *
    * The details needed to communicate to the source over Reverse SSH
    * tunnel connectivity.
@@ -334,24 +431,32 @@ java.lang.String getLabelsOrThrow(
   com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder getReverseSshConnectivityOrBuilder();
 
   /**
+   *
+   *
    * 
    * The details of the VPC network that the source database is located in.
    * 
* * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; + * * @return Whether the vpcPeeringConnectivity field is set. */ boolean hasVpcPeeringConnectivity(); /** + * + * *
    * The details of the VPC network that the source database is located in.
    * 
* * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; + * * @return The vpcPeeringConnectivity. */ com.google.cloud.clouddms.v1.VpcPeeringConnectivity getVpcPeeringConnectivity(); /** + * + * *
    * The details of the VPC network that the source database is located in.
    * 
@@ -361,24 +466,32 @@ java.lang.String getLabelsOrThrow( com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder getVpcPeeringConnectivityOrBuilder(); /** + * + * *
    * static ip connectivity data (default, no additional details needed).
    * 
* * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; + * * @return Whether the staticIpConnectivity field is set. */ boolean hasStaticIpConnectivity(); /** + * + * *
    * static ip connectivity data (default, no additional details needed).
    * 
* * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; + * * @return The staticIpConnectivity. */ com.google.cloud.clouddms.v1.StaticIpConnectivity getStaticIpConnectivity(); /** + * + * *
    * static ip connectivity data (default, no additional details needed).
    * 
@@ -388,54 +501,73 @@ java.lang.String getLabelsOrThrow( com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder getStaticIpConnectivityOrBuilder(); /** + * + * *
    * Output only. The duration of the migration job (in seconds). A duration in seconds
    * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
    * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the duration field is set. */ boolean hasDuration(); /** + * + * *
    * Output only. The duration of the migration job (in seconds). A duration in seconds
    * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
    * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** + * + * *
    * Output only. The duration of the migration job (in seconds). A duration in seconds
    * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
    * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); /** + * + * *
    * Output only. The error details in case of state FAILED.
    * 
* * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * Output only. The error details in case of state FAILED.
    * 
* * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * Output only. The error details in case of state FAILED.
    * 
@@ -445,24 +577,32 @@ java.lang.String getLabelsOrThrow( com.google.rpc.StatusOrBuilder getErrorOrBuilder(); /** + * + * *
    * The database engine type and provider of the source.
    * 
* * .google.cloud.clouddms.v1.DatabaseType source_database = 14; + * * @return Whether the sourceDatabase field is set. */ boolean hasSourceDatabase(); /** + * + * *
    * The database engine type and provider of the source.
    * 
* * .google.cloud.clouddms.v1.DatabaseType source_database = 14; + * * @return The sourceDatabase. */ com.google.cloud.clouddms.v1.DatabaseType getSourceDatabase(); /** + * + * *
    * The database engine type and provider of the source.
    * 
@@ -472,24 +612,32 @@ java.lang.String getLabelsOrThrow( com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder getSourceDatabaseOrBuilder(); /** + * + * *
    * The database engine type and provider of the destination.
    * 
* * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; + * * @return Whether the destinationDatabase field is set. */ boolean hasDestinationDatabase(); /** + * + * *
    * The database engine type and provider of the destination.
    * 
* * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; + * * @return The destinationDatabase. */ com.google.cloud.clouddms.v1.DatabaseType getDestinationDatabase(); /** + * + * *
    * The database engine type and provider of the destination.
    * 
@@ -499,29 +647,40 @@ java.lang.String getLabelsOrThrow( com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder getDestinationDatabaseOrBuilder(); /** + * + * *
    * Output only. If the migration job is completed, the time when it was completed.
    * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. If the migration job is completed, the time when it was completed.
    * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. If the migration job is completed, the time when it was completed.
    * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationError.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationError.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationError.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationError.java index 416ec9c1..c6366a75 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationError.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationError.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * Error message of a verification Migration job.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.MigrationJobVerificationError} */ -public final class MigrationJobVerificationError extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MigrationJobVerificationError extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.MigrationJobVerificationError) MigrationJobVerificationErrorOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MigrationJobVerificationError.newBuilder() to construct. private MigrationJobVerificationError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MigrationJobVerificationError() { errorCode_ = 0; errorMessage_ = ""; @@ -27,16 +45,15 @@ private MigrationJobVerificationError() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MigrationJobVerificationError(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private MigrationJobVerificationError( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,66 +72,74 @@ private MigrationJobVerificationError( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - errorCode_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + errorCode_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - errorMessage_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + errorMessage_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - errorDetailMessage_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + errorDetailMessage_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.MigrationJobVerificationError.class, com.google.cloud.clouddms.v1.MigrationJobVerificationError.Builder.class); + com.google.cloud.clouddms.v1.MigrationJobVerificationError.class, + com.google.cloud.clouddms.v1.MigrationJobVerificationError.Builder.class); } /** + * + * *
    * A general error code describing the type of error that occurred.
    * 
* * Protobuf enum {@code google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode} */ - public enum ErrorCode - implements com.google.protobuf.ProtocolMessageEnum { + public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * An unknown error occurred
      * 
@@ -123,6 +148,8 @@ public enum ErrorCode */ ERROR_CODE_UNSPECIFIED(0), /** + * + * *
      * We failed to connect to one of the connection profile.
      * 
@@ -131,6 +158,8 @@ public enum ErrorCode */ CONNECTION_FAILURE(1), /** + * + * *
      * We failed to authenticate to one of the connection profile.
      * 
@@ -139,6 +168,8 @@ public enum ErrorCode */ AUTHENTICATION_FAILURE(2), /** + * + * *
      * One of the involved connection profiles has an invalid configuration.
      * 
@@ -147,6 +178,8 @@ public enum ErrorCode */ INVALID_CONNECTION_PROFILE_CONFIG(3), /** + * + * *
      * The versions of the source and the destination are incompatible.
      * 
@@ -155,6 +188,8 @@ public enum ErrorCode */ VERSION_INCOMPATIBILITY(4), /** + * + * *
      * The types of the source and the destination are incompatible.
      * 
@@ -163,6 +198,8 @@ public enum ErrorCode */ CONNECTION_PROFILE_TYPES_INCOMPATIBILITY(5), /** + * + * *
      * No pglogical extension installed on databases, applicable for postgres.
      * 
@@ -171,6 +208,8 @@ public enum ErrorCode */ NO_PGLOGICAL_INSTALLED(7), /** + * + * *
      * pglogical node already exists on databases, applicable for postgres.
      * 
@@ -179,6 +218,8 @@ public enum ErrorCode */ PGLOGICAL_NODE_ALREADY_EXISTS(8), /** + * + * *
      * The value of parameter wal_level is not set to logical.
      * 
@@ -187,6 +228,8 @@ public enum ErrorCode */ INVALID_WAL_LEVEL(9), /** + * + * *
      * The value of parameter shared_preload_libraries does not include
      * pglogical.
@@ -196,6 +239,8 @@ public enum ErrorCode
      */
     INVALID_SHARED_PRELOAD_LIBRARY(10),
     /**
+     *
+     *
      * 
      * The value of parameter max_replication_slots is not sufficient.
      * 
@@ -204,6 +249,8 @@ public enum ErrorCode */ INSUFFICIENT_MAX_REPLICATION_SLOTS(11), /** + * + * *
      * The value of parameter max_wal_senders is not sufficient.
      * 
@@ -212,6 +259,8 @@ public enum ErrorCode */ INSUFFICIENT_MAX_WAL_SENDERS(12), /** + * + * *
      * The value of parameter max_worker_processes is not sufficient.
      * 
@@ -220,6 +269,8 @@ public enum ErrorCode */ INSUFFICIENT_MAX_WORKER_PROCESSES(13), /** + * + * *
      * Extensions installed are either not supported or having unsupported
      * versions.
@@ -229,6 +280,8 @@ public enum ErrorCode
      */
     UNSUPPORTED_EXTENSIONS(14),
     /**
+     *
+     *
      * 
      * Unsupported migration type.
      * 
@@ -237,6 +290,8 @@ public enum ErrorCode */ UNSUPPORTED_MIGRATION_TYPE(15), /** + * + * *
      * Invalid RDS logical replication.
      * 
@@ -245,6 +300,8 @@ public enum ErrorCode */ INVALID_RDS_LOGICAL_REPLICATION(16), /** + * + * *
      * The gtid_mode is not supported, applicable for MySQL.
      * 
@@ -253,6 +310,8 @@ public enum ErrorCode */ UNSUPPORTED_GTID_MODE(17), /** + * + * *
      * The table definition is not support due to missing primary key or replica
      * identity.
@@ -262,6 +321,8 @@ public enum ErrorCode
      */
     UNSUPPORTED_TABLE_DEFINITION(18),
     /**
+     *
+     *
      * 
      * The definer is not supported.
      * 
@@ -270,6 +331,8 @@ public enum ErrorCode */ UNSUPPORTED_DEFINER(19), /** + * + * *
      * Migration is already running at the time of restart request.
      * 
@@ -281,6 +344,8 @@ public enum ErrorCode ; /** + * + * *
      * An unknown error occurred
      * 
@@ -289,6 +354,8 @@ public enum ErrorCode */ public static final int ERROR_CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * We failed to connect to one of the connection profile.
      * 
@@ -297,6 +364,8 @@ public enum ErrorCode */ public static final int CONNECTION_FAILURE_VALUE = 1; /** + * + * *
      * We failed to authenticate to one of the connection profile.
      * 
@@ -305,6 +374,8 @@ public enum ErrorCode */ public static final int AUTHENTICATION_FAILURE_VALUE = 2; /** + * + * *
      * One of the involved connection profiles has an invalid configuration.
      * 
@@ -313,6 +384,8 @@ public enum ErrorCode */ public static final int INVALID_CONNECTION_PROFILE_CONFIG_VALUE = 3; /** + * + * *
      * The versions of the source and the destination are incompatible.
      * 
@@ -321,6 +394,8 @@ public enum ErrorCode */ public static final int VERSION_INCOMPATIBILITY_VALUE = 4; /** + * + * *
      * The types of the source and the destination are incompatible.
      * 
@@ -329,6 +404,8 @@ public enum ErrorCode */ public static final int CONNECTION_PROFILE_TYPES_INCOMPATIBILITY_VALUE = 5; /** + * + * *
      * No pglogical extension installed on databases, applicable for postgres.
      * 
@@ -337,6 +414,8 @@ public enum ErrorCode */ public static final int NO_PGLOGICAL_INSTALLED_VALUE = 7; /** + * + * *
      * pglogical node already exists on databases, applicable for postgres.
      * 
@@ -345,6 +424,8 @@ public enum ErrorCode */ public static final int PGLOGICAL_NODE_ALREADY_EXISTS_VALUE = 8; /** + * + * *
      * The value of parameter wal_level is not set to logical.
      * 
@@ -353,6 +434,8 @@ public enum ErrorCode */ public static final int INVALID_WAL_LEVEL_VALUE = 9; /** + * + * *
      * The value of parameter shared_preload_libraries does not include
      * pglogical.
@@ -362,6 +445,8 @@ public enum ErrorCode
      */
     public static final int INVALID_SHARED_PRELOAD_LIBRARY_VALUE = 10;
     /**
+     *
+     *
      * 
      * The value of parameter max_replication_slots is not sufficient.
      * 
@@ -370,6 +455,8 @@ public enum ErrorCode */ public static final int INSUFFICIENT_MAX_REPLICATION_SLOTS_VALUE = 11; /** + * + * *
      * The value of parameter max_wal_senders is not sufficient.
      * 
@@ -378,6 +465,8 @@ public enum ErrorCode */ public static final int INSUFFICIENT_MAX_WAL_SENDERS_VALUE = 12; /** + * + * *
      * The value of parameter max_worker_processes is not sufficient.
      * 
@@ -386,6 +475,8 @@ public enum ErrorCode */ public static final int INSUFFICIENT_MAX_WORKER_PROCESSES_VALUE = 13; /** + * + * *
      * Extensions installed are either not supported or having unsupported
      * versions.
@@ -395,6 +486,8 @@ public enum ErrorCode
      */
     public static final int UNSUPPORTED_EXTENSIONS_VALUE = 14;
     /**
+     *
+     *
      * 
      * Unsupported migration type.
      * 
@@ -403,6 +496,8 @@ public enum ErrorCode */ public static final int UNSUPPORTED_MIGRATION_TYPE_VALUE = 15; /** + * + * *
      * Invalid RDS logical replication.
      * 
@@ -411,6 +506,8 @@ public enum ErrorCode */ public static final int INVALID_RDS_LOGICAL_REPLICATION_VALUE = 16; /** + * + * *
      * The gtid_mode is not supported, applicable for MySQL.
      * 
@@ -419,6 +516,8 @@ public enum ErrorCode */ public static final int UNSUPPORTED_GTID_MODE_VALUE = 17; /** + * + * *
      * The table definition is not support due to missing primary key or replica
      * identity.
@@ -428,6 +527,8 @@ public enum ErrorCode
      */
     public static final int UNSUPPORTED_TABLE_DEFINITION_VALUE = 18;
     /**
+     *
+     *
      * 
      * The definer is not supported.
      * 
@@ -436,6 +537,8 @@ public enum ErrorCode */ public static final int UNSUPPORTED_DEFINER_VALUE = 19; /** + * + * *
      * Migration is already running at the time of restart request.
      * 
@@ -444,7 +547,6 @@ public enum ErrorCode */ public static final int CANT_RESTART_RUNNING_MIGRATION_VALUE = 21; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -469,66 +571,85 @@ public static ErrorCode valueOf(int value) { */ public static ErrorCode forNumber(int value) { switch (value) { - case 0: return ERROR_CODE_UNSPECIFIED; - case 1: return CONNECTION_FAILURE; - case 2: return AUTHENTICATION_FAILURE; - case 3: return INVALID_CONNECTION_PROFILE_CONFIG; - case 4: return VERSION_INCOMPATIBILITY; - case 5: return CONNECTION_PROFILE_TYPES_INCOMPATIBILITY; - case 7: return NO_PGLOGICAL_INSTALLED; - case 8: return PGLOGICAL_NODE_ALREADY_EXISTS; - case 9: return INVALID_WAL_LEVEL; - case 10: return INVALID_SHARED_PRELOAD_LIBRARY; - case 11: return INSUFFICIENT_MAX_REPLICATION_SLOTS; - case 12: return INSUFFICIENT_MAX_WAL_SENDERS; - case 13: return INSUFFICIENT_MAX_WORKER_PROCESSES; - case 14: return UNSUPPORTED_EXTENSIONS; - case 15: return UNSUPPORTED_MIGRATION_TYPE; - case 16: return INVALID_RDS_LOGICAL_REPLICATION; - case 17: return UNSUPPORTED_GTID_MODE; - case 18: return UNSUPPORTED_TABLE_DEFINITION; - case 19: return UNSUPPORTED_DEFINER; - case 21: return CANT_RESTART_RUNNING_MIGRATION; - default: return null; + case 0: + return ERROR_CODE_UNSPECIFIED; + case 1: + return CONNECTION_FAILURE; + case 2: + return AUTHENTICATION_FAILURE; + case 3: + return INVALID_CONNECTION_PROFILE_CONFIG; + case 4: + return VERSION_INCOMPATIBILITY; + case 5: + return CONNECTION_PROFILE_TYPES_INCOMPATIBILITY; + case 7: + return NO_PGLOGICAL_INSTALLED; + case 8: + return PGLOGICAL_NODE_ALREADY_EXISTS; + case 9: + return INVALID_WAL_LEVEL; + case 10: + return INVALID_SHARED_PRELOAD_LIBRARY; + case 11: + return INSUFFICIENT_MAX_REPLICATION_SLOTS; + case 12: + return INSUFFICIENT_MAX_WAL_SENDERS; + case 13: + return INSUFFICIENT_MAX_WORKER_PROCESSES; + case 14: + return UNSUPPORTED_EXTENSIONS; + case 15: + return UNSUPPORTED_MIGRATION_TYPE; + case 16: + return INVALID_RDS_LOGICAL_REPLICATION; + case 17: + return UNSUPPORTED_GTID_MODE; + case 18: + return UNSUPPORTED_TABLE_DEFINITION; + case 19: + return UNSUPPORTED_DEFINER; + case 21: + return CANT_RESTART_RUNNING_MIGRATION; + 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< - ErrorCode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ErrorCode findValueByNumber(int number) { - return ErrorCode.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ErrorCode findValueByNumber(int number) { + return ErrorCode.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.clouddms.v1.MigrationJobVerificationError.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.clouddms.v1.MigrationJobVerificationError.getDescriptor() + .getEnumTypes() + .get(0); } private static final ErrorCode[] VALUES = values(); - public static ErrorCode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ErrorCode 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; @@ -548,38 +669,56 @@ private ErrorCode(int value) { public static final int ERROR_CODE_FIELD_NUMBER = 1; private int errorCode_; /** + * + * *
    * Output only. An instance of ErrorCode specifying the error that occurred.
    * 
* - * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for errorCode. */ - @java.lang.Override public int getErrorCodeValue() { + @java.lang.Override + public int getErrorCodeValue() { return errorCode_; } /** + * + * *
    * Output only. An instance of ErrorCode specifying the error that occurred.
    * 
* - * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The errorCode. */ - @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode getErrorCode() { + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode getErrorCode() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode result = com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode.valueOf(errorCode_); - return result == null ? com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode.UNRECOGNIZED : result; + com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode result = + com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode.valueOf(errorCode_); + return result == null + ? com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode.UNRECOGNIZED + : result; } public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object errorMessage_; /** + * + * *
    * Output only. A formatted message with further details about the error and a CTA.
    * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The errorMessage. */ @java.lang.Override @@ -588,29 +727,29 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** + * + * *
    * Output only. A formatted message with further details about the error and a CTA.
    * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getErrorMessageBytes() { + public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -621,11 +760,14 @@ public java.lang.String getErrorMessage() { public static final int ERROR_DETAIL_MESSAGE_FIELD_NUMBER = 3; private volatile java.lang.Object errorDetailMessage_; /** + * + * *
    * Output only. A specific detailed error message, if supplied by the engine.
    * 
* * string error_detail_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The errorDetailMessage. */ @java.lang.Override @@ -634,29 +776,29 @@ public java.lang.String getErrorDetailMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorDetailMessage_ = s; return s; } } /** + * + * *
    * Output only. A specific detailed error message, if supplied by the engine.
    * 
* * string error_detail_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for errorDetailMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getErrorDetailMessageBytes() { + public com.google.protobuf.ByteString getErrorDetailMessageBytes() { java.lang.Object ref = errorDetailMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorDetailMessage_ = b; return b; } else { @@ -665,6 +807,7 @@ public java.lang.String getErrorDetailMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -676,9 +819,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (errorCode_ != com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode.ERROR_CODE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (errorCode_ + != com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode + .ERROR_CODE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, errorCode_); } if (!getErrorMessageBytes().isEmpty()) { @@ -696,9 +841,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (errorCode_ != com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode.ERROR_CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, errorCode_); + if (errorCode_ + != com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode + .ERROR_CODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, errorCode_); } if (!getErrorMessageBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); @@ -714,18 +861,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.clouddms.v1.MigrationJobVerificationError)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.MigrationJobVerificationError other = (com.google.cloud.clouddms.v1.MigrationJobVerificationError) obj; + com.google.cloud.clouddms.v1.MigrationJobVerificationError other = + (com.google.cloud.clouddms.v1.MigrationJobVerificationError) obj; if (errorCode_ != other.errorCode_) return false; - if (!getErrorMessage() - .equals(other.getErrorMessage())) return false; - if (!getErrorDetailMessage() - .equals(other.getErrorDetailMessage())) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) return false; + if (!getErrorDetailMessage().equals(other.getErrorDetailMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -749,117 +895,127 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.MigrationJobVerificationError 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.clouddms.v1.MigrationJobVerificationError 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.clouddms.v1.MigrationJobVerificationError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.MigrationJobVerificationError 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.clouddms.v1.MigrationJobVerificationError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.MigrationJobVerificationError 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.clouddms.v1.MigrationJobVerificationError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.MigrationJobVerificationError parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.MigrationJobVerificationError 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.clouddms.v1.MigrationJobVerificationError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.MigrationJobVerificationError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.MigrationJobVerificationError 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.clouddms.v1.MigrationJobVerificationError 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.clouddms.v1.MigrationJobVerificationError 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.clouddms.v1.MigrationJobVerificationError prototype) { + + public static Builder newBuilder( + com.google.cloud.clouddms.v1.MigrationJobVerificationError 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; } /** + * + * *
    * Error message of a verification Migration job.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.MigrationJobVerificationError} */ - 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.clouddms.v1.MigrationJobVerificationError) com.google.cloud.clouddms.v1.MigrationJobVerificationErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.MigrationJobVerificationError.class, com.google.cloud.clouddms.v1.MigrationJobVerificationError.Builder.class); + com.google.cloud.clouddms.v1.MigrationJobVerificationError.class, + com.google.cloud.clouddms.v1.MigrationJobVerificationError.Builder.class); } // Construct using com.google.cloud.clouddms.v1.MigrationJobVerificationError.newBuilder() @@ -867,16 +1023,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -890,9 +1045,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_descriptor; } @java.lang.Override @@ -911,7 +1066,8 @@ public com.google.cloud.clouddms.v1.MigrationJobVerificationError build() { @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJobVerificationError buildPartial() { - com.google.cloud.clouddms.v1.MigrationJobVerificationError result = new com.google.cloud.clouddms.v1.MigrationJobVerificationError(this); + com.google.cloud.clouddms.v1.MigrationJobVerificationError result = + new com.google.cloud.clouddms.v1.MigrationJobVerificationError(this); result.errorCode_ = errorCode_; result.errorMessage_ = errorMessage_; result.errorDetailMessage_ = errorDetailMessage_; @@ -923,38 +1079,39 @@ public com.google.cloud.clouddms.v1.MigrationJobVerificationError 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.clouddms.v1.MigrationJobVerificationError) { - return mergeFrom((com.google.cloud.clouddms.v1.MigrationJobVerificationError)other); + return mergeFrom((com.google.cloud.clouddms.v1.MigrationJobVerificationError) other); } else { super.mergeFrom(other); return this; @@ -962,7 +1119,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.MigrationJobVerificationError other) { - if (other == com.google.cloud.clouddms.v1.MigrationJobVerificationError.getDefaultInstance()) return this; + if (other == com.google.cloud.clouddms.v1.MigrationJobVerificationError.getDefaultInstance()) + return this; if (other.errorCode_ != 0) { setErrorCodeValue(other.getErrorCodeValue()); } @@ -993,7 +1151,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.clouddms.v1.MigrationJobVerificationError) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.clouddms.v1.MigrationJobVerificationError) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1005,73 +1164,103 @@ public Builder mergeFrom( private int errorCode_ = 0; /** + * + * *
      * Output only. An instance of ErrorCode specifying the error that occurred.
      * 
* - * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for errorCode. */ - @java.lang.Override public int getErrorCodeValue() { + @java.lang.Override + public int getErrorCodeValue() { return errorCode_; } /** + * + * *
      * Output only. An instance of ErrorCode specifying the error that occurred.
      * 
* - * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for errorCode to set. * @return This builder for chaining. */ public Builder setErrorCodeValue(int value) { - + errorCode_ = value; onChanged(); return this; } /** + * + * *
      * Output only. An instance of ErrorCode specifying the error that occurred.
      * 
* - * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The errorCode. */ @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode getErrorCode() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode result = com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode.valueOf(errorCode_); - return result == null ? com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode.UNRECOGNIZED : result; + com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode result = + com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode.valueOf(errorCode_); + return result == null + ? com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. An instance of ErrorCode specifying the error that occurred.
      * 
* - * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The errorCode to set. * @return This builder for chaining. */ - public Builder setErrorCode(com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode value) { + public Builder setErrorCode( + com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode value) { if (value == null) { throw new NullPointerException(); } - + errorCode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. An instance of ErrorCode specifying the error that occurred.
      * 
* - * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearErrorCode() { - + errorCode_ = 0; onChanged(); return this; @@ -1079,18 +1268,20 @@ public Builder clearErrorCode() { private java.lang.Object errorMessage_ = ""; /** + * + * *
      * Output only. A formatted message with further details about the error and a CTA.
      * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -1099,20 +1290,21 @@ public java.lang.String getErrorMessage() { } } /** + * + * *
      * Output only. A formatted message with further details about the error and a CTA.
      * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString - getErrorMessageBytes() { + public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -1120,54 +1312,61 @@ public java.lang.String getErrorMessage() { } } /** + * + * *
      * Output only. A formatted message with further details about the error and a CTA.
      * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage( - java.lang.String value) { + public Builder setErrorMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + errorMessage_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A formatted message with further details about the error and a CTA.
      * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearErrorMessage() { - + errorMessage_ = getDefaultInstance().getErrorMessage(); onChanged(); return this; } /** + * + * *
      * Output only. A formatted message with further details about the error and a CTA.
      * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; onChanged(); return this; @@ -1175,18 +1374,20 @@ public Builder setErrorMessageBytes( private java.lang.Object errorDetailMessage_ = ""; /** + * + * *
      * Output only. A specific detailed error message, if supplied by the engine.
      * 
* * string error_detail_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The errorDetailMessage. */ public java.lang.String getErrorDetailMessage() { java.lang.Object ref = errorDetailMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorDetailMessage_ = s; return s; @@ -1195,20 +1396,21 @@ public java.lang.String getErrorDetailMessage() { } } /** + * + * *
      * Output only. A specific detailed error message, if supplied by the engine.
      * 
* * string error_detail_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for errorDetailMessage. */ - public com.google.protobuf.ByteString - getErrorDetailMessageBytes() { + public com.google.protobuf.ByteString getErrorDetailMessageBytes() { java.lang.Object ref = errorDetailMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorDetailMessage_ = b; return b; } else { @@ -1216,61 +1418,68 @@ public java.lang.String getErrorDetailMessage() { } } /** + * + * *
      * Output only. A specific detailed error message, if supplied by the engine.
      * 
* * string error_detail_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The errorDetailMessage to set. * @return This builder for chaining. */ - public Builder setErrorDetailMessage( - java.lang.String value) { + public Builder setErrorDetailMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + errorDetailMessage_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A specific detailed error message, if supplied by the engine.
      * 
* * string error_detail_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearErrorDetailMessage() { - + errorDetailMessage_ = getDefaultInstance().getErrorDetailMessage(); onChanged(); return this; } /** + * + * *
      * Output only. A specific detailed error message, if supplied by the engine.
      * 
* * string error_detail_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for errorDetailMessage to set. * @return This builder for chaining. */ - public Builder setErrorDetailMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setErrorDetailMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorDetailMessage_ = 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); } @@ -1280,12 +1489,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.MigrationJobVerificationError) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.MigrationJobVerificationError) private static final com.google.cloud.clouddms.v1.MigrationJobVerificationError DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.MigrationJobVerificationError(); } @@ -1294,16 +1503,16 @@ public static com.google.cloud.clouddms.v1.MigrationJobVerificationError getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MigrationJobVerificationError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MigrationJobVerificationError(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MigrationJobVerificationError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MigrationJobVerificationError(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1318,6 +1527,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.clouddms.v1.MigrationJobVerificationError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationErrorOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationErrorOrBuilder.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationErrorOrBuilder.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationErrorOrBuilder.java index 28d1e369..d82156b7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationErrorOrBuilder.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationErrorOrBuilder.java @@ -1,68 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; -public interface MigrationJobVerificationErrorOrBuilder extends +public interface MigrationJobVerificationErrorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.MigrationJobVerificationError) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. An instance of ErrorCode specifying the error that occurred.
    * 
* - * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for errorCode. */ int getErrorCodeValue(); /** + * + * *
    * Output only. An instance of ErrorCode specifying the error that occurred.
    * 
* - * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The errorCode. */ com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode getErrorCode(); /** + * + * *
    * Output only. A formatted message with further details about the error and a CTA.
    * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** + * + * *
    * Output only. A formatted message with further details about the error and a CTA.
    * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for errorMessage. */ - com.google.protobuf.ByteString - getErrorMessageBytes(); + com.google.protobuf.ByteString getErrorMessageBytes(); /** + * + * *
    * Output only. A specific detailed error message, if supplied by the engine.
    * 
* * string error_detail_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The errorDetailMessage. */ java.lang.String getErrorDetailMessage(); /** + * + * *
    * Output only. A specific detailed error message, if supplied by the engine.
    * 
* * string error_detail_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for errorDetailMessage. */ - com.google.protobuf.ByteString - getErrorDetailMessageBytes(); + com.google.protobuf.ByteString getErrorDetailMessageBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfile.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfile.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfile.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfile.java index 2d08dc72..1ba3c9ed 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfile.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfile.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * Specifies connection parameters required specifically for MySQL databases.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.MySqlConnectionProfile} */ -public final class MySqlConnectionProfile extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MySqlConnectionProfile extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.MySqlConnectionProfile) MySqlConnectionProfileOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MySqlConnectionProfile.newBuilder() to construct. private MySqlConnectionProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MySqlConnectionProfile() { host_ = ""; username_ = ""; @@ -28,16 +46,15 @@ private MySqlConnectionProfile() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MySqlConnectionProfile(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private MySqlConnectionProfile( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,93 +73,105 @@ private MySqlConnectionProfile( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - host_ = s; - break; - } - case 16: { - - port_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + host_ = s; + break; + } + case 16: + { + port_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - case 40: { + username_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - passwordSet_ = input.readBool(); - break; - } - case 50: { - com.google.cloud.clouddms.v1.SslConfig.Builder subBuilder = null; - if (ssl_ != null) { - subBuilder = ssl_.toBuilder(); + password_ = s; + break; } - ssl_ = input.readMessage(com.google.cloud.clouddms.v1.SslConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(ssl_); - ssl_ = subBuilder.buildPartial(); + case 40: + { + passwordSet_ = input.readBool(); + break; } + case 50: + { + com.google.cloud.clouddms.v1.SslConfig.Builder subBuilder = null; + if (ssl_ != null) { + subBuilder = ssl_.toBuilder(); + } + ssl_ = + input.readMessage( + com.google.cloud.clouddms.v1.SslConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(ssl_); + ssl_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - cloudSqlId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + cloudSqlId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.MySqlConnectionProfile.class, com.google.cloud.clouddms.v1.MySqlConnectionProfile.Builder.class); + com.google.cloud.clouddms.v1.MySqlConnectionProfile.class, + com.google.cloud.clouddms.v1.MySqlConnectionProfile.Builder.class); } public static final int HOST_FIELD_NUMBER = 1; private volatile java.lang.Object host_; /** + * + * *
    * Required. The IP or hostname of the source MySQL database.
    * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The host. */ @java.lang.Override @@ -151,29 +180,29 @@ public java.lang.String getHost() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } } /** + * + * *
    * Required. The IP or hostname of the source MySQL database.
    * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for host. */ @java.lang.Override - public com.google.protobuf.ByteString - getHostBytes() { + public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { @@ -184,11 +213,14 @@ public java.lang.String getHost() { public static final int PORT_FIELD_NUMBER = 2; private int port_; /** + * + * *
    * Required. The network port of the source MySQL database.
    * 
* * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The port. */ @java.lang.Override @@ -199,12 +231,15 @@ public int getPort() { public static final int USERNAME_FIELD_NUMBER = 3; private volatile java.lang.Object username_; /** + * + * *
    * Required. The username that Database Migration Service will use to connect to the
    * database. The value is encrypted when stored in Database Migration Service.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ @java.lang.Override @@ -213,30 +248,30 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** + * + * *
    * Required. The username that Database Migration Service will use to connect to the
    * database. The value is encrypted when stored in Database Migration Service.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -247,13 +282,18 @@ public java.lang.String getUsername() { public static final int PASSWORD_FIELD_NUMBER = 4; private volatile java.lang.Object password_; /** + * + * *
    * Required. Input only. The password for the user that Database Migration Service will be using to
    * connect to the database. This field is not returned on request, and the
    * value is encrypted when stored in Database Migration Service.
    * 
* - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * * @return The password. */ @java.lang.Override @@ -262,31 +302,33 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** + * + * *
    * Required. Input only. The password for the user that Database Migration Service will be using to
    * connect to the database. This field is not returned on request, and the
    * value is encrypted when stored in Database Migration Service.
    * 
* - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -297,11 +339,14 @@ public java.lang.String getPassword() { public static final int PASSWORD_SET_FIELD_NUMBER = 5; private boolean passwordSet_; /** + * + * *
    * Output only. Indicates If this connection profile password is stored.
    * 
* * bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The passwordSet. */ @java.lang.Override @@ -312,11 +357,14 @@ public boolean getPasswordSet() { public static final int SSL_FIELD_NUMBER = 6; private com.google.cloud.clouddms.v1.SslConfig ssl_; /** + * + * *
    * SSL configuration for the destination to connect to the source database.
    * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; + * * @return Whether the ssl field is set. */ @java.lang.Override @@ -324,11 +372,14 @@ public boolean hasSsl() { return ssl_ != null; } /** + * + * *
    * SSL configuration for the destination to connect to the source database.
    * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; + * * @return The ssl. */ @java.lang.Override @@ -336,6 +387,8 @@ public com.google.cloud.clouddms.v1.SslConfig getSsl() { return ssl_ == null ? com.google.cloud.clouddms.v1.SslConfig.getDefaultInstance() : ssl_; } /** + * + * *
    * SSL configuration for the destination to connect to the source database.
    * 
@@ -350,12 +403,15 @@ public com.google.cloud.clouddms.v1.SslConfigOrBuilder getSslOrBuilder() { public static final int CLOUD_SQL_ID_FIELD_NUMBER = 7; private volatile java.lang.Object cloudSqlId_; /** + * + * *
    * If the source is a Cloud SQL database, use this field to
    * provide the Cloud SQL instance ID of the source.
    * 
* * string cloud_sql_id = 7; + * * @return The cloudSqlId. */ @java.lang.Override @@ -364,30 +420,30 @@ public java.lang.String getCloudSqlId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudSqlId_ = s; return s; } } /** + * + * *
    * If the source is a Cloud SQL database, use this field to
    * provide the Cloud SQL instance ID of the source.
    * 
* * string cloud_sql_id = 7; + * * @return The bytes for cloudSqlId. */ @java.lang.Override - public com.google.protobuf.ByteString - getCloudSqlIdBytes() { + public com.google.protobuf.ByteString getCloudSqlIdBytes() { java.lang.Object ref = cloudSqlId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cloudSqlId_ = b; return b; } else { @@ -396,6 +452,7 @@ public java.lang.String getCloudSqlId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -407,8 +464,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getHostBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, host_); } @@ -443,8 +499,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, host_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, port_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); } if (!getUsernameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); @@ -453,12 +508,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, password_); } if (passwordSet_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, passwordSet_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, passwordSet_); } if (ssl_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getSsl()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSsl()); } if (!getCloudSqlIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, cloudSqlId_); @@ -471,30 +524,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.clouddms.v1.MySqlConnectionProfile)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.MySqlConnectionProfile other = (com.google.cloud.clouddms.v1.MySqlConnectionProfile) obj; - - if (!getHost() - .equals(other.getHost())) return false; - if (getPort() - != other.getPort()) return false; - if (!getUsername() - .equals(other.getUsername())) return false; - if (!getPassword() - .equals(other.getPassword())) return false; - if (getPasswordSet() - != other.getPasswordSet()) return false; + com.google.cloud.clouddms.v1.MySqlConnectionProfile other = + (com.google.cloud.clouddms.v1.MySqlConnectionProfile) obj; + + if (!getHost().equals(other.getHost())) return false; + if (getPort() != other.getPort()) return false; + if (!getUsername().equals(other.getUsername())) return false; + if (!getPassword().equals(other.getPassword())) return false; + if (getPasswordSet() != other.getPasswordSet()) return false; if (hasSsl() != other.hasSsl()) return false; if (hasSsl()) { - if (!getSsl() - .equals(other.getSsl())) return false; + if (!getSsl().equals(other.getSsl())) return false; } - if (!getCloudSqlId() - .equals(other.getCloudSqlId())) return false; + if (!getCloudSqlId().equals(other.getCloudSqlId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -515,8 +562,7 @@ public int hashCode() { hash = (37 * hash) + PASSWORD_FIELD_NUMBER; hash = (53 * hash) + getPassword().hashCode(); hash = (37 * hash) + PASSWORD_SET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPasswordSet()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPasswordSet()); if (hasSsl()) { hash = (37 * hash) + SSL_FIELD_NUMBER; hash = (53 * hash) + getSsl().hashCode(); @@ -529,117 +575,126 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.MySqlConnectionProfile 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.clouddms.v1.MySqlConnectionProfile 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.clouddms.v1.MySqlConnectionProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.MySqlConnectionProfile 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.clouddms.v1.MySqlConnectionProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.MySqlConnectionProfile 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.clouddms.v1.MySqlConnectionProfile parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.MySqlConnectionProfile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.MySqlConnectionProfile 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.clouddms.v1.MySqlConnectionProfile parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.MySqlConnectionProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.MySqlConnectionProfile 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.clouddms.v1.MySqlConnectionProfile 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.clouddms.v1.MySqlConnectionProfile 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.clouddms.v1.MySqlConnectionProfile 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; } /** + * + * *
    * Specifies connection parameters required specifically for MySQL databases.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.MySqlConnectionProfile} */ - 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.clouddms.v1.MySqlConnectionProfile) com.google.cloud.clouddms.v1.MySqlConnectionProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.MySqlConnectionProfile.class, com.google.cloud.clouddms.v1.MySqlConnectionProfile.Builder.class); + com.google.cloud.clouddms.v1.MySqlConnectionProfile.class, + com.google.cloud.clouddms.v1.MySqlConnectionProfile.Builder.class); } // Construct using com.google.cloud.clouddms.v1.MySqlConnectionProfile.newBuilder() @@ -647,16 +702,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -682,9 +736,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MySqlConnectionProfile_descriptor; } @java.lang.Override @@ -703,7 +757,8 @@ public com.google.cloud.clouddms.v1.MySqlConnectionProfile build() { @java.lang.Override public com.google.cloud.clouddms.v1.MySqlConnectionProfile buildPartial() { - com.google.cloud.clouddms.v1.MySqlConnectionProfile result = new com.google.cloud.clouddms.v1.MySqlConnectionProfile(this); + com.google.cloud.clouddms.v1.MySqlConnectionProfile result = + new com.google.cloud.clouddms.v1.MySqlConnectionProfile(this); result.host_ = host_; result.port_ = port_; result.username_ = username_; @@ -723,38 +778,39 @@ public com.google.cloud.clouddms.v1.MySqlConnectionProfile 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.clouddms.v1.MySqlConnectionProfile) { - return mergeFrom((com.google.cloud.clouddms.v1.MySqlConnectionProfile)other); + return mergeFrom((com.google.cloud.clouddms.v1.MySqlConnectionProfile) other); } else { super.mergeFrom(other); return this; @@ -762,7 +818,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.MySqlConnectionProfile other) { - if (other == com.google.cloud.clouddms.v1.MySqlConnectionProfile.getDefaultInstance()) return this; + if (other == com.google.cloud.clouddms.v1.MySqlConnectionProfile.getDefaultInstance()) + return this; if (!other.getHost().isEmpty()) { host_ = other.host_; onChanged(); @@ -807,7 +864,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.clouddms.v1.MySqlConnectionProfile) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.clouddms.v1.MySqlConnectionProfile) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -819,18 +877,20 @@ public Builder mergeFrom( private java.lang.Object host_ = ""; /** + * + * *
      * Required. The IP or hostname of the source MySQL database.
      * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The host. */ public java.lang.String getHost() { java.lang.Object ref = host_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; @@ -839,20 +899,21 @@ public java.lang.String getHost() { } } /** + * + * *
      * Required. The IP or hostname of the source MySQL database.
      * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for host. */ - public com.google.protobuf.ByteString - getHostBytes() { + public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { @@ -860,66 +921,76 @@ public java.lang.String getHost() { } } /** + * + * *
      * Required. The IP or hostname of the source MySQL database.
      * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The host to set. * @return This builder for chaining. */ - public Builder setHost( - java.lang.String value) { + public Builder setHost(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + host_ = value; onChanged(); return this; } /** + * + * *
      * Required. The IP or hostname of the source MySQL database.
      * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearHost() { - + host_ = getDefaultInstance().getHost(); onChanged(); return this; } /** + * + * *
      * Required. The IP or hostname of the source MySQL database.
      * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for host to set. * @return This builder for chaining. */ - public Builder setHostBytes( - com.google.protobuf.ByteString value) { + public Builder setHostBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + host_ = value; onChanged(); return this; } - private int port_ ; + private int port_; /** + * + * *
      * Required. The network port of the source MySQL database.
      * 
* * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The port. */ @java.lang.Override @@ -927,30 +998,36 @@ public int getPort() { return port_; } /** + * + * *
      * Required. The network port of the source MySQL database.
      * 
* * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { - + port_ = value; onChanged(); return this; } /** + * + * *
      * Required. The network port of the source MySQL database.
      * 
* * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPort() { - + port_ = 0; onChanged(); return this; @@ -958,19 +1035,21 @@ public Builder clearPort() { private java.lang.Object username_ = ""; /** + * + * *
      * Required. The username that Database Migration Service will use to connect to the
      * database. The value is encrypted when stored in Database Migration Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -979,21 +1058,22 @@ public java.lang.String getUsername() { } } /** + * + * *
      * Required. The username that Database Migration Service will use to connect to the
      * database. The value is encrypted when stored in Database Migration Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -1001,57 +1081,64 @@ public java.lang.String getUsername() { } } /** + * + * *
      * Required. The username that Database Migration Service will use to connect to the
      * database. The value is encrypted when stored in Database Migration Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername( - java.lang.String value) { + public Builder setUsername(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** + * + * *
      * Required. The username that Database Migration Service will use to connect to the
      * database. The value is encrypted when stored in Database Migration Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** + * + * *
      * Required. The username that Database Migration Service will use to connect to the
      * database. The value is encrypted when stored in Database Migration Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes( - com.google.protobuf.ByteString value) { + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -1059,20 +1146,24 @@ public Builder setUsernameBytes( private java.lang.Object password_ = ""; /** + * + * *
      * Required. Input only. The password for the user that Database Migration Service will be using to
      * connect to the database. This field is not returned on request, and the
      * value is encrypted when stored in Database Migration Service.
      * 
* - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -1081,22 +1172,25 @@ public java.lang.String getPassword() { } } /** + * + * *
      * Required. Input only. The password for the user that Database Migration Service will be using to
      * connect to the database. This field is not returned on request, and the
      * value is encrypted when stored in Database Migration Service.
      * 
* - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * * @return The bytes for password. */ - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -1104,72 +1198,88 @@ public java.lang.String getPassword() { } } /** + * + * *
      * Required. Input only. The password for the user that Database Migration Service will be using to
      * connect to the database. This field is not returned on request, and the
      * value is encrypted when stored in Database Migration Service.
      * 
* - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword( - java.lang.String value) { + public Builder setPassword(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** + * + * *
      * Required. Input only. The password for the user that Database Migration Service will be using to
      * connect to the database. This field is not returned on request, and the
      * value is encrypted when stored in Database Migration Service.
      * 
* - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** + * + * *
      * Required. Input only. The password for the user that Database Migration Service will be using to
      * connect to the database. This field is not returned on request, and the
      * value is encrypted when stored in Database Migration Service.
      * 
* - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; } - private boolean passwordSet_ ; + private boolean passwordSet_; /** + * + * *
      * Output only. Indicates If this connection profile password is stored.
      * 
* * bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The passwordSet. */ @java.lang.Override @@ -1177,30 +1287,36 @@ public boolean getPasswordSet() { return passwordSet_; } /** + * + * *
      * Output only. Indicates If this connection profile password is stored.
      * 
* * bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The passwordSet to set. * @return This builder for chaining. */ public Builder setPasswordSet(boolean value) { - + passwordSet_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Indicates If this connection profile password is stored.
      * 
* * bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearPasswordSet() { - + passwordSet_ = false; onChanged(); return this; @@ -1208,24 +1324,33 @@ public Builder clearPasswordSet() { private com.google.cloud.clouddms.v1.SslConfig ssl_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.SslConfig, com.google.cloud.clouddms.v1.SslConfig.Builder, com.google.cloud.clouddms.v1.SslConfigOrBuilder> sslBuilder_; + com.google.cloud.clouddms.v1.SslConfig, + com.google.cloud.clouddms.v1.SslConfig.Builder, + com.google.cloud.clouddms.v1.SslConfigOrBuilder> + sslBuilder_; /** + * + * *
      * SSL configuration for the destination to connect to the source database.
      * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; + * * @return Whether the ssl field is set. */ public boolean hasSsl() { return sslBuilder_ != null || ssl_ != null; } /** + * + * *
      * SSL configuration for the destination to connect to the source database.
      * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; + * * @return The ssl. */ public com.google.cloud.clouddms.v1.SslConfig getSsl() { @@ -1236,6 +1361,8 @@ public com.google.cloud.clouddms.v1.SslConfig getSsl() { } } /** + * + * *
      * SSL configuration for the destination to connect to the source database.
      * 
@@ -1256,14 +1383,15 @@ public Builder setSsl(com.google.cloud.clouddms.v1.SslConfig value) { return this; } /** + * + * *
      * SSL configuration for the destination to connect to the source database.
      * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; */ - public Builder setSsl( - com.google.cloud.clouddms.v1.SslConfig.Builder builderForValue) { + public Builder setSsl(com.google.cloud.clouddms.v1.SslConfig.Builder builderForValue) { if (sslBuilder_ == null) { ssl_ = builderForValue.build(); onChanged(); @@ -1274,6 +1402,8 @@ public Builder setSsl( return this; } /** + * + * *
      * SSL configuration for the destination to connect to the source database.
      * 
@@ -1284,7 +1414,9 @@ public Builder mergeSsl(com.google.cloud.clouddms.v1.SslConfig value) { if (sslBuilder_ == null) { if (ssl_ != null) { ssl_ = - com.google.cloud.clouddms.v1.SslConfig.newBuilder(ssl_).mergeFrom(value).buildPartial(); + com.google.cloud.clouddms.v1.SslConfig.newBuilder(ssl_) + .mergeFrom(value) + .buildPartial(); } else { ssl_ = value; } @@ -1296,6 +1428,8 @@ public Builder mergeSsl(com.google.cloud.clouddms.v1.SslConfig value) { return this; } /** + * + * *
      * SSL configuration for the destination to connect to the source database.
      * 
@@ -1314,6 +1448,8 @@ public Builder clearSsl() { return this; } /** + * + * *
      * SSL configuration for the destination to connect to the source database.
      * 
@@ -1321,11 +1457,13 @@ public Builder clearSsl() { * .google.cloud.clouddms.v1.SslConfig ssl = 6; */ public com.google.cloud.clouddms.v1.SslConfig.Builder getSslBuilder() { - + onChanged(); return getSslFieldBuilder().getBuilder(); } /** + * + * *
      * SSL configuration for the destination to connect to the source database.
      * 
@@ -1336,11 +1474,12 @@ public com.google.cloud.clouddms.v1.SslConfigOrBuilder getSslOrBuilder() { if (sslBuilder_ != null) { return sslBuilder_.getMessageOrBuilder(); } else { - return ssl_ == null ? - com.google.cloud.clouddms.v1.SslConfig.getDefaultInstance() : ssl_; + return ssl_ == null ? com.google.cloud.clouddms.v1.SslConfig.getDefaultInstance() : ssl_; } } /** + * + * *
      * SSL configuration for the destination to connect to the source database.
      * 
@@ -1348,14 +1487,17 @@ public com.google.cloud.clouddms.v1.SslConfigOrBuilder getSslOrBuilder() { * .google.cloud.clouddms.v1.SslConfig ssl = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.SslConfig, com.google.cloud.clouddms.v1.SslConfig.Builder, com.google.cloud.clouddms.v1.SslConfigOrBuilder> + com.google.cloud.clouddms.v1.SslConfig, + com.google.cloud.clouddms.v1.SslConfig.Builder, + com.google.cloud.clouddms.v1.SslConfigOrBuilder> getSslFieldBuilder() { if (sslBuilder_ == null) { - sslBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.SslConfig, com.google.cloud.clouddms.v1.SslConfig.Builder, com.google.cloud.clouddms.v1.SslConfigOrBuilder>( - getSsl(), - getParentForChildren(), - isClean()); + sslBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SslConfig, + com.google.cloud.clouddms.v1.SslConfig.Builder, + com.google.cloud.clouddms.v1.SslConfigOrBuilder>( + getSsl(), getParentForChildren(), isClean()); ssl_ = null; } return sslBuilder_; @@ -1363,19 +1505,21 @@ public com.google.cloud.clouddms.v1.SslConfigOrBuilder getSslOrBuilder() { private java.lang.Object cloudSqlId_ = ""; /** + * + * *
      * If the source is a Cloud SQL database, use this field to
      * provide the Cloud SQL instance ID of the source.
      * 
* * string cloud_sql_id = 7; + * * @return The cloudSqlId. */ public java.lang.String getCloudSqlId() { java.lang.Object ref = cloudSqlId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudSqlId_ = s; return s; @@ -1384,21 +1528,22 @@ public java.lang.String getCloudSqlId() { } } /** + * + * *
      * If the source is a Cloud SQL database, use this field to
      * provide the Cloud SQL instance ID of the source.
      * 
* * string cloud_sql_id = 7; + * * @return The bytes for cloudSqlId. */ - public com.google.protobuf.ByteString - getCloudSqlIdBytes() { + public com.google.protobuf.ByteString getCloudSqlIdBytes() { java.lang.Object ref = cloudSqlId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cloudSqlId_ = b; return b; } else { @@ -1406,64 +1551,71 @@ public java.lang.String getCloudSqlId() { } } /** + * + * *
      * If the source is a Cloud SQL database, use this field to
      * provide the Cloud SQL instance ID of the source.
      * 
* * string cloud_sql_id = 7; + * * @param value The cloudSqlId to set. * @return This builder for chaining. */ - public Builder setCloudSqlId( - java.lang.String value) { + public Builder setCloudSqlId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cloudSqlId_ = value; onChanged(); return this; } /** + * + * *
      * If the source is a Cloud SQL database, use this field to
      * provide the Cloud SQL instance ID of the source.
      * 
* * string cloud_sql_id = 7; + * * @return This builder for chaining. */ public Builder clearCloudSqlId() { - + cloudSqlId_ = getDefaultInstance().getCloudSqlId(); onChanged(); return this; } /** + * + * *
      * If the source is a Cloud SQL database, use this field to
      * provide the Cloud SQL instance ID of the source.
      * 
* * string cloud_sql_id = 7; + * * @param value The bytes for cloudSqlId to set. * @return This builder for chaining. */ - public Builder setCloudSqlIdBytes( - com.google.protobuf.ByteString value) { + public Builder setCloudSqlIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cloudSqlId_ = 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); } @@ -1473,12 +1625,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.MySqlConnectionProfile) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.MySqlConnectionProfile) private static final com.google.cloud.clouddms.v1.MySqlConnectionProfile DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.MySqlConnectionProfile(); } @@ -1487,16 +1639,16 @@ public static com.google.cloud.clouddms.v1.MySqlConnectionProfile getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MySqlConnectionProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MySqlConnectionProfile(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MySqlConnectionProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MySqlConnectionProfile(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1511,6 +1663,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.MySqlConnectionProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfileOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfileOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfileOrBuilder.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfileOrBuilder.java index 2de6b894..98886b9e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfileOrBuilder.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfileOrBuilder.java @@ -1,117 +1,166 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; -public interface MySqlConnectionProfileOrBuilder extends +public interface MySqlConnectionProfileOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.MySqlConnectionProfile) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The IP or hostname of the source MySQL database.
    * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The host. */ java.lang.String getHost(); /** + * + * *
    * Required. The IP or hostname of the source MySQL database.
    * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for host. */ - com.google.protobuf.ByteString - getHostBytes(); + com.google.protobuf.ByteString getHostBytes(); /** + * + * *
    * Required. The network port of the source MySQL database.
    * 
* * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The port. */ int getPort(); /** + * + * *
    * Required. The username that Database Migration Service will use to connect to the
    * database. The value is encrypted when stored in Database Migration Service.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ java.lang.String getUsername(); /** + * + * *
    * Required. The username that Database Migration Service will use to connect to the
    * database. The value is encrypted when stored in Database Migration Service.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ - com.google.protobuf.ByteString - getUsernameBytes(); + com.google.protobuf.ByteString getUsernameBytes(); /** + * + * *
    * Required. Input only. The password for the user that Database Migration Service will be using to
    * connect to the database. This field is not returned on request, and the
    * value is encrypted when stored in Database Migration Service.
    * 
* - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * * @return The password. */ java.lang.String getPassword(); /** + * + * *
    * Required. Input only. The password for the user that Database Migration Service will be using to
    * connect to the database. This field is not returned on request, and the
    * value is encrypted when stored in Database Migration Service.
    * 
* - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * * @return The bytes for password. */ - com.google.protobuf.ByteString - getPasswordBytes(); + com.google.protobuf.ByteString getPasswordBytes(); /** + * + * *
    * Output only. Indicates If this connection profile password is stored.
    * 
* * bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The passwordSet. */ boolean getPasswordSet(); /** + * + * *
    * SSL configuration for the destination to connect to the source database.
    * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; + * * @return Whether the ssl field is set. */ boolean hasSsl(); /** + * + * *
    * SSL configuration for the destination to connect to the source database.
    * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; + * * @return The ssl. */ com.google.cloud.clouddms.v1.SslConfig getSsl(); /** + * + * *
    * SSL configuration for the destination to connect to the source database.
    * 
@@ -121,24 +170,29 @@ public interface MySqlConnectionProfileOrBuilder extends com.google.cloud.clouddms.v1.SslConfigOrBuilder getSslOrBuilder(); /** + * + * *
    * If the source is a Cloud SQL database, use this field to
    * provide the Cloud SQL instance ID of the source.
    * 
* * string cloud_sql_id = 7; + * * @return The cloudSqlId. */ java.lang.String getCloudSqlId(); /** + * + * *
    * If the source is a Cloud SQL database, use this field to
    * provide the Cloud SQL instance ID of the source.
    * 
* * string cloud_sql_id = 7; + * * @return The bytes for cloudSqlId. */ - com.google.protobuf.ByteString - getCloudSqlIdBytes(); + com.google.protobuf.ByteString getCloudSqlIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadata.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadata.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadata.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadata.java index 3905de3c..ed2f0cf1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadata.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,16 +46,15 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,101 +73,115 @@ private OperationMetadata( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); + target_ = s; + break; } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - statusMessage_ = s; - break; - } - case 48: { + verb_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - requestedCancellation_ = input.readBool(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + statusMessage_ = s; + break; + } + case 48: + { + requestedCancellation_ = input.readBool(); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + apiVersion_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.OperationMetadata.class, com.google.cloud.clouddms.v1.OperationMetadata.Builder.class); + com.google.cloud.clouddms.v1.OperationMetadata.class, + com.google.cloud.clouddms.v1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -158,11 +189,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -170,11 +205,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -184,11 +222,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -196,11 +238,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -208,11 +254,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -222,11 +271,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ @java.lang.Override @@ -235,29 +287,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -268,11 +320,14 @@ public java.lang.String getTarget() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ @java.lang.Override @@ -281,29 +336,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -314,11 +369,14 @@ public java.lang.String getVerb() { public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; private volatile java.lang.Object statusMessage_; /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ @java.lang.Override @@ -327,29 +385,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -360,6 +418,8 @@ public java.lang.String getStatusMessage() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -368,6 +428,7 @@ public java.lang.String getStatusMessage() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -378,11 +439,14 @@ public boolean getRequestedCancellation() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ @java.lang.Override @@ -391,29 +455,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -422,6 +486,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -433,8 +498,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -466,12 +530,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!getTargetBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -483,8 +545,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); } if (!getApiVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -497,33 +558,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.clouddms.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.OperationMetadata other = (com.google.cloud.clouddms.v1.OperationMetadata) obj; + com.google.cloud.clouddms.v1.OperationMetadata other = + (com.google.cloud.clouddms.v1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusMessage() - .equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() - != other.getRequestedCancellation()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -550,8 +605,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -559,118 +613,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.clouddms.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.clouddms.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.OperationMetadata 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.clouddms.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.OperationMetadata 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.clouddms.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.OperationMetadata 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.clouddms.v1.OperationMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.OperationMetadata 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.clouddms.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.OperationMetadata 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.clouddms.v1.OperationMetadata 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.clouddms.v1.OperationMetadata 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.clouddms.v1.OperationMetadata 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 the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.OperationMetadata} */ - 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.clouddms.v1.OperationMetadata) com.google.cloud.clouddms.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.OperationMetadata.class, com.google.cloud.clouddms.v1.OperationMetadata.Builder.class); + com.google.cloud.clouddms.v1.OperationMetadata.class, + com.google.cloud.clouddms.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.clouddms.v1.OperationMetadata.newBuilder() @@ -678,16 +741,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -717,9 +779,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -738,7 +800,8 @@ public com.google.cloud.clouddms.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.clouddms.v1.OperationMetadata buildPartial() { - com.google.cloud.clouddms.v1.OperationMetadata result = new com.google.cloud.clouddms.v1.OperationMetadata(this); + com.google.cloud.clouddms.v1.OperationMetadata result = + new com.google.cloud.clouddms.v1.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -762,38 +825,39 @@ public com.google.cloud.clouddms.v1.OperationMetadata 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.clouddms.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.clouddms.v1.OperationMetadata)other); + return mergeFrom((com.google.cloud.clouddms.v1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -858,39 +922,58 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -906,14 +989,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -924,17 +1010,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -946,11 +1036,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -964,48 +1058,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1013,24 +1123,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1041,11 +1162,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1061,14 +1185,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.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(); @@ -1079,17 +1205,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.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; } @@ -1101,11 +1230,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1119,48 +1251,59 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.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. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.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_; @@ -1168,18 +1311,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1188,20 +1333,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1209,54 +1355,61 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1264,18 +1417,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1284,20 +1439,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1305,54 +1461,61 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { + public Builder setVerb(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { + public Builder setVerbBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1360,18 +1523,20 @@ public Builder setVerbBytes( private java.lang.Object statusMessage_ = ""; /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1380,20 +1545,21 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1401,61 +1567,70 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage( - java.lang.String value) { + public Builder setStatusMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusMessage_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; onChanged(); return this; } - private boolean requestedCancellation_ ; + private boolean requestedCancellation_; /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1464,6 +1639,7 @@ public Builder setStatusMessageBytes(
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1471,6 +1647,8 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1479,16 +1657,19 @@ public boolean getRequestedCancellation() {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1497,10 +1678,11 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { - + requestedCancellation_ = false; onChanged(); return this; @@ -1508,18 +1690,20 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1528,20 +1712,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1549,61 +1734,68 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = 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); } @@ -1613,12 +1805,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.OperationMetadata) private static final com.google.cloud.clouddms.v1.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.OperationMetadata(); } @@ -1627,16 +1819,16 @@ public static com.google.cloud.clouddms.v1.OperationMetadata getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1651,6 +1843,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadataOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadataOrBuilder.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadataOrBuilder.java index 77045b7e..5e175b93 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadataOrBuilder.java @@ -1,127 +1,182 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString - getStatusMessageBytes(); + com.google.protobuf.ByteString getStatusMessageBytes(); /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -130,27 +185,33 @@ public interface OperationMetadataOrBuilder extends
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfile.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfile.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfile.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfile.java index aab5b30e..b5f98fc3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfile.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfile.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * Specifies connection parameters required specifically for PostgreSQL
  * databases.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.clouddms.v1.PostgreSqlConnectionProfile}
  */
-public final class PostgreSqlConnectionProfile extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class PostgreSqlConnectionProfile extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.PostgreSqlConnectionProfile)
     PostgreSqlConnectionProfileOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use PostgreSqlConnectionProfile.newBuilder() to construct.
   private PostgreSqlConnectionProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private PostgreSqlConnectionProfile() {
     host_ = "";
     username_ = "";
@@ -29,16 +47,15 @@ private PostgreSqlConnectionProfile() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new PostgreSqlConnectionProfile();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private PostgreSqlConnectionProfile(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,93 +74,105 @@ private PostgreSqlConnectionProfile(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            host_ = s;
-            break;
-          }
-          case 16: {
-
-            port_ = input.readInt32();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            username_ = s;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              host_ = s;
+              break;
+            }
+          case 16:
+            {
+              port_ = input.readInt32();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            password_ = s;
-            break;
-          }
-          case 40: {
+              username_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            passwordSet_ = input.readBool();
-            break;
-          }
-          case 50: {
-            com.google.cloud.clouddms.v1.SslConfig.Builder subBuilder = null;
-            if (ssl_ != null) {
-              subBuilder = ssl_.toBuilder();
+              password_ = s;
+              break;
             }
-            ssl_ = input.readMessage(com.google.cloud.clouddms.v1.SslConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(ssl_);
-              ssl_ = subBuilder.buildPartial();
+          case 40:
+            {
+              passwordSet_ = input.readBool();
+              break;
             }
+          case 50:
+            {
+              com.google.cloud.clouddms.v1.SslConfig.Builder subBuilder = null;
+              if (ssl_ != null) {
+                subBuilder = ssl_.toBuilder();
+              }
+              ssl_ =
+                  input.readMessage(
+                      com.google.cloud.clouddms.v1.SslConfig.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(ssl_);
+                ssl_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 58:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 58: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            cloudSqlId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              cloudSqlId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
+        .internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_fieldAccessorTable
+    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
+        .internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.class, com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder.class);
+            com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.class,
+            com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder.class);
   }
 
   public static final int HOST_FIELD_NUMBER = 1;
   private volatile java.lang.Object host_;
   /**
+   *
+   *
    * 
    * Required. The IP or hostname of the source PostgreSQL database.
    * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The host. */ @java.lang.Override @@ -152,29 +181,29 @@ public java.lang.String getHost() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } } /** + * + * *
    * Required. The IP or hostname of the source PostgreSQL database.
    * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for host. */ @java.lang.Override - public com.google.protobuf.ByteString - getHostBytes() { + public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { @@ -185,11 +214,14 @@ public java.lang.String getHost() { public static final int PORT_FIELD_NUMBER = 2; private int port_; /** + * + * *
    * Required. The network port of the source PostgreSQL database.
    * 
* * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The port. */ @java.lang.Override @@ -200,12 +232,15 @@ public int getPort() { public static final int USERNAME_FIELD_NUMBER = 3; private volatile java.lang.Object username_; /** + * + * *
    * Required. The username that Database Migration Service will use to connect to the
    * database. The value is encrypted when stored in Database Migration Service.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ @java.lang.Override @@ -214,30 +249,30 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** + * + * *
    * Required. The username that Database Migration Service will use to connect to the
    * database. The value is encrypted when stored in Database Migration Service.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -248,13 +283,18 @@ public java.lang.String getUsername() { public static final int PASSWORD_FIELD_NUMBER = 4; private volatile java.lang.Object password_; /** + * + * *
    * Required. Input only. The password for the user that Database Migration Service will be using to
    * connect to the database. This field is not returned on request, and the
    * value is encrypted when stored in Database Migration Service.
    * 
* - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * * @return The password. */ @java.lang.Override @@ -263,31 +303,33 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** + * + * *
    * Required. Input only. The password for the user that Database Migration Service will be using to
    * connect to the database. This field is not returned on request, and the
    * value is encrypted when stored in Database Migration Service.
    * 
* - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -298,11 +340,14 @@ public java.lang.String getPassword() { public static final int PASSWORD_SET_FIELD_NUMBER = 5; private boolean passwordSet_; /** + * + * *
    * Output only. Indicates If this connection profile password is stored.
    * 
* * bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The passwordSet. */ @java.lang.Override @@ -313,11 +358,14 @@ public boolean getPasswordSet() { public static final int SSL_FIELD_NUMBER = 6; private com.google.cloud.clouddms.v1.SslConfig ssl_; /** + * + * *
    * SSL configuration for the destination to connect to the source database.
    * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; + * * @return Whether the ssl field is set. */ @java.lang.Override @@ -325,11 +373,14 @@ public boolean hasSsl() { return ssl_ != null; } /** + * + * *
    * SSL configuration for the destination to connect to the source database.
    * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; + * * @return The ssl. */ @java.lang.Override @@ -337,6 +388,8 @@ public com.google.cloud.clouddms.v1.SslConfig getSsl() { return ssl_ == null ? com.google.cloud.clouddms.v1.SslConfig.getDefaultInstance() : ssl_; } /** + * + * *
    * SSL configuration for the destination to connect to the source database.
    * 
@@ -351,12 +404,15 @@ public com.google.cloud.clouddms.v1.SslConfigOrBuilder getSslOrBuilder() { public static final int CLOUD_SQL_ID_FIELD_NUMBER = 7; private volatile java.lang.Object cloudSqlId_; /** + * + * *
    * If the source is a Cloud SQL database, use this field to
    * provide the Cloud SQL instance ID of the source.
    * 
* * string cloud_sql_id = 7; + * * @return The cloudSqlId. */ @java.lang.Override @@ -365,30 +421,30 @@ public java.lang.String getCloudSqlId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudSqlId_ = s; return s; } } /** + * + * *
    * If the source is a Cloud SQL database, use this field to
    * provide the Cloud SQL instance ID of the source.
    * 
* * string cloud_sql_id = 7; + * * @return The bytes for cloudSqlId. */ @java.lang.Override - public com.google.protobuf.ByteString - getCloudSqlIdBytes() { + public com.google.protobuf.ByteString getCloudSqlIdBytes() { java.lang.Object ref = cloudSqlId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cloudSqlId_ = b; return b; } else { @@ -397,6 +453,7 @@ public java.lang.String getCloudSqlId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -408,8 +465,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getHostBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, host_); } @@ -444,8 +500,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, host_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, port_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); } if (!getUsernameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); @@ -454,12 +509,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, password_); } if (passwordSet_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, passwordSet_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, passwordSet_); } if (ssl_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getSsl()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSsl()); } if (!getCloudSqlIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, cloudSqlId_); @@ -472,30 +525,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.clouddms.v1.PostgreSqlConnectionProfile)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile other = (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) obj; - - if (!getHost() - .equals(other.getHost())) return false; - if (getPort() - != other.getPort()) return false; - if (!getUsername() - .equals(other.getUsername())) return false; - if (!getPassword() - .equals(other.getPassword())) return false; - if (getPasswordSet() - != other.getPasswordSet()) return false; + com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile other = + (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) obj; + + if (!getHost().equals(other.getHost())) return false; + if (getPort() != other.getPort()) return false; + if (!getUsername().equals(other.getUsername())) return false; + if (!getPassword().equals(other.getPassword())) return false; + if (getPasswordSet() != other.getPasswordSet()) return false; if (hasSsl() != other.hasSsl()) return false; if (hasSsl()) { - if (!getSsl() - .equals(other.getSsl())) return false; + if (!getSsl().equals(other.getSsl())) return false; } - if (!getCloudSqlId() - .equals(other.getCloudSqlId())) return false; + if (!getCloudSqlId().equals(other.getCloudSqlId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -516,8 +563,7 @@ public int hashCode() { hash = (37 * hash) + PASSWORD_FIELD_NUMBER; hash = (53 * hash) + getPassword().hashCode(); hash = (37 * hash) + PASSWORD_SET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPasswordSet()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPasswordSet()); if (hasSsl()) { hash = (37 * hash) + SSL_FIELD_NUMBER; hash = (53 * hash) + getSsl().hashCode(); @@ -530,96 +576,104 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile 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.clouddms.v1.PostgreSqlConnectionProfile 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.clouddms.v1.PostgreSqlConnectionProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile 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.clouddms.v1.PostgreSqlConnectionProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile 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.clouddms.v1.PostgreSqlConnectionProfile parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile 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.clouddms.v1.PostgreSqlConnectionProfile parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile 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.clouddms.v1.PostgreSqlConnectionProfile 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.clouddms.v1.PostgreSqlConnectionProfile 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.clouddms.v1.PostgreSqlConnectionProfile prototype) { + + public static Builder newBuilder( + com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile 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; } /** + * + * *
    * Specifies connection parameters required specifically for PostgreSQL
    * databases.
@@ -627,21 +681,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.clouddms.v1.PostgreSqlConnectionProfile}
    */
-  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.clouddms.v1.PostgreSqlConnectionProfile)
       com.google.cloud.clouddms.v1.PostgreSqlConnectionProfileOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
+          .internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_fieldAccessorTable
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
+          .internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.class, com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder.class);
+              com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.class,
+              com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder.class);
     }
 
     // Construct using com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.newBuilder()
@@ -649,16 +705,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -684,9 +739,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
+          .internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_descriptor;
     }
 
     @java.lang.Override
@@ -705,7 +760,8 @@ public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile build() {
 
     @java.lang.Override
     public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile buildPartial() {
-      com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile result = new com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile(this);
+      com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile result =
+          new com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile(this);
       result.host_ = host_;
       result.port_ = port_;
       result.username_ = username_;
@@ -725,38 +781,39 @@ public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile 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.clouddms.v1.PostgreSqlConnectionProfile) {
-        return mergeFrom((com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile)other);
+        return mergeFrom((com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -764,7 +821,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile other) {
-      if (other == com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.getDefaultInstance()) return this;
+      if (other == com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.getDefaultInstance())
+        return this;
       if (!other.getHost().isEmpty()) {
         host_ = other.host_;
         onChanged();
@@ -809,7 +867,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -821,18 +880,20 @@ public Builder mergeFrom(
 
     private java.lang.Object host_ = "";
     /**
+     *
+     *
      * 
      * Required. The IP or hostname of the source PostgreSQL database.
      * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The host. */ public java.lang.String getHost() { java.lang.Object ref = host_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; @@ -841,20 +902,21 @@ public java.lang.String getHost() { } } /** + * + * *
      * Required. The IP or hostname of the source PostgreSQL database.
      * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for host. */ - public com.google.protobuf.ByteString - getHostBytes() { + public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { @@ -862,66 +924,76 @@ public java.lang.String getHost() { } } /** + * + * *
      * Required. The IP or hostname of the source PostgreSQL database.
      * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The host to set. * @return This builder for chaining. */ - public Builder setHost( - java.lang.String value) { + public Builder setHost(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + host_ = value; onChanged(); return this; } /** + * + * *
      * Required. The IP or hostname of the source PostgreSQL database.
      * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearHost() { - + host_ = getDefaultInstance().getHost(); onChanged(); return this; } /** + * + * *
      * Required. The IP or hostname of the source PostgreSQL database.
      * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for host to set. * @return This builder for chaining. */ - public Builder setHostBytes( - com.google.protobuf.ByteString value) { + public Builder setHostBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + host_ = value; onChanged(); return this; } - private int port_ ; + private int port_; /** + * + * *
      * Required. The network port of the source PostgreSQL database.
      * 
* * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The port. */ @java.lang.Override @@ -929,30 +1001,36 @@ public int getPort() { return port_; } /** + * + * *
      * Required. The network port of the source PostgreSQL database.
      * 
* * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { - + port_ = value; onChanged(); return this; } /** + * + * *
      * Required. The network port of the source PostgreSQL database.
      * 
* * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPort() { - + port_ = 0; onChanged(); return this; @@ -960,19 +1038,21 @@ public Builder clearPort() { private java.lang.Object username_ = ""; /** + * + * *
      * Required. The username that Database Migration Service will use to connect to the
      * database. The value is encrypted when stored in Database Migration Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -981,21 +1061,22 @@ public java.lang.String getUsername() { } } /** + * + * *
      * Required. The username that Database Migration Service will use to connect to the
      * database. The value is encrypted when stored in Database Migration Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -1003,57 +1084,64 @@ public java.lang.String getUsername() { } } /** + * + * *
      * Required. The username that Database Migration Service will use to connect to the
      * database. The value is encrypted when stored in Database Migration Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername( - java.lang.String value) { + public Builder setUsername(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** + * + * *
      * Required. The username that Database Migration Service will use to connect to the
      * database. The value is encrypted when stored in Database Migration Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** + * + * *
      * Required. The username that Database Migration Service will use to connect to the
      * database. The value is encrypted when stored in Database Migration Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes( - com.google.protobuf.ByteString value) { + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -1061,20 +1149,24 @@ public Builder setUsernameBytes( private java.lang.Object password_ = ""; /** + * + * *
      * Required. Input only. The password for the user that Database Migration Service will be using to
      * connect to the database. This field is not returned on request, and the
      * value is encrypted when stored in Database Migration Service.
      * 
* - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -1083,22 +1175,25 @@ public java.lang.String getPassword() { } } /** + * + * *
      * Required. Input only. The password for the user that Database Migration Service will be using to
      * connect to the database. This field is not returned on request, and the
      * value is encrypted when stored in Database Migration Service.
      * 
* - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * * @return The bytes for password. */ - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -1106,72 +1201,88 @@ public java.lang.String getPassword() { } } /** + * + * *
      * Required. Input only. The password for the user that Database Migration Service will be using to
      * connect to the database. This field is not returned on request, and the
      * value is encrypted when stored in Database Migration Service.
      * 
* - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword( - java.lang.String value) { + public Builder setPassword(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** + * + * *
      * Required. Input only. The password for the user that Database Migration Service will be using to
      * connect to the database. This field is not returned on request, and the
      * value is encrypted when stored in Database Migration Service.
      * 
* - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** + * + * *
      * Required. Input only. The password for the user that Database Migration Service will be using to
      * connect to the database. This field is not returned on request, and the
      * value is encrypted when stored in Database Migration Service.
      * 
* - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; } - private boolean passwordSet_ ; + private boolean passwordSet_; /** + * + * *
      * Output only. Indicates If this connection profile password is stored.
      * 
* * bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The passwordSet. */ @java.lang.Override @@ -1179,30 +1290,36 @@ public boolean getPasswordSet() { return passwordSet_; } /** + * + * *
      * Output only. Indicates If this connection profile password is stored.
      * 
* * bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The passwordSet to set. * @return This builder for chaining. */ public Builder setPasswordSet(boolean value) { - + passwordSet_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Indicates If this connection profile password is stored.
      * 
* * bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearPasswordSet() { - + passwordSet_ = false; onChanged(); return this; @@ -1210,24 +1327,33 @@ public Builder clearPasswordSet() { private com.google.cloud.clouddms.v1.SslConfig ssl_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.SslConfig, com.google.cloud.clouddms.v1.SslConfig.Builder, com.google.cloud.clouddms.v1.SslConfigOrBuilder> sslBuilder_; + com.google.cloud.clouddms.v1.SslConfig, + com.google.cloud.clouddms.v1.SslConfig.Builder, + com.google.cloud.clouddms.v1.SslConfigOrBuilder> + sslBuilder_; /** + * + * *
      * SSL configuration for the destination to connect to the source database.
      * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; + * * @return Whether the ssl field is set. */ public boolean hasSsl() { return sslBuilder_ != null || ssl_ != null; } /** + * + * *
      * SSL configuration for the destination to connect to the source database.
      * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; + * * @return The ssl. */ public com.google.cloud.clouddms.v1.SslConfig getSsl() { @@ -1238,6 +1364,8 @@ public com.google.cloud.clouddms.v1.SslConfig getSsl() { } } /** + * + * *
      * SSL configuration for the destination to connect to the source database.
      * 
@@ -1258,14 +1386,15 @@ public Builder setSsl(com.google.cloud.clouddms.v1.SslConfig value) { return this; } /** + * + * *
      * SSL configuration for the destination to connect to the source database.
      * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; */ - public Builder setSsl( - com.google.cloud.clouddms.v1.SslConfig.Builder builderForValue) { + public Builder setSsl(com.google.cloud.clouddms.v1.SslConfig.Builder builderForValue) { if (sslBuilder_ == null) { ssl_ = builderForValue.build(); onChanged(); @@ -1276,6 +1405,8 @@ public Builder setSsl( return this; } /** + * + * *
      * SSL configuration for the destination to connect to the source database.
      * 
@@ -1286,7 +1417,9 @@ public Builder mergeSsl(com.google.cloud.clouddms.v1.SslConfig value) { if (sslBuilder_ == null) { if (ssl_ != null) { ssl_ = - com.google.cloud.clouddms.v1.SslConfig.newBuilder(ssl_).mergeFrom(value).buildPartial(); + com.google.cloud.clouddms.v1.SslConfig.newBuilder(ssl_) + .mergeFrom(value) + .buildPartial(); } else { ssl_ = value; } @@ -1298,6 +1431,8 @@ public Builder mergeSsl(com.google.cloud.clouddms.v1.SslConfig value) { return this; } /** + * + * *
      * SSL configuration for the destination to connect to the source database.
      * 
@@ -1316,6 +1451,8 @@ public Builder clearSsl() { return this; } /** + * + * *
      * SSL configuration for the destination to connect to the source database.
      * 
@@ -1323,11 +1460,13 @@ public Builder clearSsl() { * .google.cloud.clouddms.v1.SslConfig ssl = 6; */ public com.google.cloud.clouddms.v1.SslConfig.Builder getSslBuilder() { - + onChanged(); return getSslFieldBuilder().getBuilder(); } /** + * + * *
      * SSL configuration for the destination to connect to the source database.
      * 
@@ -1338,11 +1477,12 @@ public com.google.cloud.clouddms.v1.SslConfigOrBuilder getSslOrBuilder() { if (sslBuilder_ != null) { return sslBuilder_.getMessageOrBuilder(); } else { - return ssl_ == null ? - com.google.cloud.clouddms.v1.SslConfig.getDefaultInstance() : ssl_; + return ssl_ == null ? com.google.cloud.clouddms.v1.SslConfig.getDefaultInstance() : ssl_; } } /** + * + * *
      * SSL configuration for the destination to connect to the source database.
      * 
@@ -1350,14 +1490,17 @@ public com.google.cloud.clouddms.v1.SslConfigOrBuilder getSslOrBuilder() { * .google.cloud.clouddms.v1.SslConfig ssl = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.SslConfig, com.google.cloud.clouddms.v1.SslConfig.Builder, com.google.cloud.clouddms.v1.SslConfigOrBuilder> + com.google.cloud.clouddms.v1.SslConfig, + com.google.cloud.clouddms.v1.SslConfig.Builder, + com.google.cloud.clouddms.v1.SslConfigOrBuilder> getSslFieldBuilder() { if (sslBuilder_ == null) { - sslBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.SslConfig, com.google.cloud.clouddms.v1.SslConfig.Builder, com.google.cloud.clouddms.v1.SslConfigOrBuilder>( - getSsl(), - getParentForChildren(), - isClean()); + sslBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SslConfig, + com.google.cloud.clouddms.v1.SslConfig.Builder, + com.google.cloud.clouddms.v1.SslConfigOrBuilder>( + getSsl(), getParentForChildren(), isClean()); ssl_ = null; } return sslBuilder_; @@ -1365,19 +1508,21 @@ public com.google.cloud.clouddms.v1.SslConfigOrBuilder getSslOrBuilder() { private java.lang.Object cloudSqlId_ = ""; /** + * + * *
      * If the source is a Cloud SQL database, use this field to
      * provide the Cloud SQL instance ID of the source.
      * 
* * string cloud_sql_id = 7; + * * @return The cloudSqlId. */ public java.lang.String getCloudSqlId() { java.lang.Object ref = cloudSqlId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudSqlId_ = s; return s; @@ -1386,21 +1531,22 @@ public java.lang.String getCloudSqlId() { } } /** + * + * *
      * If the source is a Cloud SQL database, use this field to
      * provide the Cloud SQL instance ID of the source.
      * 
* * string cloud_sql_id = 7; + * * @return The bytes for cloudSqlId. */ - public com.google.protobuf.ByteString - getCloudSqlIdBytes() { + public com.google.protobuf.ByteString getCloudSqlIdBytes() { java.lang.Object ref = cloudSqlId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cloudSqlId_ = b; return b; } else { @@ -1408,64 +1554,71 @@ public java.lang.String getCloudSqlId() { } } /** + * + * *
      * If the source is a Cloud SQL database, use this field to
      * provide the Cloud SQL instance ID of the source.
      * 
* * string cloud_sql_id = 7; + * * @param value The cloudSqlId to set. * @return This builder for chaining. */ - public Builder setCloudSqlId( - java.lang.String value) { + public Builder setCloudSqlId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cloudSqlId_ = value; onChanged(); return this; } /** + * + * *
      * If the source is a Cloud SQL database, use this field to
      * provide the Cloud SQL instance ID of the source.
      * 
* * string cloud_sql_id = 7; + * * @return This builder for chaining. */ public Builder clearCloudSqlId() { - + cloudSqlId_ = getDefaultInstance().getCloudSqlId(); onChanged(); return this; } /** + * + * *
      * If the source is a Cloud SQL database, use this field to
      * provide the Cloud SQL instance ID of the source.
      * 
* * string cloud_sql_id = 7; + * * @param value The bytes for cloudSqlId to set. * @return This builder for chaining. */ - public Builder setCloudSqlIdBytes( - com.google.protobuf.ByteString value) { + public Builder setCloudSqlIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cloudSqlId_ = 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); } @@ -1475,12 +1628,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.PostgreSqlConnectionProfile) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.PostgreSqlConnectionProfile) private static final com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile(); } @@ -1489,16 +1642,16 @@ public static com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PostgreSqlConnectionProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PostgreSqlConnectionProfile(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgreSqlConnectionProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PostgreSqlConnectionProfile(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1513,6 +1666,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfileOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfileOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfileOrBuilder.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfileOrBuilder.java index b9c6f0e9..2d7a74b6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfileOrBuilder.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfileOrBuilder.java @@ -1,117 +1,166 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; -public interface PostgreSqlConnectionProfileOrBuilder extends +public interface PostgreSqlConnectionProfileOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.PostgreSqlConnectionProfile) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The IP or hostname of the source PostgreSQL database.
    * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The host. */ java.lang.String getHost(); /** + * + * *
    * Required. The IP or hostname of the source PostgreSQL database.
    * 
* * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for host. */ - com.google.protobuf.ByteString - getHostBytes(); + com.google.protobuf.ByteString getHostBytes(); /** + * + * *
    * Required. The network port of the source PostgreSQL database.
    * 
* * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The port. */ int getPort(); /** + * + * *
    * Required. The username that Database Migration Service will use to connect to the
    * database. The value is encrypted when stored in Database Migration Service.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ java.lang.String getUsername(); /** + * + * *
    * Required. The username that Database Migration Service will use to connect to the
    * database. The value is encrypted when stored in Database Migration Service.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ - com.google.protobuf.ByteString - getUsernameBytes(); + com.google.protobuf.ByteString getUsernameBytes(); /** + * + * *
    * Required. Input only. The password for the user that Database Migration Service will be using to
    * connect to the database. This field is not returned on request, and the
    * value is encrypted when stored in Database Migration Service.
    * 
* - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * * @return The password. */ java.lang.String getPassword(); /** + * + * *
    * Required. Input only. The password for the user that Database Migration Service will be using to
    * connect to the database. This field is not returned on request, and the
    * value is encrypted when stored in Database Migration Service.
    * 
* - * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * * @return The bytes for password. */ - com.google.protobuf.ByteString - getPasswordBytes(); + com.google.protobuf.ByteString getPasswordBytes(); /** + * + * *
    * Output only. Indicates If this connection profile password is stored.
    * 
* * bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The passwordSet. */ boolean getPasswordSet(); /** + * + * *
    * SSL configuration for the destination to connect to the source database.
    * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; + * * @return Whether the ssl field is set. */ boolean hasSsl(); /** + * + * *
    * SSL configuration for the destination to connect to the source database.
    * 
* * .google.cloud.clouddms.v1.SslConfig ssl = 6; + * * @return The ssl. */ com.google.cloud.clouddms.v1.SslConfig getSsl(); /** + * + * *
    * SSL configuration for the destination to connect to the source database.
    * 
@@ -121,24 +170,29 @@ public interface PostgreSqlConnectionProfileOrBuilder extends com.google.cloud.clouddms.v1.SslConfigOrBuilder getSslOrBuilder(); /** + * + * *
    * If the source is a Cloud SQL database, use this field to
    * provide the Cloud SQL instance ID of the source.
    * 
* * string cloud_sql_id = 7; + * * @return The cloudSqlId. */ java.lang.String getCloudSqlId(); /** + * + * *
    * If the source is a Cloud SQL database, use this field to
    * provide the Cloud SQL instance ID of the source.
    * 
* * string cloud_sql_id = 7; + * * @return The bytes for cloudSqlId. */ - com.google.protobuf.ByteString - getCloudSqlIdBytes(); + com.google.protobuf.ByteString getCloudSqlIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequest.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequest.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequest.java index c3c7a787..286b98dd 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequest.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * Request message for 'PromoteMigrationJob' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.PromoteMigrationJobRequest} */ -public final class PromoteMigrationJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PromoteMigrationJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.PromoteMigrationJobRequest) PromoteMigrationJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PromoteMigrationJobRequest.newBuilder() to construct. private PromoteMigrationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PromoteMigrationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PromoteMigrationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PromoteMigrationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,58 @@ private PromoteMigrationJobRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.class, com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.class, + com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Name of the migration job resource to promote.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ @java.lang.Override @@ -107,29 +130,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; } } /** + * + * *
    * Name of the migration job resource to promote.
    * 
* * string name = 1 [(.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 { @@ -138,6 +161,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +173,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -174,15 +197,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.clouddms.v1.PromoteMigrationJobRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.PromoteMigrationJobRequest other = (com.google.cloud.clouddms.v1.PromoteMigrationJobRequest) obj; + com.google.cloud.clouddms.v1.PromoteMigrationJobRequest other = + (com.google.cloud.clouddms.v1.PromoteMigrationJobRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,117 +225,127 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.PromoteMigrationJobRequest 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.clouddms.v1.PromoteMigrationJobRequest 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.clouddms.v1.PromoteMigrationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.PromoteMigrationJobRequest 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.clouddms.v1.PromoteMigrationJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.PromoteMigrationJobRequest 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.clouddms.v1.PromoteMigrationJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.PromoteMigrationJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.PromoteMigrationJobRequest 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.clouddms.v1.PromoteMigrationJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.PromoteMigrationJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.PromoteMigrationJobRequest 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.clouddms.v1.PromoteMigrationJobRequest 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.clouddms.v1.PromoteMigrationJobRequest 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.clouddms.v1.PromoteMigrationJobRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.clouddms.v1.PromoteMigrationJobRequest 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 message for 'PromoteMigrationJob' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.PromoteMigrationJobRequest} */ - 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.clouddms.v1.PromoteMigrationJobRequest) com.google.cloud.clouddms.v1.PromoteMigrationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.class, com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.class, + com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.newBuilder() @@ -320,16 +353,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +371,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_PromoteMigrationJobRequest_descriptor; } @java.lang.Override @@ -360,7 +392,8 @@ public com.google.cloud.clouddms.v1.PromoteMigrationJobRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.PromoteMigrationJobRequest buildPartial() { - com.google.cloud.clouddms.v1.PromoteMigrationJobRequest result = new com.google.cloud.clouddms.v1.PromoteMigrationJobRequest(this); + com.google.cloud.clouddms.v1.PromoteMigrationJobRequest result = + new com.google.cloud.clouddms.v1.PromoteMigrationJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +403,39 @@ public com.google.cloud.clouddms.v1.PromoteMigrationJobRequest 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.clouddms.v1.PromoteMigrationJobRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.PromoteMigrationJobRequest)other); + return mergeFrom((com.google.cloud.clouddms.v1.PromoteMigrationJobRequest) other); } else { super.mergeFrom(other); return this; @@ -409,7 +443,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.PromoteMigrationJobRequest other) { - if (other == com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.clouddms.v1.PromoteMigrationJobRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -433,7 +468,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.clouddms.v1.PromoteMigrationJobRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.clouddms.v1.PromoteMigrationJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -445,18 +481,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Name of the migration job resource to promote.
      * 
* * string name = 1 [(.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; @@ -465,20 +503,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the migration job resource to promote.
      * 
* * string name = 1 [(.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 { @@ -486,61 +525,68 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the migration job resource to promote.
      * 
* * string name = 1 [(.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; } /** + * + * *
      * Name of the migration job resource to promote.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Name of the migration job resource to promote.
      * 
* * string name = 1 [(.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); } @@ -550,12 +596,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.PromoteMigrationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.PromoteMigrationJobRequest) private static final com.google.cloud.clouddms.v1.PromoteMigrationJobRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.PromoteMigrationJobRequest(); } @@ -564,16 +610,16 @@ public static com.google.cloud.clouddms.v1.PromoteMigrationJobRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PromoteMigrationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PromoteMigrationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PromoteMigrationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PromoteMigrationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +634,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.clouddms.v1.PromoteMigrationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequestOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequestOrBuilder.java new file mode 100644 index 00000000..e5f46816 --- /dev/null +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PromoteMigrationJobRequestOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface PromoteMigrationJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.PromoteMigrationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the migration job resource to promote.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Name of the migration job resource to promote.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequest.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequest.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequest.java index 35a889d3..5ee44016 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequest.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * Request message for 'RestartMigrationJob' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.RestartMigrationJobRequest} */ -public final class RestartMigrationJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RestartMigrationJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.RestartMigrationJobRequest) RestartMigrationJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RestartMigrationJobRequest.newBuilder() to construct. private RestartMigrationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RestartMigrationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RestartMigrationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RestartMigrationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,58 @@ private RestartMigrationJobRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.RestartMigrationJobRequest.class, com.google.cloud.clouddms.v1.RestartMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.RestartMigrationJobRequest.class, + com.google.cloud.clouddms.v1.RestartMigrationJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Name of the migration job resource to restart.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ @java.lang.Override @@ -107,29 +130,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; } } /** + * + * *
    * Name of the migration job resource to restart.
    * 
* * string name = 1 [(.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 { @@ -138,6 +161,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +173,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -174,15 +197,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.clouddms.v1.RestartMigrationJobRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.RestartMigrationJobRequest other = (com.google.cloud.clouddms.v1.RestartMigrationJobRequest) obj; + com.google.cloud.clouddms.v1.RestartMigrationJobRequest other = + (com.google.cloud.clouddms.v1.RestartMigrationJobRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,117 +225,127 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.RestartMigrationJobRequest 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.clouddms.v1.RestartMigrationJobRequest 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.clouddms.v1.RestartMigrationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.RestartMigrationJobRequest 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.clouddms.v1.RestartMigrationJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.RestartMigrationJobRequest 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.clouddms.v1.RestartMigrationJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.RestartMigrationJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.RestartMigrationJobRequest 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.clouddms.v1.RestartMigrationJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.RestartMigrationJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.RestartMigrationJobRequest 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.clouddms.v1.RestartMigrationJobRequest 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.clouddms.v1.RestartMigrationJobRequest 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.clouddms.v1.RestartMigrationJobRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.clouddms.v1.RestartMigrationJobRequest 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 message for 'RestartMigrationJob' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.RestartMigrationJobRequest} */ - 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.clouddms.v1.RestartMigrationJobRequest) com.google.cloud.clouddms.v1.RestartMigrationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.RestartMigrationJobRequest.class, com.google.cloud.clouddms.v1.RestartMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.RestartMigrationJobRequest.class, + com.google.cloud.clouddms.v1.RestartMigrationJobRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.RestartMigrationJobRequest.newBuilder() @@ -320,16 +353,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +371,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_RestartMigrationJobRequest_descriptor; } @java.lang.Override @@ -360,7 +392,8 @@ public com.google.cloud.clouddms.v1.RestartMigrationJobRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.RestartMigrationJobRequest buildPartial() { - com.google.cloud.clouddms.v1.RestartMigrationJobRequest result = new com.google.cloud.clouddms.v1.RestartMigrationJobRequest(this); + com.google.cloud.clouddms.v1.RestartMigrationJobRequest result = + new com.google.cloud.clouddms.v1.RestartMigrationJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +403,39 @@ public com.google.cloud.clouddms.v1.RestartMigrationJobRequest 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.clouddms.v1.RestartMigrationJobRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.RestartMigrationJobRequest)other); + return mergeFrom((com.google.cloud.clouddms.v1.RestartMigrationJobRequest) other); } else { super.mergeFrom(other); return this; @@ -409,7 +443,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.RestartMigrationJobRequest other) { - if (other == com.google.cloud.clouddms.v1.RestartMigrationJobRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.clouddms.v1.RestartMigrationJobRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -433,7 +468,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.clouddms.v1.RestartMigrationJobRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.clouddms.v1.RestartMigrationJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -445,18 +481,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Name of the migration job resource to restart.
      * 
* * string name = 1 [(.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; @@ -465,20 +503,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the migration job resource to restart.
      * 
* * string name = 1 [(.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 { @@ -486,61 +525,68 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the migration job resource to restart.
      * 
* * string name = 1 [(.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; } /** + * + * *
      * Name of the migration job resource to restart.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Name of the migration job resource to restart.
      * 
* * string name = 1 [(.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); } @@ -550,12 +596,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.RestartMigrationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.RestartMigrationJobRequest) private static final com.google.cloud.clouddms.v1.RestartMigrationJobRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.RestartMigrationJobRequest(); } @@ -564,16 +610,16 @@ public static com.google.cloud.clouddms.v1.RestartMigrationJobRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RestartMigrationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RestartMigrationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestartMigrationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RestartMigrationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +634,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.clouddms.v1.RestartMigrationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequestOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequestOrBuilder.java new file mode 100644 index 00000000..467c9bf1 --- /dev/null +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RestartMigrationJobRequestOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface RestartMigrationJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.RestartMigrationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the migration job resource to restart.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Name of the migration job resource to restart.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequest.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequest.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequest.java index df9b496f..81b9ccc3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequest.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * Request message for 'ResumeMigrationJob' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.ResumeMigrationJobRequest} */ -public final class ResumeMigrationJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ResumeMigrationJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ResumeMigrationJobRequest) ResumeMigrationJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResumeMigrationJobRequest.newBuilder() to construct. private ResumeMigrationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ResumeMigrationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResumeMigrationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ResumeMigrationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,58 @@ private ResumeMigrationJobRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.class, com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.class, + com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Name of the migration job resource to resume.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ @java.lang.Override @@ -107,29 +130,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; } } /** + * + * *
    * Name of the migration job resource to resume.
    * 
* * string name = 1 [(.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 { @@ -138,6 +161,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +173,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -174,15 +197,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.clouddms.v1.ResumeMigrationJobRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.ResumeMigrationJobRequest other = (com.google.cloud.clouddms.v1.ResumeMigrationJobRequest) obj; + com.google.cloud.clouddms.v1.ResumeMigrationJobRequest other = + (com.google.cloud.clouddms.v1.ResumeMigrationJobRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,117 +225,127 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.ResumeMigrationJobRequest 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.clouddms.v1.ResumeMigrationJobRequest 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.clouddms.v1.ResumeMigrationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.ResumeMigrationJobRequest 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.clouddms.v1.ResumeMigrationJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.ResumeMigrationJobRequest 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.clouddms.v1.ResumeMigrationJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.ResumeMigrationJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.ResumeMigrationJobRequest 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.clouddms.v1.ResumeMigrationJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.ResumeMigrationJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.ResumeMigrationJobRequest 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.clouddms.v1.ResumeMigrationJobRequest 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.clouddms.v1.ResumeMigrationJobRequest 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.clouddms.v1.ResumeMigrationJobRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.clouddms.v1.ResumeMigrationJobRequest 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 message for 'ResumeMigrationJob' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.ResumeMigrationJobRequest} */ - 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.clouddms.v1.ResumeMigrationJobRequest) com.google.cloud.clouddms.v1.ResumeMigrationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.class, com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.class, + com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.newBuilder() @@ -320,16 +353,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +371,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ResumeMigrationJobRequest_descriptor; } @java.lang.Override @@ -360,7 +392,8 @@ public com.google.cloud.clouddms.v1.ResumeMigrationJobRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.ResumeMigrationJobRequest buildPartial() { - com.google.cloud.clouddms.v1.ResumeMigrationJobRequest result = new com.google.cloud.clouddms.v1.ResumeMigrationJobRequest(this); + com.google.cloud.clouddms.v1.ResumeMigrationJobRequest result = + new com.google.cloud.clouddms.v1.ResumeMigrationJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +403,39 @@ public com.google.cloud.clouddms.v1.ResumeMigrationJobRequest 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.clouddms.v1.ResumeMigrationJobRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.ResumeMigrationJobRequest)other); + return mergeFrom((com.google.cloud.clouddms.v1.ResumeMigrationJobRequest) other); } else { super.mergeFrom(other); return this; @@ -409,7 +443,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.ResumeMigrationJobRequest other) { - if (other == com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.clouddms.v1.ResumeMigrationJobRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -433,7 +468,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.clouddms.v1.ResumeMigrationJobRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.clouddms.v1.ResumeMigrationJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -445,18 +481,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Name of the migration job resource to resume.
      * 
* * string name = 1 [(.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; @@ -465,20 +503,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the migration job resource to resume.
      * 
* * string name = 1 [(.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 { @@ -486,61 +525,68 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the migration job resource to resume.
      * 
* * string name = 1 [(.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; } /** + * + * *
      * Name of the migration job resource to resume.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Name of the migration job resource to resume.
      * 
* * string name = 1 [(.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); } @@ -550,12 +596,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.ResumeMigrationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ResumeMigrationJobRequest) private static final com.google.cloud.clouddms.v1.ResumeMigrationJobRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ResumeMigrationJobRequest(); } @@ -564,16 +610,16 @@ public static com.google.cloud.clouddms.v1.ResumeMigrationJobRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResumeMigrationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResumeMigrationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResumeMigrationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResumeMigrationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +634,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.clouddms.v1.ResumeMigrationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequestOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequestOrBuilder.java new file mode 100644 index 00000000..0c8c1190 --- /dev/null +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ResumeMigrationJobRequestOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface ResumeMigrationJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ResumeMigrationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the migration job resource to resume.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Name of the migration job resource to resume.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivity.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivity.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivity.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivity.java index 9bc75249..f61f8a7a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivity.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivity.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * The details needed to configure a reverse SSH tunnel between the source and
  * destination databases. These details will be used when calling the
@@ -15,15 +32,16 @@
  *
  * Protobuf type {@code google.cloud.clouddms.v1.ReverseSshConnectivity}
  */
-public final class ReverseSshConnectivity extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ReverseSshConnectivity extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ReverseSshConnectivity)
     ReverseSshConnectivityOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ReverseSshConnectivity.newBuilder() to construct.
   private ReverseSshConnectivity(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ReverseSshConnectivity() {
     vmIp_ = "";
     vm_ = "";
@@ -32,16 +50,15 @@ private ReverseSshConnectivity() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ReverseSshConnectivity();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ReverseSshConnectivity(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -60,70 +77,78 @@ private ReverseSshConnectivity(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            vmIp_ = s;
-            break;
-          }
-          case 16: {
-
-            vmPort_ = input.readInt32();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              vmIp_ = s;
+              break;
+            }
+          case 16:
+            {
+              vmPort_ = input.readInt32();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            vm_ = s;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              vm_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            vpc_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              vpc_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
+        .internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_fieldAccessorTable
+    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
+        .internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.clouddms.v1.ReverseSshConnectivity.class, com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder.class);
+            com.google.cloud.clouddms.v1.ReverseSshConnectivity.class,
+            com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder.class);
   }
 
   public static final int VM_IP_FIELD_NUMBER = 1;
   private volatile java.lang.Object vmIp_;
   /**
+   *
+   *
    * 
    * Required. The IP of the virtual machine (Compute Engine) used as the bastion server
    * for the SSH tunnel.
    * 
* * string vm_ip = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmIp. */ @java.lang.Override @@ -132,30 +157,30 @@ public java.lang.String getVmIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vmIp_ = s; return s; } } /** + * + * *
    * Required. The IP of the virtual machine (Compute Engine) used as the bastion server
    * for the SSH tunnel.
    * 
* * string vm_ip = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vmIp. */ @java.lang.Override - public com.google.protobuf.ByteString - getVmIpBytes() { + public com.google.protobuf.ByteString getVmIpBytes() { java.lang.Object ref = vmIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vmIp_ = b; return b; } else { @@ -166,12 +191,15 @@ public java.lang.String getVmIp() { public static final int VM_PORT_FIELD_NUMBER = 2; private int vmPort_; /** + * + * *
    * Required. The forwarding port of the virtual machine (Compute Engine) used as the
    * bastion server for the SSH tunnel.
    * 
* * int32 vm_port = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmPort. */ @java.lang.Override @@ -182,12 +210,15 @@ public int getVmPort() { public static final int VM_FIELD_NUMBER = 3; private volatile java.lang.Object vm_; /** + * + * *
    * The name of the virtual machine (Compute Engine) used as the bastion server
    * for the SSH tunnel.
    * 
* * string vm = 3; + * * @return The vm. */ @java.lang.Override @@ -196,30 +227,30 @@ public java.lang.String getVm() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vm_ = s; return s; } } /** + * + * *
    * The name of the virtual machine (Compute Engine) used as the bastion server
    * for the SSH tunnel.
    * 
* * string vm = 3; + * * @return The bytes for vm. */ @java.lang.Override - public com.google.protobuf.ByteString - getVmBytes() { + public com.google.protobuf.ByteString getVmBytes() { java.lang.Object ref = vm_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vm_ = b; return b; } else { @@ -230,11 +261,14 @@ public java.lang.String getVm() { public static final int VPC_FIELD_NUMBER = 4; private volatile java.lang.Object vpc_; /** + * + * *
    * The name of the VPC to peer with the Cloud SQL private network.
    * 
* * string vpc = 4; + * * @return The vpc. */ @java.lang.Override @@ -243,29 +277,29 @@ public java.lang.String getVpc() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpc_ = s; return s; } } /** + * + * *
    * The name of the VPC to peer with the Cloud SQL private network.
    * 
* * string vpc = 4; + * * @return The bytes for vpc. */ @java.lang.Override - public com.google.protobuf.ByteString - getVpcBytes() { + public com.google.protobuf.ByteString getVpcBytes() { java.lang.Object ref = vpc_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpc_ = b; return b; } else { @@ -274,6 +308,7 @@ public java.lang.String getVpc() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,8 +320,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getVmIpBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, vmIp_); } @@ -312,8 +346,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, vmIp_); } if (vmPort_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, vmPort_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, vmPort_); } if (!getVmBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, vm_); @@ -329,21 +362,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.clouddms.v1.ReverseSshConnectivity)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.ReverseSshConnectivity other = (com.google.cloud.clouddms.v1.ReverseSshConnectivity) obj; - - if (!getVmIp() - .equals(other.getVmIp())) return false; - if (getVmPort() - != other.getVmPort()) return false; - if (!getVm() - .equals(other.getVm())) return false; - if (!getVpc() - .equals(other.getVpc())) return false; + com.google.cloud.clouddms.v1.ReverseSshConnectivity other = + (com.google.cloud.clouddms.v1.ReverseSshConnectivity) obj; + + if (!getVmIp().equals(other.getVmIp())) return false; + if (getVmPort() != other.getVmPort()) return false; + if (!getVm().equals(other.getVm())) return false; + if (!getVpc().equals(other.getVpc())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -369,96 +399,103 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.ReverseSshConnectivity 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.clouddms.v1.ReverseSshConnectivity 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.clouddms.v1.ReverseSshConnectivity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.ReverseSshConnectivity 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.clouddms.v1.ReverseSshConnectivity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.ReverseSshConnectivity 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.clouddms.v1.ReverseSshConnectivity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.ReverseSshConnectivity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.ReverseSshConnectivity 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.clouddms.v1.ReverseSshConnectivity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.ReverseSshConnectivity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.ReverseSshConnectivity 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.clouddms.v1.ReverseSshConnectivity 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.clouddms.v1.ReverseSshConnectivity 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.clouddms.v1.ReverseSshConnectivity 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 details needed to configure a reverse SSH tunnel between the source and
    * destination databases. These details will be used when calling the
@@ -470,21 +507,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.clouddms.v1.ReverseSshConnectivity}
    */
-  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.clouddms.v1.ReverseSshConnectivity)
       com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
+          .internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_fieldAccessorTable
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
+          .internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.clouddms.v1.ReverseSshConnectivity.class, com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder.class);
+              com.google.cloud.clouddms.v1.ReverseSshConnectivity.class,
+              com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder.class);
     }
 
     // Construct using com.google.cloud.clouddms.v1.ReverseSshConnectivity.newBuilder()
@@ -492,16 +531,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -517,9 +555,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
+          .internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_descriptor;
     }
 
     @java.lang.Override
@@ -538,7 +576,8 @@ public com.google.cloud.clouddms.v1.ReverseSshConnectivity build() {
 
     @java.lang.Override
     public com.google.cloud.clouddms.v1.ReverseSshConnectivity buildPartial() {
-      com.google.cloud.clouddms.v1.ReverseSshConnectivity result = new com.google.cloud.clouddms.v1.ReverseSshConnectivity(this);
+      com.google.cloud.clouddms.v1.ReverseSshConnectivity result =
+          new com.google.cloud.clouddms.v1.ReverseSshConnectivity(this);
       result.vmIp_ = vmIp_;
       result.vmPort_ = vmPort_;
       result.vm_ = vm_;
@@ -551,38 +590,39 @@ public com.google.cloud.clouddms.v1.ReverseSshConnectivity 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.clouddms.v1.ReverseSshConnectivity) {
-        return mergeFrom((com.google.cloud.clouddms.v1.ReverseSshConnectivity)other);
+        return mergeFrom((com.google.cloud.clouddms.v1.ReverseSshConnectivity) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -590,7 +630,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.clouddms.v1.ReverseSshConnectivity other) {
-      if (other == com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance()) return this;
+      if (other == com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance())
+        return this;
       if (!other.getVmIp().isEmpty()) {
         vmIp_ = other.vmIp_;
         onChanged();
@@ -625,7 +666,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.clouddms.v1.ReverseSshConnectivity) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.clouddms.v1.ReverseSshConnectivity) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -637,19 +679,21 @@ public Builder mergeFrom(
 
     private java.lang.Object vmIp_ = "";
     /**
+     *
+     *
      * 
      * Required. The IP of the virtual machine (Compute Engine) used as the bastion server
      * for the SSH tunnel.
      * 
* * string vm_ip = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmIp. */ public java.lang.String getVmIp() { java.lang.Object ref = vmIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vmIp_ = s; return s; @@ -658,21 +702,22 @@ public java.lang.String getVmIp() { } } /** + * + * *
      * Required. The IP of the virtual machine (Compute Engine) used as the bastion server
      * for the SSH tunnel.
      * 
* * string vm_ip = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vmIp. */ - public com.google.protobuf.ByteString - getVmIpBytes() { + public com.google.protobuf.ByteString getVmIpBytes() { java.lang.Object ref = vmIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vmIp_ = b; return b; } else { @@ -680,70 +725,80 @@ public java.lang.String getVmIp() { } } /** + * + * *
      * Required. The IP of the virtual machine (Compute Engine) used as the bastion server
      * for the SSH tunnel.
      * 
* * string vm_ip = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The vmIp to set. * @return This builder for chaining. */ - public Builder setVmIp( - java.lang.String value) { + public Builder setVmIp(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vmIp_ = value; onChanged(); return this; } /** + * + * *
      * Required. The IP of the virtual machine (Compute Engine) used as the bastion server
      * for the SSH tunnel.
      * 
* * string vm_ip = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearVmIp() { - + vmIp_ = getDefaultInstance().getVmIp(); onChanged(); return this; } /** + * + * *
      * Required. The IP of the virtual machine (Compute Engine) used as the bastion server
      * for the SSH tunnel.
      * 
* * string vm_ip = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for vmIp to set. * @return This builder for chaining. */ - public Builder setVmIpBytes( - com.google.protobuf.ByteString value) { + public Builder setVmIpBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmIp_ = value; onChanged(); return this; } - private int vmPort_ ; + private int vmPort_; /** + * + * *
      * Required. The forwarding port of the virtual machine (Compute Engine) used as the
      * bastion server for the SSH tunnel.
      * 
* * int32 vm_port = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmPort. */ @java.lang.Override @@ -751,32 +806,38 @@ public int getVmPort() { return vmPort_; } /** + * + * *
      * Required. The forwarding port of the virtual machine (Compute Engine) used as the
      * bastion server for the SSH tunnel.
      * 
* * int32 vm_port = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The vmPort to set. * @return This builder for chaining. */ public Builder setVmPort(int value) { - + vmPort_ = value; onChanged(); return this; } /** + * + * *
      * Required. The forwarding port of the virtual machine (Compute Engine) used as the
      * bastion server for the SSH tunnel.
      * 
* * int32 vm_port = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearVmPort() { - + vmPort_ = 0; onChanged(); return this; @@ -784,19 +845,21 @@ public Builder clearVmPort() { private java.lang.Object vm_ = ""; /** + * + * *
      * The name of the virtual machine (Compute Engine) used as the bastion server
      * for the SSH tunnel.
      * 
* * string vm = 3; + * * @return The vm. */ public java.lang.String getVm() { java.lang.Object ref = vm_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vm_ = s; return s; @@ -805,21 +868,22 @@ public java.lang.String getVm() { } } /** + * + * *
      * The name of the virtual machine (Compute Engine) used as the bastion server
      * for the SSH tunnel.
      * 
* * string vm = 3; + * * @return The bytes for vm. */ - public com.google.protobuf.ByteString - getVmBytes() { + public com.google.protobuf.ByteString getVmBytes() { java.lang.Object ref = vm_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vm_ = b; return b; } else { @@ -827,57 +891,64 @@ public java.lang.String getVm() { } } /** + * + * *
      * The name of the virtual machine (Compute Engine) used as the bastion server
      * for the SSH tunnel.
      * 
* * string vm = 3; + * * @param value The vm to set. * @return This builder for chaining. */ - public Builder setVm( - java.lang.String value) { + public Builder setVm(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vm_ = value; onChanged(); return this; } /** + * + * *
      * The name of the virtual machine (Compute Engine) used as the bastion server
      * for the SSH tunnel.
      * 
* * string vm = 3; + * * @return This builder for chaining. */ public Builder clearVm() { - + vm_ = getDefaultInstance().getVm(); onChanged(); return this; } /** + * + * *
      * The name of the virtual machine (Compute Engine) used as the bastion server
      * for the SSH tunnel.
      * 
* * string vm = 3; + * * @param value The bytes for vm to set. * @return This builder for chaining. */ - public Builder setVmBytes( - com.google.protobuf.ByteString value) { + public Builder setVmBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vm_ = value; onChanged(); return this; @@ -885,18 +956,20 @@ public Builder setVmBytes( private java.lang.Object vpc_ = ""; /** + * + * *
      * The name of the VPC to peer with the Cloud SQL private network.
      * 
* * string vpc = 4; + * * @return The vpc. */ public java.lang.String getVpc() { java.lang.Object ref = vpc_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpc_ = s; return s; @@ -905,20 +978,21 @@ public java.lang.String getVpc() { } } /** + * + * *
      * The name of the VPC to peer with the Cloud SQL private network.
      * 
* * string vpc = 4; + * * @return The bytes for vpc. */ - public com.google.protobuf.ByteString - getVpcBytes() { + public com.google.protobuf.ByteString getVpcBytes() { java.lang.Object ref = vpc_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpc_ = b; return b; } else { @@ -926,61 +1000,68 @@ public java.lang.String getVpc() { } } /** + * + * *
      * The name of the VPC to peer with the Cloud SQL private network.
      * 
* * string vpc = 4; + * * @param value The vpc to set. * @return This builder for chaining. */ - public Builder setVpc( - java.lang.String value) { + public Builder setVpc(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vpc_ = value; onChanged(); return this; } /** + * + * *
      * The name of the VPC to peer with the Cloud SQL private network.
      * 
* * string vpc = 4; + * * @return This builder for chaining. */ public Builder clearVpc() { - + vpc_ = getDefaultInstance().getVpc(); onChanged(); return this; } /** + * + * *
      * The name of the VPC to peer with the Cloud SQL private network.
      * 
* * string vpc = 4; + * * @param value The bytes for vpc to set. * @return This builder for chaining. */ - public Builder setVpcBytes( - com.google.protobuf.ByteString value) { + public Builder setVpcBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vpc_ = 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); } @@ -990,12 +1071,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.ReverseSshConnectivity) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ReverseSshConnectivity) private static final com.google.cloud.clouddms.v1.ReverseSshConnectivity DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ReverseSshConnectivity(); } @@ -1004,16 +1085,16 @@ public static com.google.cloud.clouddms.v1.ReverseSshConnectivity getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReverseSshConnectivity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReverseSshConnectivity(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReverseSshConnectivity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReverseSshConnectivity(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1028,6 +1109,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.ReverseSshConnectivity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivityOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivityOrBuilder.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivityOrBuilder.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivityOrBuilder.java index 02f62b19..e018c513 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivityOrBuilder.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivityOrBuilder.java @@ -1,84 +1,118 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; -public interface ReverseSshConnectivityOrBuilder extends +public interface ReverseSshConnectivityOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ReverseSshConnectivity) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The IP of the virtual machine (Compute Engine) used as the bastion server
    * for the SSH tunnel.
    * 
* * string vm_ip = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmIp. */ java.lang.String getVmIp(); /** + * + * *
    * Required. The IP of the virtual machine (Compute Engine) used as the bastion server
    * for the SSH tunnel.
    * 
* * string vm_ip = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vmIp. */ - com.google.protobuf.ByteString - getVmIpBytes(); + com.google.protobuf.ByteString getVmIpBytes(); /** + * + * *
    * Required. The forwarding port of the virtual machine (Compute Engine) used as the
    * bastion server for the SSH tunnel.
    * 
* * int32 vm_port = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmPort. */ int getVmPort(); /** + * + * *
    * The name of the virtual machine (Compute Engine) used as the bastion server
    * for the SSH tunnel.
    * 
* * string vm = 3; + * * @return The vm. */ java.lang.String getVm(); /** + * + * *
    * The name of the virtual machine (Compute Engine) used as the bastion server
    * for the SSH tunnel.
    * 
* * string vm = 3; + * * @return The bytes for vm. */ - com.google.protobuf.ByteString - getVmBytes(); + com.google.protobuf.ByteString getVmBytes(); /** + * + * *
    * The name of the VPC to peer with the Cloud SQL private network.
    * 
* * string vpc = 4; + * * @return The vpc. */ java.lang.String getVpc(); /** + * + * *
    * The name of the VPC to peer with the Cloud SQL private network.
    * 
* * string vpc = 4; + * * @return The bytes for vpc. */ - com.google.protobuf.ByteString - getVpcBytes(); + com.google.protobuf.ByteString getVpcBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntry.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntry.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntry.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntry.java index 54bd2213..cc1a882a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntry.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntry.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * An entry for an Access Control list.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.SqlAclEntry} */ -public final class SqlAclEntry extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SqlAclEntry extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.SqlAclEntry) SqlAclEntryOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SqlAclEntry.newBuilder() to construct. private SqlAclEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SqlAclEntry() { value_ = ""; label_ = ""; @@ -26,16 +44,15 @@ private SqlAclEntry() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SqlAclEntry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SqlAclEntry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,87 +71,96 @@ private SqlAclEntry( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - label_ = s; - break; - } - case 82: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (expirationCase_ == 10) { - subBuilder = ((com.google.protobuf.Timestamp) expiration_).toBuilder(); + value_ = s; + break; } - expiration_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Timestamp) expiration_); - expiration_ = subBuilder.buildPartial(); + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + label_ = s; + break; } - expirationCase_ = 10; - break; - } - case 90: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (expirationCase_ == 11) { - subBuilder = ((com.google.protobuf.Duration) expiration_).toBuilder(); + case 82: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (expirationCase_ == 10) { + subBuilder = ((com.google.protobuf.Timestamp) expiration_).toBuilder(); + } + expiration_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Timestamp) expiration_); + expiration_ = subBuilder.buildPartial(); + } + expirationCase_ = 10; + break; } - expiration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Duration) expiration_); - expiration_ = subBuilder.buildPartial(); + case 90: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (expirationCase_ == 11) { + subBuilder = ((com.google.protobuf.Duration) expiration_).toBuilder(); + } + expiration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Duration) expiration_); + expiration_ = subBuilder.buildPartial(); + } + expirationCase_ = 11; + break; } - expirationCase_ = 11; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SqlAclEntry_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_SqlAclEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SqlAclEntry_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_SqlAclEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.SqlAclEntry.class, com.google.cloud.clouddms.v1.SqlAclEntry.Builder.class); + com.google.cloud.clouddms.v1.SqlAclEntry.class, + com.google.cloud.clouddms.v1.SqlAclEntry.Builder.class); } private int expirationCase_ = 0; private java.lang.Object expiration_; + public enum ExpirationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { EXPIRE_TIME(10), TTL(11), EXPIRATION_NOT_SET(0); private final int value; + private ExpirationCase(int value) { this.value = value; } @@ -150,31 +176,37 @@ public static ExpirationCase valueOf(int value) { public static ExpirationCase forNumber(int value) { switch (value) { - case 10: return EXPIRE_TIME; - case 11: return TTL; - case 0: return EXPIRATION_NOT_SET; - default: return null; + case 10: + return EXPIRE_TIME; + case 11: + return TTL; + case 0: + return EXPIRATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ExpirationCase - getExpirationCase() { - return ExpirationCase.forNumber( - expirationCase_); + public ExpirationCase getExpirationCase() { + return ExpirationCase.forNumber(expirationCase_); } public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** + * + * *
    * The allowlisted value for the access control list.
    * 
* * string value = 1; + * * @return The value. */ @java.lang.Override @@ -183,29 +215,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** + * + * *
    * The allowlisted value for the access control list.
    * 
* * string value = 1; + * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -215,6 +247,8 @@ public java.lang.String getValue() { public static final int EXPIRE_TIME_FIELD_NUMBER = 10; /** + * + * *
    * The time when this access control entry expires in
    * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -222,6 +256,7 @@ public java.lang.String getValue() {
    * 
* * .google.protobuf.Timestamp expire_time = 10; + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -229,6 +264,8 @@ public boolean hasExpireTime() { return expirationCase_ == 10; } /** + * + * *
    * The time when this access control entry expires in
    * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -236,16 +273,19 @@ public boolean hasExpireTime() {
    * 
* * .google.protobuf.Timestamp expire_time = 10; + * * @return The expireTime. */ @java.lang.Override public com.google.protobuf.Timestamp getExpireTime() { if (expirationCase_ == 10) { - return (com.google.protobuf.Timestamp) expiration_; + return (com.google.protobuf.Timestamp) expiration_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** + * + * *
    * The time when this access control entry expires in
    * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -257,18 +297,21 @@ public com.google.protobuf.Timestamp getExpireTime() {
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
     if (expirationCase_ == 10) {
-       return (com.google.protobuf.Timestamp) expiration_;
+      return (com.google.protobuf.Timestamp) expiration_;
     }
     return com.google.protobuf.Timestamp.getDefaultInstance();
   }
 
   public static final int TTL_FIELD_NUMBER = 11;
   /**
+   *
+   *
    * 
    * Input only. The time-to-leave of this access control entry.
    * 
* * .google.protobuf.Duration ttl = 11 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return Whether the ttl field is set. */ @java.lang.Override @@ -276,21 +319,26 @@ public boolean hasTtl() { return expirationCase_ == 11; } /** + * + * *
    * Input only. The time-to-leave of this access control entry.
    * 
* * .google.protobuf.Duration ttl = 11 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The ttl. */ @java.lang.Override public com.google.protobuf.Duration getTtl() { if (expirationCase_ == 11) { - return (com.google.protobuf.Duration) expiration_; + return (com.google.protobuf.Duration) expiration_; } return com.google.protobuf.Duration.getDefaultInstance(); } /** + * + * *
    * Input only. The time-to-leave of this access control entry.
    * 
@@ -300,7 +348,7 @@ public com.google.protobuf.Duration getTtl() { @java.lang.Override public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { if (expirationCase_ == 11) { - return (com.google.protobuf.Duration) expiration_; + return (com.google.protobuf.Duration) expiration_; } return com.google.protobuf.Duration.getDefaultInstance(); } @@ -308,11 +356,14 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { public static final int LABEL_FIELD_NUMBER = 3; private volatile java.lang.Object label_; /** + * + * *
    * A label to identify this entry.
    * 
* * string label = 3; + * * @return The label. */ @java.lang.Override @@ -321,29 +372,29 @@ public java.lang.String getLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** + * + * *
    * A label to identify this entry.
    * 
* * string label = 3; + * * @return The bytes for label. */ @java.lang.Override - public com.google.protobuf.ByteString - getLabelBytes() { + public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); label_ = b; return b; } else { @@ -352,6 +403,7 @@ public java.lang.String getLabel() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -363,8 +415,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getValueBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } @@ -393,12 +444,14 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, label_); } if (expirationCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (com.google.protobuf.Timestamp) expiration_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, (com.google.protobuf.Timestamp) expiration_); } if (expirationCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (com.google.protobuf.Duration) expiration_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.protobuf.Duration) expiration_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -408,26 +461,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.clouddms.v1.SqlAclEntry)) { return super.equals(obj); } com.google.cloud.clouddms.v1.SqlAclEntry other = (com.google.cloud.clouddms.v1.SqlAclEntry) obj; - if (!getValue() - .equals(other.getValue())) return false; - if (!getLabel() - .equals(other.getLabel())) return false; + if (!getValue().equals(other.getValue())) return false; + if (!getLabel().equals(other.getLabel())) return false; if (!getExpirationCase().equals(other.getExpirationCase())) return false; switch (expirationCase_) { case 10: - if (!getExpireTime() - .equals(other.getExpireTime())) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; break; case 11: - if (!getTtl() - .equals(other.getTtl())) return false; + if (!getTtl().equals(other.getTtl())) return false; break; case 0: default: @@ -464,118 +513,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.clouddms.v1.SqlAclEntry parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.clouddms.v1.SqlAclEntry parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.SqlAclEntry 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.clouddms.v1.SqlAclEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.SqlAclEntry 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.clouddms.v1.SqlAclEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.SqlAclEntry 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.clouddms.v1.SqlAclEntry parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.SqlAclEntry 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.clouddms.v1.SqlAclEntry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.SqlAclEntry parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.SqlAclEntry 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.clouddms.v1.SqlAclEntry 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.clouddms.v1.SqlAclEntry 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.clouddms.v1.SqlAclEntry 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; } /** + * + * *
    * An entry for an Access Control list.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.SqlAclEntry} */ - 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.clouddms.v1.SqlAclEntry) com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SqlAclEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_SqlAclEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SqlAclEntry_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_SqlAclEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.SqlAclEntry.class, com.google.cloud.clouddms.v1.SqlAclEntry.Builder.class); + com.google.cloud.clouddms.v1.SqlAclEntry.class, + com.google.cloud.clouddms.v1.SqlAclEntry.Builder.class); } // Construct using com.google.cloud.clouddms.v1.SqlAclEntry.newBuilder() @@ -583,16 +641,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -606,9 +663,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SqlAclEntry_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_SqlAclEntry_descriptor; } @java.lang.Override @@ -627,7 +684,8 @@ public com.google.cloud.clouddms.v1.SqlAclEntry build() { @java.lang.Override public com.google.cloud.clouddms.v1.SqlAclEntry buildPartial() { - com.google.cloud.clouddms.v1.SqlAclEntry result = new com.google.cloud.clouddms.v1.SqlAclEntry(this); + com.google.cloud.clouddms.v1.SqlAclEntry result = + new com.google.cloud.clouddms.v1.SqlAclEntry(this); result.value_ = value_; if (expirationCase_ == 10) { if (expireTimeBuilder_ == null) { @@ -653,38 +711,39 @@ public com.google.cloud.clouddms.v1.SqlAclEntry 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.clouddms.v1.SqlAclEntry) { - return mergeFrom((com.google.cloud.clouddms.v1.SqlAclEntry)other); + return mergeFrom((com.google.cloud.clouddms.v1.SqlAclEntry) other); } else { super.mergeFrom(other); return this; @@ -702,17 +761,20 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.SqlAclEntry other) { onChanged(); } switch (other.getExpirationCase()) { - case EXPIRE_TIME: { - mergeExpireTime(other.getExpireTime()); - break; - } - case TTL: { - mergeTtl(other.getTtl()); - break; - } - case EXPIRATION_NOT_SET: { - break; - } + case EXPIRE_TIME: + { + mergeExpireTime(other.getExpireTime()); + break; + } + case TTL: + { + mergeTtl(other.getTtl()); + break; + } + case EXPIRATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -742,12 +804,12 @@ public Builder mergeFrom( } return this; } + private int expirationCase_ = 0; private java.lang.Object expiration_; - public ExpirationCase - getExpirationCase() { - return ExpirationCase.forNumber( - expirationCase_); + + public ExpirationCase getExpirationCase() { + return ExpirationCase.forNumber(expirationCase_); } public Builder clearExpiration() { @@ -757,21 +819,22 @@ public Builder clearExpiration() { return this; } - private java.lang.Object value_ = ""; /** + * + * *
      * The allowlisted value for the access control list.
      * 
* * string value = 1; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -780,20 +843,21 @@ public java.lang.String getValue() { } } /** + * + * *
      * The allowlisted value for the access control list.
      * 
* * string value = 1; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -801,62 +865,74 @@ public java.lang.String getValue() { } } /** + * + * *
      * The allowlisted value for the access control list.
      * 
* * string value = 1; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
      * The allowlisted value for the access control list.
      * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
      * The allowlisted value for the access control list.
      * 
* * string value = 1; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * The time when this access control entry expires in
      * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -864,6 +940,7 @@ public Builder setValueBytes(
      * 
* * .google.protobuf.Timestamp expire_time = 10; + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -871,6 +948,8 @@ public boolean hasExpireTime() { return expirationCase_ == 10; } /** + * + * *
      * The time when this access control entry expires in
      * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -878,6 +957,7 @@ public boolean hasExpireTime() {
      * 
* * .google.protobuf.Timestamp expire_time = 10; + * * @return The expireTime. */ @java.lang.Override @@ -895,6 +975,8 @@ public com.google.protobuf.Timestamp getExpireTime() { } } /** + * + * *
      * The time when this access control entry expires in
      * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -917,6 +999,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when this access control entry expires in
      * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -925,8 +1009,7 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp expire_time = 10;
      */
-    public Builder setExpireTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (expireTimeBuilder_ == null) {
         expiration_ = builderForValue.build();
         onChanged();
@@ -937,6 +1020,8 @@ public Builder setExpireTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when this access control entry expires in
      * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -947,10 +1032,12 @@ public Builder setExpireTime(
      */
     public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       if (expireTimeBuilder_ == null) {
-        if (expirationCase_ == 10 &&
-            expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
-          expiration_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_)
-              .mergeFrom(value).buildPartial();
+        if (expirationCase_ == 10
+            && expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          expiration_ =
+              com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           expiration_ = value;
         }
@@ -965,6 +1052,8 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when this access control entry expires in
      * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -990,6 +1079,8 @@ public Builder clearExpireTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when this access control entry expires in
      * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -1002,6 +1093,8 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
       return getExpireTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time when this access control entry expires in
      * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -1022,6 +1115,8 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * The time when this access control entry expires in
      * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -1031,32 +1126,42 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * .google.protobuf.Timestamp expire_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>
         getExpireTimeFieldBuilder() {
       if (expireTimeBuilder_ == null) {
         if (!(expirationCase_ == 10)) {
           expiration_ = com.google.protobuf.Timestamp.getDefaultInstance();
         }
-        expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                (com.google.protobuf.Timestamp) expiration_,
-                getParentForChildren(),
-                isClean());
+        expireTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                (com.google.protobuf.Timestamp) expiration_, getParentForChildren(), isClean());
         expiration_ = null;
       }
       expirationCase_ = 10;
-      onChanged();;
+      onChanged();
+      ;
       return expireTimeBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        ttlBuilder_;
     /**
+     *
+     *
      * 
      * Input only. The time-to-leave of this access control entry.
      * 
* * .google.protobuf.Duration ttl = 11 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return Whether the ttl field is set. */ @java.lang.Override @@ -1064,11 +1169,14 @@ public boolean hasTtl() { return expirationCase_ == 11; } /** + * + * *
      * Input only. The time-to-leave of this access control entry.
      * 
* * .google.protobuf.Duration ttl = 11 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The ttl. */ @java.lang.Override @@ -1086,6 +1194,8 @@ public com.google.protobuf.Duration getTtl() { } } /** + * + * *
      * Input only. The time-to-leave of this access control entry.
      * 
@@ -1106,14 +1216,15 @@ public Builder setTtl(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Input only. The time-to-leave of this access control entry.
      * 
* * .google.protobuf.Duration ttl = 11 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public Builder setTtl( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) { if (ttlBuilder_ == null) { expiration_ = builderForValue.build(); onChanged(); @@ -1124,6 +1235,8 @@ public Builder setTtl( return this; } /** + * + * *
      * Input only. The time-to-leave of this access control entry.
      * 
@@ -1132,10 +1245,12 @@ public Builder setTtl( */ public Builder mergeTtl(com.google.protobuf.Duration value) { if (ttlBuilder_ == null) { - if (expirationCase_ == 11 && - expiration_ != com.google.protobuf.Duration.getDefaultInstance()) { - expiration_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_) - .mergeFrom(value).buildPartial(); + if (expirationCase_ == 11 + && expiration_ != com.google.protobuf.Duration.getDefaultInstance()) { + expiration_ = + com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_) + .mergeFrom(value) + .buildPartial(); } else { expiration_ = value; } @@ -1150,6 +1265,8 @@ public Builder mergeTtl(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Input only. The time-to-leave of this access control entry.
      * 
@@ -1173,6 +1290,8 @@ public Builder clearTtl() { return this; } /** + * + * *
      * Input only. The time-to-leave of this access control entry.
      * 
@@ -1183,6 +1302,8 @@ public com.google.protobuf.Duration.Builder getTtlBuilder() { return getTtlFieldBuilder().getBuilder(); } /** + * + * *
      * Input only. The time-to-leave of this access control entry.
      * 
@@ -1201,6 +1322,8 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { } } /** + * + * *
      * Input only. The time-to-leave of this access control entry.
      * 
@@ -1208,38 +1331,44 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { * .google.protobuf.Duration ttl = 11 [(.google.api.field_behavior) = INPUT_ONLY]; */ 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> getTtlFieldBuilder() { if (ttlBuilder_ == null) { if (!(expirationCase_ == 11)) { expiration_ = com.google.protobuf.Duration.getDefaultInstance(); } - ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - (com.google.protobuf.Duration) expiration_, - getParentForChildren(), - isClean()); + ttlBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + (com.google.protobuf.Duration) expiration_, getParentForChildren(), isClean()); expiration_ = null; } expirationCase_ = 11; - onChanged();; + onChanged(); + ; return ttlBuilder_; } private java.lang.Object label_ = ""; /** + * + * *
      * A label to identify this entry.
      * 
* * string label = 3; + * * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; @@ -1248,20 +1377,21 @@ public java.lang.String getLabel() { } } /** + * + * *
      * A label to identify this entry.
      * 
* * string label = 3; + * * @return The bytes for label. */ - public com.google.protobuf.ByteString - getLabelBytes() { + public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); label_ = b; return b; } else { @@ -1269,61 +1399,68 @@ public java.lang.String getLabel() { } } /** + * + * *
      * A label to identify this entry.
      * 
* * string label = 3; + * * @param value The label to set. * @return This builder for chaining. */ - public Builder setLabel( - java.lang.String value) { + public Builder setLabel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + label_ = value; onChanged(); return this; } /** + * + * *
      * A label to identify this entry.
      * 
* * string label = 3; + * * @return This builder for chaining. */ public Builder clearLabel() { - + label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** + * + * *
      * A label to identify this entry.
      * 
* * string label = 3; + * * @param value The bytes for label to set. * @return This builder for chaining. */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { + public Builder setLabelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + label_ = 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); } @@ -1333,12 +1470,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.SqlAclEntry) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.SqlAclEntry) private static final com.google.cloud.clouddms.v1.SqlAclEntry DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.SqlAclEntry(); } @@ -1347,16 +1484,16 @@ public static com.google.cloud.clouddms.v1.SqlAclEntry getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SqlAclEntry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SqlAclEntry(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SqlAclEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SqlAclEntry(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1371,6 +1508,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.SqlAclEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntryOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntryOrBuilder.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntryOrBuilder.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntryOrBuilder.java index 692916c3..807531b7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntryOrBuilder.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlAclEntryOrBuilder.java @@ -1,33 +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/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; -public interface SqlAclEntryOrBuilder extends +public interface SqlAclEntryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.SqlAclEntry) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The allowlisted value for the access control list.
    * 
* * string value = 1; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
    * The allowlisted value for the access control list.
    * 
* * string value = 1; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); /** + * + * *
    * The time when this access control entry expires in
    * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -35,10 +58,13 @@ public interface SqlAclEntryOrBuilder extends
    * 
* * .google.protobuf.Timestamp expire_time = 10; + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * The time when this access control entry expires in
    * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -46,10 +72,13 @@ public interface SqlAclEntryOrBuilder extends
    * 
* * .google.protobuf.Timestamp expire_time = 10; + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * The time when this access control entry expires in
    * [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example:
@@ -61,24 +90,32 @@ public interface SqlAclEntryOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Input only. The time-to-leave of this access control entry.
    * 
* * .google.protobuf.Duration ttl = 11 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return Whether the ttl field is set. */ boolean hasTtl(); /** + * + * *
    * Input only. The time-to-leave of this access control entry.
    * 
* * .google.protobuf.Duration ttl = 11 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The ttl. */ com.google.protobuf.Duration getTtl(); /** + * + * *
    * Input only. The time-to-leave of this access control entry.
    * 
@@ -88,24 +125,29 @@ public interface SqlAclEntryOrBuilder extends com.google.protobuf.DurationOrBuilder getTtlOrBuilder(); /** + * + * *
    * A label to identify this entry.
    * 
* * string label = 3; + * * @return The label. */ java.lang.String getLabel(); /** + * + * *
    * A label to identify this entry.
    * 
* * string label = 3; + * * @return The bytes for label. */ - com.google.protobuf.ByteString - getLabelBytes(); + com.google.protobuf.ByteString getLabelBytes(); public com.google.cloud.clouddms.v1.SqlAclEntry.ExpirationCase getExpirationCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfig.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfig.java similarity index 78% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfig.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfig.java index a94de500..822d98db 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfig.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfig.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * IP Management configuration.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.SqlIpConfig} */ -public final class SqlIpConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SqlIpConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.SqlIpConfig) SqlIpConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SqlIpConfig.newBuilder() to construct. private SqlIpConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SqlIpConfig() { privateNetwork_ = ""; authorizedNetworks_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ private SqlIpConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SqlIpConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SqlIpConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,61 +72,68 @@ private SqlIpConfig( case 0: done = true; break; - case 10: { - com.google.protobuf.BoolValue.Builder subBuilder = null; - if (enableIpv4_ != null) { - subBuilder = enableIpv4_.toBuilder(); - } - enableIpv4_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(enableIpv4_); - enableIpv4_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (enableIpv4_ != null) { + subBuilder = enableIpv4_.toBuilder(); + } + enableIpv4_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(enableIpv4_); + enableIpv4_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - privateNetwork_ = s; - break; - } - case 26: { - com.google.protobuf.BoolValue.Builder subBuilder = null; - if (requireSsl_ != null) { - subBuilder = requireSsl_.toBuilder(); + break; } - requireSsl_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(requireSsl_); - requireSsl_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + privateNetwork_ = s; + break; } + case 26: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (requireSsl_ != null) { + subBuilder = requireSsl_.toBuilder(); + } + requireSsl_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requireSsl_); + requireSsl_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - authorizedNetworks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + break; } - authorizedNetworks_.add( - input.readMessage(com.google.cloud.clouddms.v1.SqlAclEntry.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + authorizedNetworks_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + authorizedNetworks_.add( + input.readMessage( + com.google.cloud.clouddms.v1.SqlAclEntry.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { authorizedNetworks_ = java.util.Collections.unmodifiableList(authorizedNetworks_); @@ -118,27 +142,33 @@ private SqlIpConfig( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SqlIpConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_SqlIpConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SqlIpConfig_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_SqlIpConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.SqlIpConfig.class, com.google.cloud.clouddms.v1.SqlIpConfig.Builder.class); + com.google.cloud.clouddms.v1.SqlIpConfig.class, + com.google.cloud.clouddms.v1.SqlIpConfig.Builder.class); } public static final int ENABLE_IPV4_FIELD_NUMBER = 1; private com.google.protobuf.BoolValue enableIpv4_; /** + * + * *
    * Whether the instance should be assigned an IPv4 address or not.
    * 
* * .google.protobuf.BoolValue enable_ipv4 = 1; + * * @return Whether the enableIpv4 field is set. */ @java.lang.Override @@ -146,11 +176,14 @@ public boolean hasEnableIpv4() { return enableIpv4_ != null; } /** + * + * *
    * Whether the instance should be assigned an IPv4 address or not.
    * 
* * .google.protobuf.BoolValue enable_ipv4 = 1; + * * @return The enableIpv4. */ @java.lang.Override @@ -158,6 +191,8 @@ public com.google.protobuf.BoolValue getEnableIpv4() { return enableIpv4_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableIpv4_; } /** + * + * *
    * Whether the instance should be assigned an IPv4 address or not.
    * 
@@ -172,6 +207,8 @@ public com.google.protobuf.BoolValueOrBuilder getEnableIpv4OrBuilder() { public static final int PRIVATE_NETWORK_FIELD_NUMBER = 2; private volatile java.lang.Object privateNetwork_; /** + * + * *
    * The resource link for the VPC network from which the Cloud SQL instance is
    * accessible for private IP. For example,
@@ -180,6 +217,7 @@ public com.google.protobuf.BoolValueOrBuilder getEnableIpv4OrBuilder() {
    * 
* * string private_network = 2; + * * @return The privateNetwork. */ @java.lang.Override @@ -188,14 +226,15 @@ public java.lang.String getPrivateNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateNetwork_ = s; return s; } } /** + * + * *
    * The resource link for the VPC network from which the Cloud SQL instance is
    * accessible for private IP. For example,
@@ -204,16 +243,15 @@ public java.lang.String getPrivateNetwork() {
    * 
* * string private_network = 2; + * * @return The bytes for privateNetwork. */ @java.lang.Override - public com.google.protobuf.ByteString - getPrivateNetworkBytes() { + public com.google.protobuf.ByteString getPrivateNetworkBytes() { java.lang.Object ref = privateNetwork_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); privateNetwork_ = b; return b; } else { @@ -224,11 +262,14 @@ public java.lang.String getPrivateNetwork() { public static final int REQUIRE_SSL_FIELD_NUMBER = 3; private com.google.protobuf.BoolValue requireSsl_; /** + * + * *
    * Whether SSL connections over IP should be enforced or not.
    * 
* * .google.protobuf.BoolValue require_ssl = 3; + * * @return Whether the requireSsl field is set. */ @java.lang.Override @@ -236,11 +277,14 @@ public boolean hasRequireSsl() { return requireSsl_ != null; } /** + * + * *
    * Whether SSL connections over IP should be enforced or not.
    * 
* * .google.protobuf.BoolValue require_ssl = 3; + * * @return The requireSsl. */ @java.lang.Override @@ -248,6 +292,8 @@ public com.google.protobuf.BoolValue getRequireSsl() { return requireSsl_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : requireSsl_; } /** + * + * *
    * Whether SSL connections over IP should be enforced or not.
    * 
@@ -262,6 +308,8 @@ public com.google.protobuf.BoolValueOrBuilder getRequireSslOrBuilder() { public static final int AUTHORIZED_NETWORKS_FIELD_NUMBER = 4; private java.util.List authorizedNetworks_; /** + * + * *
    * The list of external networks that are allowed to connect to the instance
    * using the IP. See
@@ -276,6 +324,8 @@ public java.util.List getAuthorizedNet
     return authorizedNetworks_;
   }
   /**
+   *
+   *
    * 
    * The list of external networks that are allowed to connect to the instance
    * using the IP. See
@@ -286,11 +336,13 @@ public java.util.List getAuthorizedNet
    * repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getAuthorizedNetworksOrBuilderList() {
     return authorizedNetworks_;
   }
   /**
+   *
+   *
    * 
    * The list of external networks that are allowed to connect to the instance
    * using the IP. See
@@ -305,6 +357,8 @@ public int getAuthorizedNetworksCount() {
     return authorizedNetworks_.size();
   }
   /**
+   *
+   *
    * 
    * The list of external networks that are allowed to connect to the instance
    * using the IP. See
@@ -319,6 +373,8 @@ public com.google.cloud.clouddms.v1.SqlAclEntry getAuthorizedNetworks(int index)
     return authorizedNetworks_.get(index);
   }
   /**
+   *
+   *
    * 
    * The list of external networks that are allowed to connect to the instance
    * using the IP. See
@@ -335,6 +391,7 @@ public com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder getAuthorizedNetworksOr
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -346,8 +403,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (enableIpv4_ != null) {
       output.writeMessage(1, getEnableIpv4());
     }
@@ -370,19 +426,17 @@ public int getSerializedSize() {
 
     size = 0;
     if (enableIpv4_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getEnableIpv4());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEnableIpv4());
     }
     if (!getPrivateNetworkBytes().isEmpty()) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, privateNetwork_);
     }
     if (requireSsl_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getRequireSsl());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequireSsl());
     }
     for (int i = 0; i < authorizedNetworks_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, authorizedNetworks_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(4, authorizedNetworks_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -392,7 +446,7 @@ 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.clouddms.v1.SqlIpConfig)) {
       return super.equals(obj);
@@ -401,18 +455,14 @@ public boolean equals(final java.lang.Object obj) {
 
     if (hasEnableIpv4() != other.hasEnableIpv4()) return false;
     if (hasEnableIpv4()) {
-      if (!getEnableIpv4()
-          .equals(other.getEnableIpv4())) return false;
+      if (!getEnableIpv4().equals(other.getEnableIpv4())) return false;
     }
-    if (!getPrivateNetwork()
-        .equals(other.getPrivateNetwork())) return false;
+    if (!getPrivateNetwork().equals(other.getPrivateNetwork())) return false;
     if (hasRequireSsl() != other.hasRequireSsl()) return false;
     if (hasRequireSsl()) {
-      if (!getRequireSsl()
-          .equals(other.getRequireSsl())) return false;
+      if (!getRequireSsl().equals(other.getRequireSsl())) return false;
     }
-    if (!getAuthorizedNetworksList()
-        .equals(other.getAuthorizedNetworksList())) return false;
+    if (!getAuthorizedNetworksList().equals(other.getAuthorizedNetworksList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -443,118 +493,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.clouddms.v1.SqlIpConfig parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.clouddms.v1.SqlIpConfig parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.clouddms.v1.SqlIpConfig 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.clouddms.v1.SqlIpConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.clouddms.v1.SqlIpConfig 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.clouddms.v1.SqlIpConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.clouddms.v1.SqlIpConfig 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.clouddms.v1.SqlIpConfig parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.clouddms.v1.SqlIpConfig 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.clouddms.v1.SqlIpConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.clouddms.v1.SqlIpConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.clouddms.v1.SqlIpConfig 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.clouddms.v1.SqlIpConfig 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.clouddms.v1.SqlIpConfig 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.clouddms.v1.SqlIpConfig 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;
   }
   /**
+   *
+   *
    * 
    * IP Management configuration.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.SqlIpConfig} */ - 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.clouddms.v1.SqlIpConfig) com.google.cloud.clouddms.v1.SqlIpConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SqlIpConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_SqlIpConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SqlIpConfig_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_SqlIpConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.SqlIpConfig.class, com.google.cloud.clouddms.v1.SqlIpConfig.Builder.class); + com.google.cloud.clouddms.v1.SqlIpConfig.class, + com.google.cloud.clouddms.v1.SqlIpConfig.Builder.class); } // Construct using com.google.cloud.clouddms.v1.SqlIpConfig.newBuilder() @@ -562,17 +621,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) { getAuthorizedNetworksFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -600,9 +659,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SqlIpConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_SqlIpConfig_descriptor; } @java.lang.Override @@ -621,7 +680,8 @@ public com.google.cloud.clouddms.v1.SqlIpConfig build() { @java.lang.Override public com.google.cloud.clouddms.v1.SqlIpConfig buildPartial() { - com.google.cloud.clouddms.v1.SqlIpConfig result = new com.google.cloud.clouddms.v1.SqlIpConfig(this); + com.google.cloud.clouddms.v1.SqlIpConfig result = + new com.google.cloud.clouddms.v1.SqlIpConfig(this); int from_bitField0_ = bitField0_; if (enableIpv4Builder_ == null) { result.enableIpv4_ = enableIpv4_; @@ -651,38 +711,39 @@ public com.google.cloud.clouddms.v1.SqlIpConfig 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.clouddms.v1.SqlIpConfig) { - return mergeFrom((com.google.cloud.clouddms.v1.SqlIpConfig)other); + return mergeFrom((com.google.cloud.clouddms.v1.SqlIpConfig) other); } else { super.mergeFrom(other); return this; @@ -719,9 +780,10 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.SqlIpConfig other) { authorizedNetworksBuilder_ = null; authorizedNetworks_ = other.authorizedNetworks_; bitField0_ = (bitField0_ & ~0x00000001); - authorizedNetworksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAuthorizedNetworksFieldBuilder() : null; + authorizedNetworksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAuthorizedNetworksFieldBuilder() + : null; } else { authorizedNetworksBuilder_.addAllMessages(other.authorizedNetworks_); } @@ -755,38 +817,52 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.protobuf.BoolValue enableIpv4_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableIpv4Builder_; + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + enableIpv4Builder_; /** + * + * *
      * Whether the instance should be assigned an IPv4 address or not.
      * 
* * .google.protobuf.BoolValue enable_ipv4 = 1; + * * @return Whether the enableIpv4 field is set. */ public boolean hasEnableIpv4() { return enableIpv4Builder_ != null || enableIpv4_ != null; } /** + * + * *
      * Whether the instance should be assigned an IPv4 address or not.
      * 
* * .google.protobuf.BoolValue enable_ipv4 = 1; + * * @return The enableIpv4. */ public com.google.protobuf.BoolValue getEnableIpv4() { if (enableIpv4Builder_ == null) { - return enableIpv4_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableIpv4_; + return enableIpv4_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : enableIpv4_; } else { return enableIpv4Builder_.getMessage(); } } /** + * + * *
      * Whether the instance should be assigned an IPv4 address or not.
      * 
@@ -807,14 +883,15 @@ public Builder setEnableIpv4(com.google.protobuf.BoolValue value) { return this; } /** + * + * *
      * Whether the instance should be assigned an IPv4 address or not.
      * 
* * .google.protobuf.BoolValue enable_ipv4 = 1; */ - public Builder setEnableIpv4( - com.google.protobuf.BoolValue.Builder builderForValue) { + public Builder setEnableIpv4(com.google.protobuf.BoolValue.Builder builderForValue) { if (enableIpv4Builder_ == null) { enableIpv4_ = builderForValue.build(); onChanged(); @@ -825,6 +902,8 @@ public Builder setEnableIpv4( return this; } /** + * + * *
      * Whether the instance should be assigned an IPv4 address or not.
      * 
@@ -835,7 +914,7 @@ public Builder mergeEnableIpv4(com.google.protobuf.BoolValue value) { if (enableIpv4Builder_ == null) { if (enableIpv4_ != null) { enableIpv4_ = - com.google.protobuf.BoolValue.newBuilder(enableIpv4_).mergeFrom(value).buildPartial(); + com.google.protobuf.BoolValue.newBuilder(enableIpv4_).mergeFrom(value).buildPartial(); } else { enableIpv4_ = value; } @@ -847,6 +926,8 @@ public Builder mergeEnableIpv4(com.google.protobuf.BoolValue value) { return this; } /** + * + * *
      * Whether the instance should be assigned an IPv4 address or not.
      * 
@@ -865,6 +946,8 @@ public Builder clearEnableIpv4() { return this; } /** + * + * *
      * Whether the instance should be assigned an IPv4 address or not.
      * 
@@ -872,11 +955,13 @@ public Builder clearEnableIpv4() { * .google.protobuf.BoolValue enable_ipv4 = 1; */ public com.google.protobuf.BoolValue.Builder getEnableIpv4Builder() { - + onChanged(); return getEnableIpv4FieldBuilder().getBuilder(); } /** + * + * *
      * Whether the instance should be assigned an IPv4 address or not.
      * 
@@ -887,11 +972,14 @@ public com.google.protobuf.BoolValueOrBuilder getEnableIpv4OrBuilder() { if (enableIpv4Builder_ != null) { return enableIpv4Builder_.getMessageOrBuilder(); } else { - return enableIpv4_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : enableIpv4_; + return enableIpv4_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : enableIpv4_; } } /** + * + * *
      * Whether the instance should be assigned an IPv4 address or not.
      * 
@@ -899,14 +987,17 @@ public com.google.protobuf.BoolValueOrBuilder getEnableIpv4OrBuilder() { * .google.protobuf.BoolValue enable_ipv4 = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> getEnableIpv4FieldBuilder() { if (enableIpv4Builder_ == null) { - enableIpv4Builder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getEnableIpv4(), - getParentForChildren(), - isClean()); + enableIpv4Builder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getEnableIpv4(), getParentForChildren(), isClean()); enableIpv4_ = null; } return enableIpv4Builder_; @@ -914,6 +1005,8 @@ public com.google.protobuf.BoolValueOrBuilder getEnableIpv4OrBuilder() { private java.lang.Object privateNetwork_ = ""; /** + * + * *
      * The resource link for the VPC network from which the Cloud SQL instance is
      * accessible for private IP. For example,
@@ -922,13 +1015,13 @@ public com.google.protobuf.BoolValueOrBuilder getEnableIpv4OrBuilder() {
      * 
* * string private_network = 2; + * * @return The privateNetwork. */ public java.lang.String getPrivateNetwork() { java.lang.Object ref = privateNetwork_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateNetwork_ = s; return s; @@ -937,6 +1030,8 @@ public java.lang.String getPrivateNetwork() { } } /** + * + * *
      * The resource link for the VPC network from which the Cloud SQL instance is
      * accessible for private IP. For example,
@@ -945,15 +1040,14 @@ public java.lang.String getPrivateNetwork() {
      * 
* * string private_network = 2; + * * @return The bytes for privateNetwork. */ - public com.google.protobuf.ByteString - getPrivateNetworkBytes() { + public com.google.protobuf.ByteString getPrivateNetworkBytes() { java.lang.Object ref = privateNetwork_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); privateNetwork_ = b; return b; } else { @@ -961,6 +1055,8 @@ public java.lang.String getPrivateNetwork() { } } /** + * + * *
      * The resource link for the VPC network from which the Cloud SQL instance is
      * accessible for private IP. For example,
@@ -969,20 +1065,22 @@ public java.lang.String getPrivateNetwork() {
      * 
* * string private_network = 2; + * * @param value The privateNetwork to set. * @return This builder for chaining. */ - public Builder setPrivateNetwork( - java.lang.String value) { + public Builder setPrivateNetwork(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + privateNetwork_ = value; onChanged(); return this; } /** + * + * *
      * The resource link for the VPC network from which the Cloud SQL instance is
      * accessible for private IP. For example,
@@ -991,15 +1089,18 @@ public Builder setPrivateNetwork(
      * 
* * string private_network = 2; + * * @return This builder for chaining. */ public Builder clearPrivateNetwork() { - + privateNetwork_ = getDefaultInstance().getPrivateNetwork(); onChanged(); return this; } /** + * + * *
      * The resource link for the VPC network from which the Cloud SQL instance is
      * accessible for private IP. For example,
@@ -1008,16 +1109,16 @@ public Builder clearPrivateNetwork() {
      * 
* * string private_network = 2; + * * @param value The bytes for privateNetwork to set. * @return This builder for chaining. */ - public Builder setPrivateNetworkBytes( - com.google.protobuf.ByteString value) { + public Builder setPrivateNetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + privateNetwork_ = value; onChanged(); return this; @@ -1025,34 +1126,47 @@ public Builder setPrivateNetworkBytes( private com.google.protobuf.BoolValue requireSsl_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> requireSslBuilder_; + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + requireSslBuilder_; /** + * + * *
      * Whether SSL connections over IP should be enforced or not.
      * 
* * .google.protobuf.BoolValue require_ssl = 3; + * * @return Whether the requireSsl field is set. */ public boolean hasRequireSsl() { return requireSslBuilder_ != null || requireSsl_ != null; } /** + * + * *
      * Whether SSL connections over IP should be enforced or not.
      * 
* * .google.protobuf.BoolValue require_ssl = 3; + * * @return The requireSsl. */ public com.google.protobuf.BoolValue getRequireSsl() { if (requireSslBuilder_ == null) { - return requireSsl_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : requireSsl_; + return requireSsl_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : requireSsl_; } else { return requireSslBuilder_.getMessage(); } } /** + * + * *
      * Whether SSL connections over IP should be enforced or not.
      * 
@@ -1073,14 +1187,15 @@ public Builder setRequireSsl(com.google.protobuf.BoolValue value) { return this; } /** + * + * *
      * Whether SSL connections over IP should be enforced or not.
      * 
* * .google.protobuf.BoolValue require_ssl = 3; */ - public Builder setRequireSsl( - com.google.protobuf.BoolValue.Builder builderForValue) { + public Builder setRequireSsl(com.google.protobuf.BoolValue.Builder builderForValue) { if (requireSslBuilder_ == null) { requireSsl_ = builderForValue.build(); onChanged(); @@ -1091,6 +1206,8 @@ public Builder setRequireSsl( return this; } /** + * + * *
      * Whether SSL connections over IP should be enforced or not.
      * 
@@ -1101,7 +1218,7 @@ public Builder mergeRequireSsl(com.google.protobuf.BoolValue value) { if (requireSslBuilder_ == null) { if (requireSsl_ != null) { requireSsl_ = - com.google.protobuf.BoolValue.newBuilder(requireSsl_).mergeFrom(value).buildPartial(); + com.google.protobuf.BoolValue.newBuilder(requireSsl_).mergeFrom(value).buildPartial(); } else { requireSsl_ = value; } @@ -1113,6 +1230,8 @@ public Builder mergeRequireSsl(com.google.protobuf.BoolValue value) { return this; } /** + * + * *
      * Whether SSL connections over IP should be enforced or not.
      * 
@@ -1131,6 +1250,8 @@ public Builder clearRequireSsl() { return this; } /** + * + * *
      * Whether SSL connections over IP should be enforced or not.
      * 
@@ -1138,11 +1259,13 @@ public Builder clearRequireSsl() { * .google.protobuf.BoolValue require_ssl = 3; */ public com.google.protobuf.BoolValue.Builder getRequireSslBuilder() { - + onChanged(); return getRequireSslFieldBuilder().getBuilder(); } /** + * + * *
      * Whether SSL connections over IP should be enforced or not.
      * 
@@ -1153,11 +1276,14 @@ public com.google.protobuf.BoolValueOrBuilder getRequireSslOrBuilder() { if (requireSslBuilder_ != null) { return requireSslBuilder_.getMessageOrBuilder(); } else { - return requireSsl_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : requireSsl_; + return requireSsl_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : requireSsl_; } } /** + * + * *
      * Whether SSL connections over IP should be enforced or not.
      * 
@@ -1165,32 +1291,42 @@ public com.google.protobuf.BoolValueOrBuilder getRequireSslOrBuilder() { * .google.protobuf.BoolValue require_ssl = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> getRequireSslFieldBuilder() { if (requireSslBuilder_ == null) { - requireSslBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getRequireSsl(), - getParentForChildren(), - isClean()); + requireSslBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getRequireSsl(), getParentForChildren(), isClean()); requireSsl_ = null; } return requireSslBuilder_; } private java.util.List authorizedNetworks_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAuthorizedNetworksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - authorizedNetworks_ = new java.util.ArrayList(authorizedNetworks_); + authorizedNetworks_ = + new java.util.ArrayList(authorizedNetworks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.clouddms.v1.SqlAclEntry, com.google.cloud.clouddms.v1.SqlAclEntry.Builder, com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder> authorizedNetworksBuilder_; + com.google.cloud.clouddms.v1.SqlAclEntry, + com.google.cloud.clouddms.v1.SqlAclEntry.Builder, + com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder> + authorizedNetworksBuilder_; /** + * + * *
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1208,6 +1344,8 @@ public java.util.List getAuthorizedNet
       }
     }
     /**
+     *
+     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1225,6 +1363,8 @@ public int getAuthorizedNetworksCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1242,6 +1382,8 @@ public com.google.cloud.clouddms.v1.SqlAclEntry getAuthorizedNetworks(int index)
       }
     }
     /**
+     *
+     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1266,6 +1408,8 @@ public Builder setAuthorizedNetworks(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1287,6 +1431,8 @@ public Builder setAuthorizedNetworks(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1310,6 +1456,8 @@ public Builder addAuthorizedNetworks(com.google.cloud.clouddms.v1.SqlAclEntry va
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1334,6 +1482,8 @@ public Builder addAuthorizedNetworks(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1355,6 +1505,8 @@ public Builder addAuthorizedNetworks(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1376,6 +1528,8 @@ public Builder addAuthorizedNetworks(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1389,8 +1543,7 @@ public Builder addAllAuthorizedNetworks(
         java.lang.Iterable values) {
       if (authorizedNetworksBuilder_ == null) {
         ensureAuthorizedNetworksIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, authorizedNetworks_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, authorizedNetworks_);
         onChanged();
       } else {
         authorizedNetworksBuilder_.addAllMessages(values);
@@ -1398,6 +1551,8 @@ public Builder addAllAuthorizedNetworks(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1418,6 +1573,8 @@ public Builder clearAuthorizedNetworks() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1438,6 +1595,8 @@ public Builder removeAuthorizedNetworks(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1452,6 +1611,8 @@ public com.google.cloud.clouddms.v1.SqlAclEntry.Builder getAuthorizedNetworksBui
       return getAuthorizedNetworksFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1464,11 +1625,14 @@ public com.google.cloud.clouddms.v1.SqlAclEntry.Builder getAuthorizedNetworksBui
     public com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder getAuthorizedNetworksOrBuilder(
         int index) {
       if (authorizedNetworksBuilder_ == null) {
-        return authorizedNetworks_.get(index);  } else {
+        return authorizedNetworks_.get(index);
+      } else {
         return authorizedNetworksBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1478,8 +1642,8 @@ public com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder getAuthorizedNetworksOr
      *
      * repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
      */
-    public java.util.List 
-         getAuthorizedNetworksOrBuilderList() {
+    public java.util.List
+        getAuthorizedNetworksOrBuilderList() {
       if (authorizedNetworksBuilder_ != null) {
         return authorizedNetworksBuilder_.getMessageOrBuilderList();
       } else {
@@ -1487,6 +1651,8 @@ public com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder getAuthorizedNetworksOr
       }
     }
     /**
+     *
+     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1497,10 +1663,12 @@ public com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder getAuthorizedNetworksOr
      * repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
      */
     public com.google.cloud.clouddms.v1.SqlAclEntry.Builder addAuthorizedNetworksBuilder() {
-      return getAuthorizedNetworksFieldBuilder().addBuilder(
-          com.google.cloud.clouddms.v1.SqlAclEntry.getDefaultInstance());
+      return getAuthorizedNetworksFieldBuilder()
+          .addBuilder(com.google.cloud.clouddms.v1.SqlAclEntry.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1512,10 +1680,12 @@ public com.google.cloud.clouddms.v1.SqlAclEntry.Builder addAuthorizedNetworksBui
      */
     public com.google.cloud.clouddms.v1.SqlAclEntry.Builder addAuthorizedNetworksBuilder(
         int index) {
-      return getAuthorizedNetworksFieldBuilder().addBuilder(
-          index, com.google.cloud.clouddms.v1.SqlAclEntry.getDefaultInstance());
+      return getAuthorizedNetworksFieldBuilder()
+          .addBuilder(index, com.google.cloud.clouddms.v1.SqlAclEntry.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of external networks that are allowed to connect to the instance
      * using the IP. See
@@ -1525,16 +1695,22 @@ public com.google.cloud.clouddms.v1.SqlAclEntry.Builder addAuthorizedNetworksBui
      *
      * repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
      */
-    public java.util.List 
-         getAuthorizedNetworksBuilderList() {
+    public java.util.List
+        getAuthorizedNetworksBuilderList() {
       return getAuthorizedNetworksFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.clouddms.v1.SqlAclEntry, com.google.cloud.clouddms.v1.SqlAclEntry.Builder, com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder> 
+            com.google.cloud.clouddms.v1.SqlAclEntry,
+            com.google.cloud.clouddms.v1.SqlAclEntry.Builder,
+            com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder>
         getAuthorizedNetworksFieldBuilder() {
       if (authorizedNetworksBuilder_ == null) {
-        authorizedNetworksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.clouddms.v1.SqlAclEntry, com.google.cloud.clouddms.v1.SqlAclEntry.Builder, com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder>(
+        authorizedNetworksBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.clouddms.v1.SqlAclEntry,
+                com.google.cloud.clouddms.v1.SqlAclEntry.Builder,
+                com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder>(
                 authorizedNetworks_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -1543,9 +1719,9 @@ public com.google.cloud.clouddms.v1.SqlAclEntry.Builder addAuthorizedNetworksBui
       }
       return authorizedNetworksBuilder_;
     }
+
     @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);
     }
 
@@ -1555,12 +1731,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.SqlIpConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.SqlIpConfig)
   private static final com.google.cloud.clouddms.v1.SqlIpConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.SqlIpConfig();
   }
@@ -1569,16 +1745,16 @@ public static com.google.cloud.clouddms.v1.SqlIpConfig getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SqlIpConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new SqlIpConfig(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SqlIpConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new SqlIpConfig(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1593,6 +1769,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.clouddms.v1.SqlIpConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfigOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfigOrBuilder.java
similarity index 82%
rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfigOrBuilder.java
rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfigOrBuilder.java
index 7b76780a..60926fe5 100644
--- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfigOrBuilder.java
+++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfigOrBuilder.java
@@ -1,31 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/clouddms/v1/clouddms_resources.proto
 
 package com.google.cloud.clouddms.v1;
 
-public interface SqlIpConfigOrBuilder extends
+public interface SqlIpConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.SqlIpConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Whether the instance should be assigned an IPv4 address or not.
    * 
* * .google.protobuf.BoolValue enable_ipv4 = 1; + * * @return Whether the enableIpv4 field is set. */ boolean hasEnableIpv4(); /** + * + * *
    * Whether the instance should be assigned an IPv4 address or not.
    * 
* * .google.protobuf.BoolValue enable_ipv4 = 1; + * * @return The enableIpv4. */ com.google.protobuf.BoolValue getEnableIpv4(); /** + * + * *
    * Whether the instance should be assigned an IPv4 address or not.
    * 
@@ -35,6 +59,8 @@ public interface SqlIpConfigOrBuilder extends com.google.protobuf.BoolValueOrBuilder getEnableIpv4OrBuilder(); /** + * + * *
    * The resource link for the VPC network from which the Cloud SQL instance is
    * accessible for private IP. For example,
@@ -43,10 +69,13 @@ public interface SqlIpConfigOrBuilder extends
    * 
* * string private_network = 2; + * * @return The privateNetwork. */ java.lang.String getPrivateNetwork(); /** + * + * *
    * The resource link for the VPC network from which the Cloud SQL instance is
    * accessible for private IP. For example,
@@ -55,30 +84,38 @@ public interface SqlIpConfigOrBuilder extends
    * 
* * string private_network = 2; + * * @return The bytes for privateNetwork. */ - com.google.protobuf.ByteString - getPrivateNetworkBytes(); + com.google.protobuf.ByteString getPrivateNetworkBytes(); /** + * + * *
    * Whether SSL connections over IP should be enforced or not.
    * 
* * .google.protobuf.BoolValue require_ssl = 3; + * * @return Whether the requireSsl field is set. */ boolean hasRequireSsl(); /** + * + * *
    * Whether SSL connections over IP should be enforced or not.
    * 
* * .google.protobuf.BoolValue require_ssl = 3; + * * @return The requireSsl. */ com.google.protobuf.BoolValue getRequireSsl(); /** + * + * *
    * Whether SSL connections over IP should be enforced or not.
    * 
@@ -88,6 +125,8 @@ public interface SqlIpConfigOrBuilder extends com.google.protobuf.BoolValueOrBuilder getRequireSslOrBuilder(); /** + * + * *
    * The list of external networks that are allowed to connect to the instance
    * using the IP. See
@@ -97,9 +136,10 @@ public interface SqlIpConfigOrBuilder extends
    *
    * repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
    */
-  java.util.List 
-      getAuthorizedNetworksList();
+  java.util.List getAuthorizedNetworksList();
   /**
+   *
+   *
    * 
    * The list of external networks that are allowed to connect to the instance
    * using the IP. See
@@ -111,6 +151,8 @@ public interface SqlIpConfigOrBuilder extends
    */
   com.google.cloud.clouddms.v1.SqlAclEntry getAuthorizedNetworks(int index);
   /**
+   *
+   *
    * 
    * The list of external networks that are allowed to connect to the instance
    * using the IP. See
@@ -122,6 +164,8 @@ public interface SqlIpConfigOrBuilder extends
    */
   int getAuthorizedNetworksCount();
   /**
+   *
+   *
    * 
    * The list of external networks that are allowed to connect to the instance
    * using the IP. See
@@ -131,9 +175,11 @@ public interface SqlIpConfigOrBuilder extends
    *
    * repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
    */
-  java.util.List 
+  java.util.List
       getAuthorizedNetworksOrBuilderList();
   /**
+   *
+   *
    * 
    * The list of external networks that are allowed to connect to the instance
    * using the IP. See
@@ -143,6 +189,5 @@ public interface SqlIpConfigOrBuilder extends
    *
    * repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
    */
-  com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder getAuthorizedNetworksOrBuilder(
-      int index);
+  com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder getAuthorizedNetworksOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScript.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScript.java
similarity index 68%
rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScript.java
rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScript.java
index 7cc9bbf5..1f535be0 100644
--- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScript.java
+++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScript.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/clouddms/v1/clouddms.proto
 
 package com.google.cloud.clouddms.v1;
 
 /**
+ *
+ *
  * 
  * Response message for 'GenerateSshScript' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.SshScript} */ -public final class SshScript extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SshScript extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.SshScript) SshScriptOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SshScript.newBuilder() to construct. private SshScript(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SshScript() { script_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SshScript(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SshScript( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,58 @@ private SshScript( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - script_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + script_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_SshScript_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_SshScript_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_SshScript_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_SshScript_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.SshScript.class, com.google.cloud.clouddms.v1.SshScript.Builder.class); + com.google.cloud.clouddms.v1.SshScript.class, + com.google.cloud.clouddms.v1.SshScript.Builder.class); } public static final int SCRIPT_FIELD_NUMBER = 1; private volatile java.lang.Object script_; /** + * + * *
    * The ssh configuration script.
    * 
* * string script = 1; + * * @return The script. */ @java.lang.Override @@ -107,29 +130,29 @@ public java.lang.String getScript() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); script_ = s; return s; } } /** + * + * *
    * The ssh configuration script.
    * 
* * string script = 1; + * * @return The bytes for script. */ @java.lang.Override - public com.google.protobuf.ByteString - getScriptBytes() { + public com.google.protobuf.ByteString getScriptBytes() { java.lang.Object ref = script_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); script_ = b; return b; } else { @@ -138,6 +161,7 @@ public java.lang.String getScript() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +173,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getScriptBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, script_); } @@ -174,15 +197,14 @@ 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.clouddms.v1.SshScript)) { return super.equals(obj); } com.google.cloud.clouddms.v1.SshScript other = (com.google.cloud.clouddms.v1.SshScript) obj; - if (!getScript() - .equals(other.getScript())) return false; + if (!getScript().equals(other.getScript())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -201,118 +223,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.clouddms.v1.SshScript parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.clouddms.v1.SshScript parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.SshScript 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.clouddms.v1.SshScript parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.SshScript 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.clouddms.v1.SshScript parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.SshScript 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.clouddms.v1.SshScript parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.SshScript 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.clouddms.v1.SshScript parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.SshScript 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.clouddms.v1.SshScript 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.clouddms.v1.SshScript 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.clouddms.v1.SshScript 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; } /** + * + * *
    * Response message for 'GenerateSshScript' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.SshScript} */ - 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.clouddms.v1.SshScript) com.google.cloud.clouddms.v1.SshScriptOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_SshScript_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_SshScript_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_SshScript_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_SshScript_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.SshScript.class, com.google.cloud.clouddms.v1.SshScript.Builder.class); + com.google.cloud.clouddms.v1.SshScript.class, + com.google.cloud.clouddms.v1.SshScript.Builder.class); } // Construct using com.google.cloud.clouddms.v1.SshScript.newBuilder() @@ -320,16 +351,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +369,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_SshScript_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_SshScript_descriptor; } @java.lang.Override @@ -360,7 +390,8 @@ public com.google.cloud.clouddms.v1.SshScript build() { @java.lang.Override public com.google.cloud.clouddms.v1.SshScript buildPartial() { - com.google.cloud.clouddms.v1.SshScript result = new com.google.cloud.clouddms.v1.SshScript(this); + com.google.cloud.clouddms.v1.SshScript result = + new com.google.cloud.clouddms.v1.SshScript(this); result.script_ = script_; onBuilt(); return result; @@ -370,38 +401,39 @@ public com.google.cloud.clouddms.v1.SshScript 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.clouddms.v1.SshScript) { - return mergeFrom((com.google.cloud.clouddms.v1.SshScript)other); + return mergeFrom((com.google.cloud.clouddms.v1.SshScript) other); } else { super.mergeFrom(other); return this; @@ -445,18 +477,20 @@ public Builder mergeFrom( private java.lang.Object script_ = ""; /** + * + * *
      * The ssh configuration script.
      * 
* * string script = 1; + * * @return The script. */ public java.lang.String getScript() { java.lang.Object ref = script_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); script_ = s; return s; @@ -465,20 +499,21 @@ public java.lang.String getScript() { } } /** + * + * *
      * The ssh configuration script.
      * 
* * string script = 1; + * * @return The bytes for script. */ - public com.google.protobuf.ByteString - getScriptBytes() { + public com.google.protobuf.ByteString getScriptBytes() { java.lang.Object ref = script_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); script_ = b; return b; } else { @@ -486,61 +521,68 @@ public java.lang.String getScript() { } } /** + * + * *
      * The ssh configuration script.
      * 
* * string script = 1; + * * @param value The script to set. * @return This builder for chaining. */ - public Builder setScript( - java.lang.String value) { + public Builder setScript(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + script_ = value; onChanged(); return this; } /** + * + * *
      * The ssh configuration script.
      * 
* * string script = 1; + * * @return This builder for chaining. */ public Builder clearScript() { - + script_ = getDefaultInstance().getScript(); onChanged(); return this; } /** + * + * *
      * The ssh configuration script.
      * 
* * string script = 1; + * * @param value The bytes for script to set. * @return This builder for chaining. */ - public Builder setScriptBytes( - com.google.protobuf.ByteString value) { + public Builder setScriptBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + script_ = 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); } @@ -550,12 +592,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.SshScript) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.SshScript) private static final com.google.cloud.clouddms.v1.SshScript DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.SshScript(); } @@ -564,16 +606,16 @@ public static com.google.cloud.clouddms.v1.SshScript getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SshScript parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SshScript(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SshScript parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SshScript(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +630,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.SshScript getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScriptOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScriptOrBuilder.java new file mode 100644 index 00000000..784cf07b --- /dev/null +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SshScriptOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface SshScriptOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.SshScript) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The ssh configuration script.
+   * 
+ * + * string script = 1; + * + * @return The script. + */ + java.lang.String getScript(); + /** + * + * + *
+   * The ssh configuration script.
+   * 
+ * + * string script = 1; + * + * @return The bytes for script. + */ + com.google.protobuf.ByteString getScriptBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfig.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfig.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfig.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfig.java index 26b58dbd..52780524 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfig.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfig.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * SSL configuration information.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.SslConfig} */ -public final class SslConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SslConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.SslConfig) SslConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SslConfig.newBuilder() to construct. private SslConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SslConfig() { type_ = 0; clientKey_ = ""; @@ -28,16 +46,15 @@ private SslConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SslConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SslConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,72 +73,81 @@ private SslConfig( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + type_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - clientKey_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + clientKey_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - clientCertificate_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + clientCertificate_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - caCertificate_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + caCertificate_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SslConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_SslConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SslConfig_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_SslConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.SslConfig.class, com.google.cloud.clouddms.v1.SslConfig.Builder.class); + com.google.cloud.clouddms.v1.SslConfig.class, + com.google.cloud.clouddms.v1.SslConfig.Builder.class); } /** + * + * *
    * Specifies The kind of ssl configuration used.
    * 
* * Protobuf enum {@code google.cloud.clouddms.v1.SslConfig.SslType} */ - public enum SslType - implements com.google.protobuf.ProtocolMessageEnum { + public enum SslType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified.
      * 
@@ -130,6 +156,8 @@ public enum SslType */ SSL_TYPE_UNSPECIFIED(0), /** + * + * *
      * Only 'ca_certificate' specified.
      * 
@@ -138,6 +166,8 @@ public enum SslType */ SERVER_ONLY(1), /** + * + * *
      * Both server ('ca_certificate'), and client ('client_key',
      * 'client_certificate') specified.
@@ -150,6 +180,8 @@ public enum SslType
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified.
      * 
@@ -158,6 +190,8 @@ public enum SslType */ public static final int SSL_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Only 'ca_certificate' specified.
      * 
@@ -166,6 +200,8 @@ public enum SslType */ public static final int SERVER_ONLY_VALUE = 1; /** + * + * *
      * Both server ('ca_certificate'), and client ('client_key',
      * 'client_certificate') specified.
@@ -175,7 +211,6 @@ public enum SslType
      */
     public static final int SERVER_CLIENT_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -200,49 +235,49 @@ public static SslType valueOf(int value) {
      */
     public static SslType forNumber(int value) {
       switch (value) {
-        case 0: return SSL_TYPE_UNSPECIFIED;
-        case 1: return SERVER_ONLY;
-        case 2: return SERVER_CLIENT;
-        default: return null;
+        case 0:
+          return SSL_TYPE_UNSPECIFIED;
+        case 1:
+          return SERVER_ONLY;
+        case 2:
+          return SERVER_CLIENT;
+        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<
-        SslType> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public SslType findValueByNumber(int number) {
-              return SslType.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public SslType findValueByNumber(int number) {
+            return SslType.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() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.clouddms.v1.SslConfig.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final SslType[] VALUES = values();
 
-    public static SslType valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static SslType 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;
@@ -262,35 +297,50 @@ private SslType(int value) {
   public static final int TYPE_FIELD_NUMBER = 1;
   private int type_;
   /**
+   *
+   *
    * 
    * Output only. The ssl config type according to 'client_key', 'client_certificate' and
    * 'ca_certificate'.
    * 
* - * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * Output only. The ssl config type according to 'client_key', 'client_certificate' and
    * 'ca_certificate'.
    * 
* - * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The type. */ - @java.lang.Override public com.google.cloud.clouddms.v1.SslConfig.SslType getType() { + @java.lang.Override + public com.google.cloud.clouddms.v1.SslConfig.SslType getType() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.SslConfig.SslType result = com.google.cloud.clouddms.v1.SslConfig.SslType.valueOf(type_); + com.google.cloud.clouddms.v1.SslConfig.SslType result = + com.google.cloud.clouddms.v1.SslConfig.SslType.valueOf(type_); return result == null ? com.google.cloud.clouddms.v1.SslConfig.SslType.UNRECOGNIZED : result; } public static final int CLIENT_KEY_FIELD_NUMBER = 2; private volatile java.lang.Object clientKey_; /** + * + * *
    * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with
    * the Client Certificate. If this field is used then the 'client_certificate'
@@ -298,6 +348,7 @@ private SslType(int value) {
    * 
* * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The clientKey. */ @java.lang.Override @@ -306,14 +357,15 @@ public java.lang.String getClientKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientKey_ = s; return s; } } /** + * + * *
    * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with
    * the Client Certificate. If this field is used then the 'client_certificate'
@@ -321,16 +373,15 @@ public java.lang.String getClientKey() {
    * 
* * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for clientKey. */ @java.lang.Override - public com.google.protobuf.ByteString - getClientKeyBytes() { + public com.google.protobuf.ByteString getClientKeyBytes() { java.lang.Object ref = clientKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clientKey_ = b; return b; } else { @@ -341,6 +392,8 @@ public java.lang.String getClientKey() { public static final int CLIENT_CERTIFICATE_FIELD_NUMBER = 3; private volatile java.lang.Object clientCertificate_; /** + * + * *
    * Input only. The x509 PEM-encoded certificate that will be used by the replica to
    * authenticate against the source database server.If this field is used then
@@ -348,6 +401,7 @@ public java.lang.String getClientKey() {
    * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The clientCertificate. */ @java.lang.Override @@ -356,14 +410,15 @@ public java.lang.String getClientCertificate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientCertificate_ = s; return s; } } /** + * + * *
    * Input only. The x509 PEM-encoded certificate that will be used by the replica to
    * authenticate against the source database server.If this field is used then
@@ -371,16 +426,15 @@ public java.lang.String getClientCertificate() {
    * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for clientCertificate. */ @java.lang.Override - public com.google.protobuf.ByteString - getClientCertificateBytes() { + public com.google.protobuf.ByteString getClientCertificateBytes() { java.lang.Object ref = clientCertificate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clientCertificate_ = b; return b; } else { @@ -391,13 +445,18 @@ public java.lang.String getClientCertificate() { public static final int CA_CERTIFICATE_FIELD_NUMBER = 4; private volatile java.lang.Object caCertificate_; /** + * + * *
    * Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database
    * server's certificate. The replica will use this certificate to verify
    * it's connecting to the right host.
    * 
* - * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * * @return The caCertificate. */ @java.lang.Override @@ -406,31 +465,33 @@ public java.lang.String getCaCertificate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caCertificate_ = s; return s; } } /** + * + * *
    * Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database
    * server's certificate. The replica will use this certificate to verify
    * it's connecting to the right host.
    * 
* - * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * * @return The bytes for caCertificate. */ @java.lang.Override - public com.google.protobuf.ByteString - getCaCertificateBytes() { + public com.google.protobuf.ByteString getCaCertificateBytes() { java.lang.Object ref = caCertificate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); caCertificate_ = b; return b; } else { @@ -439,6 +500,7 @@ public java.lang.String getCaCertificate() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -450,8 +512,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != com.google.cloud.clouddms.v1.SslConfig.SslType.SSL_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } @@ -474,8 +535,7 @@ public int getSerializedSize() { size = 0; if (type_ != com.google.cloud.clouddms.v1.SslConfig.SslType.SSL_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } if (!getClientKeyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clientKey_); @@ -494,7 +554,7 @@ 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.clouddms.v1.SslConfig)) { return super.equals(obj); @@ -502,12 +562,9 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.clouddms.v1.SslConfig other = (com.google.cloud.clouddms.v1.SslConfig) obj; if (type_ != other.type_) return false; - if (!getClientKey() - .equals(other.getClientKey())) return false; - if (!getClientCertificate() - .equals(other.getClientCertificate())) return false; - if (!getCaCertificate() - .equals(other.getCaCertificate())) return false; + if (!getClientKey().equals(other.getClientKey())) return false; + if (!getClientCertificate().equals(other.getClientCertificate())) return false; + if (!getCaCertificate().equals(other.getCaCertificate())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -532,118 +589,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.clouddms.v1.SslConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.clouddms.v1.SslConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.SslConfig 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.clouddms.v1.SslConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.SslConfig 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.clouddms.v1.SslConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.SslConfig 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.clouddms.v1.SslConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.SslConfig 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.clouddms.v1.SslConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.SslConfig 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.clouddms.v1.SslConfig 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.clouddms.v1.SslConfig 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.clouddms.v1.SslConfig 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; } /** + * + * *
    * SSL configuration information.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.SslConfig} */ - 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.clouddms.v1.SslConfig) com.google.cloud.clouddms.v1.SslConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SslConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_SslConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SslConfig_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_SslConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.SslConfig.class, com.google.cloud.clouddms.v1.SslConfig.Builder.class); + com.google.cloud.clouddms.v1.SslConfig.class, + com.google.cloud.clouddms.v1.SslConfig.Builder.class); } // Construct using com.google.cloud.clouddms.v1.SslConfig.newBuilder() @@ -651,16 +717,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -676,9 +741,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_SslConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_SslConfig_descriptor; } @java.lang.Override @@ -697,7 +762,8 @@ public com.google.cloud.clouddms.v1.SslConfig build() { @java.lang.Override public com.google.cloud.clouddms.v1.SslConfig buildPartial() { - com.google.cloud.clouddms.v1.SslConfig result = new com.google.cloud.clouddms.v1.SslConfig(this); + com.google.cloud.clouddms.v1.SslConfig result = + new com.google.cloud.clouddms.v1.SslConfig(this); result.type_ = type_; result.clientKey_ = clientKey_; result.clientCertificate_ = clientCertificate_; @@ -710,38 +776,39 @@ public com.google.cloud.clouddms.v1.SslConfig 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.clouddms.v1.SslConfig) { - return mergeFrom((com.google.cloud.clouddms.v1.SslConfig)other); + return mergeFrom((com.google.cloud.clouddms.v1.SslConfig) other); } else { super.mergeFrom(other); return this; @@ -796,55 +863,77 @@ public Builder mergeFrom( private int type_ = 0; /** + * + * *
      * Output only. The ssl config type according to 'client_key', 'client_certificate' and
      * 'ca_certificate'.
      * 
* - * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Output only. The ssl config type according to 'client_key', 'client_certificate' and
      * 'ca_certificate'.
      * 
* - * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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; } /** + * + * *
      * Output only. The ssl config type according to 'client_key', 'client_certificate' and
      * 'ca_certificate'.
      * 
* - * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The type. */ @java.lang.Override public com.google.cloud.clouddms.v1.SslConfig.SslType getType() { @SuppressWarnings("deprecation") - com.google.cloud.clouddms.v1.SslConfig.SslType result = com.google.cloud.clouddms.v1.SslConfig.SslType.valueOf(type_); + com.google.cloud.clouddms.v1.SslConfig.SslType result = + com.google.cloud.clouddms.v1.SslConfig.SslType.valueOf(type_); return result == null ? com.google.cloud.clouddms.v1.SslConfig.SslType.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The ssl config type according to 'client_key', 'client_certificate' and
      * 'ca_certificate'.
      * 
* - * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The type to set. * @return This builder for chaining. */ @@ -852,22 +941,27 @@ public Builder setType(com.google.cloud.clouddms.v1.SslConfig.SslType value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The ssl config type according to 'client_key', 'client_certificate' and
      * 'ca_certificate'.
      * 
* - * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -875,6 +969,8 @@ public Builder clearType() { private java.lang.Object clientKey_ = ""; /** + * + * *
      * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with
      * the Client Certificate. If this field is used then the 'client_certificate'
@@ -882,13 +978,13 @@ public Builder clearType() {
      * 
* * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The clientKey. */ public java.lang.String getClientKey() { java.lang.Object ref = clientKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientKey_ = s; return s; @@ -897,6 +993,8 @@ public java.lang.String getClientKey() { } } /** + * + * *
      * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with
      * the Client Certificate. If this field is used then the 'client_certificate'
@@ -904,15 +1002,14 @@ public java.lang.String getClientKey() {
      * 
* * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for clientKey. */ - public com.google.protobuf.ByteString - getClientKeyBytes() { + public com.google.protobuf.ByteString getClientKeyBytes() { java.lang.Object ref = clientKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clientKey_ = b; return b; } else { @@ -920,6 +1017,8 @@ public java.lang.String getClientKey() { } } /** + * + * *
      * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with
      * the Client Certificate. If this field is used then the 'client_certificate'
@@ -927,20 +1026,22 @@ public java.lang.String getClientKey() {
      * 
* * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The clientKey to set. * @return This builder for chaining. */ - public Builder setClientKey( - java.lang.String value) { + public Builder setClientKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clientKey_ = value; onChanged(); return this; } /** + * + * *
      * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with
      * the Client Certificate. If this field is used then the 'client_certificate'
@@ -948,15 +1049,18 @@ public Builder setClientKey(
      * 
* * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClientKey() { - + clientKey_ = getDefaultInstance().getClientKey(); onChanged(); return this; } /** + * + * *
      * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with
      * the Client Certificate. If this field is used then the 'client_certificate'
@@ -964,16 +1068,16 @@ public Builder clearClientKey() {
      * 
* * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The bytes for clientKey to set. * @return This builder for chaining. */ - public Builder setClientKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setClientKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientKey_ = value; onChanged(); return this; @@ -981,6 +1085,8 @@ public Builder setClientKeyBytes( private java.lang.Object clientCertificate_ = ""; /** + * + * *
      * Input only. The x509 PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server.If this field is used then
@@ -988,13 +1094,13 @@ public Builder setClientKeyBytes(
      * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The clientCertificate. */ public java.lang.String getClientCertificate() { java.lang.Object ref = clientCertificate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientCertificate_ = s; return s; @@ -1003,6 +1109,8 @@ public java.lang.String getClientCertificate() { } } /** + * + * *
      * Input only. The x509 PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server.If this field is used then
@@ -1010,15 +1118,14 @@ public java.lang.String getClientCertificate() {
      * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for clientCertificate. */ - public com.google.protobuf.ByteString - getClientCertificateBytes() { + public com.google.protobuf.ByteString getClientCertificateBytes() { java.lang.Object ref = clientCertificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clientCertificate_ = b; return b; } else { @@ -1026,6 +1133,8 @@ public java.lang.String getClientCertificate() { } } /** + * + * *
      * Input only. The x509 PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server.If this field is used then
@@ -1033,20 +1142,22 @@ public java.lang.String getClientCertificate() {
      * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The clientCertificate to set. * @return This builder for chaining. */ - public Builder setClientCertificate( - java.lang.String value) { + public Builder setClientCertificate(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clientCertificate_ = value; onChanged(); return this; } /** + * + * *
      * Input only. The x509 PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server.If this field is used then
@@ -1054,15 +1165,18 @@ public Builder setClientCertificate(
      * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClientCertificate() { - + clientCertificate_ = getDefaultInstance().getClientCertificate(); onChanged(); return this; } /** + * + * *
      * Input only. The x509 PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server.If this field is used then
@@ -1070,16 +1184,16 @@ public Builder clearClientCertificate() {
      * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The bytes for clientCertificate to set. * @return This builder for chaining. */ - public Builder setClientCertificateBytes( - com.google.protobuf.ByteString value) { + public Builder setClientCertificateBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientCertificate_ = value; onChanged(); return this; @@ -1087,20 +1201,24 @@ public Builder setClientCertificateBytes( private java.lang.Object caCertificate_ = ""; /** + * + * *
      * Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database
      * server's certificate. The replica will use this certificate to verify
      * it's connecting to the right host.
      * 
* - * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * * @return The caCertificate. */ public java.lang.String getCaCertificate() { java.lang.Object ref = caCertificate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caCertificate_ = s; return s; @@ -1109,22 +1227,25 @@ public java.lang.String getCaCertificate() { } } /** + * + * *
      * Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database
      * server's certificate. The replica will use this certificate to verify
      * it's connecting to the right host.
      * 
* - * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * * @return The bytes for caCertificate. */ - public com.google.protobuf.ByteString - getCaCertificateBytes() { + public com.google.protobuf.ByteString getCaCertificateBytes() { java.lang.Object ref = caCertificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); caCertificate_ = b; return b; } else { @@ -1132,67 +1253,80 @@ public java.lang.String getCaCertificate() { } } /** + * + * *
      * Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database
      * server's certificate. The replica will use this certificate to verify
      * it's connecting to the right host.
      * 
* - * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * * @param value The caCertificate to set. * @return This builder for chaining. */ - public Builder setCaCertificate( - java.lang.String value) { + public Builder setCaCertificate(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + caCertificate_ = value; onChanged(); return this; } /** + * + * *
      * Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database
      * server's certificate. The replica will use this certificate to verify
      * it's connecting to the right host.
      * 
* - * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearCaCertificate() { - + caCertificate_ = getDefaultInstance().getCaCertificate(); onChanged(); return this; } /** + * + * *
      * Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database
      * server's certificate. The replica will use this certificate to verify
      * it's connecting to the right host.
      * 
* - * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * * @param value The bytes for caCertificate to set. * @return This builder for chaining. */ - public Builder setCaCertificateBytes( - com.google.protobuf.ByteString value) { + public Builder setCaCertificateBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + caCertificate_ = 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); } @@ -1202,12 +1336,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.SslConfig) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.SslConfig) private static final com.google.cloud.clouddms.v1.SslConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.SslConfig(); } @@ -1216,16 +1350,16 @@ public static com.google.cloud.clouddms.v1.SslConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SslConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SslConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SslConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SslConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1240,6 +1374,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.SslConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfigOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfigOrBuilder.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfigOrBuilder.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfigOrBuilder.java index a25fa0b9..c6ff8122 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfigOrBuilder.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfigOrBuilder.java @@ -1,34 +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/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; -public interface SslConfigOrBuilder extends +public interface SslConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.SslConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The ssl config type according to 'client_key', 'client_certificate' and
    * 'ca_certificate'.
    * 
* - * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * Output only. The ssl config type according to 'client_key', 'client_certificate' and
    * 'ca_certificate'.
    * 
* - * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The type. */ com.google.cloud.clouddms.v1.SslConfig.SslType getType(); /** + * + * *
    * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with
    * the Client Certificate. If this field is used then the 'client_certificate'
@@ -36,10 +64,13 @@ public interface SslConfigOrBuilder extends
    * 
* * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The clientKey. */ java.lang.String getClientKey(); /** + * + * *
    * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with
    * the Client Certificate. If this field is used then the 'client_certificate'
@@ -47,12 +78,14 @@ public interface SslConfigOrBuilder extends
    * 
* * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for clientKey. */ - com.google.protobuf.ByteString - getClientKeyBytes(); + com.google.protobuf.ByteString getClientKeyBytes(); /** + * + * *
    * Input only. The x509 PEM-encoded certificate that will be used by the replica to
    * authenticate against the source database server.If this field is used then
@@ -60,10 +93,13 @@ public interface SslConfigOrBuilder extends
    * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The clientCertificate. */ java.lang.String getClientCertificate(); /** + * + * *
    * Input only. The x509 PEM-encoded certificate that will be used by the replica to
    * authenticate against the source database server.If this field is used then
@@ -71,32 +107,41 @@ public interface SslConfigOrBuilder extends
    * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for clientCertificate. */ - com.google.protobuf.ByteString - getClientCertificateBytes(); + com.google.protobuf.ByteString getClientCertificateBytes(); /** + * + * *
    * Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database
    * server's certificate. The replica will use this certificate to verify
    * it's connecting to the right host.
    * 
* - * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * * @return The caCertificate. */ java.lang.String getCaCertificate(); /** + * + * *
    * Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database
    * server's certificate. The replica will use this certificate to verify
    * it's connecting to the right host.
    * 
* - * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * * @return The bytes for caCertificate. */ - com.google.protobuf.ByteString - getCaCertificateBytes(); + com.google.protobuf.ByteString getCaCertificateBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequest.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequest.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequest.java index 6848ad0a..3e729c94 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequest.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * Request message for 'StartMigrationJob' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.StartMigrationJobRequest} */ -public final class StartMigrationJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartMigrationJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.StartMigrationJobRequest) StartMigrationJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartMigrationJobRequest.newBuilder() to construct. private StartMigrationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StartMigrationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartMigrationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StartMigrationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,58 @@ private StartMigrationJobRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.StartMigrationJobRequest.class, com.google.cloud.clouddms.v1.StartMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.StartMigrationJobRequest.class, + com.google.cloud.clouddms.v1.StartMigrationJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Name of the migration job resource to start.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ @java.lang.Override @@ -107,29 +130,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; } } /** + * + * *
    * Name of the migration job resource to start.
    * 
* * string name = 1 [(.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 { @@ -138,6 +161,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +173,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -174,15 +197,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.clouddms.v1.StartMigrationJobRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.StartMigrationJobRequest other = (com.google.cloud.clouddms.v1.StartMigrationJobRequest) obj; + com.google.cloud.clouddms.v1.StartMigrationJobRequest other = + (com.google.cloud.clouddms.v1.StartMigrationJobRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,117 +225,127 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.StartMigrationJobRequest 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.clouddms.v1.StartMigrationJobRequest 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.clouddms.v1.StartMigrationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.StartMigrationJobRequest 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.clouddms.v1.StartMigrationJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.StartMigrationJobRequest 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.clouddms.v1.StartMigrationJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.StartMigrationJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.StartMigrationJobRequest 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.clouddms.v1.StartMigrationJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.StartMigrationJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.StartMigrationJobRequest 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.clouddms.v1.StartMigrationJobRequest 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.clouddms.v1.StartMigrationJobRequest 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.clouddms.v1.StartMigrationJobRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.clouddms.v1.StartMigrationJobRequest 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 message for 'StartMigrationJob' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.StartMigrationJobRequest} */ - 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.clouddms.v1.StartMigrationJobRequest) com.google.cloud.clouddms.v1.StartMigrationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.StartMigrationJobRequest.class, com.google.cloud.clouddms.v1.StartMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.StartMigrationJobRequest.class, + com.google.cloud.clouddms.v1.StartMigrationJobRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.StartMigrationJobRequest.newBuilder() @@ -320,16 +353,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +371,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_StartMigrationJobRequest_descriptor; } @java.lang.Override @@ -360,7 +392,8 @@ public com.google.cloud.clouddms.v1.StartMigrationJobRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.StartMigrationJobRequest buildPartial() { - com.google.cloud.clouddms.v1.StartMigrationJobRequest result = new com.google.cloud.clouddms.v1.StartMigrationJobRequest(this); + com.google.cloud.clouddms.v1.StartMigrationJobRequest result = + new com.google.cloud.clouddms.v1.StartMigrationJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +403,39 @@ public com.google.cloud.clouddms.v1.StartMigrationJobRequest 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.clouddms.v1.StartMigrationJobRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.StartMigrationJobRequest)other); + return mergeFrom((com.google.cloud.clouddms.v1.StartMigrationJobRequest) other); } else { super.mergeFrom(other); return this; @@ -409,7 +443,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.StartMigrationJobRequest other) { - if (other == com.google.cloud.clouddms.v1.StartMigrationJobRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.clouddms.v1.StartMigrationJobRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -433,7 +468,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.clouddms.v1.StartMigrationJobRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.clouddms.v1.StartMigrationJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -445,18 +481,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Name of the migration job resource to start.
      * 
* * string name = 1 [(.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; @@ -465,20 +503,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the migration job resource to start.
      * 
* * string name = 1 [(.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 { @@ -486,61 +525,68 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the migration job resource to start.
      * 
* * string name = 1 [(.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; } /** + * + * *
      * Name of the migration job resource to start.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Name of the migration job resource to start.
      * 
* * string name = 1 [(.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); } @@ -550,12 +596,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.StartMigrationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.StartMigrationJobRequest) private static final com.google.cloud.clouddms.v1.StartMigrationJobRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.StartMigrationJobRequest(); } @@ -564,16 +610,16 @@ public static com.google.cloud.clouddms.v1.StartMigrationJobRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartMigrationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StartMigrationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartMigrationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StartMigrationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +634,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.StartMigrationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequestOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequestOrBuilder.java new file mode 100644 index 00000000..4fac61fc --- /dev/null +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StartMigrationJobRequestOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface StartMigrationJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.StartMigrationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the migration job resource to start.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Name of the migration job resource to start.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivity.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivity.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivity.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivity.java index ec4bd761..13061f01 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivity.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivity.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * The source database will allow incoming connections from the destination
  * database's public IP. You can retrieve the Cloud SQL instance's public IP
@@ -13,30 +30,29 @@
  *
  * Protobuf type {@code google.cloud.clouddms.v1.StaticIpConnectivity}
  */
-public final class StaticIpConnectivity extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StaticIpConnectivity extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.StaticIpConnectivity)
     StaticIpConnectivityOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StaticIpConnectivity.newBuilder() to construct.
   private StaticIpConnectivity(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private StaticIpConnectivity() {
-  }
+
+  private StaticIpConnectivity() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StaticIpConnectivity();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private StaticIpConnectivity(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,39 +71,42 @@ private StaticIpConnectivity(
           case 0:
             done = true;
             break;
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
+        .internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_fieldAccessorTable
+    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
+        .internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.clouddms.v1.StaticIpConnectivity.class, com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder.class);
+            com.google.cloud.clouddms.v1.StaticIpConnectivity.class,
+            com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -99,8 +118,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     unknownFields.writeTo(output);
   }
 
@@ -118,12 +136,13 @@ 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.clouddms.v1.StaticIpConnectivity)) {
       return super.equals(obj);
     }
-    com.google.cloud.clouddms.v1.StaticIpConnectivity other = (com.google.cloud.clouddms.v1.StaticIpConnectivity) obj;
+    com.google.cloud.clouddms.v1.StaticIpConnectivity other =
+        (com.google.cloud.clouddms.v1.StaticIpConnectivity) obj;
 
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -142,96 +161,103 @@ public int hashCode() {
   }
 
   public static com.google.cloud.clouddms.v1.StaticIpConnectivity 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.clouddms.v1.StaticIpConnectivity 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.clouddms.v1.StaticIpConnectivity parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.clouddms.v1.StaticIpConnectivity 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.clouddms.v1.StaticIpConnectivity parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.clouddms.v1.StaticIpConnectivity 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.clouddms.v1.StaticIpConnectivity parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.clouddms.v1.StaticIpConnectivity parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.clouddms.v1.StaticIpConnectivity 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.clouddms.v1.StaticIpConnectivity parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.clouddms.v1.StaticIpConnectivity parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.clouddms.v1.StaticIpConnectivity 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.clouddms.v1.StaticIpConnectivity 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.clouddms.v1.StaticIpConnectivity 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.clouddms.v1.StaticIpConnectivity 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 source database will allow incoming connections from the destination
    * database's public IP. You can retrieve the Cloud SQL instance's public IP
@@ -241,21 +267,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.clouddms.v1.StaticIpConnectivity}
    */
-  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.clouddms.v1.StaticIpConnectivity)
       com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
+          .internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_fieldAccessorTable
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
+          .internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.clouddms.v1.StaticIpConnectivity.class, com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder.class);
+              com.google.cloud.clouddms.v1.StaticIpConnectivity.class,
+              com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder.class);
     }
 
     // Construct using com.google.cloud.clouddms.v1.StaticIpConnectivity.newBuilder()
@@ -263,16 +291,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -280,9 +307,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
+          .internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_descriptor;
     }
 
     @java.lang.Override
@@ -301,7 +328,8 @@ public com.google.cloud.clouddms.v1.StaticIpConnectivity build() {
 
     @java.lang.Override
     public com.google.cloud.clouddms.v1.StaticIpConnectivity buildPartial() {
-      com.google.cloud.clouddms.v1.StaticIpConnectivity result = new com.google.cloud.clouddms.v1.StaticIpConnectivity(this);
+      com.google.cloud.clouddms.v1.StaticIpConnectivity result =
+          new com.google.cloud.clouddms.v1.StaticIpConnectivity(this);
       onBuilt();
       return result;
     }
@@ -310,38 +338,39 @@ public com.google.cloud.clouddms.v1.StaticIpConnectivity 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.clouddms.v1.StaticIpConnectivity) {
-        return mergeFrom((com.google.cloud.clouddms.v1.StaticIpConnectivity)other);
+        return mergeFrom((com.google.cloud.clouddms.v1.StaticIpConnectivity) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -349,7 +378,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.clouddms.v1.StaticIpConnectivity other) {
-      if (other == com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance()) return this;
+      if (other == com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance())
+        return this;
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -369,7 +399,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.clouddms.v1.StaticIpConnectivity) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.clouddms.v1.StaticIpConnectivity) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -378,9 +409,9 @@ public Builder mergeFrom(
       }
       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);
     }
 
@@ -390,12 +421,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.StaticIpConnectivity)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.StaticIpConnectivity)
   private static final com.google.cloud.clouddms.v1.StaticIpConnectivity DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.StaticIpConnectivity();
   }
@@ -404,16 +435,16 @@ public static com.google.cloud.clouddms.v1.StaticIpConnectivity getDefaultInstan
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public StaticIpConnectivity parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new StaticIpConnectivity(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public StaticIpConnectivity parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new StaticIpConnectivity(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -428,6 +459,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.clouddms.v1.StaticIpConnectivity getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivityOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivityOrBuilder.java
new file mode 100644
index 00000000..58aced9d
--- /dev/null
+++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivityOrBuilder.java
@@ -0,0 +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/clouddms/v1/clouddms_resources.proto
+
+package com.google.cloud.clouddms.v1;
+
+public interface StaticIpConnectivityOrBuilder
+    extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.StaticIpConnectivity)
+    com.google.protobuf.MessageOrBuilder {}
diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequest.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequest.java
similarity index 68%
rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequest.java
rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequest.java
index be4fa122..aed0dc33 100644
--- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequest.java
+++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequest.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/clouddms/v1/clouddms.proto
 
 package com.google.cloud.clouddms.v1;
 
 /**
+ *
+ *
  * 
  * Request message for 'StopMigrationJob' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.StopMigrationJobRequest} */ -public final class StopMigrationJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StopMigrationJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.StopMigrationJobRequest) StopMigrationJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StopMigrationJobRequest.newBuilder() to construct. private StopMigrationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StopMigrationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StopMigrationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StopMigrationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,58 @@ private StopMigrationJobRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.StopMigrationJobRequest.class, com.google.cloud.clouddms.v1.StopMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.StopMigrationJobRequest.class, + com.google.cloud.clouddms.v1.StopMigrationJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Name of the migration job resource to stop.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ @java.lang.Override @@ -107,29 +130,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; } } /** + * + * *
    * Name of the migration job resource to stop.
    * 
* * string name = 1 [(.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 { @@ -138,6 +161,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +173,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -174,15 +197,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.clouddms.v1.StopMigrationJobRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.StopMigrationJobRequest other = (com.google.cloud.clouddms.v1.StopMigrationJobRequest) obj; + com.google.cloud.clouddms.v1.StopMigrationJobRequest other = + (com.google.cloud.clouddms.v1.StopMigrationJobRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,117 +225,126 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.StopMigrationJobRequest 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.clouddms.v1.StopMigrationJobRequest 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.clouddms.v1.StopMigrationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.StopMigrationJobRequest 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.clouddms.v1.StopMigrationJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.StopMigrationJobRequest 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.clouddms.v1.StopMigrationJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.StopMigrationJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.StopMigrationJobRequest 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.clouddms.v1.StopMigrationJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.StopMigrationJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.StopMigrationJobRequest 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.clouddms.v1.StopMigrationJobRequest 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.clouddms.v1.StopMigrationJobRequest 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.clouddms.v1.StopMigrationJobRequest 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 message for 'StopMigrationJob' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.StopMigrationJobRequest} */ - 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.clouddms.v1.StopMigrationJobRequest) com.google.cloud.clouddms.v1.StopMigrationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.StopMigrationJobRequest.class, com.google.cloud.clouddms.v1.StopMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.StopMigrationJobRequest.class, + com.google.cloud.clouddms.v1.StopMigrationJobRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.StopMigrationJobRequest.newBuilder() @@ -320,16 +352,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +370,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_StopMigrationJobRequest_descriptor; } @java.lang.Override @@ -360,7 +391,8 @@ public com.google.cloud.clouddms.v1.StopMigrationJobRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.StopMigrationJobRequest buildPartial() { - com.google.cloud.clouddms.v1.StopMigrationJobRequest result = new com.google.cloud.clouddms.v1.StopMigrationJobRequest(this); + com.google.cloud.clouddms.v1.StopMigrationJobRequest result = + new com.google.cloud.clouddms.v1.StopMigrationJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +402,39 @@ public com.google.cloud.clouddms.v1.StopMigrationJobRequest 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.clouddms.v1.StopMigrationJobRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.StopMigrationJobRequest)other); + return mergeFrom((com.google.cloud.clouddms.v1.StopMigrationJobRequest) other); } else { super.mergeFrom(other); return this; @@ -409,7 +442,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.StopMigrationJobRequest other) { - if (other == com.google.cloud.clouddms.v1.StopMigrationJobRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.clouddms.v1.StopMigrationJobRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -433,7 +467,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.clouddms.v1.StopMigrationJobRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.clouddms.v1.StopMigrationJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -445,18 +480,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Name of the migration job resource to stop.
      * 
* * string name = 1 [(.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; @@ -465,20 +502,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the migration job resource to stop.
      * 
* * string name = 1 [(.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 { @@ -486,61 +524,68 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the migration job resource to stop.
      * 
* * string name = 1 [(.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; } /** + * + * *
      * Name of the migration job resource to stop.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Name of the migration job resource to stop.
      * 
* * string name = 1 [(.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); } @@ -550,12 +595,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.StopMigrationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.StopMigrationJobRequest) private static final com.google.cloud.clouddms.v1.StopMigrationJobRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.StopMigrationJobRequest(); } @@ -564,16 +609,16 @@ public static com.google.cloud.clouddms.v1.StopMigrationJobRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopMigrationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StopMigrationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopMigrationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StopMigrationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +633,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.StopMigrationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequestOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequestOrBuilder.java new file mode 100644 index 00000000..d9648ba9 --- /dev/null +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StopMigrationJobRequestOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface StopMigrationJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.StopMigrationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the migration job resource to stop.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Name of the migration job resource to stop.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequest.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequest.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequest.java index 8a18274e..874ff0aa 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequest.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequest.java @@ -1,40 +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/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * Request message for 'UpdateConnectionProfile' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.UpdateConnectionProfileRequest} */ -public final class UpdateConnectionProfileRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.UpdateConnectionProfileRequest) UpdateConnectionProfileRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateConnectionProfileRequest.newBuilder() to construct. - private UpdateConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateConnectionProfileRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateConnectionProfileRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateConnectionProfileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,79 +71,91 @@ private UpdateConnectionProfileRequest( case 0: done = true; break; - case 10: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.clouddms.v1.ConnectionProfile.Builder subBuilder = null; - if (connectionProfile_ != null) { - subBuilder = connectionProfile_.toBuilder(); - } - connectionProfile_ = input.readMessage(com.google.cloud.clouddms.v1.ConnectionProfile.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(connectionProfile_); - connectionProfile_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.clouddms.v1.ConnectionProfile.Builder subBuilder = null; + if (connectionProfile_ != null) { + subBuilder = connectionProfile_.toBuilder(); + } + connectionProfile_ = + input.readMessage( + com.google.cloud.clouddms.v1.ConnectionProfile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(connectionProfile_); + connectionProfile_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.class, com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.Builder.class); + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.class, + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * connection profile resource by the update.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -133,12 +163,16 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * connection profile resource by the update.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -146,12 +180,15 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * connection profile resource by the update.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -161,11 +198,16 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int CONNECTION_PROFILE_FIELD_NUMBER = 2; private com.google.cloud.clouddms.v1.ConnectionProfile connectionProfile_; /** + * + * *
    * Required. The connection profile parameters to update.
    * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connectionProfile field is set. */ @java.lang.Override @@ -173,23 +215,34 @@ public boolean hasConnectionProfile() { return connectionProfile_ != null; } /** + * + * *
    * Required. The connection profile parameters to update.
    * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connectionProfile. */ @java.lang.Override public com.google.cloud.clouddms.v1.ConnectionProfile getConnectionProfile() { - return connectionProfile_ == null ? com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; + return connectionProfile_ == null + ? com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance() + : connectionProfile_; } /** + * + * *
    * Required. The connection profile parameters to update.
    * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { @@ -199,6 +252,8 @@ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProf public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** + * + * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -208,6 +263,7 @@ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProf
    * 
* * string request_id = 3; + * * @return The requestId. */ @java.lang.Override @@ -216,14 +272,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -233,16 +290,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -251,6 +307,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,8 +319,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -283,12 +339,10 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (connectionProfile_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConnectionProfile()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConnectionProfile()); } if (!getRequestIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -301,25 +355,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest other = (com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest) obj; + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest other = + (com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasConnectionProfile() != other.hasConnectionProfile()) return false; if (hasConnectionProfile()) { - if (!getConnectionProfile() - .equals(other.getConnectionProfile())) return false; + if (!getConnectionProfile().equals(other.getConnectionProfile())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -347,117 +399,127 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest 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.clouddms.v1.UpdateConnectionProfileRequest 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.clouddms.v1.UpdateConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest 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.clouddms.v1.UpdateConnectionProfileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest 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.clouddms.v1.UpdateConnectionProfileRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest 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.clouddms.v1.UpdateConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest 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.clouddms.v1.UpdateConnectionProfileRequest 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.clouddms.v1.UpdateConnectionProfileRequest 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.clouddms.v1.UpdateConnectionProfileRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest 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 message for 'UpdateConnectionProfile' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.UpdateConnectionProfileRequest} */ - 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.clouddms.v1.UpdateConnectionProfileRequest) com.google.cloud.clouddms.v1.UpdateConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.class, com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.Builder.class); + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.class, + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.newBuilder() @@ -465,16 +527,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +557,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor; } @java.lang.Override @@ -517,7 +578,8 @@ public com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest buildPartial() { - com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest result = new com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest(this); + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest result = + new com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -537,38 +599,39 @@ public com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest 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.clouddms.v1.UpdateConnectionProfileRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest)other); + return mergeFrom((com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest) other); } else { super.mergeFrom(other); return this; @@ -576,7 +639,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest other) { - if (other == com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest.getDefaultInstance()) + return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -606,7 +670,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -618,42 +683,58 @@ public Builder mergeFrom( 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. Field mask is used to specify the fields to be overwritten in the
      * connection profile resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * connection profile resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask is used to specify the fields to be overwritten in the
      * connection profile resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -669,15 +750,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * connection profile resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.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(); @@ -688,18 +771,21 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * connection profile resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.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; } @@ -711,12 +797,15 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * connection profile resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -730,51 +819,64 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * connection profile resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * connection profile resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask is used to specify the fields to be overwritten in the
      * connection profile resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.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_; @@ -782,39 +884,58 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.clouddms.v1.ConnectionProfile connectionProfile_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.ConnectionProfile, com.google.cloud.clouddms.v1.ConnectionProfile.Builder, com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder> connectionProfileBuilder_; + com.google.cloud.clouddms.v1.ConnectionProfile, + com.google.cloud.clouddms.v1.ConnectionProfile.Builder, + com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder> + connectionProfileBuilder_; /** + * + * *
      * Required. The connection profile parameters to update.
      * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connectionProfile field is set. */ public boolean hasConnectionProfile() { return connectionProfileBuilder_ != null || connectionProfile_ != null; } /** + * + * *
      * Required. The connection profile parameters to update.
      * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connectionProfile. */ public com.google.cloud.clouddms.v1.ConnectionProfile getConnectionProfile() { if (connectionProfileBuilder_ == null) { - return connectionProfile_ == null ? com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; + return connectionProfile_ == null + ? com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance() + : connectionProfile_; } else { return connectionProfileBuilder_.getMessage(); } } /** + * + * *
      * Required. The connection profile parameters to update.
      * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConnectionProfile(com.google.cloud.clouddms.v1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { @@ -830,11 +951,15 @@ public Builder setConnectionProfile(com.google.cloud.clouddms.v1.ConnectionProfi return this; } /** + * + * *
      * Required. The connection profile parameters to update.
      * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConnectionProfile( com.google.cloud.clouddms.v1.ConnectionProfile.Builder builderForValue) { @@ -848,17 +973,23 @@ public Builder setConnectionProfile( return this; } /** + * + * *
      * Required. The connection profile parameters to update.
      * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConnectionProfile(com.google.cloud.clouddms.v1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { if (connectionProfile_ != null) { connectionProfile_ = - com.google.cloud.clouddms.v1.ConnectionProfile.newBuilder(connectionProfile_).mergeFrom(value).buildPartial(); + com.google.cloud.clouddms.v1.ConnectionProfile.newBuilder(connectionProfile_) + .mergeFrom(value) + .buildPartial(); } else { connectionProfile_ = value; } @@ -870,11 +1001,15 @@ public Builder mergeConnectionProfile(com.google.cloud.clouddms.v1.ConnectionPro return this; } /** + * + * *
      * Required. The connection profile parameters to update.
      * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConnectionProfile() { if (connectionProfileBuilder_ == null) { @@ -888,48 +1023,64 @@ public Builder clearConnectionProfile() { return this; } /** + * + * *
      * Required. The connection profile parameters to update.
      * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.clouddms.v1.ConnectionProfile.Builder getConnectionProfileBuilder() { - + onChanged(); return getConnectionProfileFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The connection profile parameters to update.
      * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { if (connectionProfileBuilder_ != null) { return connectionProfileBuilder_.getMessageOrBuilder(); } else { - return connectionProfile_ == null ? - com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; + return connectionProfile_ == null + ? com.google.cloud.clouddms.v1.ConnectionProfile.getDefaultInstance() + : connectionProfile_; } } /** + * + * *
      * Required. The connection profile parameters to update.
      * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.ConnectionProfile, com.google.cloud.clouddms.v1.ConnectionProfile.Builder, com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder> + com.google.cloud.clouddms.v1.ConnectionProfile, + com.google.cloud.clouddms.v1.ConnectionProfile.Builder, + com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder> getConnectionProfileFieldBuilder() { if (connectionProfileBuilder_ == null) { - connectionProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.ConnectionProfile, com.google.cloud.clouddms.v1.ConnectionProfile.Builder, com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder>( - getConnectionProfile(), - getParentForChildren(), - isClean()); + connectionProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ConnectionProfile, + com.google.cloud.clouddms.v1.ConnectionProfile.Builder, + com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder>( + getConnectionProfile(), getParentForChildren(), isClean()); connectionProfile_ = null; } return connectionProfileBuilder_; @@ -937,6 +1088,8 @@ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProf private java.lang.Object requestId_ = ""; /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -946,13 +1099,13 @@ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProf
      * 
* * string request_id = 3; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -961,6 +1114,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -970,15 +1125,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -986,6 +1140,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -995,20 +1151,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1018,15 +1176,18 @@ public Builder setRequestId(
      * 
* * string request_id = 3; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1036,23 +1197,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1062,12 +1223,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.UpdateConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.UpdateConnectionProfileRequest) private static final com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest(); } @@ -1076,16 +1237,16 @@ public static com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateConnectionProfileRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateConnectionProfileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1100,6 +1261,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequestOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequestOrBuilder.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequestOrBuilder.java index b2ab7e90..03ca5e59 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequestOrBuilder.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequestOrBuilder.java @@ -1,70 +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/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface UpdateConnectionProfileRequestOrBuilder extends +public interface UpdateConnectionProfileRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.UpdateConnectionProfileRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * connection profile resource by the update.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * connection profile resource by the update.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * connection profile resource by the update.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. The connection profile parameters to update.
    * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connectionProfile field is set. */ boolean hasConnectionProfile(); /** + * + * *
    * Required. The connection profile parameters to update.
    * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connectionProfile. */ com.google.cloud.clouddms.v1.ConnectionProfile getConnectionProfile(); /** + * + * *
    * Required. The connection profile parameters to update.
    * 
* - * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder(); /** + * + * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -74,10 +117,13 @@ public interface UpdateConnectionProfileRequestOrBuilder extends
    * 
* * string request_id = 3; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -87,8 +133,8 @@ public interface UpdateConnectionProfileRequestOrBuilder extends
    * 
* * string request_id = 3; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequest.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequest.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequest.java index 62fbf29b..33b77c9a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequest.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * Request message for 'UpdateMigrationJob' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.UpdateMigrationJobRequest} */ -public final class UpdateMigrationJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateMigrationJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.UpdateMigrationJobRequest) UpdateMigrationJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateMigrationJobRequest.newBuilder() to construct. private UpdateMigrationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateMigrationJobRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateMigrationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateMigrationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,79 +70,91 @@ private UpdateMigrationJobRequest( case 0: done = true; break; - case 10: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.clouddms.v1.MigrationJob.Builder subBuilder = null; - if (migrationJob_ != null) { - subBuilder = migrationJob_.toBuilder(); - } - migrationJob_ = input.readMessage(com.google.cloud.clouddms.v1.MigrationJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(migrationJob_); - migrationJob_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.clouddms.v1.MigrationJob.Builder subBuilder = null; + if (migrationJob_ != null) { + subBuilder = migrationJob_.toBuilder(); + } + migrationJob_ = + input.readMessage( + com.google.cloud.clouddms.v1.MigrationJob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(migrationJob_); + migrationJob_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.class, com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.class, + com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * migration job resource by the update.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -133,12 +162,16 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * migration job resource by the update.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -146,12 +179,15 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * migration job resource by the update.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -161,11 +197,16 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int MIGRATION_JOB_FIELD_NUMBER = 2; private com.google.cloud.clouddms.v1.MigrationJob migrationJob_; /** + * + * *
    * Required. The migration job parameters to update.
    * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the migrationJob field is set. */ @java.lang.Override @@ -173,23 +214,34 @@ public boolean hasMigrationJob() { return migrationJob_ != null; } /** + * + * *
    * Required. The migration job parameters to update.
    * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The migrationJob. */ @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJob getMigrationJob() { - return migrationJob_ == null ? com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() : migrationJob_; + return migrationJob_ == null + ? com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() + : migrationJob_; } /** + * + * *
    * Required. The migration job parameters to update.
    * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuilder() { @@ -199,6 +251,8 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuild public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** + * + * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -208,6 +262,7 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuild
    * 
* * string request_id = 3; + * * @return The requestId. */ @java.lang.Override @@ -216,14 +271,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -233,16 +289,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -251,6 +306,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,8 +318,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -283,12 +338,10 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (migrationJob_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMigrationJob()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMigrationJob()); } if (!getRequestIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -301,25 +354,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.clouddms.v1.UpdateMigrationJobRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.UpdateMigrationJobRequest other = (com.google.cloud.clouddms.v1.UpdateMigrationJobRequest) obj; + com.google.cloud.clouddms.v1.UpdateMigrationJobRequest other = + (com.google.cloud.clouddms.v1.UpdateMigrationJobRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasMigrationJob() != other.hasMigrationJob()) return false; if (hasMigrationJob()) { - if (!getMigrationJob() - .equals(other.getMigrationJob())) return false; + if (!getMigrationJob().equals(other.getMigrationJob())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -347,117 +398,127 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.UpdateMigrationJobRequest 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.clouddms.v1.UpdateMigrationJobRequest 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.clouddms.v1.UpdateMigrationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.UpdateMigrationJobRequest 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.clouddms.v1.UpdateMigrationJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.UpdateMigrationJobRequest 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.clouddms.v1.UpdateMigrationJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.UpdateMigrationJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.UpdateMigrationJobRequest 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.clouddms.v1.UpdateMigrationJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.UpdateMigrationJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.UpdateMigrationJobRequest 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.clouddms.v1.UpdateMigrationJobRequest 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.clouddms.v1.UpdateMigrationJobRequest 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.clouddms.v1.UpdateMigrationJobRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.clouddms.v1.UpdateMigrationJobRequest 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 message for 'UpdateMigrationJob' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.UpdateMigrationJobRequest} */ - 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.clouddms.v1.UpdateMigrationJobRequest) com.google.cloud.clouddms.v1.UpdateMigrationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.class, com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.class, + com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.newBuilder() @@ -465,16 +526,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +556,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_UpdateMigrationJobRequest_descriptor; } @java.lang.Override @@ -517,7 +577,8 @@ public com.google.cloud.clouddms.v1.UpdateMigrationJobRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.UpdateMigrationJobRequest buildPartial() { - com.google.cloud.clouddms.v1.UpdateMigrationJobRequest result = new com.google.cloud.clouddms.v1.UpdateMigrationJobRequest(this); + com.google.cloud.clouddms.v1.UpdateMigrationJobRequest result = + new com.google.cloud.clouddms.v1.UpdateMigrationJobRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -537,38 +598,39 @@ public com.google.cloud.clouddms.v1.UpdateMigrationJobRequest 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.clouddms.v1.UpdateMigrationJobRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.UpdateMigrationJobRequest)other); + return mergeFrom((com.google.cloud.clouddms.v1.UpdateMigrationJobRequest) other); } else { super.mergeFrom(other); return this; @@ -576,7 +638,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.UpdateMigrationJobRequest other) { - if (other == com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.clouddms.v1.UpdateMigrationJobRequest.getDefaultInstance()) + return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -606,7 +669,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.clouddms.v1.UpdateMigrationJobRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.clouddms.v1.UpdateMigrationJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -618,42 +682,58 @@ public Builder mergeFrom( 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. Field mask is used to specify the fields to be overwritten in the
      * migration job resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * migration job resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask is used to specify the fields to be overwritten in the
      * migration job resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -669,15 +749,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * migration job resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.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(); @@ -688,18 +770,21 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * migration job resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.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; } @@ -711,12 +796,15 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * migration job resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -730,51 +818,64 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * migration job resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Field mask is used to specify the fields to be overwritten in the
      * migration job resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask is used to specify the fields to be overwritten in the
      * migration job resource by the update.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.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_; @@ -782,39 +883,58 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.clouddms.v1.MigrationJob migrationJob_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.MigrationJob, com.google.cloud.clouddms.v1.MigrationJob.Builder, com.google.cloud.clouddms.v1.MigrationJobOrBuilder> migrationJobBuilder_; + com.google.cloud.clouddms.v1.MigrationJob, + com.google.cloud.clouddms.v1.MigrationJob.Builder, + com.google.cloud.clouddms.v1.MigrationJobOrBuilder> + migrationJobBuilder_; /** + * + * *
      * Required. The migration job parameters to update.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the migrationJob field is set. */ public boolean hasMigrationJob() { return migrationJobBuilder_ != null || migrationJob_ != null; } /** + * + * *
      * Required. The migration job parameters to update.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The migrationJob. */ public com.google.cloud.clouddms.v1.MigrationJob getMigrationJob() { if (migrationJobBuilder_ == null) { - return migrationJob_ == null ? com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() : migrationJob_; + return migrationJob_ == null + ? com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() + : migrationJob_; } else { return migrationJobBuilder_.getMessage(); } } /** + * + * *
      * Required. The migration job parameters to update.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMigrationJob(com.google.cloud.clouddms.v1.MigrationJob value) { if (migrationJobBuilder_ == null) { @@ -830,11 +950,15 @@ public Builder setMigrationJob(com.google.cloud.clouddms.v1.MigrationJob value) return this; } /** + * + * *
      * Required. The migration job parameters to update.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMigrationJob( com.google.cloud.clouddms.v1.MigrationJob.Builder builderForValue) { @@ -848,17 +972,23 @@ public Builder setMigrationJob( return this; } /** + * + * *
      * Required. The migration job parameters to update.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeMigrationJob(com.google.cloud.clouddms.v1.MigrationJob value) { if (migrationJobBuilder_ == null) { if (migrationJob_ != null) { migrationJob_ = - com.google.cloud.clouddms.v1.MigrationJob.newBuilder(migrationJob_).mergeFrom(value).buildPartial(); + com.google.cloud.clouddms.v1.MigrationJob.newBuilder(migrationJob_) + .mergeFrom(value) + .buildPartial(); } else { migrationJob_ = value; } @@ -870,11 +1000,15 @@ public Builder mergeMigrationJob(com.google.cloud.clouddms.v1.MigrationJob value return this; } /** + * + * *
      * Required. The migration job parameters to update.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearMigrationJob() { if (migrationJobBuilder_ == null) { @@ -888,48 +1022,64 @@ public Builder clearMigrationJob() { return this; } /** + * + * *
      * Required. The migration job parameters to update.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.clouddms.v1.MigrationJob.Builder getMigrationJobBuilder() { - + onChanged(); return getMigrationJobFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The migration job parameters to update.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuilder() { if (migrationJobBuilder_ != null) { return migrationJobBuilder_.getMessageOrBuilder(); } else { - return migrationJob_ == null ? - com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() : migrationJob_; + return migrationJob_ == null + ? com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance() + : migrationJob_; } } /** + * + * *
      * Required. The migration job parameters to update.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.MigrationJob, com.google.cloud.clouddms.v1.MigrationJob.Builder, com.google.cloud.clouddms.v1.MigrationJobOrBuilder> + com.google.cloud.clouddms.v1.MigrationJob, + com.google.cloud.clouddms.v1.MigrationJob.Builder, + com.google.cloud.clouddms.v1.MigrationJobOrBuilder> getMigrationJobFieldBuilder() { if (migrationJobBuilder_ == null) { - migrationJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.MigrationJob, com.google.cloud.clouddms.v1.MigrationJob.Builder, com.google.cloud.clouddms.v1.MigrationJobOrBuilder>( - getMigrationJob(), - getParentForChildren(), - isClean()); + migrationJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.MigrationJob, + com.google.cloud.clouddms.v1.MigrationJob.Builder, + com.google.cloud.clouddms.v1.MigrationJobOrBuilder>( + getMigrationJob(), getParentForChildren(), isClean()); migrationJob_ = null; } return migrationJobBuilder_; @@ -937,6 +1087,8 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuild private java.lang.Object requestId_ = ""; /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -946,13 +1098,13 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuild
      * 
* * string request_id = 3; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -961,6 +1113,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -970,15 +1124,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -986,6 +1139,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -995,20 +1150,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1018,15 +1175,18 @@ public Builder setRequestId(
      * 
* * string request_id = 3; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * A unique id used to identify the request. If the server receives two
      * requests with the same id, then the second request will be ignored.
@@ -1036,23 +1196,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1062,12 +1222,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.UpdateMigrationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.UpdateMigrationJobRequest) private static final com.google.cloud.clouddms.v1.UpdateMigrationJobRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.UpdateMigrationJobRequest(); } @@ -1076,16 +1236,16 @@ public static com.google.cloud.clouddms.v1.UpdateMigrationJobRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateMigrationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateMigrationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMigrationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateMigrationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1100,6 +1260,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.clouddms.v1.UpdateMigrationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequestOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequestOrBuilder.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequestOrBuilder.java index 1544f372..59e76896 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequestOrBuilder.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequestOrBuilder.java @@ -1,70 +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/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface UpdateMigrationJobRequestOrBuilder extends +public interface UpdateMigrationJobRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.UpdateMigrationJobRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * migration job resource by the update.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * migration job resource by the update.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Field mask is used to specify the fields to be overwritten in the
    * migration job resource by the update.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. The migration job parameters to update.
    * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the migrationJob field is set. */ boolean hasMigrationJob(); /** + * + * *
    * Required. The migration job parameters to update.
    * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The migrationJob. */ com.google.cloud.clouddms.v1.MigrationJob getMigrationJob(); /** + * + * *
    * Required. The migration job parameters to update.
    * 
* - * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.clouddms.v1.MigrationJob migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuilder(); /** + * + * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -74,10 +117,13 @@ public interface UpdateMigrationJobRequestOrBuilder extends
    * 
* * string request_id = 3; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * A unique id used to identify the request. If the server receives two
    * requests with the same id, then the second request will be ignored.
@@ -87,8 +133,8 @@ public interface UpdateMigrationJobRequestOrBuilder extends
    * 
* * string request_id = 3; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequest.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequest.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequest.java index be5801da..06219510 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequest.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * Request message for 'VerifyMigrationJob' request.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.VerifyMigrationJobRequest} */ -public final class VerifyMigrationJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VerifyMigrationJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.VerifyMigrationJobRequest) VerifyMigrationJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VerifyMigrationJobRequest.newBuilder() to construct. private VerifyMigrationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VerifyMigrationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VerifyMigrationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VerifyMigrationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,58 @@ private VerifyMigrationJobRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.class, com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.class, + com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Name of the migration job resource to verify.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ @java.lang.Override @@ -107,29 +130,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; } } /** + * + * *
    * Name of the migration job resource to verify.
    * 
* * string name = 1 [(.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 { @@ -138,6 +161,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +173,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -174,15 +197,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.clouddms.v1.VerifyMigrationJobRequest)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.VerifyMigrationJobRequest other = (com.google.cloud.clouddms.v1.VerifyMigrationJobRequest) obj; + com.google.cloud.clouddms.v1.VerifyMigrationJobRequest other = + (com.google.cloud.clouddms.v1.VerifyMigrationJobRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,117 +225,127 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.VerifyMigrationJobRequest 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.clouddms.v1.VerifyMigrationJobRequest 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.clouddms.v1.VerifyMigrationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.VerifyMigrationJobRequest 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.clouddms.v1.VerifyMigrationJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.VerifyMigrationJobRequest 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.clouddms.v1.VerifyMigrationJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.VerifyMigrationJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.VerifyMigrationJobRequest 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.clouddms.v1.VerifyMigrationJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.VerifyMigrationJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.VerifyMigrationJobRequest 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.clouddms.v1.VerifyMigrationJobRequest 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.clouddms.v1.VerifyMigrationJobRequest 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.clouddms.v1.VerifyMigrationJobRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.clouddms.v1.VerifyMigrationJobRequest 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 message for 'VerifyMigrationJob' request.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.VerifyMigrationJobRequest} */ - 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.clouddms.v1.VerifyMigrationJobRequest) com.google.cloud.clouddms.v1.VerifyMigrationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.class, com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.Builder.class); + com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.class, + com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.Builder.class); } // Construct using com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.newBuilder() @@ -320,16 +353,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +371,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_VerifyMigrationJobRequest_descriptor; } @java.lang.Override @@ -360,7 +392,8 @@ public com.google.cloud.clouddms.v1.VerifyMigrationJobRequest build() { @java.lang.Override public com.google.cloud.clouddms.v1.VerifyMigrationJobRequest buildPartial() { - com.google.cloud.clouddms.v1.VerifyMigrationJobRequest result = new com.google.cloud.clouddms.v1.VerifyMigrationJobRequest(this); + com.google.cloud.clouddms.v1.VerifyMigrationJobRequest result = + new com.google.cloud.clouddms.v1.VerifyMigrationJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +403,39 @@ public com.google.cloud.clouddms.v1.VerifyMigrationJobRequest 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.clouddms.v1.VerifyMigrationJobRequest) { - return mergeFrom((com.google.cloud.clouddms.v1.VerifyMigrationJobRequest)other); + return mergeFrom((com.google.cloud.clouddms.v1.VerifyMigrationJobRequest) other); } else { super.mergeFrom(other); return this; @@ -409,7 +443,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.clouddms.v1.VerifyMigrationJobRequest other) { - if (other == com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.clouddms.v1.VerifyMigrationJobRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -433,7 +468,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.clouddms.v1.VerifyMigrationJobRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.clouddms.v1.VerifyMigrationJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -445,18 +481,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Name of the migration job resource to verify.
      * 
* * string name = 1 [(.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; @@ -465,20 +503,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the migration job resource to verify.
      * 
* * string name = 1 [(.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 { @@ -486,61 +525,68 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the migration job resource to verify.
      * 
* * string name = 1 [(.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; } /** + * + * *
      * Name of the migration job resource to verify.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Name of the migration job resource to verify.
      * 
* * string name = 1 [(.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); } @@ -550,12 +596,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.VerifyMigrationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.VerifyMigrationJobRequest) private static final com.google.cloud.clouddms.v1.VerifyMigrationJobRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.VerifyMigrationJobRequest(); } @@ -564,16 +610,16 @@ public static com.google.cloud.clouddms.v1.VerifyMigrationJobRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VerifyMigrationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VerifyMigrationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyMigrationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VerifyMigrationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +634,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.clouddms.v1.VerifyMigrationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequestOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequestOrBuilder.java new file mode 100644 index 00000000..99fa7d9b --- /dev/null +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VerifyMigrationJobRequestOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface VerifyMigrationJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.VerifyMigrationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the migration job resource to verify.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Name of the migration job resource to verify.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfig.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfig.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfig.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfig.java index 93c7d712..92bcfbe4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfig.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfig.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * VM creation configuration message
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.VmCreationConfig} */ -public final class VmCreationConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VmCreationConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.VmCreationConfig) VmCreationConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VmCreationConfig.newBuilder() to construct. private VmCreationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VmCreationConfig() { vmMachineType_ = ""; vmZone_ = ""; @@ -27,16 +45,15 @@ private VmCreationConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VmCreationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VmCreationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,64 +72,72 @@ private VmCreationConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - vmMachineType_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + vmMachineType_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - vmZone_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + vmZone_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - subnet_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + subnet_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VmCreationConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_VmCreationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VmCreationConfig_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_VmCreationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.VmCreationConfig.class, com.google.cloud.clouddms.v1.VmCreationConfig.Builder.class); + com.google.cloud.clouddms.v1.VmCreationConfig.class, + com.google.cloud.clouddms.v1.VmCreationConfig.Builder.class); } public static final int VM_MACHINE_TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object vmMachineType_; /** + * + * *
    * Required. VM instance machine type to create.
    * 
* * string vm_machine_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmMachineType. */ @java.lang.Override @@ -121,29 +146,29 @@ public java.lang.String getVmMachineType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vmMachineType_ = s; return s; } } /** + * + * *
    * Required. VM instance machine type to create.
    * 
* * string vm_machine_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vmMachineType. */ @java.lang.Override - public com.google.protobuf.ByteString - getVmMachineTypeBytes() { + public com.google.protobuf.ByteString getVmMachineTypeBytes() { java.lang.Object ref = vmMachineType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vmMachineType_ = b; return b; } else { @@ -154,11 +179,14 @@ public java.lang.String getVmMachineType() { public static final int VM_ZONE_FIELD_NUMBER = 2; private volatile java.lang.Object vmZone_; /** + * + * *
    * The Google Cloud Platform zone to create the VM in.
    * 
* * string vm_zone = 2; + * * @return The vmZone. */ @java.lang.Override @@ -167,29 +195,29 @@ public java.lang.String getVmZone() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vmZone_ = s; return s; } } /** + * + * *
    * The Google Cloud Platform zone to create the VM in.
    * 
* * string vm_zone = 2; + * * @return The bytes for vmZone. */ @java.lang.Override - public com.google.protobuf.ByteString - getVmZoneBytes() { + public com.google.protobuf.ByteString getVmZoneBytes() { java.lang.Object ref = vmZone_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vmZone_ = b; return b; } else { @@ -200,11 +228,14 @@ public java.lang.String getVmZone() { public static final int SUBNET_FIELD_NUMBER = 3; private volatile java.lang.Object subnet_; /** + * + * *
    * The subnet name the vm needs to be created in.
    * 
* * string subnet = 3; + * * @return The subnet. */ @java.lang.Override @@ -213,29 +244,29 @@ public java.lang.String getSubnet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnet_ = s; return s; } } /** + * + * *
    * The subnet name the vm needs to be created in.
    * 
* * string subnet = 3; + * * @return The bytes for subnet. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubnetBytes() { + public com.google.protobuf.ByteString getSubnetBytes() { java.lang.Object ref = subnet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subnet_ = b; return b; } else { @@ -244,6 +275,7 @@ public java.lang.String getSubnet() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,8 +287,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getVmMachineTypeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, vmMachineType_); } @@ -292,19 +323,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.clouddms.v1.VmCreationConfig)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.VmCreationConfig other = (com.google.cloud.clouddms.v1.VmCreationConfig) obj; + com.google.cloud.clouddms.v1.VmCreationConfig other = + (com.google.cloud.clouddms.v1.VmCreationConfig) obj; - if (!getVmMachineType() - .equals(other.getVmMachineType())) return false; - if (!getVmZone() - .equals(other.getVmZone())) return false; - if (!getSubnet() - .equals(other.getSubnet())) return false; + if (!getVmMachineType().equals(other.getVmMachineType())) return false; + if (!getVmZone().equals(other.getVmZone())) return false; + if (!getSubnet().equals(other.getSubnet())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -327,118 +356,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.clouddms.v1.VmCreationConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.clouddms.v1.VmCreationConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.VmCreationConfig 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.clouddms.v1.VmCreationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.VmCreationConfig 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.clouddms.v1.VmCreationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.VmCreationConfig 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.clouddms.v1.VmCreationConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.VmCreationConfig 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.clouddms.v1.VmCreationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.VmCreationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.VmCreationConfig 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.clouddms.v1.VmCreationConfig 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.clouddms.v1.VmCreationConfig 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.clouddms.v1.VmCreationConfig 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; } /** + * + * *
    * VM creation configuration message
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.VmCreationConfig} */ - 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.clouddms.v1.VmCreationConfig) com.google.cloud.clouddms.v1.VmCreationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VmCreationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_VmCreationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VmCreationConfig_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_VmCreationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.VmCreationConfig.class, com.google.cloud.clouddms.v1.VmCreationConfig.Builder.class); + com.google.cloud.clouddms.v1.VmCreationConfig.class, + com.google.cloud.clouddms.v1.VmCreationConfig.Builder.class); } // Construct using com.google.cloud.clouddms.v1.VmCreationConfig.newBuilder() @@ -446,16 +484,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -469,9 +506,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VmCreationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_VmCreationConfig_descriptor; } @java.lang.Override @@ -490,7 +527,8 @@ public com.google.cloud.clouddms.v1.VmCreationConfig build() { @java.lang.Override public com.google.cloud.clouddms.v1.VmCreationConfig buildPartial() { - com.google.cloud.clouddms.v1.VmCreationConfig result = new com.google.cloud.clouddms.v1.VmCreationConfig(this); + com.google.cloud.clouddms.v1.VmCreationConfig result = + new com.google.cloud.clouddms.v1.VmCreationConfig(this); result.vmMachineType_ = vmMachineType_; result.vmZone_ = vmZone_; result.subnet_ = subnet_; @@ -502,38 +540,39 @@ public com.google.cloud.clouddms.v1.VmCreationConfig 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.clouddms.v1.VmCreationConfig) { - return mergeFrom((com.google.cloud.clouddms.v1.VmCreationConfig)other); + return mergeFrom((com.google.cloud.clouddms.v1.VmCreationConfig) other); } else { super.mergeFrom(other); return this; @@ -585,18 +624,20 @@ public Builder mergeFrom( private java.lang.Object vmMachineType_ = ""; /** + * + * *
      * Required. VM instance machine type to create.
      * 
* * string vm_machine_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmMachineType. */ public java.lang.String getVmMachineType() { java.lang.Object ref = vmMachineType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vmMachineType_ = s; return s; @@ -605,20 +646,21 @@ public java.lang.String getVmMachineType() { } } /** + * + * *
      * Required. VM instance machine type to create.
      * 
* * string vm_machine_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vmMachineType. */ - public com.google.protobuf.ByteString - getVmMachineTypeBytes() { + public com.google.protobuf.ByteString getVmMachineTypeBytes() { java.lang.Object ref = vmMachineType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vmMachineType_ = b; return b; } else { @@ -626,54 +668,61 @@ public java.lang.String getVmMachineType() { } } /** + * + * *
      * Required. VM instance machine type to create.
      * 
* * string vm_machine_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The vmMachineType to set. * @return This builder for chaining. */ - public Builder setVmMachineType( - java.lang.String value) { + public Builder setVmMachineType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vmMachineType_ = value; onChanged(); return this; } /** + * + * *
      * Required. VM instance machine type to create.
      * 
* * string vm_machine_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearVmMachineType() { - + vmMachineType_ = getDefaultInstance().getVmMachineType(); onChanged(); return this; } /** + * + * *
      * Required. VM instance machine type to create.
      * 
* * string vm_machine_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for vmMachineType to set. * @return This builder for chaining. */ - public Builder setVmMachineTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setVmMachineTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmMachineType_ = value; onChanged(); return this; @@ -681,18 +730,20 @@ public Builder setVmMachineTypeBytes( private java.lang.Object vmZone_ = ""; /** + * + * *
      * The Google Cloud Platform zone to create the VM in.
      * 
* * string vm_zone = 2; + * * @return The vmZone. */ public java.lang.String getVmZone() { java.lang.Object ref = vmZone_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vmZone_ = s; return s; @@ -701,20 +752,21 @@ public java.lang.String getVmZone() { } } /** + * + * *
      * The Google Cloud Platform zone to create the VM in.
      * 
* * string vm_zone = 2; + * * @return The bytes for vmZone. */ - public com.google.protobuf.ByteString - getVmZoneBytes() { + public com.google.protobuf.ByteString getVmZoneBytes() { java.lang.Object ref = vmZone_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vmZone_ = b; return b; } else { @@ -722,54 +774,61 @@ public java.lang.String getVmZone() { } } /** + * + * *
      * The Google Cloud Platform zone to create the VM in.
      * 
* * string vm_zone = 2; + * * @param value The vmZone to set. * @return This builder for chaining. */ - public Builder setVmZone( - java.lang.String value) { + public Builder setVmZone(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vmZone_ = value; onChanged(); return this; } /** + * + * *
      * The Google Cloud Platform zone to create the VM in.
      * 
* * string vm_zone = 2; + * * @return This builder for chaining. */ public Builder clearVmZone() { - + vmZone_ = getDefaultInstance().getVmZone(); onChanged(); return this; } /** + * + * *
      * The Google Cloud Platform zone to create the VM in.
      * 
* * string vm_zone = 2; + * * @param value The bytes for vmZone to set. * @return This builder for chaining. */ - public Builder setVmZoneBytes( - com.google.protobuf.ByteString value) { + public Builder setVmZoneBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmZone_ = value; onChanged(); return this; @@ -777,18 +836,20 @@ public Builder setVmZoneBytes( private java.lang.Object subnet_ = ""; /** + * + * *
      * The subnet name the vm needs to be created in.
      * 
* * string subnet = 3; + * * @return The subnet. */ public java.lang.String getSubnet() { java.lang.Object ref = subnet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnet_ = s; return s; @@ -797,20 +858,21 @@ public java.lang.String getSubnet() { } } /** + * + * *
      * The subnet name the vm needs to be created in.
      * 
* * string subnet = 3; + * * @return The bytes for subnet. */ - public com.google.protobuf.ByteString - getSubnetBytes() { + public com.google.protobuf.ByteString getSubnetBytes() { java.lang.Object ref = subnet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subnet_ = b; return b; } else { @@ -818,61 +880,68 @@ public java.lang.String getSubnet() { } } /** + * + * *
      * The subnet name the vm needs to be created in.
      * 
* * string subnet = 3; + * * @param value The subnet to set. * @return This builder for chaining. */ - public Builder setSubnet( - java.lang.String value) { + public Builder setSubnet(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subnet_ = value; onChanged(); return this; } /** + * + * *
      * The subnet name the vm needs to be created in.
      * 
* * string subnet = 3; + * * @return This builder for chaining. */ public Builder clearSubnet() { - + subnet_ = getDefaultInstance().getSubnet(); onChanged(); return this; } /** + * + * *
      * The subnet name the vm needs to be created in.
      * 
* * string subnet = 3; + * * @param value The bytes for subnet to set. * @return This builder for chaining. */ - public Builder setSubnetBytes( - com.google.protobuf.ByteString value) { + public Builder setSubnetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subnet_ = 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); } @@ -882,12 +951,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.VmCreationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.VmCreationConfig) private static final com.google.cloud.clouddms.v1.VmCreationConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.VmCreationConfig(); } @@ -896,16 +965,16 @@ public static com.google.cloud.clouddms.v1.VmCreationConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VmCreationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VmCreationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VmCreationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VmCreationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -920,6 +989,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.VmCreationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfigOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfigOrBuilder.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfigOrBuilder.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfigOrBuilder.java index b6a7259c..de732620 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfigOrBuilder.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmCreationConfigOrBuilder.java @@ -1,69 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface VmCreationConfigOrBuilder extends +public interface VmCreationConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.VmCreationConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. VM instance machine type to create.
    * 
* * string vm_machine_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmMachineType. */ java.lang.String getVmMachineType(); /** + * + * *
    * Required. VM instance machine type to create.
    * 
* * string vm_machine_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vmMachineType. */ - com.google.protobuf.ByteString - getVmMachineTypeBytes(); + com.google.protobuf.ByteString getVmMachineTypeBytes(); /** + * + * *
    * The Google Cloud Platform zone to create the VM in.
    * 
* * string vm_zone = 2; + * * @return The vmZone. */ java.lang.String getVmZone(); /** + * + * *
    * The Google Cloud Platform zone to create the VM in.
    * 
* * string vm_zone = 2; + * * @return The bytes for vmZone. */ - com.google.protobuf.ByteString - getVmZoneBytes(); + com.google.protobuf.ByteString getVmZoneBytes(); /** + * + * *
    * The subnet name the vm needs to be created in.
    * 
* * string subnet = 3; + * * @return The subnet. */ java.lang.String getSubnet(); /** + * + * *
    * The subnet name the vm needs to be created in.
    * 
* * string subnet = 3; + * * @return The bytes for subnet. */ - com.google.protobuf.ByteString - getSubnetBytes(); + com.google.protobuf.ByteString getSubnetBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfig.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfig.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfig.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfig.java index 4d5bfbea..322400c6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfig.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfig.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * VM selection configuration message
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.VmSelectionConfig} */ -public final class VmSelectionConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VmSelectionConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.VmSelectionConfig) VmSelectionConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VmSelectionConfig.newBuilder() to construct. private VmSelectionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VmSelectionConfig() { vmZone_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VmSelectionConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VmSelectionConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,58 @@ private VmSelectionConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - vmZone_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + vmZone_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VmSelectionConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_VmSelectionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VmSelectionConfig_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_VmSelectionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.VmSelectionConfig.class, com.google.cloud.clouddms.v1.VmSelectionConfig.Builder.class); + com.google.cloud.clouddms.v1.VmSelectionConfig.class, + com.google.cloud.clouddms.v1.VmSelectionConfig.Builder.class); } public static final int VM_ZONE_FIELD_NUMBER = 1; private volatile java.lang.Object vmZone_; /** + * + * *
    * Required. The Google Cloud Platform zone the VM is located.
    * 
* * string vm_zone = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmZone. */ @java.lang.Override @@ -107,29 +130,29 @@ public java.lang.String getVmZone() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vmZone_ = s; return s; } } /** + * + * *
    * Required. The Google Cloud Platform zone the VM is located.
    * 
* * string vm_zone = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vmZone. */ @java.lang.Override - public com.google.protobuf.ByteString - getVmZoneBytes() { + public com.google.protobuf.ByteString getVmZoneBytes() { java.lang.Object ref = vmZone_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vmZone_ = b; return b; } else { @@ -138,6 +161,7 @@ public java.lang.String getVmZone() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +173,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getVmZoneBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, vmZone_); } @@ -174,15 +197,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.clouddms.v1.VmSelectionConfig)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.VmSelectionConfig other = (com.google.cloud.clouddms.v1.VmSelectionConfig) obj; + com.google.cloud.clouddms.v1.VmSelectionConfig other = + (com.google.cloud.clouddms.v1.VmSelectionConfig) obj; - if (!getVmZone() - .equals(other.getVmZone())) return false; + if (!getVmZone().equals(other.getVmZone())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -201,118 +224,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.clouddms.v1.VmSelectionConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.clouddms.v1.VmSelectionConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.VmSelectionConfig 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.clouddms.v1.VmSelectionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.VmSelectionConfig 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.clouddms.v1.VmSelectionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.VmSelectionConfig 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.clouddms.v1.VmSelectionConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.VmSelectionConfig 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.clouddms.v1.VmSelectionConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.VmSelectionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.VmSelectionConfig 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.clouddms.v1.VmSelectionConfig 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.clouddms.v1.VmSelectionConfig 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.clouddms.v1.VmSelectionConfig 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; } /** + * + * *
    * VM selection configuration message
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.VmSelectionConfig} */ - 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.clouddms.v1.VmSelectionConfig) com.google.cloud.clouddms.v1.VmSelectionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VmSelectionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_VmSelectionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VmSelectionConfig_fieldAccessorTable + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_VmSelectionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.VmSelectionConfig.class, com.google.cloud.clouddms.v1.VmSelectionConfig.Builder.class); + com.google.cloud.clouddms.v1.VmSelectionConfig.class, + com.google.cloud.clouddms.v1.VmSelectionConfig.Builder.class); } // Construct using com.google.cloud.clouddms.v1.VmSelectionConfig.newBuilder() @@ -320,16 +352,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +370,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsProto.internal_static_google_cloud_clouddms_v1_VmSelectionConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_VmSelectionConfig_descriptor; } @java.lang.Override @@ -360,7 +391,8 @@ public com.google.cloud.clouddms.v1.VmSelectionConfig build() { @java.lang.Override public com.google.cloud.clouddms.v1.VmSelectionConfig buildPartial() { - com.google.cloud.clouddms.v1.VmSelectionConfig result = new com.google.cloud.clouddms.v1.VmSelectionConfig(this); + com.google.cloud.clouddms.v1.VmSelectionConfig result = + new com.google.cloud.clouddms.v1.VmSelectionConfig(this); result.vmZone_ = vmZone_; onBuilt(); return result; @@ -370,38 +402,39 @@ public com.google.cloud.clouddms.v1.VmSelectionConfig 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.clouddms.v1.VmSelectionConfig) { - return mergeFrom((com.google.cloud.clouddms.v1.VmSelectionConfig)other); + return mergeFrom((com.google.cloud.clouddms.v1.VmSelectionConfig) other); } else { super.mergeFrom(other); return this; @@ -445,18 +478,20 @@ public Builder mergeFrom( private java.lang.Object vmZone_ = ""; /** + * + * *
      * Required. The Google Cloud Platform zone the VM is located.
      * 
* * string vm_zone = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmZone. */ public java.lang.String getVmZone() { java.lang.Object ref = vmZone_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vmZone_ = s; return s; @@ -465,20 +500,21 @@ public java.lang.String getVmZone() { } } /** + * + * *
      * Required. The Google Cloud Platform zone the VM is located.
      * 
* * string vm_zone = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vmZone. */ - public com.google.protobuf.ByteString - getVmZoneBytes() { + public com.google.protobuf.ByteString getVmZoneBytes() { java.lang.Object ref = vmZone_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vmZone_ = b; return b; } else { @@ -486,61 +522,68 @@ public java.lang.String getVmZone() { } } /** + * + * *
      * Required. The Google Cloud Platform zone the VM is located.
      * 
* * string vm_zone = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The vmZone to set. * @return This builder for chaining. */ - public Builder setVmZone( - java.lang.String value) { + public Builder setVmZone(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vmZone_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Google Cloud Platform zone the VM is located.
      * 
* * string vm_zone = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearVmZone() { - + vmZone_ = getDefaultInstance().getVmZone(); onChanged(); return this; } /** + * + * *
      * Required. The Google Cloud Platform zone the VM is located.
      * 
* * string vm_zone = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for vmZone to set. * @return This builder for chaining. */ - public Builder setVmZoneBytes( - com.google.protobuf.ByteString value) { + public Builder setVmZoneBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmZone_ = 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); } @@ -550,12 +593,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.VmSelectionConfig) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.VmSelectionConfig) private static final com.google.cloud.clouddms.v1.VmSelectionConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.VmSelectionConfig(); } @@ -564,16 +607,16 @@ public static com.google.cloud.clouddms.v1.VmSelectionConfig getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VmSelectionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VmSelectionConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VmSelectionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VmSelectionConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +631,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.VmSelectionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfigOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfigOrBuilder.java similarity index 50% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfigOrBuilder.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfigOrBuilder.java index d2145dbf..3d74b42f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfigOrBuilder.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VmSelectionConfigOrBuilder.java @@ -1,29 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms.proto package com.google.cloud.clouddms.v1; -public interface VmSelectionConfigOrBuilder extends +public interface VmSelectionConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.VmSelectionConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Google Cloud Platform zone the VM is located.
    * 
* * string vm_zone = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmZone. */ java.lang.String getVmZone(); /** + * + * *
    * Required. The Google Cloud Platform zone the VM is located.
    * 
* * string vm_zone = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vmZone. */ - com.google.protobuf.ByteString - getVmZoneBytes(); + com.google.protobuf.ByteString getVmZoneBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivity.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivity.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivity.java rename to proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivity.java index 41681f5e..5df5eb20 100644 --- a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivity.java +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivity.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/clouddms/v1/clouddms_resources.proto package com.google.cloud.clouddms.v1; /** + * + * *
  * The details of the VPC where the source database is located in Google Cloud.
  * We will use this information to set up the VPC peering connection between
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.cloud.clouddms.v1.VpcPeeringConnectivity}
  */
-public final class VpcPeeringConnectivity extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class VpcPeeringConnectivity extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.VpcPeeringConnectivity)
     VpcPeeringConnectivityOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use VpcPeeringConnectivity.newBuilder() to construct.
   private VpcPeeringConnectivity(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private VpcPeeringConnectivity() {
     vpc_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new VpcPeeringConnectivity();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private VpcPeeringConnectivity(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,52 +72,58 @@ private VpcPeeringConnectivity(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            vpc_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              vpc_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
+        .internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_fieldAccessorTable
+    return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
+        .internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.clouddms.v1.VpcPeeringConnectivity.class, com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder.class);
+            com.google.cloud.clouddms.v1.VpcPeeringConnectivity.class,
+            com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder.class);
   }
 
   public static final int VPC_FIELD_NUMBER = 1;
   private volatile java.lang.Object vpc_;
   /**
+   *
+   *
    * 
    * The name of the VPC network to peer with the Cloud SQL private network.
    * 
* * string vpc = 1; + * * @return The vpc. */ @java.lang.Override @@ -109,29 +132,29 @@ public java.lang.String getVpc() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpc_ = s; return s; } } /** + * + * *
    * The name of the VPC network to peer with the Cloud SQL private network.
    * 
* * string vpc = 1; + * * @return The bytes for vpc. */ @java.lang.Override - public com.google.protobuf.ByteString - getVpcBytes() { + public com.google.protobuf.ByteString getVpcBytes() { java.lang.Object ref = vpc_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpc_ = b; return b; } else { @@ -140,6 +163,7 @@ public java.lang.String getVpc() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +175,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getVpcBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, vpc_); } @@ -176,15 +199,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.clouddms.v1.VpcPeeringConnectivity)) { return super.equals(obj); } - com.google.cloud.clouddms.v1.VpcPeeringConnectivity other = (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) obj; + com.google.cloud.clouddms.v1.VpcPeeringConnectivity other = + (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) obj; - if (!getVpc() - .equals(other.getVpc())) return false; + if (!getVpc().equals(other.getVpc())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,96 +227,103 @@ public int hashCode() { } public static com.google.cloud.clouddms.v1.VpcPeeringConnectivity 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.clouddms.v1.VpcPeeringConnectivity 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.clouddms.v1.VpcPeeringConnectivity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.VpcPeeringConnectivity 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.clouddms.v1.VpcPeeringConnectivity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.clouddms.v1.VpcPeeringConnectivity 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.clouddms.v1.VpcPeeringConnectivity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.VpcPeeringConnectivity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.VpcPeeringConnectivity 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.clouddms.v1.VpcPeeringConnectivity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.clouddms.v1.VpcPeeringConnectivity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.clouddms.v1.VpcPeeringConnectivity 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.clouddms.v1.VpcPeeringConnectivity 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.clouddms.v1.VpcPeeringConnectivity 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.clouddms.v1.VpcPeeringConnectivity 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 details of the VPC where the source database is located in Google Cloud.
    * We will use this information to set up the VPC peering connection between
@@ -302,21 +332,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.clouddms.v1.VpcPeeringConnectivity}
    */
-  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.clouddms.v1.VpcPeeringConnectivity)
       com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
+          .internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_fieldAccessorTable
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
+          .internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.clouddms.v1.VpcPeeringConnectivity.class, com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder.class);
+              com.google.cloud.clouddms.v1.VpcPeeringConnectivity.class,
+              com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder.class);
     }
 
     // Construct using com.google.cloud.clouddms.v1.VpcPeeringConnectivity.newBuilder()
@@ -324,16 +356,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -343,9 +374,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.clouddms.v1.ClouddmsResourcesProto
+          .internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_descriptor;
     }
 
     @java.lang.Override
@@ -364,7 +395,8 @@ public com.google.cloud.clouddms.v1.VpcPeeringConnectivity build() {
 
     @java.lang.Override
     public com.google.cloud.clouddms.v1.VpcPeeringConnectivity buildPartial() {
-      com.google.cloud.clouddms.v1.VpcPeeringConnectivity result = new com.google.cloud.clouddms.v1.VpcPeeringConnectivity(this);
+      com.google.cloud.clouddms.v1.VpcPeeringConnectivity result =
+          new com.google.cloud.clouddms.v1.VpcPeeringConnectivity(this);
       result.vpc_ = vpc_;
       onBuilt();
       return result;
@@ -374,38 +406,39 @@ public com.google.cloud.clouddms.v1.VpcPeeringConnectivity 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.clouddms.v1.VpcPeeringConnectivity) {
-        return mergeFrom((com.google.cloud.clouddms.v1.VpcPeeringConnectivity)other);
+        return mergeFrom((com.google.cloud.clouddms.v1.VpcPeeringConnectivity) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -413,7 +446,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.clouddms.v1.VpcPeeringConnectivity other) {
-      if (other == com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance()) return this;
+      if (other == com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance())
+        return this;
       if (!other.getVpc().isEmpty()) {
         vpc_ = other.vpc_;
         onChanged();
@@ -437,7 +471,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -449,18 +484,20 @@ public Builder mergeFrom(
 
     private java.lang.Object vpc_ = "";
     /**
+     *
+     *
      * 
      * The name of the VPC network to peer with the Cloud SQL private network.
      * 
* * string vpc = 1; + * * @return The vpc. */ public java.lang.String getVpc() { java.lang.Object ref = vpc_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpc_ = s; return s; @@ -469,20 +506,21 @@ public java.lang.String getVpc() { } } /** + * + * *
      * The name of the VPC network to peer with the Cloud SQL private network.
      * 
* * string vpc = 1; + * * @return The bytes for vpc. */ - public com.google.protobuf.ByteString - getVpcBytes() { + public com.google.protobuf.ByteString getVpcBytes() { java.lang.Object ref = vpc_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpc_ = b; return b; } else { @@ -490,61 +528,68 @@ public java.lang.String getVpc() { } } /** + * + * *
      * The name of the VPC network to peer with the Cloud SQL private network.
      * 
* * string vpc = 1; + * * @param value The vpc to set. * @return This builder for chaining. */ - public Builder setVpc( - java.lang.String value) { + public Builder setVpc(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vpc_ = value; onChanged(); return this; } /** + * + * *
      * The name of the VPC network to peer with the Cloud SQL private network.
      * 
* * string vpc = 1; + * * @return This builder for chaining. */ public Builder clearVpc() { - + vpc_ = getDefaultInstance().getVpc(); onChanged(); return this; } /** + * + * *
      * The name of the VPC network to peer with the Cloud SQL private network.
      * 
* * string vpc = 1; + * * @param value The bytes for vpc to set. * @return This builder for chaining. */ - public Builder setVpcBytes( - com.google.protobuf.ByteString value) { + public Builder setVpcBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vpc_ = 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); } @@ -554,12 +599,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.VpcPeeringConnectivity) } // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.VpcPeeringConnectivity) private static final com.google.cloud.clouddms.v1.VpcPeeringConnectivity DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.VpcPeeringConnectivity(); } @@ -568,16 +613,16 @@ public static com.google.cloud.clouddms.v1.VpcPeeringConnectivity getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VpcPeeringConnectivity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VpcPeeringConnectivity(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VpcPeeringConnectivity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VpcPeeringConnectivity(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -592,6 +637,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.clouddms.v1.VpcPeeringConnectivity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivityOrBuilder.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivityOrBuilder.java new file mode 100644 index 00000000..c2a6e042 --- /dev/null +++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConnectivityOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/clouddms/v1/clouddms_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface VpcPeeringConnectivityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.VpcPeeringConnectivity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the VPC network to peer with the Cloud SQL private network.
+   * 
+ * + * string vpc = 1; + * + * @return The vpc. + */ + java.lang.String getVpc(); + /** + * + * + *
+   * The name of the VPC network to peer with the Cloud SQL private network.
+   * 
+ * + * string vpc = 1; + * + * @return The bytes for vpc. + */ + com.google.protobuf.ByteString getVpcBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms.proto b/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms.proto rename to proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms_resources.proto b/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms_resources.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms_resources.proto rename to proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms_resources.proto