From 4e90c8bb7173f34f498634edad6da71dddaaf0a6 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 10 Mar 2023 00:47:26 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20post-p?= =?UTF-8?q?rocessor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- README.md | 4 +- .../migration/v2/MigrationServiceClient.java | 0 .../v2/MigrationServiceSettings.java | 1 - .../bigquery/migration/v2/gapic_metadata.json | 0 .../bigquery/migration/v2/package-info.java | 0 .../GrpcMigrationServiceCallableFactory.java | 0 .../v2/stub/GrpcMigrationServiceStub.java | 1 - ...tpJsonMigrationServiceCallableFactory.java | 0 .../v2/stub/HttpJsonMigrationServiceStub.java | 0 .../v2/stub/MigrationServiceStub.java | 0 .../v2/stub/MigrationServiceStubSettings.java | 0 .../v2alpha/MigrationServiceClient.java | 0 .../v2alpha/MigrationServiceSettings.java | 1 - .../v2alpha/SqlTranslationServiceClient.java | 0 .../SqlTranslationServiceSettings.java | 1 - .../migration/v2alpha/gapic_metadata.json | 0 .../migration/v2alpha/package-info.java | 0 .../GrpcMigrationServiceCallableFactory.java | 0 .../stub/GrpcMigrationServiceStub.java | 1 - ...cSqlTranslationServiceCallableFactory.java | 0 .../stub/GrpcSqlTranslationServiceStub.java | 1 - ...tpJsonMigrationServiceCallableFactory.java | 0 .../stub/HttpJsonMigrationServiceStub.java | 0 ...nSqlTranslationServiceCallableFactory.java | 0 .../HttpJsonSqlTranslationServiceStub.java | 0 .../v2alpha/stub/MigrationServiceStub.java | 0 .../stub/MigrationServiceStubSettings.java | 0 .../stub/SqlTranslationServiceStub.java | 0 .../SqlTranslationServiceStubSettings.java | 0 .../MigrationServiceClientHttpJsonTest.java | 0 .../v2/MigrationServiceClientTest.java | 0 .../migration/v2/MockMigrationService.java | 0 .../v2/MockMigrationServiceImpl.java | 0 .../MigrationServiceClientHttpJsonTest.java | 0 .../v2alpha/MigrationServiceClientTest.java | 0 .../v2alpha/MockMigrationService.java | 0 .../v2alpha/MockMigrationServiceImpl.java | 0 .../v2alpha/MockSqlTranslationService.java | 0 .../MockSqlTranslationServiceImpl.java | 0 ...lTranslationServiceClientHttpJsonTest.java | 0 .../SqlTranslationServiceClientTest.java | 0 .../migration/v2/MigrationServiceGrpc.java | 1129 +++++++++ .../v2alpha/MigrationServiceGrpc.java | 1136 +++++++++ .../v2alpha/SqlTranslationServiceGrpc.java | 227 +- .../migration/v2/MigrationServiceGrpc.java | 831 ------- .../v2/AzureSynapseDialectOrBuilder.java | 9 - .../v2/BigQueryDialectOrBuilder.java | 9 - ...eateMigrationWorkflowRequestOrBuilder.java | 58 - ...leteMigrationWorkflowRequestOrBuilder.java | 31 - .../migration/v2/HiveQLDialectOrBuilder.java | 9 - .../migration/v2/MigrationEntitiesProto.java | 161 -- .../v2/MigrationErrorDetailsProto.java | 96 - .../migration/v2/MigrationMetricsProto.java | 119 - .../migration/v2/MigrationServiceProto.java | 247 -- .../migration/v2/MySQLDialectOrBuilder.java | 9 - .../migration/v2/NetezzaDialectOrBuilder.java | 9 - .../migration/v2/OracleDialectOrBuilder.java | 9 - .../v2/PostgresqlDialectOrBuilder.java | 9 - .../migration/v2/PrestoDialectOrBuilder.java | 9 - .../v2/RedshiftDialectOrBuilder.java | 9 - .../v2/SQLServerDialectOrBuilder.java | 9 - .../v2/SnowflakeDialectOrBuilder.java | 9 - .../v2/SparkSQLDialectOrBuilder.java | 9 - ...tartMigrationWorkflowRequestOrBuilder.java | 31 - .../migration/v2/TranslationConfigProto.java | 341 --- .../migration/v2/VerticaDialectOrBuilder.java | 9 - .../v2alpha/MigrationServiceGrpc.java | 831 ------- .../v2alpha/AssessmentTaskProto.java | 78 - ...eateMigrationWorkflowRequestOrBuilder.java | 58 - ...leteMigrationWorkflowRequestOrBuilder.java | 31 - .../v2alpha/IdentifierSettingsOrBuilder.java | 47 - .../v2alpha/MigrationEntitiesProto.java | 191 -- .../v2alpha/MigrationErrorDetailsProto.java | 97 - .../v2alpha/MigrationMetricsProto.java | 120 - .../v2alpha/MigrationServiceProto.java | 258 -- ...ationTaskOrchestrationResultOrBuilder.java | 38 - ...tartMigrationWorkflowRequestOrBuilder.java | 31 - .../v2alpha/TeradataOptionsOrBuilder.java | 9 - .../v2alpha/TranslationServiceProto.java | 156 -- .../v2alpha/TranslationTaskProto.java | 194 -- .../migration/v2/AzureSynapseDialect.java | 254 +- .../v2/AzureSynapseDialectOrBuilder.java | 24 + .../migration/v2/BigQueryDialect.java | 254 +- .../v2/BigQueryDialectOrBuilder.java | 24 + .../v2/CreateMigrationWorkflowRequest.java | 556 +++-- ...eateMigrationWorkflowRequestOrBuilder.java | 97 + .../v2/DeleteMigrationWorkflowRequest.java | 394 +-- ...leteMigrationWorkflowRequestOrBuilder.java | 56 + .../cloud/bigquery/migration/v2/Dialect.java | 1887 +++++++++----- .../migration/v2/DialectOrBuilder.java | 133 +- .../bigquery/migration/v2/ErrorDetail.java | 482 ++-- .../migration/v2/ErrorDetailOrBuilder.java | 46 +- .../bigquery/migration/v2/ErrorLocation.java | 322 ++- .../migration/v2/ErrorLocationOrBuilder.java | 24 +- .../v2/GetMigrationSubtaskRequest.java | 506 ++-- .../GetMigrationSubtaskRequestOrBuilder.java | 52 +- .../v2/GetMigrationWorkflowRequest.java | 474 ++-- .../GetMigrationWorkflowRequestOrBuilder.java | 43 +- .../bigquery/migration/v2/HiveQLDialect.java | 251 +- .../migration/v2/HiveQLDialectOrBuilder.java | 24 + .../v2/ListMigrationSubtasksRequest.java | 689 ++++-- ...ListMigrationSubtasksRequestOrBuilder.java | 73 +- .../v2/ListMigrationSubtasksResponse.java | 617 +++-- ...istMigrationSubtasksResponseOrBuilder.java | 56 +- .../v2/ListMigrationWorkflowsRequest.java | 579 +++-- ...istMigrationWorkflowsRequestOrBuilder.java | 55 +- .../v2/ListMigrationWorkflowsResponse.java | 624 +++-- ...stMigrationWorkflowsResponseOrBuilder.java | 56 +- .../bigquery/migration/v2/LocationName.java | 0 .../migration/v2/MigrationEntitiesProto.java | 197 ++ .../v2/MigrationErrorDetailsProto.java | 113 + .../migration/v2/MigrationMetricsProto.java | 137 ++ .../migration/v2/MigrationServiceProto.java | 270 ++ .../migration/v2/MigrationSubtask.java | 1496 +++++++---- .../migration/v2/MigrationSubtaskName.java | 0 .../v2/MigrationSubtaskOrBuilder.java | 159 +- .../bigquery/migration/v2/MigrationTask.java | 1152 ++++++--- .../migration/v2/MigrationTaskOrBuilder.java | 114 +- .../migration/v2/MigrationWorkflow.java | 1039 +++++--- .../migration/v2/MigrationWorkflowName.java | 0 .../v2/MigrationWorkflowOrBuilder.java | 103 +- .../bigquery/migration/v2/MySQLDialect.java | 251 +- .../migration/v2/MySQLDialectOrBuilder.java | 24 + .../bigquery/migration/v2/NameMappingKey.java | 713 ++++-- .../migration/v2/NameMappingKeyOrBuilder.java | 60 +- .../migration/v2/NameMappingValue.java | 546 ++-- .../v2/NameMappingValueOrBuilder.java | 54 +- .../bigquery/migration/v2/NetezzaDialect.java | 254 +- .../migration/v2/NetezzaDialectOrBuilder.java | 24 + .../migration/v2/ObjectNameMapping.java | 449 ++-- .../migration/v2/ObjectNameMappingList.java | 426 ++-- .../v2/ObjectNameMappingListOrBuilder.java | 36 +- .../v2/ObjectNameMappingOrBuilder.java | 34 +- .../bigquery/migration/v2/OracleDialect.java | 251 +- .../migration/v2/OracleDialectOrBuilder.java | 24 + .../cloud/bigquery/migration/v2/Point.java | 438 ++-- .../bigquery/migration/v2/PointOrBuilder.java | 34 +- .../migration/v2/PostgresqlDialect.java | 254 +- .../v2/PostgresqlDialectOrBuilder.java | 24 + .../bigquery/migration/v2/PrestoDialect.java | 251 +- .../migration/v2/PrestoDialectOrBuilder.java | 24 + .../migration/v2/RedshiftDialect.java | 254 +- .../v2/RedshiftDialectOrBuilder.java | 24 + .../migration/v2/ResourceErrorDetail.java | 656 +++-- .../v2/ResourceErrorDetailOrBuilder.java | 76 +- .../migration/v2/SQLServerDialect.java | 254 +- .../v2/SQLServerDialectOrBuilder.java | 24 + .../migration/v2/SnowflakeDialect.java | 254 +- .../v2/SnowflakeDialectOrBuilder.java | 24 + .../bigquery/migration/v2/SourceEnv.java | 429 ++-- .../migration/v2/SourceEnvOrBuilder.java | 45 +- .../migration/v2/SparkSQLDialect.java | 254 +- .../v2/SparkSQLDialectOrBuilder.java | 24 + .../v2/StartMigrationWorkflowRequest.java | 391 +-- ...tartMigrationWorkflowRequestOrBuilder.java | 56 + .../migration/v2/TeradataDialect.java | 390 +-- .../v2/TeradataDialectOrBuilder.java | 24 +- .../bigquery/migration/v2/TimeInterval.java | 485 ++-- .../migration/v2/TimeIntervalOrBuilder.java | 43 +- .../bigquery/migration/v2/TimeSeries.java | 746 ++++-- .../migration/v2/TimeSeriesOrBuilder.java | 93 +- .../v2/TranslationConfigDetails.java | 977 +++++--- .../v2/TranslationConfigDetailsOrBuilder.java | 86 +- .../migration/v2/TranslationConfigProto.java | 370 +++ .../bigquery/migration/v2/TypedValue.java | 661 +++-- .../migration/v2/TypedValueOrBuilder.java | 56 +- .../bigquery/migration/v2/VerticaDialect.java | 254 +- .../migration/v2/VerticaDialectOrBuilder.java | 24 + .../migration/v2/migration_entities.proto | 0 .../v2/migration_error_details.proto | 0 .../migration/v2/migration_metrics.proto | 0 .../migration/v2/migration_service.proto | 0 .../migration/v2/translation_config.proto | 0 .../AssessmentOrchestrationResultDetails.java | 470 ++-- ...ntOrchestrationResultDetailsOrBuilder.java | 27 +- .../v2alpha/AssessmentTaskDetails.java | 577 +++-- .../AssessmentTaskDetailsOrBuilder.java | 54 +- .../v2alpha/AssessmentTaskProto.java | 94 + .../migration/v2alpha/BteqOptions.java | 663 +++-- .../v2alpha/BteqOptionsOrBuilder.java | 68 +- .../CreateMigrationWorkflowRequest.java | 627 +++-- ...eateMigrationWorkflowRequestOrBuilder.java | 98 + .../migration/v2alpha/DatasetReference.java | 410 ++-- .../v2alpha/DatasetReferenceOrBuilder.java | 36 +- .../DeleteMigrationWorkflowRequest.java | 464 ++-- ...leteMigrationWorkflowRequestOrBuilder.java | 56 + .../migration/v2alpha/ErrorDetail.java | 488 ++-- .../v2alpha/ErrorDetailOrBuilder.java | 46 +- .../migration/v2alpha/ErrorLocation.java | 325 ++- .../v2alpha/ErrorLocationOrBuilder.java | 24 +- .../bigquery/migration/v2alpha/Filter.java | 364 +-- .../migration/v2alpha/FilterOrBuilder.java | 36 +- .../v2alpha/GetMigrationSubtaskRequest.java | 513 ++-- .../GetMigrationSubtaskRequestOrBuilder.java | 52 +- .../v2alpha/GetMigrationWorkflowRequest.java | 484 ++-- .../GetMigrationWorkflowRequestOrBuilder.java | 43 +- .../migration/v2alpha/IdentifierSettings.java | 631 +++-- .../v2alpha/IdentifierSettingsOrBuilder.java | 85 + .../v2alpha/ListMigrationSubtasksRequest.java | 702 ++++-- ...ListMigrationSubtasksRequestOrBuilder.java | 73 +- .../ListMigrationSubtasksResponse.java | 666 +++-- ...istMigrationSubtasksResponseOrBuilder.java | 65 +- .../ListMigrationWorkflowsRequest.java | 596 +++-- ...istMigrationWorkflowsRequestOrBuilder.java | 55 +- .../ListMigrationWorkflowsResponse.java | 712 ++++-- ...stMigrationWorkflowsResponseOrBuilder.java | 65 +- .../migration/v2alpha/LocationName.java | 0 .../v2alpha/MigrationEntitiesProto.java | 232 ++ .../v2alpha/MigrationErrorDetailsProto.java | 114 + .../v2alpha/MigrationMetricsProto.java | 138 ++ .../v2alpha/MigrationServiceProto.java | 282 +++ .../migration/v2alpha/MigrationSubtask.java | 1500 +++++++---- .../v2alpha/MigrationSubtaskName.java | 0 .../v2alpha/MigrationSubtaskOrBuilder.java | 162 +- .../migration/v2alpha/MigrationTask.java | 1628 ++++++++---- .../v2alpha/MigrationTaskOrBuilder.java | 174 +- .../MigrationTaskOrchestrationResult.java | 618 +++-- ...ationTaskOrchestrationResultOrBuilder.java | 71 + .../migration/v2alpha/MigrationWorkflow.java | 1105 +++++---- .../v2alpha/MigrationWorkflowName.java | 0 .../v2alpha/MigrationWorkflowOrBuilder.java | 117 +- .../bigquery/migration/v2alpha/Point.java | 449 ++-- .../migration/v2alpha/PointOrBuilder.java | 34 +- .../v2alpha/ResourceErrorDetail.java | 699 ++++-- .../v2alpha/ResourceErrorDetailOrBuilder.java | 73 +- .../v2alpha/SqlTranslationError.java | 607 +++-- .../v2alpha/SqlTranslationErrorDetail.java | 435 ++-- .../SqlTranslationErrorDetailOrBuilder.java | 33 +- .../v2alpha/SqlTranslationErrorOrBuilder.java | 55 +- .../v2alpha/SqlTranslationWarning.java | 446 ++-- .../SqlTranslationWarningOrBuilder.java | 38 +- .../StartMigrationWorkflowRequest.java | 408 +-- ...tartMigrationWorkflowRequestOrBuilder.java | 56 + .../migration/v2alpha/TeradataOptions.java | 254 +- .../v2alpha/TeradataOptionsOrBuilder.java | 24 + .../migration/v2alpha/TimeInterval.java | 488 ++-- .../v2alpha/TimeIntervalOrBuilder.java | 43 +- .../migration/v2alpha/TimeSeries.java | 748 ++++-- .../v2alpha/TimeSeriesOrBuilder.java | 93 +- .../v2alpha/TranslateQueryRequest.java | 631 +++-- .../TranslateQueryRequestOrBuilder.java | 61 +- .../v2alpha/TranslateQueryResponse.java | 963 +++++--- .../TranslateQueryResponseOrBuilder.java | 89 +- .../v2alpha/TranslationFileMapping.java | 435 ++-- .../TranslationFileMappingOrBuilder.java | 36 +- .../v2alpha/TranslationServiceProto.java | 175 ++ .../v2alpha/TranslationTaskDetails.java | 2186 +++++++++++------ .../TranslationTaskDetailsOrBuilder.java | 246 +- .../v2alpha/TranslationTaskProto.java | 228 ++ .../migration/v2alpha/TypedValue.java | 664 +++-- .../v2alpha/TypedValueOrBuilder.java | 56 +- .../migration/v2alpha/assessment_task.proto | 0 .../v2alpha/migration_entities.proto | 0 .../v2alpha/migration_error_details.proto | 0 .../migration/v2alpha/migration_metrics.proto | 0 .../migration/v2alpha/migration_service.proto | 0 .../v2alpha/translation_service.proto | 0 .../migration/v2alpha/translation_task.proto | 0 258 files changed, 36372 insertions(+), 21441 deletions(-) rename {owl-bot-staging/v2/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceClient.java (100%) rename {owl-bot-staging/v2/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceSettings.java (99%) rename {owl-bot-staging/v2/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2/gapic_metadata.json (100%) rename {owl-bot-staging/v2/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2/package-info.java (100%) rename {owl-bot-staging/v2/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2/stub/GrpcMigrationServiceCallableFactory.java (100%) rename {owl-bot-staging/v2/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2/stub/GrpcMigrationServiceStub.java (99%) rename {owl-bot-staging/v2/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2/stub/HttpJsonMigrationServiceCallableFactory.java (100%) rename {owl-bot-staging/v2/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2/stub/HttpJsonMigrationServiceStub.java (100%) rename {owl-bot-staging/v2/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2/stub/MigrationServiceStub.java (100%) rename {owl-bot-staging/v2/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2/stub/MigrationServiceStubSettings.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceClient.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceSettings.java (99%) rename {owl-bot-staging/v2alpha/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceClient.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceSettings.java (99%) rename {owl-bot-staging/v2alpha/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/gapic_metadata.json (100%) rename {owl-bot-staging/v2alpha/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/package-info.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/GrpcMigrationServiceCallableFactory.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/GrpcMigrationServiceStub.java (99%) rename {owl-bot-staging/v2alpha/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/GrpcSqlTranslationServiceCallableFactory.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/GrpcSqlTranslationServiceStub.java (99%) rename {owl-bot-staging/v2alpha/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/HttpJsonMigrationServiceCallableFactory.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/HttpJsonMigrationServiceStub.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/HttpJsonSqlTranslationServiceCallableFactory.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/HttpJsonSqlTranslationServiceStub.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/MigrationServiceStub.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/MigrationServiceStubSettings.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/SqlTranslationServiceStub.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/SqlTranslationServiceStubSettings.java (100%) rename {owl-bot-staging/v2/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/test/java/com/google/cloud/bigquery/migration/v2/MigrationServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/v2/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/test/java/com/google/cloud/bigquery/migration/v2/MigrationServiceClientTest.java (100%) rename {owl-bot-staging/v2/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/test/java/com/google/cloud/bigquery/migration/v2/MockMigrationService.java (100%) rename {owl-bot-staging/v2/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/test/java/com/google/cloud/bigquery/migration/v2/MockMigrationServiceImpl.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceClientTest.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MockMigrationService.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MockMigrationServiceImpl.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MockSqlTranslationService.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MockSqlTranslationServiceImpl.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/test/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-bigquerymigration => google-cloud-bigquerymigration}/src/test/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceClientTest.java (100%) create mode 100644 grpc-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceGrpc.java create mode 100644 grpc-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceGrpc.java rename {owl-bot-staging/v2alpha/grpc-google-cloud-bigquerymigration-v2alpha => grpc-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceGrpc.java (50%) delete mode 100644 owl-bot-staging/v2/grpc-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceGrpc.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/AzureSynapseDialectOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/BigQueryDialectOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/CreateMigrationWorkflowRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DeleteMigrationWorkflowRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/HiveQLDialectOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationEntitiesProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationErrorDetailsProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationMetricsProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MySQLDialectOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NetezzaDialectOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/OracleDialectOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PostgresqlDialectOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PrestoDialectOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/RedshiftDialectOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SQLServerDialectOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SnowflakeDialectOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SparkSQLDialectOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/StartMigrationWorkflowRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/VerticaDialectOrBuilder.java delete mode 100644 owl-bot-staging/v2alpha/grpc-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceGrpc.java delete mode 100644 owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentTaskProto.java delete mode 100644 owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/CreateMigrationWorkflowRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DeleteMigrationWorkflowRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/IdentifierSettingsOrBuilder.java delete mode 100644 owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationEntitiesProto.java delete mode 100644 owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationErrorDetailsProto.java delete mode 100644 owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationMetricsProto.java delete mode 100644 owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceProto.java delete mode 100644 owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTaskOrchestrationResultOrBuilder.java delete mode 100644 owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/StartMigrationWorkflowRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TeradataOptionsOrBuilder.java delete mode 100644 owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationServiceProto.java delete mode 100644 owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationTaskProto.java rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/AzureSynapseDialect.java (64%) create mode 100644 proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/AzureSynapseDialectOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/BigQueryDialect.java (64%) create mode 100644 proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/BigQueryDialectOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/CreateMigrationWorkflowRequest.java (57%) create mode 100644 proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/CreateMigrationWorkflowRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/DeleteMigrationWorkflowRequest.java (59%) create mode 100644 proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DeleteMigrationWorkflowRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/Dialect.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/DialectOrBuilder.java (89%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorDetail.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorDetailOrBuilder.java (60%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorLocation.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorLocationOrBuilder.java (57%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationSubtaskRequest.java (63%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationSubtaskRequestOrBuilder.java (55%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationWorkflowRequest.java (63%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationWorkflowRequestOrBuilder.java (57%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/HiveQLDialect.java (64%) create mode 100644 proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/HiveQLDialectOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksRequest.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksRequestOrBuilder.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksResponse.java (66%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksResponseOrBuilder.java (66%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsRequest.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsRequestOrBuilder.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsResponse.java (66%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsResponseOrBuilder.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/LocationName.java (100%) create mode 100644 proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationEntitiesProto.java create mode 100644 proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationErrorDetailsProto.java create mode 100644 proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationMetricsProto.java create mode 100644 proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceProto.java rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationSubtask.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationSubtaskName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationSubtaskOrBuilder.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTask.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskOrBuilder.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflow.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflowName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflowOrBuilder.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/MySQLDialect.java (63%) create mode 100644 proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MySQLDialectOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingKey.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingKeyOrBuilder.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingValue.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingValueOrBuilder.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/NetezzaDialect.java (64%) create mode 100644 proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NetezzaDialectOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMapping.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMappingList.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMappingListOrBuilder.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMappingOrBuilder.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/OracleDialect.java (64%) create mode 100644 proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/OracleDialectOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/Point.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/PointOrBuilder.java (83%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/PostgresqlDialect.java (64%) create mode 100644 proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PostgresqlDialectOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/PrestoDialect.java (64%) create mode 100644 proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PrestoDialectOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/RedshiftDialect.java (64%) create mode 100644 proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/RedshiftDialectOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/ResourceErrorDetail.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/ResourceErrorDetailOrBuilder.java (56%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/SQLServerDialect.java (64%) create mode 100644 proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SQLServerDialectOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/SnowflakeDialect.java (64%) create mode 100644 proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SnowflakeDialectOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnv.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnvOrBuilder.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/SparkSQLDialect.java (64%) create mode 100644 proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SparkSQLDialectOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/StartMigrationWorkflowRequest.java (59%) create mode 100644 proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/StartMigrationWorkflowRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/TeradataDialect.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/TeradataDialectOrBuilder.java (56%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/TimeInterval.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/TimeIntervalOrBuilder.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/TimeSeries.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/TimeSeriesOrBuilder.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigDetails.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigDetailsOrBuilder.java (80%) create mode 100644 proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigProto.java rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/TypedValue.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/TypedValueOrBuilder.java (77%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/java/com/google/cloud/bigquery/migration/v2/VerticaDialect.java (64%) create mode 100644 proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/VerticaDialectOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/proto/google/cloud/bigquery/migration/v2/migration_entities.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/proto/google/cloud/bigquery/migration/v2/migration_error_details.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/proto/google/cloud/bigquery/migration/v2/migration_metrics.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/proto/google/cloud/bigquery/migration/v2/migration_service.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2 => proto-google-cloud-bigquerymigration-v2}/src/main/proto/google/cloud/bigquery/migration/v2/translation_config.proto (100%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentOrchestrationResultDetails.java (54%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentOrchestrationResultDetailsOrBuilder.java (54%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentTaskDetails.java (70%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentTaskDetailsOrBuilder.java (71%) create mode 100644 proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentTaskProto.java rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/BteqOptions.java (67%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/BteqOptionsOrBuilder.java (72%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/CreateMigrationWorkflowRequest.java (53%) create mode 100644 proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/CreateMigrationWorkflowRequestOrBuilder.java rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DatasetReference.java (68%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DatasetReferenceOrBuilder.java (62%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DeleteMigrationWorkflowRequest.java (52%) create mode 100644 proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DeleteMigrationWorkflowRequestOrBuilder.java rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorDetail.java (65%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorDetailOrBuilder.java (60%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorLocation.java (68%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorLocationOrBuilder.java (58%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/Filter.java (68%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/FilterOrBuilder.java (64%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationSubtaskRequest.java (62%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationSubtaskRequestOrBuilder.java (55%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationWorkflowRequest.java (62%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationWorkflowRequestOrBuilder.java (57%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/IdentifierSettings.java (60%) create mode 100644 proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/IdentifierSettingsOrBuilder.java rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksRequest.java (68%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksRequestOrBuilder.java (71%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksResponse.java (61%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksResponseOrBuilder.java (54%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsRequest.java (66%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsRequestOrBuilder.java (67%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsResponse.java (58%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsResponseOrBuilder.java (54%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/LocationName.java (100%) create mode 100644 proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationEntitiesProto.java create mode 100644 proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationErrorDetailsProto.java create mode 100644 proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationMetricsProto.java create mode 100644 proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceProto.java rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationSubtask.java (69%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationSubtaskName.java (100%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationSubtaskOrBuilder.java (71%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTask.java (63%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTaskOrBuilder.java (65%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTaskOrchestrationResult.java (50%) create mode 100644 proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTaskOrchestrationResultOrBuilder.java rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationWorkflow.java (64%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationWorkflowName.java (100%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationWorkflowOrBuilder.java (69%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/Point.java (74%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/PointOrBuilder.java (83%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ResourceErrorDetail.java (63%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ResourceErrorDetailOrBuilder.java (57%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationError.java (61%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationErrorDetail.java (64%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationErrorDetailOrBuilder.java (58%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationErrorOrBuilder.java (56%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationWarning.java (61%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationWarningOrBuilder.java (58%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/StartMigrationWorkflowRequest.java (57%) create mode 100644 proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/StartMigrationWorkflowRequestOrBuilder.java rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TeradataOptions.java (63%) create mode 100644 proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TeradataOptionsOrBuilder.java rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeInterval.java (69%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeIntervalOrBuilder.java (71%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeSeries.java (70%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeSeriesOrBuilder.java (71%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryRequest.java (61%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryRequestOrBuilder.java (50%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryResponse.java (67%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryResponseOrBuilder.java (71%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationFileMapping.java (64%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationFileMappingOrBuilder.java (58%) create mode 100644 proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationServiceProto.java rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationTaskDetails.java (65%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationTaskDetailsOrBuilder.java (71%) create mode 100644 proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationTaskProto.java rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TypedValue.java (70%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TypedValueOrBuilder.java (77%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/proto/google/cloud/bigquery/migration/v2alpha/assessment_task.proto (100%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/proto/google/cloud/bigquery/migration/v2alpha/migration_entities.proto (100%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/proto/google/cloud/bigquery/migration/v2alpha/migration_error_details.proto (100%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/proto/google/cloud/bigquery/migration/v2alpha/migration_metrics.proto (100%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/proto/google/cloud/bigquery/migration/v2alpha/migration_service.proto (100%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/proto/google/cloud/bigquery/migration/v2alpha/translation_service.proto (100%) rename {owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha => proto-google-cloud-bigquerymigration-v2alpha}/src/main/proto/google/cloud/bigquery/migration/v2alpha/translation_task.proto (100%) diff --git a/README.md b/README.md index 7c1856f..65ca869 100644 --- a/README.md +++ b/README.md @@ -37,13 +37,13 @@ If you are using Maven, add this to your pom.xml file: If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerymigration:0.14.0' +implementation 'com.google.cloud:google-cloud-bigquerymigration:0.15.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.14.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.15.0" ``` ## Authentication diff --git a/owl-bot-staging/v2/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceClient.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceClient.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceClient.java rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceClient.java diff --git a/owl-bot-staging/v2/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceSettings.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceSettings.java similarity index 99% rename from owl-bot-staging/v2/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceSettings.java rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceSettings.java index d0c0377..4d1f4d8 100644 --- a/owl-bot-staging/v2/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceSettings.java +++ b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.bigquery.migration.v2.stub.MigrationServiceStubSettings; diff --git a/owl-bot-staging/v2/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/gapic_metadata.json b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v2/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/gapic_metadata.json rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/gapic_metadata.json diff --git a/owl-bot-staging/v2/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/package-info.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/package-info.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/package-info.java rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/package-info.java diff --git a/owl-bot-staging/v2/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/GrpcMigrationServiceCallableFactory.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/GrpcMigrationServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/GrpcMigrationServiceCallableFactory.java rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/GrpcMigrationServiceCallableFactory.java diff --git a/owl-bot-staging/v2/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/GrpcMigrationServiceStub.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/GrpcMigrationServiceStub.java similarity index 99% rename from owl-bot-staging/v2/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/GrpcMigrationServiceStub.java rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/GrpcMigrationServiceStub.java index fdf2f7a..375474d 100644 --- a/owl-bot-staging/v2/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/GrpcMigrationServiceStub.java +++ b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/GrpcMigrationServiceStub.java @@ -42,7 +42,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v2/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/HttpJsonMigrationServiceCallableFactory.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/HttpJsonMigrationServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/HttpJsonMigrationServiceCallableFactory.java rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/HttpJsonMigrationServiceCallableFactory.java diff --git a/owl-bot-staging/v2/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/HttpJsonMigrationServiceStub.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/HttpJsonMigrationServiceStub.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/HttpJsonMigrationServiceStub.java rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/HttpJsonMigrationServiceStub.java diff --git a/owl-bot-staging/v2/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/MigrationServiceStub.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/MigrationServiceStub.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/MigrationServiceStub.java rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/MigrationServiceStub.java diff --git a/owl-bot-staging/v2/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/MigrationServiceStubSettings.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/MigrationServiceStubSettings.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/MigrationServiceStubSettings.java rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/MigrationServiceStubSettings.java diff --git a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceClient.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceClient.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceClient.java rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceClient.java diff --git a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceSettings.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceSettings.java similarity index 99% rename from owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceSettings.java rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceSettings.java index e79a274..b56c0ba 100644 --- a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceSettings.java +++ b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.bigquery.migration.v2alpha.stub.MigrationServiceStubSettings; diff --git a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceClient.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceClient.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceClient.java rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceClient.java diff --git a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceSettings.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceSettings.java similarity index 99% rename from owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceSettings.java rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceSettings.java index 71add83..90eefbd 100644 --- a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceSettings.java +++ b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceSettings.java @@ -25,7 +25,6 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.bigquery.migration.v2alpha.stub.SqlTranslationServiceStubSettings; diff --git a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/gapic_metadata.json b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/gapic_metadata.json rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/gapic_metadata.json diff --git a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/package-info.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/package-info.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/package-info.java rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/package-info.java diff --git a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/GrpcMigrationServiceCallableFactory.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/GrpcMigrationServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/GrpcMigrationServiceCallableFactory.java rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/GrpcMigrationServiceCallableFactory.java diff --git a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/GrpcMigrationServiceStub.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/GrpcMigrationServiceStub.java similarity index 99% rename from owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/GrpcMigrationServiceStub.java rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/GrpcMigrationServiceStub.java index c7c8386..df1d9db 100644 --- a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/GrpcMigrationServiceStub.java +++ b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/GrpcMigrationServiceStub.java @@ -43,7 +43,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/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/GrpcSqlTranslationServiceCallableFactory.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/GrpcSqlTranslationServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/GrpcSqlTranslationServiceCallableFactory.java rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/GrpcSqlTranslationServiceCallableFactory.java diff --git a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/GrpcSqlTranslationServiceStub.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/GrpcSqlTranslationServiceStub.java similarity index 99% rename from owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/GrpcSqlTranslationServiceStub.java rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/GrpcSqlTranslationServiceStub.java index 229ca03..13888db 100644 --- a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/GrpcSqlTranslationServiceStub.java +++ b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/GrpcSqlTranslationServiceStub.java @@ -30,7 +30,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/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/HttpJsonMigrationServiceCallableFactory.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/HttpJsonMigrationServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/HttpJsonMigrationServiceCallableFactory.java rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/HttpJsonMigrationServiceCallableFactory.java diff --git a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/HttpJsonMigrationServiceStub.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/HttpJsonMigrationServiceStub.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/HttpJsonMigrationServiceStub.java rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/HttpJsonMigrationServiceStub.java diff --git a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/HttpJsonSqlTranslationServiceCallableFactory.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/HttpJsonSqlTranslationServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/HttpJsonSqlTranslationServiceCallableFactory.java rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/HttpJsonSqlTranslationServiceCallableFactory.java diff --git a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/HttpJsonSqlTranslationServiceStub.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/HttpJsonSqlTranslationServiceStub.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/HttpJsonSqlTranslationServiceStub.java rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/HttpJsonSqlTranslationServiceStub.java diff --git a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/MigrationServiceStub.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/MigrationServiceStub.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/MigrationServiceStub.java rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/MigrationServiceStub.java diff --git a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/MigrationServiceStubSettings.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/MigrationServiceStubSettings.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/MigrationServiceStubSettings.java rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/MigrationServiceStubSettings.java diff --git a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/SqlTranslationServiceStub.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/SqlTranslationServiceStub.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/SqlTranslationServiceStub.java rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/SqlTranslationServiceStub.java diff --git a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/SqlTranslationServiceStubSettings.java b/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/SqlTranslationServiceStubSettings.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/SqlTranslationServiceStubSettings.java rename to google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/SqlTranslationServiceStubSettings.java diff --git a/owl-bot-staging/v2/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2/MigrationServiceClientHttpJsonTest.java b/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2/MigrationServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2/MigrationServiceClientHttpJsonTest.java rename to google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2/MigrationServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/v2/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2/MigrationServiceClientTest.java b/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2/MigrationServiceClientTest.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2/MigrationServiceClientTest.java rename to google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2/MigrationServiceClientTest.java diff --git a/owl-bot-staging/v2/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2/MockMigrationService.java b/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2/MockMigrationService.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2/MockMigrationService.java rename to google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2/MockMigrationService.java diff --git a/owl-bot-staging/v2/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2/MockMigrationServiceImpl.java b/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2/MockMigrationServiceImpl.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2/MockMigrationServiceImpl.java rename to google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2/MockMigrationServiceImpl.java diff --git a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceClientHttpJsonTest.java b/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceClientHttpJsonTest.java rename to google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceClientTest.java b/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceClientTest.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceClientTest.java rename to google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceClientTest.java diff --git a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MockMigrationService.java b/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MockMigrationService.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MockMigrationService.java rename to google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MockMigrationService.java diff --git a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MockMigrationServiceImpl.java b/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MockMigrationServiceImpl.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MockMigrationServiceImpl.java rename to google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MockMigrationServiceImpl.java diff --git a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MockSqlTranslationService.java b/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MockSqlTranslationService.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MockSqlTranslationService.java rename to google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MockSqlTranslationService.java diff --git a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MockSqlTranslationServiceImpl.java b/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MockSqlTranslationServiceImpl.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MockSqlTranslationServiceImpl.java rename to google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/MockSqlTranslationServiceImpl.java diff --git a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceClientHttpJsonTest.java b/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceClientHttpJsonTest.java rename to google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceClientTest.java b/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceClientTest.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceClientTest.java rename to google-cloud-bigquerymigration/src/test/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceClientTest.java diff --git a/grpc-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceGrpc.java b/grpc-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceGrpc.java new file mode 100644 index 0000000..fab01f0 --- /dev/null +++ b/grpc-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceGrpc.java @@ -0,0 +1,1129 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.bigquery.migration.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service to handle EDW migrations.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/bigquery/migration/v2/migration_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class MigrationServiceGrpc { + + private MigrationServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.bigquery.migration.v2.MigrationService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest, + com.google.cloud.bigquery.migration.v2.MigrationWorkflow> + getCreateMigrationWorkflowMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMigrationWorkflow", + requestType = com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest.class, + responseType = com.google.cloud.bigquery.migration.v2.MigrationWorkflow.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest, + com.google.cloud.bigquery.migration.v2.MigrationWorkflow> + getCreateMigrationWorkflowMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest, + com.google.cloud.bigquery.migration.v2.MigrationWorkflow> + getCreateMigrationWorkflowMethod; + if ((getCreateMigrationWorkflowMethod = MigrationServiceGrpc.getCreateMigrationWorkflowMethod) + == null) { + synchronized (MigrationServiceGrpc.class) { + if ((getCreateMigrationWorkflowMethod = + MigrationServiceGrpc.getCreateMigrationWorkflowMethod) + == null) { + MigrationServiceGrpc.getCreateMigrationWorkflowMethod = + getCreateMigrationWorkflowMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateMigrationWorkflow")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.migration.v2.MigrationWorkflow + .getDefaultInstance())) + .setSchemaDescriptor( + new MigrationServiceMethodDescriptorSupplier("CreateMigrationWorkflow")) + .build(); + } + } + } + return getCreateMigrationWorkflowMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest, + com.google.cloud.bigquery.migration.v2.MigrationWorkflow> + getGetMigrationWorkflowMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMigrationWorkflow", + requestType = com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest.class, + responseType = com.google.cloud.bigquery.migration.v2.MigrationWorkflow.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest, + com.google.cloud.bigquery.migration.v2.MigrationWorkflow> + getGetMigrationWorkflowMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest, + com.google.cloud.bigquery.migration.v2.MigrationWorkflow> + getGetMigrationWorkflowMethod; + if ((getGetMigrationWorkflowMethod = MigrationServiceGrpc.getGetMigrationWorkflowMethod) + == null) { + synchronized (MigrationServiceGrpc.class) { + if ((getGetMigrationWorkflowMethod = MigrationServiceGrpc.getGetMigrationWorkflowMethod) + == null) { + MigrationServiceGrpc.getGetMigrationWorkflowMethod = + getGetMigrationWorkflowMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetMigrationWorkflow")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.migration.v2.MigrationWorkflow + .getDefaultInstance())) + .setSchemaDescriptor( + new MigrationServiceMethodDescriptorSupplier("GetMigrationWorkflow")) + .build(); + } + } + } + return getGetMigrationWorkflowMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest, + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse> + getListMigrationWorkflowsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMigrationWorkflows", + requestType = com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest.class, + responseType = com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest, + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse> + getListMigrationWorkflowsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest, + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse> + getListMigrationWorkflowsMethod; + if ((getListMigrationWorkflowsMethod = MigrationServiceGrpc.getListMigrationWorkflowsMethod) + == null) { + synchronized (MigrationServiceGrpc.class) { + if ((getListMigrationWorkflowsMethod = MigrationServiceGrpc.getListMigrationWorkflowsMethod) + == null) { + MigrationServiceGrpc.getListMigrationWorkflowsMethod = + getListMigrationWorkflowsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListMigrationWorkflows")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new MigrationServiceMethodDescriptorSupplier("ListMigrationWorkflows")) + .build(); + } + } + } + return getListMigrationWorkflowsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest, + com.google.protobuf.Empty> + getDeleteMigrationWorkflowMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMigrationWorkflow", + requestType = com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest, + com.google.protobuf.Empty> + getDeleteMigrationWorkflowMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest, + com.google.protobuf.Empty> + getDeleteMigrationWorkflowMethod; + if ((getDeleteMigrationWorkflowMethod = MigrationServiceGrpc.getDeleteMigrationWorkflowMethod) + == null) { + synchronized (MigrationServiceGrpc.class) { + if ((getDeleteMigrationWorkflowMethod = + MigrationServiceGrpc.getDeleteMigrationWorkflowMethod) + == null) { + MigrationServiceGrpc.getDeleteMigrationWorkflowMethod = + getDeleteMigrationWorkflowMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteMigrationWorkflow")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new MigrationServiceMethodDescriptorSupplier("DeleteMigrationWorkflow")) + .build(); + } + } + } + return getDeleteMigrationWorkflowMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest, + com.google.protobuf.Empty> + getStartMigrationWorkflowMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartMigrationWorkflow", + requestType = com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest, + com.google.protobuf.Empty> + getStartMigrationWorkflowMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest, + com.google.protobuf.Empty> + getStartMigrationWorkflowMethod; + if ((getStartMigrationWorkflowMethod = MigrationServiceGrpc.getStartMigrationWorkflowMethod) + == null) { + synchronized (MigrationServiceGrpc.class) { + if ((getStartMigrationWorkflowMethod = MigrationServiceGrpc.getStartMigrationWorkflowMethod) + == null) { + MigrationServiceGrpc.getStartMigrationWorkflowMethod = + getStartMigrationWorkflowMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "StartMigrationWorkflow")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new MigrationServiceMethodDescriptorSupplier("StartMigrationWorkflow")) + .build(); + } + } + } + return getStartMigrationWorkflowMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest, + com.google.cloud.bigquery.migration.v2.MigrationSubtask> + getGetMigrationSubtaskMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMigrationSubtask", + requestType = com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest.class, + responseType = com.google.cloud.bigquery.migration.v2.MigrationSubtask.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest, + com.google.cloud.bigquery.migration.v2.MigrationSubtask> + getGetMigrationSubtaskMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest, + com.google.cloud.bigquery.migration.v2.MigrationSubtask> + getGetMigrationSubtaskMethod; + if ((getGetMigrationSubtaskMethod = MigrationServiceGrpc.getGetMigrationSubtaskMethod) + == null) { + synchronized (MigrationServiceGrpc.class) { + if ((getGetMigrationSubtaskMethod = MigrationServiceGrpc.getGetMigrationSubtaskMethod) + == null) { + MigrationServiceGrpc.getGetMigrationSubtaskMethod = + getGetMigrationSubtaskMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetMigrationSubtask")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.migration.v2.MigrationSubtask + .getDefaultInstance())) + .setSchemaDescriptor( + new MigrationServiceMethodDescriptorSupplier("GetMigrationSubtask")) + .build(); + } + } + } + return getGetMigrationSubtaskMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest, + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse> + getListMigrationSubtasksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMigrationSubtasks", + requestType = com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest.class, + responseType = com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest, + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse> + getListMigrationSubtasksMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest, + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse> + getListMigrationSubtasksMethod; + if ((getListMigrationSubtasksMethod = MigrationServiceGrpc.getListMigrationSubtasksMethod) + == null) { + synchronized (MigrationServiceGrpc.class) { + if ((getListMigrationSubtasksMethod = MigrationServiceGrpc.getListMigrationSubtasksMethod) + == null) { + MigrationServiceGrpc.getListMigrationSubtasksMethod = + getListMigrationSubtasksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListMigrationSubtasks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new MigrationServiceMethodDescriptorSupplier("ListMigrationSubtasks")) + .build(); + } + } + } + return getListMigrationSubtasksMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static MigrationServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MigrationServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MigrationServiceStub(channel, callOptions); + } + }; + return MigrationServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static MigrationServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MigrationServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MigrationServiceBlockingStub(channel, callOptions); + } + }; + return MigrationServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static MigrationServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MigrationServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MigrationServiceFutureStub(channel, callOptions); + } + }; + return MigrationServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service to handle EDW migrations.
+   * 
+ */ + public abstract static class MigrationServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a migration workflow.
+     * 
+ */ + public void createMigrationWorkflow( + com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMigrationWorkflowMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a previously created migration workflow.
+     * 
+ */ + public void getMigrationWorkflow( + com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMigrationWorkflowMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists previously created migration workflow.
+     * 
+ */ + public void listMigrationWorkflows( + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMigrationWorkflowsMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a migration workflow by name.
+     * 
+ */ + public void deleteMigrationWorkflow( + com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMigrationWorkflowMethod(), responseObserver); + } + + /** + * + * + *
+     * Starts a previously created migration workflow. I.e., the state transitions
+     * from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
+     * An error will be signaled if the state is anything other than DRAFT or
+     * RUNNING.
+     * 
+ */ + public void startMigrationWorkflow( + com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartMigrationWorkflowMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a previously created migration subtask.
+     * 
+ */ + public void getMigrationSubtask( + com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMigrationSubtaskMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists previously created migration subtasks.
+     * 
+ */ + public void listMigrationSubtasks( + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMigrationSubtasksMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateMigrationWorkflowMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest, + com.google.cloud.bigquery.migration.v2.MigrationWorkflow>( + this, METHODID_CREATE_MIGRATION_WORKFLOW))) + .addMethod( + getGetMigrationWorkflowMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest, + com.google.cloud.bigquery.migration.v2.MigrationWorkflow>( + this, METHODID_GET_MIGRATION_WORKFLOW))) + .addMethod( + getListMigrationWorkflowsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest, + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse>( + this, METHODID_LIST_MIGRATION_WORKFLOWS))) + .addMethod( + getDeleteMigrationWorkflowMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_MIGRATION_WORKFLOW))) + .addMethod( + getStartMigrationWorkflowMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest, + com.google.protobuf.Empty>(this, METHODID_START_MIGRATION_WORKFLOW))) + .addMethod( + getGetMigrationSubtaskMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest, + com.google.cloud.bigquery.migration.v2.MigrationSubtask>( + this, METHODID_GET_MIGRATION_SUBTASK))) + .addMethod( + getListMigrationSubtasksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest, + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse>( + this, METHODID_LIST_MIGRATION_SUBTASKS))) + .build(); + } + } + + /** + * + * + *
+   * Service to handle EDW migrations.
+   * 
+ */ + public static final class MigrationServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private MigrationServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MigrationServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MigrationServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a migration workflow.
+     * 
+ */ + public void createMigrationWorkflow( + com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMigrationWorkflowMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a previously created migration workflow.
+     * 
+ */ + public void getMigrationWorkflow( + com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMigrationWorkflowMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists previously created migration workflow.
+     * 
+ */ + public void listMigrationWorkflows( + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMigrationWorkflowsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a migration workflow by name.
+     * 
+ */ + public void deleteMigrationWorkflow( + com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMigrationWorkflowMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Starts a previously created migration workflow. I.e., the state transitions
+     * from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
+     * An error will be signaled if the state is anything other than DRAFT or
+     * RUNNING.
+     * 
+ */ + public void startMigrationWorkflow( + com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartMigrationWorkflowMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a previously created migration subtask.
+     * 
+ */ + public void getMigrationSubtask( + com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMigrationSubtaskMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists previously created migration subtasks.
+     * 
+ */ + public void listMigrationSubtasks( + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMigrationSubtasksMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Service to handle EDW migrations.
+   * 
+ */ + public static final class MigrationServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private MigrationServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MigrationServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MigrationServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a migration workflow.
+     * 
+ */ + public com.google.cloud.bigquery.migration.v2.MigrationWorkflow createMigrationWorkflow( + com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMigrationWorkflowMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a previously created migration workflow.
+     * 
+ */ + public com.google.cloud.bigquery.migration.v2.MigrationWorkflow getMigrationWorkflow( + com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMigrationWorkflowMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists previously created migration workflow.
+     * 
+ */ + public com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse + listMigrationWorkflows( + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMigrationWorkflowsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a migration workflow by name.
+     * 
+ */ + public com.google.protobuf.Empty deleteMigrationWorkflow( + com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMigrationWorkflowMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Starts a previously created migration workflow. I.e., the state transitions
+     * from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
+     * An error will be signaled if the state is anything other than DRAFT or
+     * RUNNING.
+     * 
+ */ + public com.google.protobuf.Empty startMigrationWorkflow( + com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartMigrationWorkflowMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a previously created migration subtask.
+     * 
+ */ + public com.google.cloud.bigquery.migration.v2.MigrationSubtask getMigrationSubtask( + com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMigrationSubtaskMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists previously created migration subtasks.
+     * 
+ */ + public com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse + listMigrationSubtasks( + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMigrationSubtasksMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Service to handle EDW migrations.
+   * 
+ */ + public static final class MigrationServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private MigrationServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MigrationServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MigrationServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a migration workflow.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.migration.v2.MigrationWorkflow> + createMigrationWorkflow( + com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMigrationWorkflowMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a previously created migration workflow.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.migration.v2.MigrationWorkflow> + getMigrationWorkflow( + com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMigrationWorkflowMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists previously created migration workflow.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse> + listMigrationWorkflows( + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMigrationWorkflowsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a migration workflow by name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteMigrationWorkflow( + com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMigrationWorkflowMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Starts a previously created migration workflow. I.e., the state transitions
+     * from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
+     * An error will be signaled if the state is anything other than DRAFT or
+     * RUNNING.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + startMigrationWorkflow( + com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartMigrationWorkflowMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a previously created migration subtask.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.migration.v2.MigrationSubtask> + getMigrationSubtask( + com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMigrationSubtaskMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists previously created migration subtasks.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse> + listMigrationSubtasks( + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMigrationSubtasksMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_MIGRATION_WORKFLOW = 0; + private static final int METHODID_GET_MIGRATION_WORKFLOW = 1; + private static final int METHODID_LIST_MIGRATION_WORKFLOWS = 2; + private static final int METHODID_DELETE_MIGRATION_WORKFLOW = 3; + private static final int METHODID_START_MIGRATION_WORKFLOW = 4; + private static final int METHODID_GET_MIGRATION_SUBTASK = 5; + private static final int METHODID_LIST_MIGRATION_SUBTASKS = 6; + + 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 MigrationServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(MigrationServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_MIGRATION_WORKFLOW: + serviceImpl.createMigrationWorkflow( + (com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.migration.v2.MigrationWorkflow>) + responseObserver); + break; + case METHODID_GET_MIGRATION_WORKFLOW: + serviceImpl.getMigrationWorkflow( + (com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.migration.v2.MigrationWorkflow>) + responseObserver); + break; + case METHODID_LIST_MIGRATION_WORKFLOWS: + serviceImpl.listMigrationWorkflows( + (com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse>) + responseObserver); + break; + case METHODID_DELETE_MIGRATION_WORKFLOW: + serviceImpl.deleteMigrationWorkflow( + (com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_MIGRATION_WORKFLOW: + serviceImpl.startMigrationWorkflow( + (com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_MIGRATION_SUBTASK: + serviceImpl.getMigrationSubtask( + (com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_MIGRATION_SUBTASKS: + serviceImpl.listMigrationSubtasks( + (com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse>) + 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 MigrationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + MigrationServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("MigrationService"); + } + } + + private static final class MigrationServiceFileDescriptorSupplier + extends MigrationServiceBaseDescriptorSupplier { + MigrationServiceFileDescriptorSupplier() {} + } + + private static final class MigrationServiceMethodDescriptorSupplier + extends MigrationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + MigrationServiceMethodDescriptorSupplier(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 (MigrationServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new MigrationServiceFileDescriptorSupplier()) + .addMethod(getCreateMigrationWorkflowMethod()) + .addMethod(getGetMigrationWorkflowMethod()) + .addMethod(getListMigrationWorkflowsMethod()) + .addMethod(getDeleteMigrationWorkflowMethod()) + .addMethod(getStartMigrationWorkflowMethod()) + .addMethod(getGetMigrationSubtaskMethod()) + .addMethod(getListMigrationSubtasksMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceGrpc.java b/grpc-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceGrpc.java new file mode 100644 index 0000000..0091e32 --- /dev/null +++ b/grpc-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceGrpc.java @@ -0,0 +1,1136 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.bigquery.migration.v2alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service to handle EDW migrations.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/bigquery/migration/v2alpha/migration_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class MigrationServiceGrpc { + + private MigrationServiceGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.bigquery.migration.v2alpha.MigrationService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest, + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow> + getCreateMigrationWorkflowMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMigrationWorkflow", + requestType = + com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest.class, + responseType = com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest, + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow> + getCreateMigrationWorkflowMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest, + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow> + getCreateMigrationWorkflowMethod; + if ((getCreateMigrationWorkflowMethod = MigrationServiceGrpc.getCreateMigrationWorkflowMethod) + == null) { + synchronized (MigrationServiceGrpc.class) { + if ((getCreateMigrationWorkflowMethod = + MigrationServiceGrpc.getCreateMigrationWorkflowMethod) + == null) { + MigrationServiceGrpc.getCreateMigrationWorkflowMethod = + getCreateMigrationWorkflowMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateMigrationWorkflow")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.migration.v2alpha + .CreateMigrationWorkflowRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow + .getDefaultInstance())) + .setSchemaDescriptor( + new MigrationServiceMethodDescriptorSupplier("CreateMigrationWorkflow")) + .build(); + } + } + } + return getCreateMigrationWorkflowMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest, + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow> + getGetMigrationWorkflowMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMigrationWorkflow", + requestType = com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest.class, + responseType = com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest, + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow> + getGetMigrationWorkflowMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest, + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow> + getGetMigrationWorkflowMethod; + if ((getGetMigrationWorkflowMethod = MigrationServiceGrpc.getGetMigrationWorkflowMethod) + == null) { + synchronized (MigrationServiceGrpc.class) { + if ((getGetMigrationWorkflowMethod = MigrationServiceGrpc.getGetMigrationWorkflowMethod) + == null) { + MigrationServiceGrpc.getGetMigrationWorkflowMethod = + getGetMigrationWorkflowMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetMigrationWorkflow")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.migration.v2alpha + .GetMigrationWorkflowRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow + .getDefaultInstance())) + .setSchemaDescriptor( + new MigrationServiceMethodDescriptorSupplier("GetMigrationWorkflow")) + .build(); + } + } + } + return getGetMigrationWorkflowMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest, + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse> + getListMigrationWorkflowsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMigrationWorkflows", + requestType = com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest.class, + responseType = + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest, + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse> + getListMigrationWorkflowsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest, + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse> + getListMigrationWorkflowsMethod; + if ((getListMigrationWorkflowsMethod = MigrationServiceGrpc.getListMigrationWorkflowsMethod) + == null) { + synchronized (MigrationServiceGrpc.class) { + if ((getListMigrationWorkflowsMethod = MigrationServiceGrpc.getListMigrationWorkflowsMethod) + == null) { + MigrationServiceGrpc.getListMigrationWorkflowsMethod = + getListMigrationWorkflowsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListMigrationWorkflows")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.migration.v2alpha + .ListMigrationWorkflowsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.migration.v2alpha + .ListMigrationWorkflowsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new MigrationServiceMethodDescriptorSupplier("ListMigrationWorkflows")) + .build(); + } + } + } + return getListMigrationWorkflowsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest, + com.google.protobuf.Empty> + getDeleteMigrationWorkflowMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMigrationWorkflow", + requestType = + com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest, + com.google.protobuf.Empty> + getDeleteMigrationWorkflowMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest, + com.google.protobuf.Empty> + getDeleteMigrationWorkflowMethod; + if ((getDeleteMigrationWorkflowMethod = MigrationServiceGrpc.getDeleteMigrationWorkflowMethod) + == null) { + synchronized (MigrationServiceGrpc.class) { + if ((getDeleteMigrationWorkflowMethod = + MigrationServiceGrpc.getDeleteMigrationWorkflowMethod) + == null) { + MigrationServiceGrpc.getDeleteMigrationWorkflowMethod = + getDeleteMigrationWorkflowMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteMigrationWorkflow")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.migration.v2alpha + .DeleteMigrationWorkflowRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new MigrationServiceMethodDescriptorSupplier("DeleteMigrationWorkflow")) + .build(); + } + } + } + return getDeleteMigrationWorkflowMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest, + com.google.protobuf.Empty> + getStartMigrationWorkflowMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartMigrationWorkflow", + requestType = com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest, + com.google.protobuf.Empty> + getStartMigrationWorkflowMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest, + com.google.protobuf.Empty> + getStartMigrationWorkflowMethod; + if ((getStartMigrationWorkflowMethod = MigrationServiceGrpc.getStartMigrationWorkflowMethod) + == null) { + synchronized (MigrationServiceGrpc.class) { + if ((getStartMigrationWorkflowMethod = MigrationServiceGrpc.getStartMigrationWorkflowMethod) + == null) { + MigrationServiceGrpc.getStartMigrationWorkflowMethod = + getStartMigrationWorkflowMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "StartMigrationWorkflow")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.migration.v2alpha + .StartMigrationWorkflowRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new MigrationServiceMethodDescriptorSupplier("StartMigrationWorkflow")) + .build(); + } + } + } + return getStartMigrationWorkflowMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest, + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask> + getGetMigrationSubtaskMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMigrationSubtask", + requestType = com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest.class, + responseType = com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest, + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask> + getGetMigrationSubtaskMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest, + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask> + getGetMigrationSubtaskMethod; + if ((getGetMigrationSubtaskMethod = MigrationServiceGrpc.getGetMigrationSubtaskMethod) + == null) { + synchronized (MigrationServiceGrpc.class) { + if ((getGetMigrationSubtaskMethod = MigrationServiceGrpc.getGetMigrationSubtaskMethod) + == null) { + MigrationServiceGrpc.getGetMigrationSubtaskMethod = + getGetMigrationSubtaskMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetMigrationSubtask")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask + .getDefaultInstance())) + .setSchemaDescriptor( + new MigrationServiceMethodDescriptorSupplier("GetMigrationSubtask")) + .build(); + } + } + } + return getGetMigrationSubtaskMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest, + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse> + getListMigrationSubtasksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMigrationSubtasks", + requestType = com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest.class, + responseType = + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest, + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse> + getListMigrationSubtasksMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest, + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse> + getListMigrationSubtasksMethod; + if ((getListMigrationSubtasksMethod = MigrationServiceGrpc.getListMigrationSubtasksMethod) + == null) { + synchronized (MigrationServiceGrpc.class) { + if ((getListMigrationSubtasksMethod = MigrationServiceGrpc.getListMigrationSubtasksMethod) + == null) { + MigrationServiceGrpc.getListMigrationSubtasksMethod = + getListMigrationSubtasksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListMigrationSubtasks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.migration.v2alpha + .ListMigrationSubtasksRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.migration.v2alpha + .ListMigrationSubtasksResponse.getDefaultInstance())) + .setSchemaDescriptor( + new MigrationServiceMethodDescriptorSupplier("ListMigrationSubtasks")) + .build(); + } + } + } + return getListMigrationSubtasksMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static MigrationServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MigrationServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MigrationServiceStub(channel, callOptions); + } + }; + return MigrationServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static MigrationServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MigrationServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MigrationServiceBlockingStub(channel, callOptions); + } + }; + return MigrationServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static MigrationServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MigrationServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MigrationServiceFutureStub(channel, callOptions); + } + }; + return MigrationServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service to handle EDW migrations.
+   * 
+ */ + public abstract static class MigrationServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a migration workflow.
+     * 
+ */ + public void createMigrationWorkflow( + com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMigrationWorkflowMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a previously created migration workflow.
+     * 
+ */ + public void getMigrationWorkflow( + com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMigrationWorkflowMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists previously created migration workflow.
+     * 
+ */ + public void listMigrationWorkflows( + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMigrationWorkflowsMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a migration workflow by name.
+     * 
+ */ + public void deleteMigrationWorkflow( + com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMigrationWorkflowMethod(), responseObserver); + } + + /** + * + * + *
+     * Starts a previously created migration workflow. I.e., the state transitions
+     * from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
+     * An error will be signaled if the state is anything other than DRAFT or
+     * RUNNING.
+     * 
+ */ + public void startMigrationWorkflow( + com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartMigrationWorkflowMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a previously created migration subtask.
+     * 
+ */ + public void getMigrationSubtask( + com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMigrationSubtaskMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists previously created migration subtasks.
+     * 
+ */ + public void listMigrationSubtasks( + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMigrationSubtasksMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateMigrationWorkflowMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest, + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow>( + this, METHODID_CREATE_MIGRATION_WORKFLOW))) + .addMethod( + getGetMigrationWorkflowMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest, + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow>( + this, METHODID_GET_MIGRATION_WORKFLOW))) + .addMethod( + getListMigrationWorkflowsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest, + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse>( + this, METHODID_LIST_MIGRATION_WORKFLOWS))) + .addMethod( + getDeleteMigrationWorkflowMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_MIGRATION_WORKFLOW))) + .addMethod( + getStartMigrationWorkflowMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest, + com.google.protobuf.Empty>(this, METHODID_START_MIGRATION_WORKFLOW))) + .addMethod( + getGetMigrationSubtaskMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest, + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask>( + this, METHODID_GET_MIGRATION_SUBTASK))) + .addMethod( + getListMigrationSubtasksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest, + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse>( + this, METHODID_LIST_MIGRATION_SUBTASKS))) + .build(); + } + } + + /** + * + * + *
+   * Service to handle EDW migrations.
+   * 
+ */ + public static final class MigrationServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private MigrationServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MigrationServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MigrationServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a migration workflow.
+     * 
+ */ + public void createMigrationWorkflow( + com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMigrationWorkflowMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a previously created migration workflow.
+     * 
+ */ + public void getMigrationWorkflow( + com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMigrationWorkflowMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists previously created migration workflow.
+     * 
+ */ + public void listMigrationWorkflows( + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMigrationWorkflowsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a migration workflow by name.
+     * 
+ */ + public void deleteMigrationWorkflow( + com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMigrationWorkflowMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Starts a previously created migration workflow. I.e., the state transitions
+     * from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
+     * An error will be signaled if the state is anything other than DRAFT or
+     * RUNNING.
+     * 
+ */ + public void startMigrationWorkflow( + com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartMigrationWorkflowMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a previously created migration subtask.
+     * 
+ */ + public void getMigrationSubtask( + com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMigrationSubtaskMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists previously created migration subtasks.
+     * 
+ */ + public void listMigrationSubtasks( + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMigrationSubtasksMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Service to handle EDW migrations.
+   * 
+ */ + public static final class MigrationServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private MigrationServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MigrationServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MigrationServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a migration workflow.
+     * 
+ */ + public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow createMigrationWorkflow( + com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMigrationWorkflowMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a previously created migration workflow.
+     * 
+ */ + public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow getMigrationWorkflow( + com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMigrationWorkflowMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists previously created migration workflow.
+     * 
+ */ + public com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse + listMigrationWorkflows( + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMigrationWorkflowsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a migration workflow by name.
+     * 
+ */ + public com.google.protobuf.Empty deleteMigrationWorkflow( + com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMigrationWorkflowMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Starts a previously created migration workflow. I.e., the state transitions
+     * from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
+     * An error will be signaled if the state is anything other than DRAFT or
+     * RUNNING.
+     * 
+ */ + public com.google.protobuf.Empty startMigrationWorkflow( + com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartMigrationWorkflowMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a previously created migration subtask.
+     * 
+ */ + public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask getMigrationSubtask( + com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMigrationSubtaskMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists previously created migration subtasks.
+     * 
+ */ + public com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse + listMigrationSubtasks( + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMigrationSubtasksMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Service to handle EDW migrations.
+   * 
+ */ + public static final class MigrationServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private MigrationServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MigrationServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MigrationServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a migration workflow.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow> + createMigrationWorkflow( + com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMigrationWorkflowMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a previously created migration workflow.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow> + getMigrationWorkflow( + com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMigrationWorkflowMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists previously created migration workflow.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse> + listMigrationWorkflows( + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMigrationWorkflowsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a migration workflow by name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteMigrationWorkflow( + com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMigrationWorkflowMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Starts a previously created migration workflow. I.e., the state transitions
+     * from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
+     * An error will be signaled if the state is anything other than DRAFT or
+     * RUNNING.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + startMigrationWorkflow( + com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartMigrationWorkflowMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a previously created migration subtask.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask> + getMigrationSubtask( + com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMigrationSubtaskMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists previously created migration subtasks.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse> + listMigrationSubtasks( + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMigrationSubtasksMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_MIGRATION_WORKFLOW = 0; + private static final int METHODID_GET_MIGRATION_WORKFLOW = 1; + private static final int METHODID_LIST_MIGRATION_WORKFLOWS = 2; + private static final int METHODID_DELETE_MIGRATION_WORKFLOW = 3; + private static final int METHODID_START_MIGRATION_WORKFLOW = 4; + private static final int METHODID_GET_MIGRATION_SUBTASK = 5; + private static final int METHODID_LIST_MIGRATION_SUBTASKS = 6; + + 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 MigrationServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(MigrationServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_MIGRATION_WORKFLOW: + serviceImpl.createMigrationWorkflow( + (com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow>) + responseObserver); + break; + case METHODID_GET_MIGRATION_WORKFLOW: + serviceImpl.getMigrationWorkflow( + (com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow>) + responseObserver); + break; + case METHODID_LIST_MIGRATION_WORKFLOWS: + serviceImpl.listMigrationWorkflows( + (com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse>) + responseObserver); + break; + case METHODID_DELETE_MIGRATION_WORKFLOW: + serviceImpl.deleteMigrationWorkflow( + (com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_MIGRATION_WORKFLOW: + serviceImpl.startMigrationWorkflow( + (com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_MIGRATION_SUBTASK: + serviceImpl.getMigrationSubtask( + (com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask>) + responseObserver); + break; + case METHODID_LIST_MIGRATION_SUBTASKS: + serviceImpl.listMigrationSubtasks( + (com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse>) + 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 MigrationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + MigrationServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("MigrationService"); + } + } + + private static final class MigrationServiceFileDescriptorSupplier + extends MigrationServiceBaseDescriptorSupplier { + MigrationServiceFileDescriptorSupplier() {} + } + + private static final class MigrationServiceMethodDescriptorSupplier + extends MigrationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + MigrationServiceMethodDescriptorSupplier(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 (MigrationServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new MigrationServiceFileDescriptorSupplier()) + .addMethod(getCreateMigrationWorkflowMethod()) + .addMethod(getGetMigrationWorkflowMethod()) + .addMethod(getListMigrationWorkflowsMethod()) + .addMethod(getDeleteMigrationWorkflowMethod()) + .addMethod(getStartMigrationWorkflowMethod()) + .addMethod(getGetMigrationSubtaskMethod()) + .addMethod(getListMigrationSubtasksMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v2alpha/grpc-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceGrpc.java b/grpc-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceGrpc.java similarity index 50% rename from owl-bot-staging/v2alpha/grpc-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceGrpc.java rename to grpc-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceGrpc.java index f88006e..998f2cc 100644 --- a/owl-bot-staging/v2alpha/grpc-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceGrpc.java +++ b/grpc-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.bigquery.migration.v2alpha; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * Provides other SQL dialects to GoogleSQL translation operations.
  * 
@@ -15,122 +32,147 @@ public final class SqlTranslationServiceGrpc { private SqlTranslationServiceGrpc() {} - public static final String SERVICE_NAME = "google.cloud.bigquery.migration.v2alpha.SqlTranslationService"; + public static final String SERVICE_NAME = + "google.cloud.bigquery.migration.v2alpha.SqlTranslationService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getTranslateQueryMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest, + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse> + getTranslateQueryMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "TranslateQuery", requestType = com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.class, responseType = com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTranslateQueryMethod() { - io.grpc.MethodDescriptor getTranslateQueryMethod; + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest, + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse> + getTranslateQueryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest, + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse> + getTranslateQueryMethod; if ((getTranslateQueryMethod = SqlTranslationServiceGrpc.getTranslateQueryMethod) == null) { synchronized (SqlTranslationServiceGrpc.class) { if ((getTranslateQueryMethod = SqlTranslationServiceGrpc.getTranslateQueryMethod) == null) { - SqlTranslationServiceGrpc.getTranslateQueryMethod = getTranslateQueryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateQuery")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse.getDefaultInstance())) - .setSchemaDescriptor(new SqlTranslationServiceMethodDescriptorSupplier("TranslateQuery")) - .build(); + SqlTranslationServiceGrpc.getTranslateQueryMethod = + getTranslateQueryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TranslateQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SqlTranslationServiceMethodDescriptorSupplier("TranslateQuery")) + .build(); } } } return getTranslateQueryMethod; } - /** - * Creates a new async stub that supports all call types for the service - */ + /** Creates a new async stub that supports all call types for the service */ public static SqlTranslationServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SqlTranslationServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SqlTranslationServiceStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SqlTranslationServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SqlTranslationServiceStub(channel, callOptions); + } + }; return SqlTranslationServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static SqlTranslationServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { + public static SqlTranslationServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SqlTranslationServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SqlTranslationServiceBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SqlTranslationServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SqlTranslationServiceBlockingStub(channel, callOptions); + } + }; return SqlTranslationServiceBlockingStub.newStub(factory, channel); } - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static SqlTranslationServiceFutureStub newFutureStub( - io.grpc.Channel channel) { + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SqlTranslationServiceFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SqlTranslationServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SqlTranslationServiceFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SqlTranslationServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SqlTranslationServiceFutureStub(channel, callOptions); + } + }; return SqlTranslationServiceFutureStub.newStub(factory, channel); } /** + * + * *
    * Provides other SQL dialects to GoogleSQL translation operations.
    * 
*/ - public static abstract class SqlTranslationServiceImplBase implements io.grpc.BindableService { + public abstract static class SqlTranslationServiceImplBase implements io.grpc.BindableService { /** + * + * *
      * Translates input queries from source dialects to GoogleSQL.
      * 
*/ - public void translateQuery(com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTranslateQueryMethod(), responseObserver); + public void translateQuery( + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTranslateQueryMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getTranslateQueryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest, - com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse>( - this, METHODID_TRANSLATE_QUERY))) + getTranslateQueryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest, + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse>( + this, METHODID_TRANSLATE_QUERY))) .build(); } } /** + * + * *
    * Provides other SQL dialects to GoogleSQL translation operations.
    * 
*/ - public static final class SqlTranslationServiceStub extends io.grpc.stub.AbstractAsyncStub { - private SqlTranslationServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class SqlTranslationServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private SqlTranslationServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -141,23 +183,33 @@ protected SqlTranslationServiceStub build( } /** + * + * *
      * Translates input queries from source dialects to GoogleSQL.
      * 
*/ - public void translateQuery(com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void translateQuery( + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse> + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTranslateQueryMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getTranslateQueryMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * Provides other SQL dialects to GoogleSQL translation operations.
    * 
*/ - public static final class SqlTranslationServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + public static final class SqlTranslationServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { private SqlTranslationServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -170,22 +222,28 @@ protected SqlTranslationServiceBlockingStub build( } /** + * + * *
      * Translates input queries from source dialects to GoogleSQL.
      * 
*/ - public com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse translateQuery(com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest request) { + public com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse translateQuery( + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTranslateQueryMethod(), getCallOptions(), request); } } /** + * + * *
    * Provides other SQL dialects to GoogleSQL translation operations.
    * 
*/ - public static final class SqlTranslationServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + public static final class SqlTranslationServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { private SqlTranslationServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -198,12 +256,15 @@ protected SqlTranslationServiceFutureStub build( } /** + * + * *
      * Translates input queries from source dialects to GoogleSQL.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture translateQuery( - com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse> + translateQuery(com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTranslateQueryMethod(), getCallOptions()), request); } @@ -211,11 +272,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + 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 SqlTranslationServiceImplBase serviceImpl; private final int methodId; @@ -229,8 +290,11 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_TRANSLATE_QUERY: - serviceImpl.translateQuery((com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.translateQuery( + (com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse>) + responseObserver); break; default: throw new AssertionError(); @@ -248,8 +312,9 @@ public io.grpc.stub.StreamObserver invoke( } } - private static abstract class SqlTranslationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class SqlTranslationServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { SqlTranslationServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -291,10 +356,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (SqlTranslationServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SqlTranslationServiceFileDescriptorSupplier()) - .addMethod(getTranslateQueryMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SqlTranslationServiceFileDescriptorSupplier()) + .addMethod(getTranslateQueryMethod()) + .build(); } } } diff --git a/owl-bot-staging/v2/grpc-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceGrpc.java deleted file mode 100644 index ab32596..0000000 --- a/owl-bot-staging/v2/grpc-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceGrpc.java +++ /dev/null @@ -1,831 +0,0 @@ -package com.google.cloud.bigquery.migration.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Service to handle EDW migrations.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/migration/v2/migration_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class MigrationServiceGrpc { - - private MigrationServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.bigquery.migration.v2.MigrationService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateMigrationWorkflowMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateMigrationWorkflow", - requestType = com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest.class, - responseType = com.google.cloud.bigquery.migration.v2.MigrationWorkflow.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateMigrationWorkflowMethod() { - io.grpc.MethodDescriptor getCreateMigrationWorkflowMethod; - if ((getCreateMigrationWorkflowMethod = MigrationServiceGrpc.getCreateMigrationWorkflowMethod) == null) { - synchronized (MigrationServiceGrpc.class) { - if ((getCreateMigrationWorkflowMethod = MigrationServiceGrpc.getCreateMigrationWorkflowMethod) == null) { - MigrationServiceGrpc.getCreateMigrationWorkflowMethod = getCreateMigrationWorkflowMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMigrationWorkflow")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.migration.v2.MigrationWorkflow.getDefaultInstance())) - .setSchemaDescriptor(new MigrationServiceMethodDescriptorSupplier("CreateMigrationWorkflow")) - .build(); - } - } - } - return getCreateMigrationWorkflowMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetMigrationWorkflowMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMigrationWorkflow", - requestType = com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest.class, - responseType = com.google.cloud.bigquery.migration.v2.MigrationWorkflow.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetMigrationWorkflowMethod() { - io.grpc.MethodDescriptor getGetMigrationWorkflowMethod; - if ((getGetMigrationWorkflowMethod = MigrationServiceGrpc.getGetMigrationWorkflowMethod) == null) { - synchronized (MigrationServiceGrpc.class) { - if ((getGetMigrationWorkflowMethod = MigrationServiceGrpc.getGetMigrationWorkflowMethod) == null) { - MigrationServiceGrpc.getGetMigrationWorkflowMethod = getGetMigrationWorkflowMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMigrationWorkflow")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.migration.v2.MigrationWorkflow.getDefaultInstance())) - .setSchemaDescriptor(new MigrationServiceMethodDescriptorSupplier("GetMigrationWorkflow")) - .build(); - } - } - } - return getGetMigrationWorkflowMethod; - } - - private static volatile io.grpc.MethodDescriptor getListMigrationWorkflowsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListMigrationWorkflows", - requestType = com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest.class, - responseType = com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListMigrationWorkflowsMethod() { - io.grpc.MethodDescriptor getListMigrationWorkflowsMethod; - if ((getListMigrationWorkflowsMethod = MigrationServiceGrpc.getListMigrationWorkflowsMethod) == null) { - synchronized (MigrationServiceGrpc.class) { - if ((getListMigrationWorkflowsMethod = MigrationServiceGrpc.getListMigrationWorkflowsMethod) == null) { - MigrationServiceGrpc.getListMigrationWorkflowsMethod = getListMigrationWorkflowsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMigrationWorkflows")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse.getDefaultInstance())) - .setSchemaDescriptor(new MigrationServiceMethodDescriptorSupplier("ListMigrationWorkflows")) - .build(); - } - } - } - return getListMigrationWorkflowsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteMigrationWorkflowMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteMigrationWorkflow", - requestType = com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteMigrationWorkflowMethod() { - io.grpc.MethodDescriptor getDeleteMigrationWorkflowMethod; - if ((getDeleteMigrationWorkflowMethod = MigrationServiceGrpc.getDeleteMigrationWorkflowMethod) == null) { - synchronized (MigrationServiceGrpc.class) { - if ((getDeleteMigrationWorkflowMethod = MigrationServiceGrpc.getDeleteMigrationWorkflowMethod) == null) { - MigrationServiceGrpc.getDeleteMigrationWorkflowMethod = getDeleteMigrationWorkflowMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMigrationWorkflow")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new MigrationServiceMethodDescriptorSupplier("DeleteMigrationWorkflow")) - .build(); - } - } - } - return getDeleteMigrationWorkflowMethod; - } - - private static volatile io.grpc.MethodDescriptor getStartMigrationWorkflowMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartMigrationWorkflow", - requestType = com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStartMigrationWorkflowMethod() { - io.grpc.MethodDescriptor getStartMigrationWorkflowMethod; - if ((getStartMigrationWorkflowMethod = MigrationServiceGrpc.getStartMigrationWorkflowMethod) == null) { - synchronized (MigrationServiceGrpc.class) { - if ((getStartMigrationWorkflowMethod = MigrationServiceGrpc.getStartMigrationWorkflowMethod) == null) { - MigrationServiceGrpc.getStartMigrationWorkflowMethod = getStartMigrationWorkflowMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartMigrationWorkflow")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new MigrationServiceMethodDescriptorSupplier("StartMigrationWorkflow")) - .build(); - } - } - } - return getStartMigrationWorkflowMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetMigrationSubtaskMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMigrationSubtask", - requestType = com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest.class, - responseType = com.google.cloud.bigquery.migration.v2.MigrationSubtask.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetMigrationSubtaskMethod() { - io.grpc.MethodDescriptor getGetMigrationSubtaskMethod; - if ((getGetMigrationSubtaskMethod = MigrationServiceGrpc.getGetMigrationSubtaskMethod) == null) { - synchronized (MigrationServiceGrpc.class) { - if ((getGetMigrationSubtaskMethod = MigrationServiceGrpc.getGetMigrationSubtaskMethod) == null) { - MigrationServiceGrpc.getGetMigrationSubtaskMethod = getGetMigrationSubtaskMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMigrationSubtask")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.migration.v2.MigrationSubtask.getDefaultInstance())) - .setSchemaDescriptor(new MigrationServiceMethodDescriptorSupplier("GetMigrationSubtask")) - .build(); - } - } - } - return getGetMigrationSubtaskMethod; - } - - private static volatile io.grpc.MethodDescriptor getListMigrationSubtasksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListMigrationSubtasks", - requestType = com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest.class, - responseType = com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListMigrationSubtasksMethod() { - io.grpc.MethodDescriptor getListMigrationSubtasksMethod; - if ((getListMigrationSubtasksMethod = MigrationServiceGrpc.getListMigrationSubtasksMethod) == null) { - synchronized (MigrationServiceGrpc.class) { - if ((getListMigrationSubtasksMethod = MigrationServiceGrpc.getListMigrationSubtasksMethod) == null) { - MigrationServiceGrpc.getListMigrationSubtasksMethod = getListMigrationSubtasksMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMigrationSubtasks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse.getDefaultInstance())) - .setSchemaDescriptor(new MigrationServiceMethodDescriptorSupplier("ListMigrationSubtasks")) - .build(); - } - } - } - return getListMigrationSubtasksMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static MigrationServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public MigrationServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MigrationServiceStub(channel, callOptions); - } - }; - return MigrationServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static MigrationServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public MigrationServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MigrationServiceBlockingStub(channel, callOptions); - } - }; - return MigrationServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static MigrationServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public MigrationServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MigrationServiceFutureStub(channel, callOptions); - } - }; - return MigrationServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service to handle EDW migrations.
-   * 
- */ - public static abstract class MigrationServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a migration workflow.
-     * 
- */ - public void createMigrationWorkflow(com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMigrationWorkflowMethod(), responseObserver); - } - - /** - *
-     * Gets a previously created migration workflow.
-     * 
- */ - public void getMigrationWorkflow(com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMigrationWorkflowMethod(), responseObserver); - } - - /** - *
-     * Lists previously created migration workflow.
-     * 
- */ - public void listMigrationWorkflows(com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMigrationWorkflowsMethod(), responseObserver); - } - - /** - *
-     * Deletes a migration workflow by name.
-     * 
- */ - public void deleteMigrationWorkflow(com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMigrationWorkflowMethod(), responseObserver); - } - - /** - *
-     * Starts a previously created migration workflow. I.e., the state transitions
-     * from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
-     * An error will be signaled if the state is anything other than DRAFT or
-     * RUNNING.
-     * 
- */ - public void startMigrationWorkflow(com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartMigrationWorkflowMethod(), responseObserver); - } - - /** - *
-     * Gets a previously created migration subtask.
-     * 
- */ - public void getMigrationSubtask(com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMigrationSubtaskMethod(), responseObserver); - } - - /** - *
-     * Lists previously created migration subtasks.
-     * 
- */ - public void listMigrationSubtasks(com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMigrationSubtasksMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateMigrationWorkflowMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest, - com.google.cloud.bigquery.migration.v2.MigrationWorkflow>( - this, METHODID_CREATE_MIGRATION_WORKFLOW))) - .addMethod( - getGetMigrationWorkflowMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest, - com.google.cloud.bigquery.migration.v2.MigrationWorkflow>( - this, METHODID_GET_MIGRATION_WORKFLOW))) - .addMethod( - getListMigrationWorkflowsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest, - com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse>( - this, METHODID_LIST_MIGRATION_WORKFLOWS))) - .addMethod( - getDeleteMigrationWorkflowMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_MIGRATION_WORKFLOW))) - .addMethod( - getStartMigrationWorkflowMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest, - com.google.protobuf.Empty>( - this, METHODID_START_MIGRATION_WORKFLOW))) - .addMethod( - getGetMigrationSubtaskMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest, - com.google.cloud.bigquery.migration.v2.MigrationSubtask>( - this, METHODID_GET_MIGRATION_SUBTASK))) - .addMethod( - getListMigrationSubtasksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest, - com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse>( - this, METHODID_LIST_MIGRATION_SUBTASKS))) - .build(); - } - } - - /** - *
-   * Service to handle EDW migrations.
-   * 
- */ - public static final class MigrationServiceStub extends io.grpc.stub.AbstractAsyncStub { - private MigrationServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MigrationServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MigrationServiceStub(channel, callOptions); - } - - /** - *
-     * Creates a migration workflow.
-     * 
- */ - public void createMigrationWorkflow(com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateMigrationWorkflowMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a previously created migration workflow.
-     * 
- */ - public void getMigrationWorkflow(com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMigrationWorkflowMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists previously created migration workflow.
-     * 
- */ - public void listMigrationWorkflows(com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMigrationWorkflowsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a migration workflow by name.
-     * 
- */ - public void deleteMigrationWorkflow(com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteMigrationWorkflowMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Starts a previously created migration workflow. I.e., the state transitions
-     * from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
-     * An error will be signaled if the state is anything other than DRAFT or
-     * RUNNING.
-     * 
- */ - public void startMigrationWorkflow(com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartMigrationWorkflowMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a previously created migration subtask.
-     * 
- */ - public void getMigrationSubtask(com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMigrationSubtaskMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists previously created migration subtasks.
-     * 
- */ - public void listMigrationSubtasks(com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMigrationSubtasksMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Service to handle EDW migrations.
-   * 
- */ - public static final class MigrationServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private MigrationServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MigrationServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MigrationServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a migration workflow.
-     * 
- */ - public com.google.cloud.bigquery.migration.v2.MigrationWorkflow createMigrationWorkflow(com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateMigrationWorkflowMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a previously created migration workflow.
-     * 
- */ - public com.google.cloud.bigquery.migration.v2.MigrationWorkflow getMigrationWorkflow(com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMigrationWorkflowMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists previously created migration workflow.
-     * 
- */ - public com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse listMigrationWorkflows(com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMigrationWorkflowsMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a migration workflow by name.
-     * 
- */ - public com.google.protobuf.Empty deleteMigrationWorkflow(com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteMigrationWorkflowMethod(), getCallOptions(), request); - } - - /** - *
-     * Starts a previously created migration workflow. I.e., the state transitions
-     * from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
-     * An error will be signaled if the state is anything other than DRAFT or
-     * RUNNING.
-     * 
- */ - public com.google.protobuf.Empty startMigrationWorkflow(com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartMigrationWorkflowMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a previously created migration subtask.
-     * 
- */ - public com.google.cloud.bigquery.migration.v2.MigrationSubtask getMigrationSubtask(com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMigrationSubtaskMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists previously created migration subtasks.
-     * 
- */ - public com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse listMigrationSubtasks(com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMigrationSubtasksMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Service to handle EDW migrations.
-   * 
- */ - public static final class MigrationServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private MigrationServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MigrationServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MigrationServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a migration workflow.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createMigrationWorkflow( - com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateMigrationWorkflowMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a previously created migration workflow.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getMigrationWorkflow( - com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMigrationWorkflowMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists previously created migration workflow.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listMigrationWorkflows( - com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMigrationWorkflowsMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a migration workflow by name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteMigrationWorkflow( - com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteMigrationWorkflowMethod(), getCallOptions()), request); - } - - /** - *
-     * Starts a previously created migration workflow. I.e., the state transitions
-     * from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
-     * An error will be signaled if the state is anything other than DRAFT or
-     * RUNNING.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture startMigrationWorkflow( - com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartMigrationWorkflowMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a previously created migration subtask.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getMigrationSubtask( - com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMigrationSubtaskMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists previously created migration subtasks.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listMigrationSubtasks( - com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMigrationSubtasksMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_MIGRATION_WORKFLOW = 0; - private static final int METHODID_GET_MIGRATION_WORKFLOW = 1; - private static final int METHODID_LIST_MIGRATION_WORKFLOWS = 2; - private static final int METHODID_DELETE_MIGRATION_WORKFLOW = 3; - private static final int METHODID_START_MIGRATION_WORKFLOW = 4; - private static final int METHODID_GET_MIGRATION_SUBTASK = 5; - private static final int METHODID_LIST_MIGRATION_SUBTASKS = 6; - - 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 MigrationServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(MigrationServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_MIGRATION_WORKFLOW: - serviceImpl.createMigrationWorkflow((com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_MIGRATION_WORKFLOW: - serviceImpl.getMigrationWorkflow((com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_MIGRATION_WORKFLOWS: - serviceImpl.listMigrationWorkflows((com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_MIGRATION_WORKFLOW: - serviceImpl.deleteMigrationWorkflow((com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_MIGRATION_WORKFLOW: - serviceImpl.startMigrationWorkflow((com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_MIGRATION_SUBTASK: - serviceImpl.getMigrationSubtask((com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_MIGRATION_SUBTASKS: - serviceImpl.listMigrationSubtasks((com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest) 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 MigrationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - MigrationServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("MigrationService"); - } - } - - private static final class MigrationServiceFileDescriptorSupplier - extends MigrationServiceBaseDescriptorSupplier { - MigrationServiceFileDescriptorSupplier() {} - } - - private static final class MigrationServiceMethodDescriptorSupplier - extends MigrationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - MigrationServiceMethodDescriptorSupplier(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 (MigrationServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new MigrationServiceFileDescriptorSupplier()) - .addMethod(getCreateMigrationWorkflowMethod()) - .addMethod(getGetMigrationWorkflowMethod()) - .addMethod(getListMigrationWorkflowsMethod()) - .addMethod(getDeleteMigrationWorkflowMethod()) - .addMethod(getStartMigrationWorkflowMethod()) - .addMethod(getGetMigrationSubtaskMethod()) - .addMethod(getListMigrationSubtasksMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/AzureSynapseDialectOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/AzureSynapseDialectOrBuilder.java deleted file mode 100644 index 6006ad2..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/AzureSynapseDialectOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2/translation_config.proto - -package com.google.cloud.bigquery.migration.v2; - -public interface AzureSynapseDialectOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.AzureSynapseDialect) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/BigQueryDialectOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/BigQueryDialectOrBuilder.java deleted file mode 100644 index 3314e59..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/BigQueryDialectOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2/translation_config.proto - -package com.google.cloud.bigquery.migration.v2; - -public interface BigQueryDialectOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.BigQueryDialect) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/CreateMigrationWorkflowRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/CreateMigrationWorkflowRequestOrBuilder.java deleted file mode 100644 index 0dc642c..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/CreateMigrationWorkflowRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2/migration_service.proto - -package com.google.cloud.bigquery.migration.v2; - -public interface CreateMigrationWorkflowRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the project to which this migration workflow belongs.
-   * Example: `projects/foo/locations/bar`
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The name of the project to which this migration workflow belongs.
-   * Example: `projects/foo/locations/bar`
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The migration workflow to create.
-   * 
- * - * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the migrationWorkflow field is set. - */ - boolean hasMigrationWorkflow(); - /** - *
-   * Required. The migration workflow to create.
-   * 
- * - * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The migrationWorkflow. - */ - com.google.cloud.bigquery.migration.v2.MigrationWorkflow getMigrationWorkflow(); - /** - *
-   * Required. The migration workflow to create.
-   * 
- * - * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.bigquery.migration.v2.MigrationWorkflowOrBuilder getMigrationWorkflowOrBuilder(); -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DeleteMigrationWorkflowRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DeleteMigrationWorkflowRequestOrBuilder.java deleted file mode 100644 index 891154d..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DeleteMigrationWorkflowRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2/migration_service.proto - -package com.google.cloud.bigquery.migration.v2; - -public interface DeleteMigrationWorkflowRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The unique identifier for the migration workflow.
-   * Example: `projects/123/locations/us/workflows/1234`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The unique identifier for the migration workflow.
-   * Example: `projects/123/locations/us/workflows/1234`
-   * 
- * - * 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/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/HiveQLDialectOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/HiveQLDialectOrBuilder.java deleted file mode 100644 index 0a23fbc..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/HiveQLDialectOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2/translation_config.proto - -package com.google.cloud.bigquery.migration.v2; - -public interface HiveQLDialectOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.HiveQLDialect) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationEntitiesProto.java b/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationEntitiesProto.java deleted file mode 100644 index 41b33cf..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationEntitiesProto.java +++ /dev/null @@ -1,161 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2/migration_entities.proto - -package com.google.cloud.bigquery.migration.v2; - -public final class MigrationEntitiesProto { - private MigrationEntitiesProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_MigrationWorkflow_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_MigrationWorkflow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_MigrationWorkflow_TasksEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_MigrationWorkflow_TasksEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_MigrationTask_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_MigrationTask_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_MigrationSubtask_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_MigrationSubtask_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/bigquery/migration/v2/mig" + - "ration_entities.proto\022\"google.cloud.bigq" + - "uery.migration.v2\032\037google/api/field_beha" + - "vior.proto\032\031google/api/resource.proto\032@g" + - "oogle/cloud/bigquery/migration/v2/migrat" + - "ion_error_details.proto\032:google/cloud/bi" + - "gquery/migration/v2/migration_metrics.pr" + - "oto\032;google/cloud/bigquery/migration/v2/" + - "translation_config.proto\032\037google/protobu" + - "f/timestamp.proto\032\036google/rpc/error_deta" + - "ils.proto\"\363\004\n\021MigrationWorkflow\022\024\n\004name\030" + - "\001 \001(\tB\006\340A\003\340A\005\022\024\n\014display_name\030\006 \001(\t\022O\n\005t" + - "asks\030\002 \003(\0132@.google.cloud.bigquery.migra" + - "tion.v2.MigrationWorkflow.TasksEntry\022O\n\005" + - "state\030\003 \001(\0162;.google.cloud.bigquery.migr" + - "ation.v2.MigrationWorkflow.StateB\003\340A\003\022/\n" + - "\013create_time\030\004 \001(\0132\032.google.protobuf.Tim" + - "estamp\0224\n\020last_update_time\030\005 \001(\0132\032.googl" + - "e.protobuf.Timestamp\032_\n\nTasksEntry\022\013\n\003ke" + - "y\030\001 \001(\t\022@\n\005value\030\002 \001(\01321.google.cloud.bi" + - "gquery.migration.v2.MigrationTask:\0028\001\"Q\n" + - "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005DRAFT\020\001" + - "\022\013\n\007RUNNING\020\002\022\n\n\006PAUSED\020\003\022\r\n\tCOMPLETED\020\004" + - ":u\352Ar\n2bigquerymigration.googleapis.com/" + - "MigrationWorkflow\022\n\006points\030\004 \003" + - "(\0132).google.cloud.bigquery.migration.v2." + - "PointB\003\340A\002\"\212\001\n\005Point\022B\n\010interval\030\001 \001(\01320" + - ".google.cloud.bigquery.migration.v2.Time" + - "Interval\022=\n\005value\030\002 \001(\0132..google.cloud.b" + - "igquery.migration.v2.TypedValue\"v\n\014TimeI" + - "nterval\0223\n\nstart_time\030\001 \001(\0132\032.google.pro" + - "tobuf.TimestampB\003\340A\001\0221\n\010end_time\030\002 \001(\0132\032" + - ".google.protobuf.TimestampB\003\340A\002\"\252\001\n\nType" + - "dValue\022\024\n\nbool_value\030\001 \001(\010H\000\022\025\n\013int64_va" + - "lue\030\002 \001(\003H\000\022\026\n\014double_value\030\003 \001(\001H\000\022\026\n\014s" + - "tring_value\030\004 \001(\tH\000\0226\n\022distribution_valu" + - "e\030\005 \001(\0132\030.google.api.DistributionH\000B\007\n\005v" + - "alueB\321\001\n&com.google.cloud.bigquery.migra" + - "tion.v2B\025MigrationMetricsProtoP\001ZDcloud." + - "google.com/go/bigquery/migration/apiv2/m" + - "igrationpb;migrationpb\252\002\"Google.Cloud.Bi" + - "gQuery.Migration.V2\312\002\"Google\\Cloud\\BigQu" + - "ery\\Migration\\V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.DistributionProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.MetricProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_migration_v2_TimeSeries_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_migration_v2_TimeSeries_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_TimeSeries_descriptor, - new java.lang.String[] { "Metric", "ValueType", "MetricKind", "Points", }); - internal_static_google_cloud_bigquery_migration_v2_Point_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_migration_v2_Point_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_Point_descriptor, - new java.lang.String[] { "Interval", "Value", }); - internal_static_google_cloud_bigquery_migration_v2_TimeInterval_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_migration_v2_TimeInterval_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_TimeInterval_descriptor, - new java.lang.String[] { "StartTime", "EndTime", }); - internal_static_google_cloud_bigquery_migration_v2_TypedValue_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_bigquery_migration_v2_TypedValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_TypedValue_descriptor, - new java.lang.String[] { "BoolValue", "Int64Value", "DoubleValue", "StringValue", "DistributionValue", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.DistributionProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.MetricProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceProto.java b/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceProto.java deleted file mode 100644 index 7a53d6e..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceProto.java +++ /dev/null @@ -1,247 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2/migration_service.proto - -package com.google.cloud.bigquery.migration.v2; - -public final class MigrationServiceProto { - private MigrationServiceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_CreateMigrationWorkflowRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_CreateMigrationWorkflowRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_GetMigrationWorkflowRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_GetMigrationWorkflowRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_DeleteMigrationWorkflowRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_DeleteMigrationWorkflowRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_StartMigrationWorkflowRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_StartMigrationWorkflowRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_GetMigrationSubtaskRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_GetMigrationSubtaskRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksResponse_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/bigquery/migration/v2/mig" + - "ration_service.proto\022\"google.cloud.bigqu" + - "ery.migration.v2\032\034google/api/annotations" + - ".proto\032\027google/api/client.proto\032\037google/" + - "api/field_behavior.proto\032\031google/api/res" + - "ource.proto\032;google/cloud/bigquery/migra" + - "tion/v2/migration_entities.proto\032\033google" + - "/protobuf/empty.proto\032 google/protobuf/f" + - "ield_mask.proto\"\263\001\n\036CreateMigrationWorkf" + - "lowRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loca" + - "tions.googleapis.com/Location\022V\n\022migrati" + - "on_workflow\030\002 \001(\01325.google.cloud.bigquer" + - "y.migration.v2.MigrationWorkflowB\003\340A\002\"\226\001" + - "\n\033GetMigrationWorkflowRequest\022H\n\004name\030\001 " + - "\001(\tB:\340A\002\372A4\n2bigquerymigration.googleapi" + - "s.com/MigrationWorkflow\022-\n\tread_mask\030\002 \001" + - "(\0132\032.google.protobuf.FieldMask\"\260\001\n\035ListM" + - "igrationWorkflowsRequest\0229\n\006parent\030\001 \001(\t" + - "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + - "ion\022-\n\tread_mask\030\002 \001(\0132\032.google.protobuf" + - ".FieldMask\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_to" + - "ken\030\004 \001(\t\"\215\001\n\036ListMigrationWorkflowsResp" + - "onse\022R\n\023migration_workflows\030\001 \003(\01325.goog" + - "le.cloud.bigquery.migration.v2.Migration" + - "Workflow\022\027\n\017next_page_token\030\002 \001(\t\"j\n\036Del" + - "eteMigrationWorkflowRequest\022H\n\004name\030\001 \001(" + - "\tB:\340A\002\372A4\n2bigquerymigration.googleapis." + - "com/MigrationWorkflow\"i\n\035StartMigrationW" + - "orkflowRequest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2bi" + - "gquerymigration.googleapis.com/Migration" + - "Workflow\"\231\001\n\032GetMigrationSubtaskRequest\022" + - "G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1bigquerymigration" + - ".googleapis.com/MigrationSubtask\0222\n\tread" + - "_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB" + - "\003\340A\001\"\344\001\n\034ListMigrationSubtasksRequest\022J\n" + - "\006parent\030\001 \001(\tB:\340A\002\372A4\n2bigquerymigration" + - ".googleapis.com/MigrationWorkflow\0222\n\trea" + - "d_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + - "B\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_to" + - "ken\030\004 \001(\tB\003\340A\001\022\023\n\006filter\030\005 \001(\tB\003\340A\001\"\212\001\n\035" + - "ListMigrationSubtasksResponse\022P\n\022migrati" + - "on_subtasks\030\001 \003(\01324.google.cloud.bigquer" + - "y.migration.v2.MigrationSubtask\022\027\n\017next_" + - "page_token\030\002 \001(\t2\313\014\n\020MigrationService\022\373\001" + - "\n\027CreateMigrationWorkflow\022B.google.cloud" + - ".bigquery.migration.v2.CreateMigrationWo" + - "rkflowRequest\0325.google.cloud.bigquery.mi" + - "gration.v2.MigrationWorkflow\"e\202\323\344\223\002C\"-/v" + - "2/{parent=projects/*/locations/*}/workfl" + - "ows:\022migration_workflow\332A\031parent,migrati" + - "on_workflow\022\314\001\n\024GetMigrationWorkflow\022?.g" + - "oogle.cloud.bigquery.migration.v2.GetMig" + - "rationWorkflowRequest\0325.google.cloud.big" + - "query.migration.v2.MigrationWorkflow\"<\202\323" + - "\344\223\002/\022-/v2/{name=projects/*/locations/*/w" + - "orkflows/*}\332A\004name\022\337\001\n\026ListMigrationWork" + - "flows\022A.google.cloud.bigquery.migration." + - "v2.ListMigrationWorkflowsRequest\032B.googl" + - "e.cloud.bigquery.migration.v2.ListMigrat" + - "ionWorkflowsResponse\">\202\323\344\223\002/\022-/v2/{paren" + - "t=projects/*/locations/*}/workflows\332A\006pa" + - "rent\022\263\001\n\027DeleteMigrationWorkflow\022B.googl" + - "e.cloud.bigquery.migration.v2.DeleteMigr" + - "ationWorkflowRequest\032\026.google.protobuf.E" + - "mpty\"<\202\323\344\223\002/*-/v2/{name=projects/*/locat" + - "ions/*/workflows/*}\332A\004name\022\272\001\n\026StartMigr" + - "ationWorkflow\022A.google.cloud.bigquery.mi" + - "gration.v2.StartMigrationWorkflowRequest" + - "\032\026.google.protobuf.Empty\"E\202\323\344\223\0028\"3/v2/{n" + - "ame=projects/*/locations/*/workflows/*}:" + - "start:\001*\332A\004name\022\324\001\n\023GetMigrationSubtask\022" + - ">.google.cloud.bigquery.migration.v2.Get" + - "MigrationSubtaskRequest\0324.google.cloud.b" + - "igquery.migration.v2.MigrationSubtask\"G\202" + - "\323\344\223\002:\0228/v2/{name=projects/*/locations/*/" + - "workflows/*/subtasks/*}\332A\004name\022\347\001\n\025ListM" + - "igrationSubtasks\022@.google.cloud.bigquery" + - ".migration.v2.ListMigrationSubtasksReque" + - "st\032A.google.cloud.bigquery.migration.v2." + - "ListMigrationSubtasksResponse\"I\202\323\344\223\002:\0228/" + - "v2/{parent=projects/*/locations/*/workfl" + - "ows/*}/subtasks\332A\006parent\032T\312A bigquerymig" + - "ration.googleapis.com\322A.https://www.goog" + - "leapis.com/auth/cloud-platformB\321\001\n&com.g" + - "oogle.cloud.bigquery.migration.v2B\025Migra" + - "tionServiceProtoP\001ZDcloud.google.com/go/" + - "bigquery/migration/apiv2/migrationpb;mig" + - "rationpb\252\002\"Google.Cloud.BigQuery.Migrati" + - "on.V2\312\002\"Google\\Cloud\\BigQuery\\Migration\\" + - "V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_migration_v2_CreateMigrationWorkflowRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_migration_v2_CreateMigrationWorkflowRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_CreateMigrationWorkflowRequest_descriptor, - new java.lang.String[] { "Parent", "MigrationWorkflow", }); - internal_static_google_cloud_bigquery_migration_v2_GetMigrationWorkflowRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_migration_v2_GetMigrationWorkflowRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_GetMigrationWorkflowRequest_descriptor, - new java.lang.String[] { "Name", "ReadMask", }); - internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsRequest_descriptor, - new java.lang.String[] { "Parent", "ReadMask", "PageSize", "PageToken", }); - internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsResponse_descriptor, - new java.lang.String[] { "MigrationWorkflows", "NextPageToken", }); - internal_static_google_cloud_bigquery_migration_v2_DeleteMigrationWorkflowRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_bigquery_migration_v2_DeleteMigrationWorkflowRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_DeleteMigrationWorkflowRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_bigquery_migration_v2_StartMigrationWorkflowRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_bigquery_migration_v2_StartMigrationWorkflowRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_StartMigrationWorkflowRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_bigquery_migration_v2_GetMigrationSubtaskRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_bigquery_migration_v2_GetMigrationSubtaskRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_GetMigrationSubtaskRequest_descriptor, - new java.lang.String[] { "Name", "ReadMask", }); - internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksRequest_descriptor, - new java.lang.String[] { "Parent", "ReadMask", "PageSize", "PageToken", "Filter", }); - internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksResponse_descriptor, - new java.lang.String[] { "MigrationSubtasks", "NextPageToken", }); - 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); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MySQLDialectOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MySQLDialectOrBuilder.java deleted file mode 100644 index 1fb291c..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MySQLDialectOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2/translation_config.proto - -package com.google.cloud.bigquery.migration.v2; - -public interface MySQLDialectOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.MySQLDialect) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NetezzaDialectOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NetezzaDialectOrBuilder.java deleted file mode 100644 index 459dd4b..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NetezzaDialectOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2/translation_config.proto - -package com.google.cloud.bigquery.migration.v2; - -public interface NetezzaDialectOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.NetezzaDialect) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/OracleDialectOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/OracleDialectOrBuilder.java deleted file mode 100644 index 3e40ac3..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/OracleDialectOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2/translation_config.proto - -package com.google.cloud.bigquery.migration.v2; - -public interface OracleDialectOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.OracleDialect) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PostgresqlDialectOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PostgresqlDialectOrBuilder.java deleted file mode 100644 index a78ea9b..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PostgresqlDialectOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2/translation_config.proto - -package com.google.cloud.bigquery.migration.v2; - -public interface PostgresqlDialectOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.PostgresqlDialect) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PrestoDialectOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PrestoDialectOrBuilder.java deleted file mode 100644 index f13daf0..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PrestoDialectOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2/translation_config.proto - -package com.google.cloud.bigquery.migration.v2; - -public interface PrestoDialectOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.PrestoDialect) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/RedshiftDialectOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/RedshiftDialectOrBuilder.java deleted file mode 100644 index e9153fb..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/RedshiftDialectOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2/translation_config.proto - -package com.google.cloud.bigquery.migration.v2; - -public interface RedshiftDialectOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.RedshiftDialect) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SQLServerDialectOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SQLServerDialectOrBuilder.java deleted file mode 100644 index b8e2cfd..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SQLServerDialectOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2/translation_config.proto - -package com.google.cloud.bigquery.migration.v2; - -public interface SQLServerDialectOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.SQLServerDialect) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SnowflakeDialectOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SnowflakeDialectOrBuilder.java deleted file mode 100644 index 31b4c4a..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SnowflakeDialectOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2/translation_config.proto - -package com.google.cloud.bigquery.migration.v2; - -public interface SnowflakeDialectOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.SnowflakeDialect) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SparkSQLDialectOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SparkSQLDialectOrBuilder.java deleted file mode 100644 index 2e4186c..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SparkSQLDialectOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2/translation_config.proto - -package com.google.cloud.bigquery.migration.v2; - -public interface SparkSQLDialectOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.SparkSQLDialect) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/StartMigrationWorkflowRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/StartMigrationWorkflowRequestOrBuilder.java deleted file mode 100644 index 5ce635a..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/StartMigrationWorkflowRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2/migration_service.proto - -package com.google.cloud.bigquery.migration.v2; - -public interface StartMigrationWorkflowRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The unique identifier for the migration workflow.
-   * Example: `projects/123/locations/us/workflows/1234`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The unique identifier for the migration workflow.
-   * Example: `projects/123/locations/us/workflows/1234`
-   * 
- * - * 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/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigProto.java b/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigProto.java deleted file mode 100644 index e5386e3..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigProto.java +++ /dev/null @@ -1,341 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2/translation_config.proto - -package com.google.cloud.bigquery.migration.v2; - -public final class TranslationConfigProto { - private TranslationConfigProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_TranslationConfigDetails_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_TranslationConfigDetails_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_Dialect_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_Dialect_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_BigQueryDialect_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_BigQueryDialect_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_HiveQLDialect_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_HiveQLDialect_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_RedshiftDialect_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_RedshiftDialect_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_TeradataDialect_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_TeradataDialect_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_OracleDialect_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_OracleDialect_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_SparkSQLDialect_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_SparkSQLDialect_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_SnowflakeDialect_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_SnowflakeDialect_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_NetezzaDialect_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_NetezzaDialect_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_AzureSynapseDialect_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_AzureSynapseDialect_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_VerticaDialect_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_VerticaDialect_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_PostgresqlDialect_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_PostgresqlDialect_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_PrestoDialect_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_PrestoDialect_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_MySQLDialect_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_MySQLDialect_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2_SourceEnv_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2_SourceEnv_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/bigquery/migration/v2/tra" + - "nslation_config.proto\022\"google.cloud.bigq" + - "uery.migration.v2\"\262\003\n\030TranslationConfigD" + - "etails\022\031\n\017gcs_source_path\030\001 \001(\tH\000\022\031\n\017gcs" + - "_target_path\030\002 \001(\tH\001\022C\n\016source_dialect\030\003" + - " \001(\0132+.google.cloud.bigquery.migration.v" + - "2.Dialect\022C\n\016target_dialect\030\004 \001(\0132+.goog" + - "le.cloud.bigquery.migration.v2.Dialect\022V" + - "\n\021name_mapping_list\030\005 \001(\01329.google.cloud" + - ".bigquery.migration.v2.ObjectNameMapping" + - "ListH\002\022A\n\nsource_env\030\006 \001(\0132-.google.clou" + - "d.bigquery.migration.v2.SourceEnvB\021\n\017sou" + - "rce_locationB\021\n\017target_locationB\025\n\023outpu" + - "t_name_mapping\"\204\t\n\007Dialect\022O\n\020bigquery_d" + - "ialect\030\001 \001(\01323.google.cloud.bigquery.mig" + - "ration.v2.BigQueryDialectH\000\022K\n\016hiveql_di" + - "alect\030\002 \001(\01321.google.cloud.bigquery.migr" + - "ation.v2.HiveQLDialectH\000\022O\n\020redshift_dia" + - "lect\030\003 \001(\01323.google.cloud.bigquery.migra" + - "tion.v2.RedshiftDialectH\000\022O\n\020teradata_di" + - "alect\030\004 \001(\01323.google.cloud.bigquery.migr" + - "ation.v2.TeradataDialectH\000\022K\n\016oracle_dia" + - "lect\030\005 \001(\01321.google.cloud.bigquery.migra" + - "tion.v2.OracleDialectH\000\022O\n\020sparksql_dial" + - "ect\030\006 \001(\01323.google.cloud.bigquery.migrat" + - "ion.v2.SparkSQLDialectH\000\022Q\n\021snowflake_di" + - "alect\030\007 \001(\01324.google.cloud.bigquery.migr" + - "ation.v2.SnowflakeDialectH\000\022M\n\017netezza_d" + - "ialect\030\010 \001(\01322.google.cloud.bigquery.mig" + - "ration.v2.NetezzaDialectH\000\022X\n\025azure_syna" + - "pse_dialect\030\t \001(\01327.google.cloud.bigquer" + - "y.migration.v2.AzureSynapseDialectH\000\022M\n\017" + - "vertica_dialect\030\n \001(\01322.google.cloud.big" + - "query.migration.v2.VerticaDialectH\000\022R\n\022s" + - "ql_server_dialect\030\013 \001(\01324.google.cloud.b" + - "igquery.migration.v2.SQLServerDialectH\000\022" + - "S\n\022postgresql_dialect\030\014 \001(\01325.google.clo" + - "ud.bigquery.migration.v2.PostgresqlDiale" + - "ctH\000\022K\n\016presto_dialect\030\r \001(\01321.google.cl" + - "oud.bigquery.migration.v2.PrestoDialectH" + - "\000\022I\n\rmysql_dialect\030\016 \001(\01320.google.cloud." + - "bigquery.migration.v2.MySQLDialectH\000B\017\n\r" + - "dialect_value\"\021\n\017BigQueryDialect\"\017\n\rHive" + - "QLDialect\"\021\n\017RedshiftDialect\"\212\001\n\017Teradat" + - "aDialect\022F\n\004mode\030\001 \001(\01628.google.cloud.bi" + - "gquery.migration.v2.TeradataDialect.Mode" + - "\"/\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\007\n\003SQL\020\001\022" + - "\010\n\004BTEQ\020\002\"\017\n\rOracleDialect\"\021\n\017SparkSQLDi" + - "alect\"\022\n\020SnowflakeDialect\"\020\n\016NetezzaDial" + - "ect\"\025\n\023AzureSynapseDialect\"\020\n\016VerticaDia" + - "lect\"\022\n\020SQLServerDialect\"\023\n\021PostgresqlDi" + - "alect\"\017\n\rPrestoDialect\"\016\n\014MySQLDialect\"`" + - "\n\025ObjectNameMappingList\022G\n\010name_map\030\001 \003(" + - "\01325.google.cloud.bigquery.migration.v2.O" + - "bjectNameMapping\"\235\001\n\021ObjectNameMapping\022B" + - "\n\006source\030\001 \001(\01322.google.cloud.bigquery.m" + - "igration.v2.NameMappingKey\022D\n\006target\030\002 \001" + - "(\01324.google.cloud.bigquery.migration.v2." + - "NameMappingValue\"\253\002\n\016NameMappingKey\022E\n\004t" + - "ype\030\001 \001(\01627.google.cloud.bigquery.migrat" + - "ion.v2.NameMappingKey.Type\022\020\n\010database\030\002" + - " \001(\t\022\016\n\006schema\030\003 \001(\t\022\020\n\010relation\030\004 \001(\t\022\021" + - "\n\tattribute\030\005 \001(\t\"\212\001\n\004Type\022\024\n\020TYPE_UNSPE" + - "CIFIED\020\000\022\014\n\010DATABASE\020\001\022\n\n\006SCHEMA\020\002\022\014\n\010RE" + - "LATION\020\003\022\r\n\tATTRIBUTE\020\004\022\022\n\016RELATION_ALIA" + - "S\020\005\022\023\n\017ATTRIBUTE_ALIAS\020\006\022\014\n\010FUNCTION\020\007\"Y" + - "\n\020NameMappingValue\022\020\n\010database\030\001 \001(\t\022\016\n\006" + - "schema\030\002 \001(\t\022\020\n\010relation\030\003 \001(\t\022\021\n\tattrib" + - "ute\030\004 \001(\t\"A\n\tSourceEnv\022\030\n\020default_databa" + - "se\030\001 \001(\t\022\032\n\022schema_search_path\030\002 \003(\tB\322\001\n" + - "&com.google.cloud.bigquery.migration.v2B" + - "\026TranslationConfigProtoP\001ZDcloud.google." + - "com/go/bigquery/migration/apiv2/migratio" + - "npb;migrationpb\252\002\"Google.Cloud.BigQuery." + - "Migration.V2\312\002\"Google\\Cloud\\BigQuery\\Mig" + - "ration\\V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_bigquery_migration_v2_TranslationConfigDetails_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_migration_v2_TranslationConfigDetails_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_TranslationConfigDetails_descriptor, - new java.lang.String[] { "GcsSourcePath", "GcsTargetPath", "SourceDialect", "TargetDialect", "NameMappingList", "SourceEnv", "SourceLocation", "TargetLocation", "OutputNameMapping", }); - internal_static_google_cloud_bigquery_migration_v2_Dialect_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_migration_v2_Dialect_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_Dialect_descriptor, - new java.lang.String[] { "BigqueryDialect", "HiveqlDialect", "RedshiftDialect", "TeradataDialect", "OracleDialect", "SparksqlDialect", "SnowflakeDialect", "NetezzaDialect", "AzureSynapseDialect", "VerticaDialect", "SqlServerDialect", "PostgresqlDialect", "PrestoDialect", "MysqlDialect", "DialectValue", }); - internal_static_google_cloud_bigquery_migration_v2_BigQueryDialect_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_migration_v2_BigQueryDialect_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_BigQueryDialect_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_bigquery_migration_v2_HiveQLDialect_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_bigquery_migration_v2_HiveQLDialect_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_HiveQLDialect_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_bigquery_migration_v2_RedshiftDialect_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_bigquery_migration_v2_RedshiftDialect_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_RedshiftDialect_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_bigquery_migration_v2_TeradataDialect_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_bigquery_migration_v2_TeradataDialect_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_TeradataDialect_descriptor, - new java.lang.String[] { "Mode", }); - internal_static_google_cloud_bigquery_migration_v2_OracleDialect_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_bigquery_migration_v2_OracleDialect_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_OracleDialect_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_bigquery_migration_v2_SparkSQLDialect_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_bigquery_migration_v2_SparkSQLDialect_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_SparkSQLDialect_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_bigquery_migration_v2_SnowflakeDialect_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_bigquery_migration_v2_SnowflakeDialect_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_SnowflakeDialect_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_bigquery_migration_v2_NetezzaDialect_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_bigquery_migration_v2_NetezzaDialect_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_NetezzaDialect_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_bigquery_migration_v2_AzureSynapseDialect_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_bigquery_migration_v2_AzureSynapseDialect_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_AzureSynapseDialect_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_bigquery_migration_v2_VerticaDialect_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_bigquery_migration_v2_VerticaDialect_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_VerticaDialect_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_bigquery_migration_v2_PostgresqlDialect_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_bigquery_migration_v2_PostgresqlDialect_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_PostgresqlDialect_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_bigquery_migration_v2_PrestoDialect_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_bigquery_migration_v2_PrestoDialect_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_PrestoDialect_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_bigquery_migration_v2_MySQLDialect_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_bigquery_migration_v2_MySQLDialect_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_MySQLDialect_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_descriptor, - new java.lang.String[] { "NameMap", }); - internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_descriptor, - new java.lang.String[] { "Source", "Target", }); - internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_descriptor, - new java.lang.String[] { "Type", "Database", "Schema", "Relation", "Attribute", }); - internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_descriptor, - new java.lang.String[] { "Database", "Schema", "Relation", "Attribute", }); - internal_static_google_cloud_bigquery_migration_v2_SourceEnv_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_bigquery_migration_v2_SourceEnv_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2_SourceEnv_descriptor, - new java.lang.String[] { "DefaultDatabase", "SchemaSearchPath", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/VerticaDialectOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/VerticaDialectOrBuilder.java deleted file mode 100644 index 2260e58..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/VerticaDialectOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2/translation_config.proto - -package com.google.cloud.bigquery.migration.v2; - -public interface VerticaDialectOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.VerticaDialect) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v2alpha/grpc-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceGrpc.java b/owl-bot-staging/v2alpha/grpc-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceGrpc.java deleted file mode 100644 index bea6c3b..0000000 --- a/owl-bot-staging/v2alpha/grpc-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceGrpc.java +++ /dev/null @@ -1,831 +0,0 @@ -package com.google.cloud.bigquery.migration.v2alpha; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Service to handle EDW migrations.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/migration/v2alpha/migration_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class MigrationServiceGrpc { - - private MigrationServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.bigquery.migration.v2alpha.MigrationService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateMigrationWorkflowMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateMigrationWorkflow", - requestType = com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest.class, - responseType = com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateMigrationWorkflowMethod() { - io.grpc.MethodDescriptor getCreateMigrationWorkflowMethod; - if ((getCreateMigrationWorkflowMethod = MigrationServiceGrpc.getCreateMigrationWorkflowMethod) == null) { - synchronized (MigrationServiceGrpc.class) { - if ((getCreateMigrationWorkflowMethod = MigrationServiceGrpc.getCreateMigrationWorkflowMethod) == null) { - MigrationServiceGrpc.getCreateMigrationWorkflowMethod = getCreateMigrationWorkflowMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMigrationWorkflow")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.getDefaultInstance())) - .setSchemaDescriptor(new MigrationServiceMethodDescriptorSupplier("CreateMigrationWorkflow")) - .build(); - } - } - } - return getCreateMigrationWorkflowMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetMigrationWorkflowMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMigrationWorkflow", - requestType = com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest.class, - responseType = com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetMigrationWorkflowMethod() { - io.grpc.MethodDescriptor getGetMigrationWorkflowMethod; - if ((getGetMigrationWorkflowMethod = MigrationServiceGrpc.getGetMigrationWorkflowMethod) == null) { - synchronized (MigrationServiceGrpc.class) { - if ((getGetMigrationWorkflowMethod = MigrationServiceGrpc.getGetMigrationWorkflowMethod) == null) { - MigrationServiceGrpc.getGetMigrationWorkflowMethod = getGetMigrationWorkflowMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMigrationWorkflow")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.getDefaultInstance())) - .setSchemaDescriptor(new MigrationServiceMethodDescriptorSupplier("GetMigrationWorkflow")) - .build(); - } - } - } - return getGetMigrationWorkflowMethod; - } - - private static volatile io.grpc.MethodDescriptor getListMigrationWorkflowsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListMigrationWorkflows", - requestType = com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest.class, - responseType = com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListMigrationWorkflowsMethod() { - io.grpc.MethodDescriptor getListMigrationWorkflowsMethod; - if ((getListMigrationWorkflowsMethod = MigrationServiceGrpc.getListMigrationWorkflowsMethod) == null) { - synchronized (MigrationServiceGrpc.class) { - if ((getListMigrationWorkflowsMethod = MigrationServiceGrpc.getListMigrationWorkflowsMethod) == null) { - MigrationServiceGrpc.getListMigrationWorkflowsMethod = getListMigrationWorkflowsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMigrationWorkflows")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse.getDefaultInstance())) - .setSchemaDescriptor(new MigrationServiceMethodDescriptorSupplier("ListMigrationWorkflows")) - .build(); - } - } - } - return getListMigrationWorkflowsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteMigrationWorkflowMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteMigrationWorkflow", - requestType = com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteMigrationWorkflowMethod() { - io.grpc.MethodDescriptor getDeleteMigrationWorkflowMethod; - if ((getDeleteMigrationWorkflowMethod = MigrationServiceGrpc.getDeleteMigrationWorkflowMethod) == null) { - synchronized (MigrationServiceGrpc.class) { - if ((getDeleteMigrationWorkflowMethod = MigrationServiceGrpc.getDeleteMigrationWorkflowMethod) == null) { - MigrationServiceGrpc.getDeleteMigrationWorkflowMethod = getDeleteMigrationWorkflowMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMigrationWorkflow")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new MigrationServiceMethodDescriptorSupplier("DeleteMigrationWorkflow")) - .build(); - } - } - } - return getDeleteMigrationWorkflowMethod; - } - - private static volatile io.grpc.MethodDescriptor getStartMigrationWorkflowMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartMigrationWorkflow", - requestType = com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStartMigrationWorkflowMethod() { - io.grpc.MethodDescriptor getStartMigrationWorkflowMethod; - if ((getStartMigrationWorkflowMethod = MigrationServiceGrpc.getStartMigrationWorkflowMethod) == null) { - synchronized (MigrationServiceGrpc.class) { - if ((getStartMigrationWorkflowMethod = MigrationServiceGrpc.getStartMigrationWorkflowMethod) == null) { - MigrationServiceGrpc.getStartMigrationWorkflowMethod = getStartMigrationWorkflowMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartMigrationWorkflow")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new MigrationServiceMethodDescriptorSupplier("StartMigrationWorkflow")) - .build(); - } - } - } - return getStartMigrationWorkflowMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetMigrationSubtaskMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMigrationSubtask", - requestType = com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest.class, - responseType = com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetMigrationSubtaskMethod() { - io.grpc.MethodDescriptor getGetMigrationSubtaskMethod; - if ((getGetMigrationSubtaskMethod = MigrationServiceGrpc.getGetMigrationSubtaskMethod) == null) { - synchronized (MigrationServiceGrpc.class) { - if ((getGetMigrationSubtaskMethod = MigrationServiceGrpc.getGetMigrationSubtaskMethod) == null) { - MigrationServiceGrpc.getGetMigrationSubtaskMethod = getGetMigrationSubtaskMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMigrationSubtask")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.getDefaultInstance())) - .setSchemaDescriptor(new MigrationServiceMethodDescriptorSupplier("GetMigrationSubtask")) - .build(); - } - } - } - return getGetMigrationSubtaskMethod; - } - - private static volatile io.grpc.MethodDescriptor getListMigrationSubtasksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListMigrationSubtasks", - requestType = com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest.class, - responseType = com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListMigrationSubtasksMethod() { - io.grpc.MethodDescriptor getListMigrationSubtasksMethod; - if ((getListMigrationSubtasksMethod = MigrationServiceGrpc.getListMigrationSubtasksMethod) == null) { - synchronized (MigrationServiceGrpc.class) { - if ((getListMigrationSubtasksMethod = MigrationServiceGrpc.getListMigrationSubtasksMethod) == null) { - MigrationServiceGrpc.getListMigrationSubtasksMethod = getListMigrationSubtasksMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMigrationSubtasks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse.getDefaultInstance())) - .setSchemaDescriptor(new MigrationServiceMethodDescriptorSupplier("ListMigrationSubtasks")) - .build(); - } - } - } - return getListMigrationSubtasksMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static MigrationServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public MigrationServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MigrationServiceStub(channel, callOptions); - } - }; - return MigrationServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static MigrationServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public MigrationServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MigrationServiceBlockingStub(channel, callOptions); - } - }; - return MigrationServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static MigrationServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public MigrationServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MigrationServiceFutureStub(channel, callOptions); - } - }; - return MigrationServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service to handle EDW migrations.
-   * 
- */ - public static abstract class MigrationServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a migration workflow.
-     * 
- */ - public void createMigrationWorkflow(com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMigrationWorkflowMethod(), responseObserver); - } - - /** - *
-     * Gets a previously created migration workflow.
-     * 
- */ - public void getMigrationWorkflow(com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMigrationWorkflowMethod(), responseObserver); - } - - /** - *
-     * Lists previously created migration workflow.
-     * 
- */ - public void listMigrationWorkflows(com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMigrationWorkflowsMethod(), responseObserver); - } - - /** - *
-     * Deletes a migration workflow by name.
-     * 
- */ - public void deleteMigrationWorkflow(com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMigrationWorkflowMethod(), responseObserver); - } - - /** - *
-     * Starts a previously created migration workflow. I.e., the state transitions
-     * from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
-     * An error will be signaled if the state is anything other than DRAFT or
-     * RUNNING.
-     * 
- */ - public void startMigrationWorkflow(com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartMigrationWorkflowMethod(), responseObserver); - } - - /** - *
-     * Gets a previously created migration subtask.
-     * 
- */ - public void getMigrationSubtask(com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMigrationSubtaskMethod(), responseObserver); - } - - /** - *
-     * Lists previously created migration subtasks.
-     * 
- */ - public void listMigrationSubtasks(com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMigrationSubtasksMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateMigrationWorkflowMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest, - com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow>( - this, METHODID_CREATE_MIGRATION_WORKFLOW))) - .addMethod( - getGetMigrationWorkflowMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest, - com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow>( - this, METHODID_GET_MIGRATION_WORKFLOW))) - .addMethod( - getListMigrationWorkflowsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest, - com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse>( - this, METHODID_LIST_MIGRATION_WORKFLOWS))) - .addMethod( - getDeleteMigrationWorkflowMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_MIGRATION_WORKFLOW))) - .addMethod( - getStartMigrationWorkflowMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest, - com.google.protobuf.Empty>( - this, METHODID_START_MIGRATION_WORKFLOW))) - .addMethod( - getGetMigrationSubtaskMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest, - com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask>( - this, METHODID_GET_MIGRATION_SUBTASK))) - .addMethod( - getListMigrationSubtasksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest, - com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse>( - this, METHODID_LIST_MIGRATION_SUBTASKS))) - .build(); - } - } - - /** - *
-   * Service to handle EDW migrations.
-   * 
- */ - public static final class MigrationServiceStub extends io.grpc.stub.AbstractAsyncStub { - private MigrationServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MigrationServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MigrationServiceStub(channel, callOptions); - } - - /** - *
-     * Creates a migration workflow.
-     * 
- */ - public void createMigrationWorkflow(com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateMigrationWorkflowMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a previously created migration workflow.
-     * 
- */ - public void getMigrationWorkflow(com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMigrationWorkflowMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists previously created migration workflow.
-     * 
- */ - public void listMigrationWorkflows(com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMigrationWorkflowsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a migration workflow by name.
-     * 
- */ - public void deleteMigrationWorkflow(com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteMigrationWorkflowMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Starts a previously created migration workflow. I.e., the state transitions
-     * from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
-     * An error will be signaled if the state is anything other than DRAFT or
-     * RUNNING.
-     * 
- */ - public void startMigrationWorkflow(com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartMigrationWorkflowMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a previously created migration subtask.
-     * 
- */ - public void getMigrationSubtask(com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMigrationSubtaskMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists previously created migration subtasks.
-     * 
- */ - public void listMigrationSubtasks(com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMigrationSubtasksMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Service to handle EDW migrations.
-   * 
- */ - public static final class MigrationServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private MigrationServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MigrationServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MigrationServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a migration workflow.
-     * 
- */ - public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow createMigrationWorkflow(com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateMigrationWorkflowMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a previously created migration workflow.
-     * 
- */ - public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow getMigrationWorkflow(com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMigrationWorkflowMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists previously created migration workflow.
-     * 
- */ - public com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse listMigrationWorkflows(com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMigrationWorkflowsMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a migration workflow by name.
-     * 
- */ - public com.google.protobuf.Empty deleteMigrationWorkflow(com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteMigrationWorkflowMethod(), getCallOptions(), request); - } - - /** - *
-     * Starts a previously created migration workflow. I.e., the state transitions
-     * from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
-     * An error will be signaled if the state is anything other than DRAFT or
-     * RUNNING.
-     * 
- */ - public com.google.protobuf.Empty startMigrationWorkflow(com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartMigrationWorkflowMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a previously created migration subtask.
-     * 
- */ - public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask getMigrationSubtask(com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMigrationSubtaskMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists previously created migration subtasks.
-     * 
- */ - public com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse listMigrationSubtasks(com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMigrationSubtasksMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Service to handle EDW migrations.
-   * 
- */ - public static final class MigrationServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private MigrationServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MigrationServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MigrationServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a migration workflow.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createMigrationWorkflow( - com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateMigrationWorkflowMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a previously created migration workflow.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getMigrationWorkflow( - com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMigrationWorkflowMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists previously created migration workflow.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listMigrationWorkflows( - com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMigrationWorkflowsMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a migration workflow by name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteMigrationWorkflow( - com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteMigrationWorkflowMethod(), getCallOptions()), request); - } - - /** - *
-     * Starts a previously created migration workflow. I.e., the state transitions
-     * from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
-     * An error will be signaled if the state is anything other than DRAFT or
-     * RUNNING.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture startMigrationWorkflow( - com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartMigrationWorkflowMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a previously created migration subtask.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getMigrationSubtask( - com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMigrationSubtaskMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists previously created migration subtasks.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listMigrationSubtasks( - com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMigrationSubtasksMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_MIGRATION_WORKFLOW = 0; - private static final int METHODID_GET_MIGRATION_WORKFLOW = 1; - private static final int METHODID_LIST_MIGRATION_WORKFLOWS = 2; - private static final int METHODID_DELETE_MIGRATION_WORKFLOW = 3; - private static final int METHODID_START_MIGRATION_WORKFLOW = 4; - private static final int METHODID_GET_MIGRATION_SUBTASK = 5; - private static final int METHODID_LIST_MIGRATION_SUBTASKS = 6; - - 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 MigrationServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(MigrationServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_MIGRATION_WORKFLOW: - serviceImpl.createMigrationWorkflow((com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_MIGRATION_WORKFLOW: - serviceImpl.getMigrationWorkflow((com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_MIGRATION_WORKFLOWS: - serviceImpl.listMigrationWorkflows((com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_MIGRATION_WORKFLOW: - serviceImpl.deleteMigrationWorkflow((com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_MIGRATION_WORKFLOW: - serviceImpl.startMigrationWorkflow((com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_MIGRATION_SUBTASK: - serviceImpl.getMigrationSubtask((com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_MIGRATION_SUBTASKS: - serviceImpl.listMigrationSubtasks((com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest) 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 MigrationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - MigrationServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("MigrationService"); - } - } - - private static final class MigrationServiceFileDescriptorSupplier - extends MigrationServiceBaseDescriptorSupplier { - MigrationServiceFileDescriptorSupplier() {} - } - - private static final class MigrationServiceMethodDescriptorSupplier - extends MigrationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - MigrationServiceMethodDescriptorSupplier(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 (MigrationServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new MigrationServiceFileDescriptorSupplier()) - .addMethod(getCreateMigrationWorkflowMethod()) - .addMethod(getGetMigrationWorkflowMethod()) - .addMethod(getListMigrationWorkflowsMethod()) - .addMethod(getDeleteMigrationWorkflowMethod()) - .addMethod(getStartMigrationWorkflowMethod()) - .addMethod(getGetMigrationSubtaskMethod()) - .addMethod(getListMigrationSubtasksMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentTaskProto.java b/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentTaskProto.java deleted file mode 100644 index aba7eb1..0000000 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentTaskProto.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2alpha/assessment_task.proto - -package com.google.cloud.bigquery.migration.v2alpha; - -public final class AssessmentTaskProto { - private AssessmentTaskProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentTaskDetails_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentTaskDetails_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentOrchestrationResultDetails_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentOrchestrationResultDetails_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/bigquery/migration/v2alph" + - "a/assessment_task.proto\022\'google.cloud.bi" + - "gquery.migration.v2alpha\032\037google/api/fie" + - "ld_behavior.proto\"\204\001\n\025AssessmentTaskDeta" + - "ils\022\027\n\ninput_path\030\001 \001(\tB\003\340A\002\022\033\n\016output_d" + - "ataset\030\002 \001(\tB\003\340A\002\022\033\n\016querylogs_path\030\003 \001(" + - "\tB\003\340A\001\022\030\n\013data_source\030\004 \001(\tB\003\340A\002\"Q\n$Asse" + - "ssmentOrchestrationResultDetails\022)\n\034outp" + - "ut_tables_schema_version\030\001 \001(\tB\003\340A\001B\343\001\n+" + - "com.google.cloud.bigquery.migration.v2al" + - "phaB\023AssessmentTaskProtoP\001ZIcloud.google" + - ".com/go/bigquery/migration/apiv2alpha/mi" + - "grationpb;migrationpb\252\002\'Google.Cloud.Big" + - "Query.Migration.V2Alpha\312\002\'Google\\Cloud\\B" + - "igQuery\\Migration\\V2alphab\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentTaskDetails_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentTaskDetails_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentTaskDetails_descriptor, - new java.lang.String[] { "InputPath", "OutputDataset", "QuerylogsPath", "DataSource", }); - internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentOrchestrationResultDetails_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentOrchestrationResultDetails_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentOrchestrationResultDetails_descriptor, - new java.lang.String[] { "OutputTablesSchemaVersion", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/CreateMigrationWorkflowRequestOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/CreateMigrationWorkflowRequestOrBuilder.java deleted file mode 100644 index 2fe965b..0000000 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/CreateMigrationWorkflowRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2alpha/migration_service.proto - -package com.google.cloud.bigquery.migration.v2alpha; - -public interface CreateMigrationWorkflowRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the project to which this migration workflow belongs.
-   * Example: `projects/foo/locations/bar`
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The name of the project to which this migration workflow belongs.
-   * Example: `projects/foo/locations/bar`
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The migration workflow to create.
-   * 
- * - * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the migrationWorkflow field is set. - */ - boolean hasMigrationWorkflow(); - /** - *
-   * Required. The migration workflow to create.
-   * 
- * - * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The migrationWorkflow. - */ - com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow getMigrationWorkflow(); - /** - *
-   * Required. The migration workflow to create.
-   * 
- * - * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder getMigrationWorkflowOrBuilder(); -} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DeleteMigrationWorkflowRequestOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DeleteMigrationWorkflowRequestOrBuilder.java deleted file mode 100644 index 2efafe0..0000000 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DeleteMigrationWorkflowRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2alpha/migration_service.proto - -package com.google.cloud.bigquery.migration.v2alpha; - -public interface DeleteMigrationWorkflowRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The unique identifier for the migration workflow.
-   * Example: `projects/123/locations/us/workflows/1234`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The unique identifier for the migration workflow.
-   * Example: `projects/123/locations/us/workflows/1234`
-   * 
- * - * 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/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/IdentifierSettingsOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/IdentifierSettingsOrBuilder.java deleted file mode 100644 index 3651d52..0000000 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/IdentifierSettingsOrBuilder.java +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2alpha/translation_task.proto - -package com.google.cloud.bigquery.migration.v2alpha; - -public interface IdentifierSettingsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.IdentifierSettings) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The setting to control output queries' identifier case.
-   * 
- * - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase output_identifier_case = 1; - * @return The enum numeric value on the wire for outputIdentifierCase. - */ - int getOutputIdentifierCaseValue(); - /** - *
-   * The setting to control output queries' identifier case.
-   * 
- * - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase output_identifier_case = 1; - * @return The outputIdentifierCase. - */ - com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase getOutputIdentifierCase(); - - /** - *
-   * Specifies the rewrite mode for SQL identifiers.
-   * 
- * - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode identifier_rewrite_mode = 2; - * @return The enum numeric value on the wire for identifierRewriteMode. - */ - int getIdentifierRewriteModeValue(); - /** - *
-   * Specifies the rewrite mode for SQL identifiers.
-   * 
- * - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode identifier_rewrite_mode = 2; - * @return The identifierRewriteMode. - */ - com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode getIdentifierRewriteMode(); -} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationEntitiesProto.java b/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationEntitiesProto.java deleted file mode 100644 index a9a321a..0000000 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationEntitiesProto.java +++ /dev/null @@ -1,191 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2alpha/migration_entities.proto - -package com.google.cloud.bigquery.migration.v2alpha; - -public final class MigrationEntitiesProto { - private MigrationEntitiesProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_TasksEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_TasksEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTask_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTask_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_MigrationSubtask_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_MigrationSubtask_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTaskOrchestrationResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTaskOrchestrationResult_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/bigquery/migration/v2alph" + - "a/migration_entities.proto\022\'google.cloud" + - ".bigquery.migration.v2alpha\032\037google/api/" + - "field_behavior.proto\032\031google/api/resourc" + - "e.proto\032=google/cloud/bigquery/migration" + - "/v2alpha/assessment_task.proto\032Egoogle/c" + - "loud/bigquery/migration/v2alpha/migratio" + - "n_error_details.proto\032?google/cloud/bigq" + - "uery/migration/v2alpha/migration_metrics" + - ".proto\032>google/cloud/bigquery/migration/" + - "v2alpha/translation_task.proto\032\031google/p" + - "rotobuf/any.proto\032\037google/protobuf/times" + - "tamp.proto\032\036google/rpc/error_details.pro" + - "to\"\202\005\n\021MigrationWorkflow\022\024\n\004name\030\001 \001(\tB\006" + - "\340A\003\340A\005\022\024\n\014display_name\030\006 \001(\t\022T\n\005tasks\030\002 " + - "\003(\0132E.google.cloud.bigquery.migration.v2" + - "alpha.MigrationWorkflow.TasksEntry\022T\n\005st" + - "ate\030\003 \001(\0162@.google.cloud.bigquery.migrat" + - "ion.v2alpha.MigrationWorkflow.StateB\003\340A\003" + - "\022/\n\013create_time\030\004 \001(\0132\032.google.protobuf." + - "Timestamp\0224\n\020last_update_time\030\005 \001(\0132\032.go" + - "ogle.protobuf.Timestamp\032d\n\nTasksEntry\022\013\n" + - "\003key\030\001 \001(\t\022E\n\005value\030\002 \001(\01326.google.cloud" + - ".bigquery.migration.v2alpha.MigrationTas" + - "k:\0028\001\"Q\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n" + - "\005DRAFT\020\001\022\013\n\007RUNNING\020\002\022\n\n\006PAUSED\020\003\022\r\n\tCOM" + - "PLETED\020\004:u\352Ar\n2bigquerymigration.googlea" + - "pis.com/MigrationWorkflow\022.google.cloud.bigque" + - "ry.migration.v2alpha.AssessmentTaskDetai" + - "lsH\000\022c\n\030translation_task_details\030\r \001(\0132?" + - ".google.cloud.bigquery.migration.v2alpha" + - ".TranslationTaskDetailsH\000\022\022\n\002id\030\001 \001(\tB\006\340" + - "A\003\340A\005\022\014\n\004type\030\002 \001(\t\022%\n\007details\030\003 \001(\0132\024.g" + - "oogle.protobuf.Any\022P\n\005state\030\004 \001(\0162<.goog" + - "le.cloud.bigquery.migration.v2alpha.Migr" + - "ationTask.StateB\003\340A\003\0224\n\020processing_error" + - "\030\005 \001(\0132\025.google.rpc.ErrorInfoB\003\340A\003\022/\n\013cr" + - "eate_time\030\006 \001(\0132\032.google.protobuf.Timest" + - "amp\0224\n\020last_update_time\030\007 \001(\0132\032.google.p" + - "rotobuf.Timestamp\022l\n\024orchestration_resul" + - "t\030\n \001(\0132I.google.cloud.bigquery.migratio" + - "n.v2alpha.MigrationTaskOrchestrationResu" + - "ltB\003\340A\003\"r\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + - "\013\n\007PENDING\020\001\022\021\n\rORCHESTRATING\020\002\022\013\n\007RUNNI" + - "NG\020\003\022\n\n\006PAUSED\020\004\022\r\n\tSUCCEEDED\020\005\022\n\n\006FAILE" + - "D\020\006B\016\n\014task_details\"\353\005\n\020MigrationSubtask" + - "\022\024\n\004name\030\001 \001(\tB\006\340A\003\340A\005\022\017\n\007task_id\030\002 \001(\t\022" + - "\014\n\004type\030\003 \001(\t\022S\n\005state\030\005 \001(\0162?.google.cl" + - "oud.bigquery.migration.v2alpha.Migration" + - "Subtask.StateB\003\340A\003\0224\n\020processing_error\030\006" + - " \001(\0132\025.google.rpc.ErrorInfoB\003\340A\003\022a\n\026reso" + - "urce_error_details\030\014 \003(\0132<.google.cloud." + - "bigquery.migration.v2alpha.ResourceError" + - "DetailB\003\340A\003\022\034\n\024resource_error_count\030\r \001(" + - "\005\022/\n\013create_time\030\007 \001(\0132\032.google.protobuf" + - ".Timestamp\0224\n\020last_update_time\030\010 \001(\0132\032.g" + - "oogle.protobuf.Timestamp\022D\n\007metrics\030\013 \003(" + - "\01323.google.cloud.bigquery.migration.v2al" + - "pha.TimeSeries\"^\n\005State\022\025\n\021STATE_UNSPECI" + - "FIED\020\000\022\n\n\006ACTIVE\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCCE" + - "EDED\020\003\022\n\n\006FAILED\020\004\022\n\n\006PAUSED\020\005:\210\001\352A\204\001\n1b" + - "igquerymigration.googleapis.com/Migratio" + - "nSubtask\022Oprojects/{project}/locations/{" + - "location}/workflows/{workflow}/subtasks/" + - "{subtask}\"\232\001\n MigrationTaskOrchestration" + - "Result\022k\n\022assessment_details\030\001 \001(\0132M.goo" + - "gle.cloud.bigquery.migration.v2alpha.Ass" + - "essmentOrchestrationResultDetailsH\000B\t\n\007d" + - "etailsB\346\001\n+com.google.cloud.bigquery.mig" + - "ration.v2alphaB\026MigrationEntitiesProtoP\001" + - "ZIcloud.google.com/go/bigquery/migration" + - "/apiv2alpha/migrationpb;migrationpb\252\002\'Go" + - "ogle.Cloud.BigQuery.Migration.V2Alpha\312\002\'" + - "Google\\Cloud\\BigQuery\\Migration\\V2alphab" + - "\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.cloud.bigquery.migration.v2alpha.AssessmentTaskProto.getDescriptor(), - com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto.getDescriptor(), - com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.getDescriptor(), - com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.ErrorDetailsProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Tasks", "State", "CreateTime", "LastUpdateTime", }); - internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_TasksEntry_descriptor = - internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_TasksEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_TasksEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTask_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTask_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTask_descriptor, - new java.lang.String[] { "AssessmentTaskDetails", "TranslationTaskDetails", "Id", "Type", "Details", "State", "ProcessingError", "CreateTime", "LastUpdateTime", "OrchestrationResult", "TaskDetails", }); - internal_static_google_cloud_bigquery_migration_v2alpha_MigrationSubtask_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_migration_v2alpha_MigrationSubtask_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_MigrationSubtask_descriptor, - new java.lang.String[] { "Name", "TaskId", "Type", "State", "ProcessingError", "ResourceErrorDetails", "ResourceErrorCount", "CreateTime", "LastUpdateTime", "Metrics", }); - internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTaskOrchestrationResult_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTaskOrchestrationResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTaskOrchestrationResult_descriptor, - new java.lang.String[] { "AssessmentDetails", "Details", }); - 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.cloud.bigquery.migration.v2alpha.AssessmentTaskProto.getDescriptor(); - com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto.getDescriptor(); - com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.getDescriptor(); - com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.ErrorDetailsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationErrorDetailsProto.java b/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationErrorDetailsProto.java deleted file mode 100644 index a4db4e5..0000000 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationErrorDetailsProto.java +++ /dev/null @@ -1,97 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2alpha/migration_error_details.proto - -package com.google.cloud.bigquery.migration.v2alpha; - -public final class MigrationErrorDetailsProto { - private MigrationErrorDetailsProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_ResourceErrorDetail_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_ResourceErrorDetail_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_ErrorDetail_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_ErrorDetail_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_ErrorLocation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_ErrorLocation_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nEgoogle/cloud/bigquery/migration/v2alph" + - "a/migration_error_details.proto\022\'google." + - "cloud.bigquery.migration.v2alpha\032\037google" + - "/api/field_behavior.proto\032\036google/rpc/er" + - "ror_details.proto\"\267\001\n\023ResourceErrorDetai" + - "l\0224\n\rresource_info\030\001 \001(\0132\030.google.rpc.Re" + - "sourceInfoB\003\340A\002\022P\n\rerror_details\030\002 \003(\01324" + - ".google.cloud.bigquery.migration.v2alpha" + - ".ErrorDetailB\003\340A\002\022\030\n\013error_count\030\003 \001(\005B\003" + - "\340A\002\"\214\001\n\013ErrorDetail\022M\n\010location\030\001 \001(\01326." + - "google.cloud.bigquery.migration.v2alpha." + - "ErrorLocationB\003\340A\001\022.\n\nerror_info\030\002 \001(\0132\025" + - ".google.rpc.ErrorInfoB\003\340A\002\"7\n\rErrorLocat" + - "ion\022\021\n\004line\030\001 \001(\005B\003\340A\001\022\023\n\006column\030\002 \001(\005B\003" + - "\340A\001B\352\001\n+com.google.cloud.bigquery.migrat" + - "ion.v2alphaB\032MigrationErrorDetailsProtoP" + - "\001ZIcloud.google.com/go/bigquery/migratio" + - "n/apiv2alpha/migrationpb;migrationpb\252\002\'G" + - "oogle.Cloud.BigQuery.Migration.V2Alpha\312\002" + - "\'Google\\Cloud\\BigQuery\\Migration\\V2alpha" + - "b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.rpc.ErrorDetailsProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_migration_v2alpha_ResourceErrorDetail_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_migration_v2alpha_ResourceErrorDetail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_ResourceErrorDetail_descriptor, - new java.lang.String[] { "ResourceInfo", "ErrorDetails", "ErrorCount", }); - internal_static_google_cloud_bigquery_migration_v2alpha_ErrorDetail_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_migration_v2alpha_ErrorDetail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_ErrorDetail_descriptor, - new java.lang.String[] { "Location", "ErrorInfo", }); - internal_static_google_cloud_bigquery_migration_v2alpha_ErrorLocation_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_migration_v2alpha_ErrorLocation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_ErrorLocation_descriptor, - new java.lang.String[] { "Line", "Column", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.rpc.ErrorDetailsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationMetricsProto.java b/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationMetricsProto.java deleted file mode 100644 index 061421d..0000000 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationMetricsProto.java +++ /dev/null @@ -1,120 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2alpha/migration_metrics.proto - -package com.google.cloud.bigquery.migration.v2alpha; - -public final class MigrationMetricsProto { - private MigrationMetricsProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_TimeSeries_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_TimeSeries_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_Point_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_Point_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_TimeInterval_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_TimeInterval_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_TypedValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_TypedValue_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/bigquery/migration/v2alph" + - "a/migration_metrics.proto\022\'google.cloud." + - "bigquery.migration.v2alpha\032\035google/api/d" + - "istribution.proto\032\037google/api/field_beha" + - "vior.proto\032\027google/api/metric.proto\032\037goo" + - "gle/protobuf/timestamp.proto\"\352\001\n\nTimeSer" + - "ies\022\023\n\006metric\030\001 \001(\tB\003\340A\002\022?\n\nvalue_type\030\002" + - " \001(\0162&.google.api.MetricDescriptor.Value" + - "TypeB\003\340A\002\022A\n\013metric_kind\030\003 \001(\0162\'.google." + - "api.MetricDescriptor.MetricKindB\003\340A\001\022C\n\006" + - "points\030\004 \003(\0132..google.cloud.bigquery.mig" + - "ration.v2alpha.PointB\003\340A\002\"\224\001\n\005Point\022G\n\010i" + - "nterval\030\001 \001(\01325.google.cloud.bigquery.mi" + - "gration.v2alpha.TimeInterval\022B\n\005value\030\002 " + - "\001(\01323.google.cloud.bigquery.migration.v2" + - "alpha.TypedValue\"v\n\014TimeInterval\0223\n\nstar" + - "t_time\030\001 \001(\0132\032.google.protobuf.Timestamp" + - "B\003\340A\001\0221\n\010end_time\030\002 \001(\0132\032.google.protobu" + - "f.TimestampB\003\340A\002\"\252\001\n\nTypedValue\022\024\n\nbool_" + - "value\030\001 \001(\010H\000\022\025\n\013int64_value\030\002 \001(\003H\000\022\026\n\014" + - "double_value\030\003 \001(\001H\000\022\026\n\014string_value\030\004 \001" + - "(\tH\000\0226\n\022distribution_value\030\005 \001(\0132\030.googl" + - "e.api.DistributionH\000B\007\n\005valueB\345\001\n+com.go" + - "ogle.cloud.bigquery.migration.v2alphaB\025M" + - "igrationMetricsProtoP\001ZIcloud.google.com" + - "/go/bigquery/migration/apiv2alpha/migrat" + - "ionpb;migrationpb\252\002\'Google.Cloud.BigQuer" + - "y.Migration.V2Alpha\312\002\'Google\\Cloud\\BigQu" + - "ery\\Migration\\V2alphab\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.DistributionProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.MetricProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_migration_v2alpha_TimeSeries_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_migration_v2alpha_TimeSeries_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_TimeSeries_descriptor, - new java.lang.String[] { "Metric", "ValueType", "MetricKind", "Points", }); - internal_static_google_cloud_bigquery_migration_v2alpha_Point_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_migration_v2alpha_Point_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_Point_descriptor, - new java.lang.String[] { "Interval", "Value", }); - internal_static_google_cloud_bigquery_migration_v2alpha_TimeInterval_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_migration_v2alpha_TimeInterval_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_TimeInterval_descriptor, - new java.lang.String[] { "StartTime", "EndTime", }); - internal_static_google_cloud_bigquery_migration_v2alpha_TypedValue_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_bigquery_migration_v2alpha_TypedValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_TypedValue_descriptor, - new java.lang.String[] { "BoolValue", "Int64Value", "DoubleValue", "StringValue", "DistributionValue", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.DistributionProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.MetricProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceProto.java b/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceProto.java deleted file mode 100644 index 2da0272..0000000 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceProto.java +++ /dev/null @@ -1,258 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2alpha/migration_service.proto - -package com.google.cloud.bigquery.migration.v2alpha; - -public final class MigrationServiceProto { - private MigrationServiceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_CreateMigrationWorkflowRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_CreateMigrationWorkflowRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationWorkflowRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationWorkflowRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_DeleteMigrationWorkflowRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_DeleteMigrationWorkflowRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_StartMigrationWorkflowRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_StartMigrationWorkflowRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationSubtaskRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationSubtaskRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksResponse_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/bigquery/migration/v2alph" + - "a/migration_service.proto\022\'google.cloud." + - "bigquery.migration.v2alpha\032\034google/api/a" + - "nnotations.proto\032\027google/api/client.prot" + - "o\032\037google/api/field_behavior.proto\032\031goog" + - "le/api/resource.proto\032@google/cloud/bigq" + - "uery/migration/v2alpha/migration_entitie" + - "s.proto\032Egoogle/cloud/bigquery/migration" + - "/v2alpha/migration_error_details.proto\032?" + - "google/cloud/bigquery/migration/v2alpha/" + - "migration_metrics.proto\032\033google/protobuf" + - "/empty.proto\032 google/protobuf/field_mask" + - ".proto\"\270\001\n\036CreateMigrationWorkflowReques" + - "t\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goo" + - "gleapis.com/Location\022[\n\022migration_workfl" + - "ow\030\002 \001(\0132:.google.cloud.bigquery.migrati" + - "on.v2alpha.MigrationWorkflowB\003\340A\002\"\226\001\n\033Ge" + - "tMigrationWorkflowRequest\022H\n\004name\030\001 \001(\tB" + - ":\340A\002\372A4\n2bigquerymigration.googleapis.co" + - "m/MigrationWorkflow\022-\n\tread_mask\030\002 \001(\0132\032" + - ".google.protobuf.FieldMask\"\260\001\n\035ListMigra" + - "tionWorkflowsRequest\0229\n\006parent\030\001 \001(\tB)\340A" + - "\002\372A#\n!locations.googleapis.com/Location\022" + - "-\n\tread_mask\030\002 \001(\0132\032.google.protobuf.Fie" + - "ldMask\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030" + - "\004 \001(\t\"\222\001\n\036ListMigrationWorkflowsResponse" + - "\022W\n\023migration_workflows\030\001 \003(\0132:.google.c" + - "loud.bigquery.migration.v2alpha.Migratio" + - "nWorkflow\022\027\n\017next_page_token\030\002 \001(\t\"j\n\036De" + - "leteMigrationWorkflowRequest\022H\n\004name\030\001 \001" + - "(\tB:\340A\002\372A4\n2bigquerymigration.googleapis" + - ".com/MigrationWorkflow\"i\n\035StartMigration" + - "WorkflowRequest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2b" + - "igquerymigration.googleapis.com/Migratio" + - "nWorkflow\"\231\001\n\032GetMigrationSubtaskRequest" + - "\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1bigquerymigratio" + - "n.googleapis.com/MigrationSubtask\0222\n\trea" + - "d_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + - "B\003\340A\001\"\344\001\n\034ListMigrationSubtasksRequest\022J" + - "\n\006parent\030\001 \001(\tB:\340A\002\372A4\n2bigquerymigratio" + - "n.googleapis.com/MigrationWorkflow\0222\n\tre" + - "ad_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + - "kB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_t" + - "oken\030\004 \001(\tB\003\340A\001\022\023\n\006filter\030\005 \001(\tB\003\340A\001\"\217\001\n" + - "\035ListMigrationSubtasksResponse\022U\n\022migrat" + - "ion_subtasks\030\001 \003(\01329.google.cloud.bigque" + - "ry.migration.v2alpha.MigrationSubtask\022\027\n" + - "\017next_page_token\030\002 \001(\t2\252\r\n\020MigrationServ" + - "ice\022\212\002\n\027CreateMigrationWorkflow\022G.google" + - ".cloud.bigquery.migration.v2alpha.Create" + - "MigrationWorkflowRequest\032:.google.cloud." + - "bigquery.migration.v2alpha.MigrationWork" + - "flow\"j\202\323\344\223\002H\"2/v2alpha/{parent=projects/" + - "*/locations/*}/workflows:\022migration_work" + - "flow\332A\031parent,migration_workflow\022\333\001\n\024Get" + - "MigrationWorkflow\022D.google.cloud.bigquer" + - "y.migration.v2alpha.GetMigrationWorkflow" + - "Request\032:.google.cloud.bigquery.migratio" + - "n.v2alpha.MigrationWorkflow\"A\202\323\344\223\0024\0222/v2" + - "alpha/{name=projects/*/locations/*/workf" + - "lows/*}\332A\004name\022\356\001\n\026ListMigrationWorkflow" + - "s\022F.google.cloud.bigquery.migration.v2al" + - "pha.ListMigrationWorkflowsRequest\032G.goog" + - "le.cloud.bigquery.migration.v2alpha.List" + - "MigrationWorkflowsResponse\"C\202\323\344\223\0024\0222/v2a" + - "lpha/{parent=projects/*/locations/*}/wor" + - "kflows\332A\006parent\022\275\001\n\027DeleteMigrationWorkf" + - "low\022G.google.cloud.bigquery.migration.v2" + - "alpha.DeleteMigrationWorkflowRequest\032\026.g" + - "oogle.protobuf.Empty\"A\202\323\344\223\0024*2/v2alpha/{" + - "name=projects/*/locations/*/workflows/*}" + - "\332A\004name\022\304\001\n\026StartMigrationWorkflow\022F.goo" + - "gle.cloud.bigquery.migration.v2alpha.Sta" + - "rtMigrationWorkflowRequest\032\026.google.prot" + - "obuf.Empty\"J\202\323\344\223\002=\"8/v2alpha/{name=proje" + - "cts/*/locations/*/workflows/*}:start:\001*\332" + - "A\004name\022\343\001\n\023GetMigrationSubtask\022C.google." + - "cloud.bigquery.migration.v2alpha.GetMigr" + - "ationSubtaskRequest\0329.google.cloud.bigqu" + - "ery.migration.v2alpha.MigrationSubtask\"L" + - "\202\323\344\223\002?\022=/v2alpha/{name=projects/*/locati" + - "ons/*/workflows/*/subtasks/*}\332A\004name\022\366\001\n" + - "\025ListMigrationSubtasks\022E.google.cloud.bi" + - "gquery.migration.v2alpha.ListMigrationSu" + - "btasksRequest\032F.google.cloud.bigquery.mi" + - "gration.v2alpha.ListMigrationSubtasksRes" + - "ponse\"N\202\323\344\223\002?\022=/v2alpha/{parent=projects" + - "/*/locations/*/workflows/*}/subtasks\332A\006p" + - "arent\032T\312A bigquerymigration.googleapis.c" + - "om\322A.https://www.googleapis.com/auth/clo" + - "ud-platformB\345\001\n+com.google.cloud.bigquer" + - "y.migration.v2alphaB\025MigrationServicePro" + - "toP\001ZIcloud.google.com/go/bigquery/migra" + - "tion/apiv2alpha/migrationpb;migrationpb\252" + - "\002\'Google.Cloud.BigQuery.Migration.V2Alph" + - "a\312\002\'Google\\Cloud\\BigQuery\\Migration\\V2al" + - "phab\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto.getDescriptor(), - com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto.getDescriptor(), - com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_migration_v2alpha_CreateMigrationWorkflowRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_migration_v2alpha_CreateMigrationWorkflowRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_CreateMigrationWorkflowRequest_descriptor, - new java.lang.String[] { "Parent", "MigrationWorkflow", }); - internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationWorkflowRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationWorkflowRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationWorkflowRequest_descriptor, - new java.lang.String[] { "Name", "ReadMask", }); - internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsRequest_descriptor, - new java.lang.String[] { "Parent", "ReadMask", "PageSize", "PageToken", }); - internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsResponse_descriptor, - new java.lang.String[] { "MigrationWorkflows", "NextPageToken", }); - internal_static_google_cloud_bigquery_migration_v2alpha_DeleteMigrationWorkflowRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_bigquery_migration_v2alpha_DeleteMigrationWorkflowRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_DeleteMigrationWorkflowRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_bigquery_migration_v2alpha_StartMigrationWorkflowRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_bigquery_migration_v2alpha_StartMigrationWorkflowRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_StartMigrationWorkflowRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationSubtaskRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationSubtaskRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationSubtaskRequest_descriptor, - new java.lang.String[] { "Name", "ReadMask", }); - internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksRequest_descriptor, - new java.lang.String[] { "Parent", "ReadMask", "PageSize", "PageToken", "Filter", }); - internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksResponse_descriptor, - new java.lang.String[] { "MigrationSubtasks", "NextPageToken", }); - 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); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto.getDescriptor(); - com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto.getDescriptor(); - com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTaskOrchestrationResultOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTaskOrchestrationResultOrBuilder.java deleted file mode 100644 index 3ece0c9..0000000 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTaskOrchestrationResultOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2alpha/migration_entities.proto - -package com.google.cloud.bigquery.migration.v2alpha; - -public interface MigrationTaskOrchestrationResultOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Details specific to assessment task types.
-   * 
- * - * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; - * @return Whether the assessmentDetails field is set. - */ - boolean hasAssessmentDetails(); - /** - *
-   * Details specific to assessment task types.
-   * 
- * - * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; - * @return The assessmentDetails. - */ - com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails getAssessmentDetails(); - /** - *
-   * Details specific to assessment task types.
-   * 
- * - * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; - */ - com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetailsOrBuilder getAssessmentDetailsOrBuilder(); - - public com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.DetailsCase getDetailsCase(); -} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/StartMigrationWorkflowRequestOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/StartMigrationWorkflowRequestOrBuilder.java deleted file mode 100644 index 6853756..0000000 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/StartMigrationWorkflowRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2alpha/migration_service.proto - -package com.google.cloud.bigquery.migration.v2alpha; - -public interface StartMigrationWorkflowRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The unique identifier for the migration workflow.
-   * Example: `projects/123/locations/us/workflows/1234`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The unique identifier for the migration workflow.
-   * Example: `projects/123/locations/us/workflows/1234`
-   * 
- * - * 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/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TeradataOptionsOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TeradataOptionsOrBuilder.java deleted file mode 100644 index 519922a..0000000 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TeradataOptionsOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2alpha/translation_task.proto - -package com.google.cloud.bigquery.migration.v2alpha; - -public interface TeradataOptionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.TeradataOptions) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationServiceProto.java b/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationServiceProto.java deleted file mode 100644 index f48cd27..0000000 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationServiceProto.java +++ /dev/null @@ -1,156 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2alpha/translation_service.proto - -package com.google.cloud.bigquery.migration.v2alpha; - -public final class TranslationServiceProto { - private TranslationServiceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationErrorDetail_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationErrorDetail_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationError_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationError_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationWarning_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationWarning_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nAgoogle/cloud/bigquery/migration/v2alph" + - "a/translation_service.proto\022\'google.clou" + - "d.bigquery.migration.v2alpha\032\034google/api" + - "/annotations.proto\032\027google/api/client.pr" + - "oto\032\037google/api/field_behavior.proto\032\031go" + - "ogle/api/resource.proto\"\274\002\n\025TranslateQue" + - "ryRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locat" + - "ions.googleapis.com/Location\022w\n\016source_d" + - "ialect\030\002 \001(\0162Z.google.cloud.bigquery.mig" + - "ration.v2alpha.TranslateQueryRequest.Sql" + - "TranslationSourceDialectB\003\340A\002\022\022\n\005query\030\003" + - " \001(\tB\003\340A\002\"[\n\033SqlTranslationSourceDialect" + - "\022.\n*SQL_TRANSLATION_SOURCE_DIALECT_UNSPE" + - "CIFIED\020\000\022\014\n\010TERADATA\020\001\"\363\001\n\026TranslateQuer" + - "yResponse\022\037\n\017translation_job\030\004 \001(\tB\006\340A\003\340" + - "A\005\022\030\n\020translated_query\030\001 \001(\t\022L\n\006errors\030\002" + - " \003(\0132<.google.cloud.bigquery.migration.v" + - "2alpha.SqlTranslationError\022P\n\010warnings\030\003" + - " \003(\0132>.google.cloud.bigquery.migration.v" + - "2alpha.SqlTranslationWarning\"I\n\031SqlTrans" + - "lationErrorDetail\022\013\n\003row\030\001 \001(\003\022\016\n\006column" + - "\030\002 \001(\003\022\017\n\007message\030\003 \001(\t\"\323\002\n\023SqlTranslati" + - "onError\022h\n\nerror_type\030\001 \001(\0162T.google.clo" + - "ud.bigquery.migration.v2alpha.SqlTransla" + - "tionError.SqlTranslationErrorType\022X\n\014err" + - "or_detail\030\002 \001(\0132B.google.cloud.bigquery." + - "migration.v2alpha.SqlTranslationErrorDet" + - "ail\"x\n\027SqlTranslationErrorType\022*\n&SQL_TR" + - "ANSLATION_ERROR_TYPE_UNSPECIFIED\020\000\022\023\n\017SQ" + - "L_PARSE_ERROR\020\001\022\034\n\030UNSUPPORTED_SQL_FUNCT" + - "ION\020\002\"s\n\025SqlTranslationWarning\022Z\n\016warnin" + - "g_detail\030\001 \001(\0132B.google.cloud.bigquery.m" + - "igration.v2alpha.SqlTranslationErrorDeta" + - "il2\343\002\n\025SqlTranslationService\022\363\001\n\016Transla" + - "teQuery\022>.google.cloud.bigquery.migratio" + - "n.v2alpha.TranslateQueryRequest\032?.google" + - ".cloud.bigquery.migration.v2alpha.Transl" + - "ateQueryResponse\"`\202\323\344\223\002<\"7/v2alpha/{pare" + - "nt=projects/*/locations/*}:translateQuer" + - "y:\001*\332A\033parent,source_dialect,query\032T\312A b" + - "igquerymigration.googleapis.com\322A.https:" + - "//www.googleapis.com/auth/cloud-platform" + - "B\347\001\n+com.google.cloud.bigquery.migration" + - ".v2alphaB\027TranslationServiceProtoP\001ZIclo" + - "ud.google.com/go/bigquery/migration/apiv" + - "2alpha/migrationpb;migrationpb\252\002\'Google." + - "Cloud.BigQuery.Migration.V2Alpha\312\002\'Googl" + - "e\\Cloud\\BigQuery\\Migration\\V2alphab\006prot" + - "o3" - }; - 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(), - }); - internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryRequest_descriptor, - new java.lang.String[] { "Parent", "SourceDialect", "Query", }); - internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryResponse_descriptor, - new java.lang.String[] { "TranslationJob", "TranslatedQuery", "Errors", "Warnings", }); - internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationErrorDetail_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationErrorDetail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationErrorDetail_descriptor, - new java.lang.String[] { "Row", "Column", "Message", }); - internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationError_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationError_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationError_descriptor, - new java.lang.String[] { "ErrorType", "ErrorDetail", }); - internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationWarning_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationWarning_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationWarning_descriptor, - new java.lang.String[] { "WarningDetail", }); - 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); - 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(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationTaskProto.java b/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationTaskProto.java deleted file mode 100644 index a69e7bb..0000000 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationTaskProto.java +++ /dev/null @@ -1,194 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/migration/v2alpha/translation_task.proto - -package com.google.cloud.bigquery.migration.v2alpha; - -public final class TranslationTaskProto { - private TranslationTaskProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_TranslationFileMapping_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_TranslationFileMapping_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_SpecialTokenMapEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_SpecialTokenMapEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_Filter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_Filter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_IdentifierSettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_IdentifierSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_TeradataOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_TeradataOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_FileReplacementMapEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_FileReplacementMapEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_migration_v2alpha_DatasetReference_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_migration_v2alpha_DatasetReference_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/bigquery/migration/v2alph" + - "a/translation_task.proto\022\'google.cloud.b" + - "igquery.migration.v2alpha\"A\n\026Translation" + - "FileMapping\022\022\n\ninput_path\030\001 \001(\t\022\023\n\013outpu" + - "t_path\030\002 \001(\t\"\372\010\n\026TranslationTaskDetails\022" + - "T\n\020teradata_options\030\n \001(\01328.google.cloud" + - ".bigquery.migration.v2alpha.TeradataOpti" + - "onsH\000\022L\n\014bteq_options\030\013 \001(\01324.google.clo" + - "ud.bigquery.migration.v2alpha.BteqOption" + - "sH\000\022\022\n\ninput_path\030\001 \001(\t\022\023\n\013output_path\030\002" + - " \001(\t\022S\n\nfile_paths\030\014 \003(\0132?.google.cloud." + - "bigquery.migration.v2alpha.TranslationFi" + - "leMapping\022\023\n\013schema_path\030\003 \001(\t\022c\n\rfile_e" + - "ncoding\030\004 \001(\0162L.google.cloud.bigquery.mi" + - "gration.v2alpha.TranslationTaskDetails.F" + - "ileEncoding\022X\n\023identifier_settings\030\005 \001(\013" + - "2;.google.cloud.bigquery.migration.v2alp" + - "ha.IdentifierSettings\022o\n\021special_token_m" + - "ap\030\006 \003(\0132T.google.cloud.bigquery.migrati" + - "on.v2alpha.TranslationTaskDetails.Specia" + - "lTokenMapEntry\022?\n\006filter\030\007 \001(\0132/.google." + - "cloud.bigquery.migration.v2alpha.Filter\022" + - "#\n\033translation_exception_table\030\r \001(\t\032\201\001\n" + - "\024SpecialTokenMapEntry\022\013\n\003key\030\001 \001(\t\022X\n\005va" + - "lue\030\002 \001(\0162I.google.cloud.bigquery.migrat" + - "ion.v2alpha.TranslationTaskDetails.Token" + - "Type:\0028\001\"~\n\014FileEncoding\022\035\n\031FILE_ENCODIN" + - "G_UNSPECIFIED\020\000\022\t\n\005UTF_8\020\001\022\016\n\nISO_8859_1" + - "\020\002\022\014\n\010US_ASCII\020\003\022\n\n\006UTF_16\020\004\022\014\n\010UTF_16LE" + - "\020\005\022\014\n\010UTF_16BE\020\006\"{\n\tTokenType\022\032\n\026TOKEN_T" + - "YPE_UNSPECIFIED\020\000\022\n\n\006STRING\020\001\022\t\n\005INT64\020\002" + - "\022\013\n\007NUMERIC\020\003\022\010\n\004BOOL\020\004\022\013\n\007FLOAT64\020\005\022\010\n\004" + - "DATE\020\006\022\r\n\tTIMESTAMP\020\007B\022\n\020language_option" + - "s\"/\n\006Filter\022%\n\035input_file_exclusion_pref" + - "ixes\030\001 \003(\t\"\250\003\n\022IdentifierSettings\022j\n\026out" + - "put_identifier_case\030\001 \001(\0162J.google.cloud" + - ".bigquery.migration.v2alpha.IdentifierSe" + - "ttings.IdentifierCase\022r\n\027identifier_rewr" + - "ite_mode\030\002 \001(\0162Q.google.cloud.bigquery.m" + - "igration.v2alpha.IdentifierSettings.Iden" + - "tifierRewriteMode\"U\n\016IdentifierCase\022\037\n\033I" + - "DENTIFIER_CASE_UNSPECIFIED\020\000\022\014\n\010ORIGINAL" + - "\020\001\022\t\n\005UPPER\020\002\022\t\n\005LOWER\020\003\"[\n\025IdentifierRe" + - "writeMode\022\'\n#IDENTIFIER_REWRITE_MODE_UNS" + - "PECIFIED\020\000\022\010\n\004NONE\020\001\022\017\n\013REWRITE_ALL\020\002\"\021\n" + - "\017TeradataOptions\"\242\002\n\013BteqOptions\022R\n\017proj" + - "ect_dataset\030\001 \001(\01329.google.cloud.bigquer" + - "y.migration.v2alpha.DatasetReference\022\030\n\020" + - "default_path_uri\030\002 \001(\t\022j\n\024file_replaceme" + - "nt_map\030\003 \003(\0132L.google.cloud.bigquery.mig" + - "ration.v2alpha.BteqOptions.FileReplaceme" + - "ntMapEntry\0329\n\027FileReplacementMapEntry\022\013\n" + - "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\":\n\020Dataset" + - "Reference\022\022\n\ndataset_id\030\001 \001(\t\022\022\n\nproject" + - "_id\030\002 \001(\tB\344\001\n+com.google.cloud.bigquery." + - "migration.v2alphaB\024TranslationTaskProtoP" + - "\001ZIcloud.google.com/go/bigquery/migratio" + - "n/apiv2alpha/migrationpb;migrationpb\252\002\'G" + - "oogle.Cloud.BigQuery.Migration.V2Alpha\312\002" + - "\'Google\\Cloud\\BigQuery\\Migration\\V2alpha" + - "b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_bigquery_migration_v2alpha_TranslationFileMapping_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_migration_v2alpha_TranslationFileMapping_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_TranslationFileMapping_descriptor, - new java.lang.String[] { "InputPath", "OutputPath", }); - internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_descriptor, - new java.lang.String[] { "TeradataOptions", "BteqOptions", "InputPath", "OutputPath", "FilePaths", "SchemaPath", "FileEncoding", "IdentifierSettings", "SpecialTokenMap", "Filter", "TranslationExceptionTable", "LanguageOptions", }); - internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_SpecialTokenMapEntry_descriptor = - internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_SpecialTokenMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_SpecialTokenMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_bigquery_migration_v2alpha_Filter_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_migration_v2alpha_Filter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_Filter_descriptor, - new java.lang.String[] { "InputFileExclusionPrefixes", }); - internal_static_google_cloud_bigquery_migration_v2alpha_IdentifierSettings_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_bigquery_migration_v2alpha_IdentifierSettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_IdentifierSettings_descriptor, - new java.lang.String[] { "OutputIdentifierCase", "IdentifierRewriteMode", }); - internal_static_google_cloud_bigquery_migration_v2alpha_TeradataOptions_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_bigquery_migration_v2alpha_TeradataOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_TeradataOptions_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_descriptor, - new java.lang.String[] { "ProjectDataset", "DefaultPathUri", "FileReplacementMap", }); - internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_FileReplacementMapEntry_descriptor = - internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_FileReplacementMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_FileReplacementMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_bigquery_migration_v2alpha_DatasetReference_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_bigquery_migration_v2alpha_DatasetReference_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_migration_v2alpha_DatasetReference_descriptor, - new java.lang.String[] { "DatasetId", "ProjectId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/AzureSynapseDialect.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/AzureSynapseDialect.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/AzureSynapseDialect.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/AzureSynapseDialect.java index cc77fb7..65aa18b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/AzureSynapseDialect.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/AzureSynapseDialect.java @@ -1,53 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * The dialect definition for Azure Synapse.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.AzureSynapseDialect} */ -public final class AzureSynapseDialect extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AzureSynapseDialect extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.AzureSynapseDialect) AzureSynapseDialectOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AzureSynapseDialect.newBuilder() to construct. private AzureSynapseDialect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AzureSynapseDialect() { - } + + private AzureSynapseDialect() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AzureSynapseDialect(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_AzureSynapseDialect_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_AzureSynapseDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_AzureSynapseDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_AzureSynapseDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.class, com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.class, + com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -59,8 +78,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 { getUnknownFields().writeTo(output); } @@ -78,12 +96,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.bigquery.migration.v2.AzureSynapseDialect)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.AzureSynapseDialect other = (com.google.cloud.bigquery.migration.v2.AzureSynapseDialect) obj; + com.google.cloud.bigquery.migration.v2.AzureSynapseDialect other = + (com.google.cloud.bigquery.migration.v2.AzureSynapseDialect) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -102,129 +121,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.AzureSynapseDialect parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.AzureSynapseDialect parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.AzureSynapseDialect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.AzureSynapseDialect parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.AzureSynapseDialect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.AzureSynapseDialect parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.AzureSynapseDialect parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.AzureSynapseDialect parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.AzureSynapseDialect parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.AzureSynapseDialect parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.AzureSynapseDialect parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.AzureSynapseDialect parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.AzureSynapseDialect parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.AzureSynapseDialect parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.AzureSynapseDialect prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.AzureSynapseDialect prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 dialect definition for Azure Synapse.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.AzureSynapseDialect} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.AzureSynapseDialect) com.google.cloud.bigquery.migration.v2.AzureSynapseDialectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_AzureSynapseDialect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_AzureSynapseDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_AzureSynapseDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_AzureSynapseDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.class, com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.class, + com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -232,9 +258,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_AzureSynapseDialect_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_AzureSynapseDialect_descriptor; } @java.lang.Override @@ -253,7 +279,8 @@ public com.google.cloud.bigquery.migration.v2.AzureSynapseDialect build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2.AzureSynapseDialect buildPartial() { - com.google.cloud.bigquery.migration.v2.AzureSynapseDialect result = new com.google.cloud.bigquery.migration.v2.AzureSynapseDialect(this); + com.google.cloud.bigquery.migration.v2.AzureSynapseDialect result = + new com.google.cloud.bigquery.migration.v2.AzureSynapseDialect(this); onBuilt(); return result; } @@ -262,38 +289,39 @@ public com.google.cloud.bigquery.migration.v2.AzureSynapseDialect buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.AzureSynapseDialect) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.AzureSynapseDialect)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2.AzureSynapseDialect) other); } else { super.mergeFrom(other); return this; @@ -301,7 +329,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.AzureSynapseDialect other) { - if (other == com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -328,12 +357,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -343,9 +373,9 @@ public Builder mergeFrom( } // finally 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); } @@ -355,12 +385,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.AzureSynapseDialect) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.AzureSynapseDialect) private static final com.google.cloud.bigquery.migration.v2.AzureSynapseDialect DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.AzureSynapseDialect(); } @@ -369,27 +399,27 @@ public static com.google.cloud.bigquery.migration.v2.AzureSynapseDialect getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AzureSynapseDialect parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AzureSynapseDialect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -404,6 +434,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.AzureSynapseDialect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/AzureSynapseDialectOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/AzureSynapseDialectOrBuilder.java new file mode 100644 index 0000000..4214416 --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/AzureSynapseDialectOrBuilder.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/bigquery/migration/v2/translation_config.proto + +package com.google.cloud.bigquery.migration.v2; + +public interface AzureSynapseDialectOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.AzureSynapseDialect) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/BigQueryDialect.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/BigQueryDialect.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/BigQueryDialect.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/BigQueryDialect.java index 0a7277a..c553eb1 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/BigQueryDialect.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/BigQueryDialect.java @@ -1,53 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * The dialect definition for BigQuery.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.BigQueryDialect} */ -public final class BigQueryDialect extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BigQueryDialect extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.BigQueryDialect) BigQueryDialectOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BigQueryDialect.newBuilder() to construct. private BigQueryDialect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BigQueryDialect() { - } + + private BigQueryDialect() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BigQueryDialect(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_BigQueryDialect_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_BigQueryDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_BigQueryDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_BigQueryDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.BigQueryDialect.class, com.google.cloud.bigquery.migration.v2.BigQueryDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.BigQueryDialect.class, + com.google.cloud.bigquery.migration.v2.BigQueryDialect.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -59,8 +78,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 { getUnknownFields().writeTo(output); } @@ -78,12 +96,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.bigquery.migration.v2.BigQueryDialect)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.BigQueryDialect other = (com.google.cloud.bigquery.migration.v2.BigQueryDialect) obj; + com.google.cloud.bigquery.migration.v2.BigQueryDialect other = + (com.google.cloud.bigquery.migration.v2.BigQueryDialect) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -102,129 +121,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.BigQueryDialect parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.BigQueryDialect parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.BigQueryDialect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.BigQueryDialect parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.BigQueryDialect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.BigQueryDialect parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.BigQueryDialect parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.BigQueryDialect parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.BigQueryDialect parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.BigQueryDialect parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.BigQueryDialect parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.BigQueryDialect parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.BigQueryDialect parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.BigQueryDialect parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.BigQueryDialect prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.BigQueryDialect prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 dialect definition for BigQuery.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.BigQueryDialect} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.BigQueryDialect) com.google.cloud.bigquery.migration.v2.BigQueryDialectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_BigQueryDialect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_BigQueryDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_BigQueryDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_BigQueryDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.BigQueryDialect.class, com.google.cloud.bigquery.migration.v2.BigQueryDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.BigQueryDialect.class, + com.google.cloud.bigquery.migration.v2.BigQueryDialect.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2.BigQueryDialect.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -232,9 +258,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_BigQueryDialect_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_BigQueryDialect_descriptor; } @java.lang.Override @@ -253,7 +279,8 @@ public com.google.cloud.bigquery.migration.v2.BigQueryDialect build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2.BigQueryDialect buildPartial() { - com.google.cloud.bigquery.migration.v2.BigQueryDialect result = new com.google.cloud.bigquery.migration.v2.BigQueryDialect(this); + com.google.cloud.bigquery.migration.v2.BigQueryDialect result = + new com.google.cloud.bigquery.migration.v2.BigQueryDialect(this); onBuilt(); return result; } @@ -262,38 +289,39 @@ public com.google.cloud.bigquery.migration.v2.BigQueryDialect buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.BigQueryDialect) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.BigQueryDialect)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2.BigQueryDialect) other); } else { super.mergeFrom(other); return this; @@ -301,7 +329,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.BigQueryDialect other) { - if (other == com.google.cloud.bigquery.migration.v2.BigQueryDialect.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.migration.v2.BigQueryDialect.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -328,12 +357,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -343,9 +373,9 @@ public Builder mergeFrom( } // finally 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); } @@ -355,12 +385,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.BigQueryDialect) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.BigQueryDialect) private static final com.google.cloud.bigquery.migration.v2.BigQueryDialect DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.BigQueryDialect(); } @@ -369,27 +399,27 @@ public static com.google.cloud.bigquery.migration.v2.BigQueryDialect getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryDialect parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryDialect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -404,6 +434,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.BigQueryDialect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/BigQueryDialectOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/BigQueryDialectOrBuilder.java new file mode 100644 index 0000000..27bd80e --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/BigQueryDialectOrBuilder.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/bigquery/migration/v2/translation_config.proto + +package com.google.cloud.bigquery.migration.v2; + +public interface BigQueryDialectOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.BigQueryDialect) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/CreateMigrationWorkflowRequest.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/CreateMigrationWorkflowRequest.java similarity index 57% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/CreateMigrationWorkflowRequest.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/CreateMigrationWorkflowRequest.java index f53d775..690643a 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/CreateMigrationWorkflowRequest.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/CreateMigrationWorkflowRequest.java @@ -1,63 +1,89 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_service.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * Request to create a migration workflow resource.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest} */ -public final class CreateMigrationWorkflowRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateMigrationWorkflowRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest) CreateMigrationWorkflowRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateMigrationWorkflowRequest.newBuilder() to construct. - private CreateMigrationWorkflowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateMigrationWorkflowRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateMigrationWorkflowRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateMigrationWorkflowRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_CreateMigrationWorkflowRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_CreateMigrationWorkflowRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_CreateMigrationWorkflowRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_CreateMigrationWorkflowRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest.class, com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest.Builder.class); + com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest.class, + com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The name of the project to which this migration workflow belongs.
    * Example: `projects/foo/locations/bar`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -66,30 +92,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The name of the project to which this migration workflow belongs.
    * Example: `projects/foo/locations/bar`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -100,11 +128,16 @@ public java.lang.String getParent() { public static final int MIGRATION_WORKFLOW_FIELD_NUMBER = 2; private com.google.cloud.bigquery.migration.v2.MigrationWorkflow migrationWorkflow_; /** + * + * *
    * Required. The migration workflow to create.
    * 
* - * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the migrationWorkflow field is set. */ @java.lang.Override @@ -112,30 +145,45 @@ public boolean hasMigrationWorkflow() { return migrationWorkflow_ != null; } /** + * + * *
    * Required. The migration workflow to create.
    * 
* - * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The migrationWorkflow. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.MigrationWorkflow getMigrationWorkflow() { - return migrationWorkflow_ == null ? com.google.cloud.bigquery.migration.v2.MigrationWorkflow.getDefaultInstance() : migrationWorkflow_; + return migrationWorkflow_ == null + ? com.google.cloud.bigquery.migration.v2.MigrationWorkflow.getDefaultInstance() + : migrationWorkflow_; } /** + * + * *
    * Required. The migration workflow to create.
    * 
* - * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.MigrationWorkflowOrBuilder getMigrationWorkflowOrBuilder() { - return migrationWorkflow_ == null ? com.google.cloud.bigquery.migration.v2.MigrationWorkflow.getDefaultInstance() : migrationWorkflow_; + public com.google.cloud.bigquery.migration.v2.MigrationWorkflowOrBuilder + getMigrationWorkflowOrBuilder() { + return migrationWorkflow_ == null + ? com.google.cloud.bigquery.migration.v2.MigrationWorkflow.getDefaultInstance() + : migrationWorkflow_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,8 +195,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -168,8 +215,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (migrationWorkflow_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMigrationWorkflow()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMigrationWorkflow()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -179,19 +225,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest other = (com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest) obj; + com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest other = + (com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasMigrationWorkflow() != other.hasMigrationWorkflow()) return false; if (hasMigrationWorkflow()) { - if (!getMigrationWorkflow() - .equals(other.getMigrationWorkflow())) return false; + if (!getMigrationWorkflow().equals(other.getMigrationWorkflow())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -216,129 +261,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request to create a migration workflow resource.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest) com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_CreateMigrationWorkflowRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_CreateMigrationWorkflowRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_CreateMigrationWorkflowRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_CreateMigrationWorkflowRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest.class, com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest.Builder.class); + com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest.class, + com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -353,14 +407,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_CreateMigrationWorkflowRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_CreateMigrationWorkflowRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest.getDefaultInstance(); + public com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest + .getDefaultInstance(); } @java.lang.Override @@ -374,21 +430,26 @@ public com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest bui @java.lang.Override public com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest buildPartial() { - com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest result = new com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest result = + new com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.migrationWorkflow_ = migrationWorkflowBuilder_ == null - ? migrationWorkflow_ - : migrationWorkflowBuilder_.build(); + result.migrationWorkflow_ = + migrationWorkflowBuilder_ == null + ? migrationWorkflow_ + : migrationWorkflowBuilder_.build(); } } @@ -396,46 +457,51 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.CreateMigratio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest)other); + return mergeFrom( + (com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest other) { - if (other == com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest other) { + if (other + == com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -470,24 +536,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getMigrationWorkflowFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getMigrationWorkflowFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -497,23 +565,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the project to which this migration workflow belongs.
      * Example: `projects/foo/locations/bar`
      * 
* - * string 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; @@ -522,21 +595,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project to which this migration workflow belongs.
      * Example: `projects/foo/locations/bar`
      * 
* - * string 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 { @@ -544,30 +620,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project to which this migration workflow belongs.
      * Example: `projects/foo/locations/bar`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the project to which this migration workflow belongs.
      * Example: `projects/foo/locations/bar`
      * 
* - * string 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() { @@ -577,18 +664,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The name of the project to which this migration workflow belongs.
      * Example: `projects/foo/locations/bar`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -598,41 +691,61 @@ public Builder setParentBytes( private com.google.cloud.bigquery.migration.v2.MigrationWorkflow migrationWorkflow_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.MigrationWorkflow, com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder, com.google.cloud.bigquery.migration.v2.MigrationWorkflowOrBuilder> migrationWorkflowBuilder_; + com.google.cloud.bigquery.migration.v2.MigrationWorkflow, + com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder, + com.google.cloud.bigquery.migration.v2.MigrationWorkflowOrBuilder> + migrationWorkflowBuilder_; /** + * + * *
      * Required. The migration workflow to create.
      * 
* - * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the migrationWorkflow field is set. */ public boolean hasMigrationWorkflow() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The migration workflow to create.
      * 
* - * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The migrationWorkflow. */ public com.google.cloud.bigquery.migration.v2.MigrationWorkflow getMigrationWorkflow() { if (migrationWorkflowBuilder_ == null) { - return migrationWorkflow_ == null ? com.google.cloud.bigquery.migration.v2.MigrationWorkflow.getDefaultInstance() : migrationWorkflow_; + return migrationWorkflow_ == null + ? com.google.cloud.bigquery.migration.v2.MigrationWorkflow.getDefaultInstance() + : migrationWorkflow_; } else { return migrationWorkflowBuilder_.getMessage(); } } /** + * + * *
      * Required. The migration workflow to create.
      * 
* - * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setMigrationWorkflow(com.google.cloud.bigquery.migration.v2.MigrationWorkflow value) { + public Builder setMigrationWorkflow( + com.google.cloud.bigquery.migration.v2.MigrationWorkflow value) { if (migrationWorkflowBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -646,11 +759,15 @@ public Builder setMigrationWorkflow(com.google.cloud.bigquery.migration.v2.Migra return this; } /** + * + * *
      * Required. The migration workflow to create.
      * 
* - * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMigrationWorkflow( com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder builderForValue) { @@ -664,17 +781,23 @@ public Builder setMigrationWorkflow( return this; } /** + * + * *
      * Required. The migration workflow to create.
      * 
* - * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeMigrationWorkflow(com.google.cloud.bigquery.migration.v2.MigrationWorkflow value) { + public Builder mergeMigrationWorkflow( + com.google.cloud.bigquery.migration.v2.MigrationWorkflow value) { if (migrationWorkflowBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - migrationWorkflow_ != null && - migrationWorkflow_ != com.google.cloud.bigquery.migration.v2.MigrationWorkflow.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && migrationWorkflow_ != null + && migrationWorkflow_ + != com.google.cloud.bigquery.migration.v2.MigrationWorkflow.getDefaultInstance()) { getMigrationWorkflowBuilder().mergeFrom(value); } else { migrationWorkflow_ = value; @@ -687,11 +810,15 @@ public Builder mergeMigrationWorkflow(com.google.cloud.bigquery.migration.v2.Mig return this; } /** + * + * *
      * Required. The migration workflow to create.
      * 
* - * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearMigrationWorkflow() { bitField0_ = (bitField0_ & ~0x00000002); @@ -704,55 +831,73 @@ public Builder clearMigrationWorkflow() { return this; } /** + * + * *
      * Required. The migration workflow to create.
      * 
* - * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder getMigrationWorkflowBuilder() { + public com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder + getMigrationWorkflowBuilder() { bitField0_ |= 0x00000002; onChanged(); return getMigrationWorkflowFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The migration workflow to create.
      * 
* - * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.migration.v2.MigrationWorkflowOrBuilder getMigrationWorkflowOrBuilder() { + public com.google.cloud.bigquery.migration.v2.MigrationWorkflowOrBuilder + getMigrationWorkflowOrBuilder() { if (migrationWorkflowBuilder_ != null) { return migrationWorkflowBuilder_.getMessageOrBuilder(); } else { - return migrationWorkflow_ == null ? - com.google.cloud.bigquery.migration.v2.MigrationWorkflow.getDefaultInstance() : migrationWorkflow_; + return migrationWorkflow_ == null + ? com.google.cloud.bigquery.migration.v2.MigrationWorkflow.getDefaultInstance() + : migrationWorkflow_; } } /** + * + * *
      * Required. The migration workflow to create.
      * 
* - * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.MigrationWorkflow, com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder, com.google.cloud.bigquery.migration.v2.MigrationWorkflowOrBuilder> + com.google.cloud.bigquery.migration.v2.MigrationWorkflow, + com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder, + com.google.cloud.bigquery.migration.v2.MigrationWorkflowOrBuilder> getMigrationWorkflowFieldBuilder() { if (migrationWorkflowBuilder_ == null) { - migrationWorkflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.MigrationWorkflow, com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder, com.google.cloud.bigquery.migration.v2.MigrationWorkflowOrBuilder>( - getMigrationWorkflow(), - getParentForChildren(), - isClean()); + migrationWorkflowBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.MigrationWorkflow, + com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder, + com.google.cloud.bigquery.migration.v2.MigrationWorkflowOrBuilder>( + getMigrationWorkflow(), getParentForChildren(), isClean()); migrationWorkflow_ = null; } return migrationWorkflowBuilder_; } + @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); } @@ -762,41 +907,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest) - private static final com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest(); } - public static com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateMigrationWorkflowRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMigrationWorkflowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -808,9 +955,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/CreateMigrationWorkflowRequestOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/CreateMigrationWorkflowRequestOrBuilder.java new file mode 100644 index 0000000..9118572 --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/CreateMigrationWorkflowRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/migration_service.proto + +package com.google.cloud.bigquery.migration.v2; + +public interface CreateMigrationWorkflowRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the project to which this migration workflow belongs.
+   * Example: `projects/foo/locations/bar`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the project to which this migration workflow belongs.
+   * Example: `projects/foo/locations/bar`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The migration workflow to create.
+   * 
+ * + * + * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the migrationWorkflow field is set. + */ + boolean hasMigrationWorkflow(); + /** + * + * + *
+   * Required. The migration workflow to create.
+   * 
+ * + * + * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The migrationWorkflow. + */ + com.google.cloud.bigquery.migration.v2.MigrationWorkflow getMigrationWorkflow(); + /** + * + * + *
+   * Required. The migration workflow to create.
+   * 
+ * + * + * .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.bigquery.migration.v2.MigrationWorkflowOrBuilder getMigrationWorkflowOrBuilder(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DeleteMigrationWorkflowRequest.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DeleteMigrationWorkflowRequest.java similarity index 59% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DeleteMigrationWorkflowRequest.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DeleteMigrationWorkflowRequest.java index f0b4f75..97d4e2c 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DeleteMigrationWorkflowRequest.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DeleteMigrationWorkflowRequest.java @@ -1,63 +1,89 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_service.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * A request to delete a previously created migration workflow.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest} */ -public final class DeleteMigrationWorkflowRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteMigrationWorkflowRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest) DeleteMigrationWorkflowRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteMigrationWorkflowRequest.newBuilder() to construct. - private DeleteMigrationWorkflowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteMigrationWorkflowRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteMigrationWorkflowRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteMigrationWorkflowRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_DeleteMigrationWorkflowRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_DeleteMigrationWorkflowRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_DeleteMigrationWorkflowRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_DeleteMigrationWorkflowRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest.class, com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest.Builder.class); + com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest.class, + com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The unique identifier for the migration workflow.
    * Example: `projects/123/locations/us/workflows/1234`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,30 +92,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The unique identifier for the migration workflow.
    * Example: `projects/123/locations/us/workflows/1234`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,6 +126,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +138,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -134,15 +162,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest other = (com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest) obj; + com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest other = + (com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,129 +190,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A request to delete a previously created migration workflow.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest) com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_DeleteMigrationWorkflowRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_DeleteMigrationWorkflowRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_DeleteMigrationWorkflowRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_DeleteMigrationWorkflowRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest.class, com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest.Builder.class); + com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest.class, + com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -294,14 +331,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_DeleteMigrationWorkflowRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_DeleteMigrationWorkflowRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest.getDefaultInstance(); + public com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest + .getDefaultInstance(); } @java.lang.Override @@ -315,13 +354,17 @@ public com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest bui @java.lang.Override public com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest buildPartial() { - com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest result = new com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest result = + new com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -332,46 +375,51 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.DeleteMigratio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest)other); + return mergeFrom( + (com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest other) { - if (other == com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest other) { + if (other + == com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -403,17 +451,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,23 +473,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -448,21 +503,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -470,30 +528,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -503,27 +572,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -533,41 +608,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest) - private static final com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest(); } - public static com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteMigrationWorkflowRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMigrationWorkflowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -579,9 +656,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DeleteMigrationWorkflowRequestOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DeleteMigrationWorkflowRequestOrBuilder.java new file mode 100644 index 0000000..8704cb9 --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DeleteMigrationWorkflowRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/migration_service.proto + +package com.google.cloud.bigquery.migration.v2; + +public interface DeleteMigrationWorkflowRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The unique identifier for the migration workflow.
+   * Example: `projects/123/locations/us/workflows/1234`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The unique identifier for the migration workflow.
+   * Example: `projects/123/locations/us/workflows/1234`
+   * 
+ * + * + * 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/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/Dialect.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/Dialect.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/Dialect.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/Dialect.java index 3260178..2f31971 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/Dialect.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/Dialect.java @@ -1,56 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * The possible dialect options for translation.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.Dialect} */ -public final class Dialect extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Dialect extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.Dialect) DialectOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Dialect.newBuilder() to construct. private Dialect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Dialect() { - } + + private Dialect() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Dialect(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_Dialect_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_Dialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_Dialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_Dialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.Dialect.class, com.google.cloud.bigquery.migration.v2.Dialect.Builder.class); + com.google.cloud.bigquery.migration.v2.Dialect.class, + com.google.cloud.bigquery.migration.v2.Dialect.Builder.class); } private int dialectValueCase_ = 0; private java.lang.Object dialectValue_; + public enum DialectValueCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BIGQUERY_DIALECT(1), HIVEQL_DIALECT(2), @@ -68,6 +88,7 @@ public enum DialectValueCase MYSQL_DIALECT(14), DIALECTVALUE_NOT_SET(0); private final int value; + private DialectValueCase(int value) { this.value = value; } @@ -83,42 +104,60 @@ public static DialectValueCase valueOf(int value) { public static DialectValueCase forNumber(int value) { switch (value) { - case 1: return BIGQUERY_DIALECT; - case 2: return HIVEQL_DIALECT; - case 3: return REDSHIFT_DIALECT; - case 4: return TERADATA_DIALECT; - case 5: return ORACLE_DIALECT; - case 6: return SPARKSQL_DIALECT; - case 7: return SNOWFLAKE_DIALECT; - case 8: return NETEZZA_DIALECT; - case 9: return AZURE_SYNAPSE_DIALECT; - case 10: return VERTICA_DIALECT; - case 11: return SQL_SERVER_DIALECT; - case 12: return POSTGRESQL_DIALECT; - case 13: return PRESTO_DIALECT; - case 14: return MYSQL_DIALECT; - case 0: return DIALECTVALUE_NOT_SET; - default: return null; + case 1: + return BIGQUERY_DIALECT; + case 2: + return HIVEQL_DIALECT; + case 3: + return REDSHIFT_DIALECT; + case 4: + return TERADATA_DIALECT; + case 5: + return ORACLE_DIALECT; + case 6: + return SPARKSQL_DIALECT; + case 7: + return SNOWFLAKE_DIALECT; + case 8: + return NETEZZA_DIALECT; + case 9: + return AZURE_SYNAPSE_DIALECT; + case 10: + return VERTICA_DIALECT; + case 11: + return SQL_SERVER_DIALECT; + case 12: + return POSTGRESQL_DIALECT; + case 13: + return PRESTO_DIALECT; + case 14: + return MYSQL_DIALECT; + case 0: + return DIALECTVALUE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DialectValueCase - getDialectValueCase() { - return DialectValueCase.forNumber( - dialectValueCase_); + public DialectValueCase getDialectValueCase() { + return DialectValueCase.forNumber(dialectValueCase_); } public static final int BIGQUERY_DIALECT_FIELD_NUMBER = 1; /** + * + * *
    * The BigQuery dialect
    * 
* * .google.cloud.bigquery.migration.v2.BigQueryDialect bigquery_dialect = 1; + * * @return Whether the bigqueryDialect field is set. */ @java.lang.Override @@ -126,21 +165,26 @@ public boolean hasBigqueryDialect() { return dialectValueCase_ == 1; } /** + * + * *
    * The BigQuery dialect
    * 
* * .google.cloud.bigquery.migration.v2.BigQueryDialect bigquery_dialect = 1; + * * @return The bigqueryDialect. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.BigQueryDialect getBigqueryDialect() { if (dialectValueCase_ == 1) { - return (com.google.cloud.bigquery.migration.v2.BigQueryDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.BigQueryDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.BigQueryDialect.getDefaultInstance(); } /** + * + * *
    * The BigQuery dialect
    * 
@@ -148,20 +192,24 @@ public com.google.cloud.bigquery.migration.v2.BigQueryDialect getBigqueryDialect * .google.cloud.bigquery.migration.v2.BigQueryDialect bigquery_dialect = 1; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.BigQueryDialectOrBuilder getBigqueryDialectOrBuilder() { + public com.google.cloud.bigquery.migration.v2.BigQueryDialectOrBuilder + getBigqueryDialectOrBuilder() { if (dialectValueCase_ == 1) { - return (com.google.cloud.bigquery.migration.v2.BigQueryDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.BigQueryDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.BigQueryDialect.getDefaultInstance(); } public static final int HIVEQL_DIALECT_FIELD_NUMBER = 2; /** + * + * *
    * The HiveQL dialect
    * 
* * .google.cloud.bigquery.migration.v2.HiveQLDialect hiveql_dialect = 2; + * * @return Whether the hiveqlDialect field is set. */ @java.lang.Override @@ -169,21 +217,26 @@ public boolean hasHiveqlDialect() { return dialectValueCase_ == 2; } /** + * + * *
    * The HiveQL dialect
    * 
* * .google.cloud.bigquery.migration.v2.HiveQLDialect hiveql_dialect = 2; + * * @return The hiveqlDialect. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.HiveQLDialect getHiveqlDialect() { if (dialectValueCase_ == 2) { - return (com.google.cloud.bigquery.migration.v2.HiveQLDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.HiveQLDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.HiveQLDialect.getDefaultInstance(); } /** + * + * *
    * The HiveQL dialect
    * 
@@ -193,18 +246,21 @@ public com.google.cloud.bigquery.migration.v2.HiveQLDialect getHiveqlDialect() { @java.lang.Override public com.google.cloud.bigquery.migration.v2.HiveQLDialectOrBuilder getHiveqlDialectOrBuilder() { if (dialectValueCase_ == 2) { - return (com.google.cloud.bigquery.migration.v2.HiveQLDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.HiveQLDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.HiveQLDialect.getDefaultInstance(); } public static final int REDSHIFT_DIALECT_FIELD_NUMBER = 3; /** + * + * *
    * The Redshift dialect
    * 
* * .google.cloud.bigquery.migration.v2.RedshiftDialect redshift_dialect = 3; + * * @return Whether the redshiftDialect field is set. */ @java.lang.Override @@ -212,21 +268,26 @@ public boolean hasRedshiftDialect() { return dialectValueCase_ == 3; } /** + * + * *
    * The Redshift dialect
    * 
* * .google.cloud.bigquery.migration.v2.RedshiftDialect redshift_dialect = 3; + * * @return The redshiftDialect. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.RedshiftDialect getRedshiftDialect() { if (dialectValueCase_ == 3) { - return (com.google.cloud.bigquery.migration.v2.RedshiftDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.RedshiftDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.RedshiftDialect.getDefaultInstance(); } /** + * + * *
    * The Redshift dialect
    * 
@@ -234,20 +295,24 @@ public com.google.cloud.bigquery.migration.v2.RedshiftDialect getRedshiftDialect * .google.cloud.bigquery.migration.v2.RedshiftDialect redshift_dialect = 3; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.RedshiftDialectOrBuilder getRedshiftDialectOrBuilder() { + public com.google.cloud.bigquery.migration.v2.RedshiftDialectOrBuilder + getRedshiftDialectOrBuilder() { if (dialectValueCase_ == 3) { - return (com.google.cloud.bigquery.migration.v2.RedshiftDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.RedshiftDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.RedshiftDialect.getDefaultInstance(); } public static final int TERADATA_DIALECT_FIELD_NUMBER = 4; /** + * + * *
    * The Teradata dialect
    * 
* * .google.cloud.bigquery.migration.v2.TeradataDialect teradata_dialect = 4; + * * @return Whether the teradataDialect field is set. */ @java.lang.Override @@ -255,21 +320,26 @@ public boolean hasTeradataDialect() { return dialectValueCase_ == 4; } /** + * + * *
    * The Teradata dialect
    * 
* * .google.cloud.bigquery.migration.v2.TeradataDialect teradata_dialect = 4; + * * @return The teradataDialect. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.TeradataDialect getTeradataDialect() { if (dialectValueCase_ == 4) { - return (com.google.cloud.bigquery.migration.v2.TeradataDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.TeradataDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.TeradataDialect.getDefaultInstance(); } /** + * + * *
    * The Teradata dialect
    * 
@@ -277,20 +347,24 @@ public com.google.cloud.bigquery.migration.v2.TeradataDialect getTeradataDialect * .google.cloud.bigquery.migration.v2.TeradataDialect teradata_dialect = 4; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.TeradataDialectOrBuilder getTeradataDialectOrBuilder() { + public com.google.cloud.bigquery.migration.v2.TeradataDialectOrBuilder + getTeradataDialectOrBuilder() { if (dialectValueCase_ == 4) { - return (com.google.cloud.bigquery.migration.v2.TeradataDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.TeradataDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.TeradataDialect.getDefaultInstance(); } public static final int ORACLE_DIALECT_FIELD_NUMBER = 5; /** + * + * *
    * The Oracle dialect
    * 
* * .google.cloud.bigquery.migration.v2.OracleDialect oracle_dialect = 5; + * * @return Whether the oracleDialect field is set. */ @java.lang.Override @@ -298,21 +372,26 @@ public boolean hasOracleDialect() { return dialectValueCase_ == 5; } /** + * + * *
    * The Oracle dialect
    * 
* * .google.cloud.bigquery.migration.v2.OracleDialect oracle_dialect = 5; + * * @return The oracleDialect. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.OracleDialect getOracleDialect() { if (dialectValueCase_ == 5) { - return (com.google.cloud.bigquery.migration.v2.OracleDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.OracleDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.OracleDialect.getDefaultInstance(); } /** + * + * *
    * The Oracle dialect
    * 
@@ -322,18 +401,21 @@ public com.google.cloud.bigquery.migration.v2.OracleDialect getOracleDialect() { @java.lang.Override public com.google.cloud.bigquery.migration.v2.OracleDialectOrBuilder getOracleDialectOrBuilder() { if (dialectValueCase_ == 5) { - return (com.google.cloud.bigquery.migration.v2.OracleDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.OracleDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.OracleDialect.getDefaultInstance(); } public static final int SPARKSQL_DIALECT_FIELD_NUMBER = 6; /** + * + * *
    * The SparkSQL dialect
    * 
* * .google.cloud.bigquery.migration.v2.SparkSQLDialect sparksql_dialect = 6; + * * @return Whether the sparksqlDialect field is set. */ @java.lang.Override @@ -341,21 +423,26 @@ public boolean hasSparksqlDialect() { return dialectValueCase_ == 6; } /** + * + * *
    * The SparkSQL dialect
    * 
* * .google.cloud.bigquery.migration.v2.SparkSQLDialect sparksql_dialect = 6; + * * @return The sparksqlDialect. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.SparkSQLDialect getSparksqlDialect() { if (dialectValueCase_ == 6) { - return (com.google.cloud.bigquery.migration.v2.SparkSQLDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.SparkSQLDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.SparkSQLDialect.getDefaultInstance(); } /** + * + * *
    * The SparkSQL dialect
    * 
@@ -363,20 +450,24 @@ public com.google.cloud.bigquery.migration.v2.SparkSQLDialect getSparksqlDialect * .google.cloud.bigquery.migration.v2.SparkSQLDialect sparksql_dialect = 6; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.SparkSQLDialectOrBuilder getSparksqlDialectOrBuilder() { + public com.google.cloud.bigquery.migration.v2.SparkSQLDialectOrBuilder + getSparksqlDialectOrBuilder() { if (dialectValueCase_ == 6) { - return (com.google.cloud.bigquery.migration.v2.SparkSQLDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.SparkSQLDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.SparkSQLDialect.getDefaultInstance(); } public static final int SNOWFLAKE_DIALECT_FIELD_NUMBER = 7; /** + * + * *
    * The Snowflake dialect
    * 
* * .google.cloud.bigquery.migration.v2.SnowflakeDialect snowflake_dialect = 7; + * * @return Whether the snowflakeDialect field is set. */ @java.lang.Override @@ -384,21 +475,26 @@ public boolean hasSnowflakeDialect() { return dialectValueCase_ == 7; } /** + * + * *
    * The Snowflake dialect
    * 
* * .google.cloud.bigquery.migration.v2.SnowflakeDialect snowflake_dialect = 7; + * * @return The snowflakeDialect. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.SnowflakeDialect getSnowflakeDialect() { if (dialectValueCase_ == 7) { - return (com.google.cloud.bigquery.migration.v2.SnowflakeDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.SnowflakeDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.SnowflakeDialect.getDefaultInstance(); } /** + * + * *
    * The Snowflake dialect
    * 
@@ -406,20 +502,24 @@ public com.google.cloud.bigquery.migration.v2.SnowflakeDialect getSnowflakeDiale * .google.cloud.bigquery.migration.v2.SnowflakeDialect snowflake_dialect = 7; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.SnowflakeDialectOrBuilder getSnowflakeDialectOrBuilder() { + public com.google.cloud.bigquery.migration.v2.SnowflakeDialectOrBuilder + getSnowflakeDialectOrBuilder() { if (dialectValueCase_ == 7) { - return (com.google.cloud.bigquery.migration.v2.SnowflakeDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.SnowflakeDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.SnowflakeDialect.getDefaultInstance(); } public static final int NETEZZA_DIALECT_FIELD_NUMBER = 8; /** + * + * *
    * The Netezza dialect
    * 
* * .google.cloud.bigquery.migration.v2.NetezzaDialect netezza_dialect = 8; + * * @return Whether the netezzaDialect field is set. */ @java.lang.Override @@ -427,21 +527,26 @@ public boolean hasNetezzaDialect() { return dialectValueCase_ == 8; } /** + * + * *
    * The Netezza dialect
    * 
* * .google.cloud.bigquery.migration.v2.NetezzaDialect netezza_dialect = 8; + * * @return The netezzaDialect. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.NetezzaDialect getNetezzaDialect() { if (dialectValueCase_ == 8) { - return (com.google.cloud.bigquery.migration.v2.NetezzaDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.NetezzaDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.NetezzaDialect.getDefaultInstance(); } /** + * + * *
    * The Netezza dialect
    * 
@@ -449,20 +554,24 @@ public com.google.cloud.bigquery.migration.v2.NetezzaDialect getNetezzaDialect() * .google.cloud.bigquery.migration.v2.NetezzaDialect netezza_dialect = 8; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.NetezzaDialectOrBuilder getNetezzaDialectOrBuilder() { + public com.google.cloud.bigquery.migration.v2.NetezzaDialectOrBuilder + getNetezzaDialectOrBuilder() { if (dialectValueCase_ == 8) { - return (com.google.cloud.bigquery.migration.v2.NetezzaDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.NetezzaDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.NetezzaDialect.getDefaultInstance(); } public static final int AZURE_SYNAPSE_DIALECT_FIELD_NUMBER = 9; /** + * + * *
    * The Azure Synapse dialect
    * 
* * .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; + * * @return Whether the azureSynapseDialect field is set. */ @java.lang.Override @@ -470,21 +579,26 @@ public boolean hasAzureSynapseDialect() { return dialectValueCase_ == 9; } /** + * + * *
    * The Azure Synapse dialect
    * 
* * .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; + * * @return The azureSynapseDialect. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.AzureSynapseDialect getAzureSynapseDialect() { if (dialectValueCase_ == 9) { - return (com.google.cloud.bigquery.migration.v2.AzureSynapseDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.AzureSynapseDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.getDefaultInstance(); } /** + * + * *
    * The Azure Synapse dialect
    * 
@@ -492,20 +606,24 @@ public com.google.cloud.bigquery.migration.v2.AzureSynapseDialect getAzureSynaps * .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.AzureSynapseDialectOrBuilder getAzureSynapseDialectOrBuilder() { + public com.google.cloud.bigquery.migration.v2.AzureSynapseDialectOrBuilder + getAzureSynapseDialectOrBuilder() { if (dialectValueCase_ == 9) { - return (com.google.cloud.bigquery.migration.v2.AzureSynapseDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.AzureSynapseDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.getDefaultInstance(); } public static final int VERTICA_DIALECT_FIELD_NUMBER = 10; /** + * + * *
    * The Vertica dialect
    * 
* * .google.cloud.bigquery.migration.v2.VerticaDialect vertica_dialect = 10; + * * @return Whether the verticaDialect field is set. */ @java.lang.Override @@ -513,21 +631,26 @@ public boolean hasVerticaDialect() { return dialectValueCase_ == 10; } /** + * + * *
    * The Vertica dialect
    * 
* * .google.cloud.bigquery.migration.v2.VerticaDialect vertica_dialect = 10; + * * @return The verticaDialect. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.VerticaDialect getVerticaDialect() { if (dialectValueCase_ == 10) { - return (com.google.cloud.bigquery.migration.v2.VerticaDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.VerticaDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.VerticaDialect.getDefaultInstance(); } /** + * + * *
    * The Vertica dialect
    * 
@@ -535,20 +658,24 @@ public com.google.cloud.bigquery.migration.v2.VerticaDialect getVerticaDialect() * .google.cloud.bigquery.migration.v2.VerticaDialect vertica_dialect = 10; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.VerticaDialectOrBuilder getVerticaDialectOrBuilder() { + public com.google.cloud.bigquery.migration.v2.VerticaDialectOrBuilder + getVerticaDialectOrBuilder() { if (dialectValueCase_ == 10) { - return (com.google.cloud.bigquery.migration.v2.VerticaDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.VerticaDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.VerticaDialect.getDefaultInstance(); } public static final int SQL_SERVER_DIALECT_FIELD_NUMBER = 11; /** + * + * *
    * The SQL Server dialect
    * 
* * .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; + * * @return Whether the sqlServerDialect field is set. */ @java.lang.Override @@ -556,21 +683,26 @@ public boolean hasSqlServerDialect() { return dialectValueCase_ == 11; } /** + * + * *
    * The SQL Server dialect
    * 
* * .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; + * * @return The sqlServerDialect. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.SQLServerDialect getSqlServerDialect() { if (dialectValueCase_ == 11) { - return (com.google.cloud.bigquery.migration.v2.SQLServerDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.SQLServerDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.SQLServerDialect.getDefaultInstance(); } /** + * + * *
    * The SQL Server dialect
    * 
@@ -578,20 +710,24 @@ public com.google.cloud.bigquery.migration.v2.SQLServerDialect getSqlServerDiale * .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.SQLServerDialectOrBuilder getSqlServerDialectOrBuilder() { + public com.google.cloud.bigquery.migration.v2.SQLServerDialectOrBuilder + getSqlServerDialectOrBuilder() { if (dialectValueCase_ == 11) { - return (com.google.cloud.bigquery.migration.v2.SQLServerDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.SQLServerDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.SQLServerDialect.getDefaultInstance(); } public static final int POSTGRESQL_DIALECT_FIELD_NUMBER = 12; /** + * + * *
    * The Postgresql dialect
    * 
* * .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; + * * @return Whether the postgresqlDialect field is set. */ @java.lang.Override @@ -599,21 +735,26 @@ public boolean hasPostgresqlDialect() { return dialectValueCase_ == 12; } /** + * + * *
    * The Postgresql dialect
    * 
* * .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; + * * @return The postgresqlDialect. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.PostgresqlDialect getPostgresqlDialect() { if (dialectValueCase_ == 12) { - return (com.google.cloud.bigquery.migration.v2.PostgresqlDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.PostgresqlDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.PostgresqlDialect.getDefaultInstance(); } /** + * + * *
    * The Postgresql dialect
    * 
@@ -621,20 +762,24 @@ public com.google.cloud.bigquery.migration.v2.PostgresqlDialect getPostgresqlDia * .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.PostgresqlDialectOrBuilder getPostgresqlDialectOrBuilder() { + public com.google.cloud.bigquery.migration.v2.PostgresqlDialectOrBuilder + getPostgresqlDialectOrBuilder() { if (dialectValueCase_ == 12) { - return (com.google.cloud.bigquery.migration.v2.PostgresqlDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.PostgresqlDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.PostgresqlDialect.getDefaultInstance(); } public static final int PRESTO_DIALECT_FIELD_NUMBER = 13; /** + * + * *
    * The Presto dialect
    * 
* * .google.cloud.bigquery.migration.v2.PrestoDialect presto_dialect = 13; + * * @return Whether the prestoDialect field is set. */ @java.lang.Override @@ -642,21 +787,26 @@ public boolean hasPrestoDialect() { return dialectValueCase_ == 13; } /** + * + * *
    * The Presto dialect
    * 
* * .google.cloud.bigquery.migration.v2.PrestoDialect presto_dialect = 13; + * * @return The prestoDialect. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.PrestoDialect getPrestoDialect() { if (dialectValueCase_ == 13) { - return (com.google.cloud.bigquery.migration.v2.PrestoDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.PrestoDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.PrestoDialect.getDefaultInstance(); } /** + * + * *
    * The Presto dialect
    * 
@@ -666,18 +816,21 @@ public com.google.cloud.bigquery.migration.v2.PrestoDialect getPrestoDialect() { @java.lang.Override public com.google.cloud.bigquery.migration.v2.PrestoDialectOrBuilder getPrestoDialectOrBuilder() { if (dialectValueCase_ == 13) { - return (com.google.cloud.bigquery.migration.v2.PrestoDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.PrestoDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.PrestoDialect.getDefaultInstance(); } public static final int MYSQL_DIALECT_FIELD_NUMBER = 14; /** + * + * *
    * The MySQL dialect
    * 
* * .google.cloud.bigquery.migration.v2.MySQLDialect mysql_dialect = 14; + * * @return Whether the mysqlDialect field is set. */ @java.lang.Override @@ -685,21 +838,26 @@ public boolean hasMysqlDialect() { return dialectValueCase_ == 14; } /** + * + * *
    * The MySQL dialect
    * 
* * .google.cloud.bigquery.migration.v2.MySQLDialect mysql_dialect = 14; + * * @return The mysqlDialect. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.MySQLDialect getMysqlDialect() { if (dialectValueCase_ == 14) { - return (com.google.cloud.bigquery.migration.v2.MySQLDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.MySQLDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.MySQLDialect.getDefaultInstance(); } /** + * + * *
    * The MySQL dialect
    * 
@@ -709,12 +867,13 @@ public com.google.cloud.bigquery.migration.v2.MySQLDialect getMysqlDialect() { @java.lang.Override public com.google.cloud.bigquery.migration.v2.MySQLDialectOrBuilder getMysqlDialectOrBuilder() { if (dialectValueCase_ == 14) { - return (com.google.cloud.bigquery.migration.v2.MySQLDialect) dialectValue_; + return (com.google.cloud.bigquery.migration.v2.MySQLDialect) dialectValue_; } return com.google.cloud.bigquery.migration.v2.MySQLDialect.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -726,43 +885,51 @@ public final boolean isInitialized() { } @java.lang.Override - 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 (dialectValueCase_ == 1) { - output.writeMessage(1, (com.google.cloud.bigquery.migration.v2.BigQueryDialect) dialectValue_); + output.writeMessage( + 1, (com.google.cloud.bigquery.migration.v2.BigQueryDialect) dialectValue_); } if (dialectValueCase_ == 2) { output.writeMessage(2, (com.google.cloud.bigquery.migration.v2.HiveQLDialect) dialectValue_); } if (dialectValueCase_ == 3) { - output.writeMessage(3, (com.google.cloud.bigquery.migration.v2.RedshiftDialect) dialectValue_); + output.writeMessage( + 3, (com.google.cloud.bigquery.migration.v2.RedshiftDialect) dialectValue_); } if (dialectValueCase_ == 4) { - output.writeMessage(4, (com.google.cloud.bigquery.migration.v2.TeradataDialect) dialectValue_); + output.writeMessage( + 4, (com.google.cloud.bigquery.migration.v2.TeradataDialect) dialectValue_); } if (dialectValueCase_ == 5) { output.writeMessage(5, (com.google.cloud.bigquery.migration.v2.OracleDialect) dialectValue_); } if (dialectValueCase_ == 6) { - output.writeMessage(6, (com.google.cloud.bigquery.migration.v2.SparkSQLDialect) dialectValue_); + output.writeMessage( + 6, (com.google.cloud.bigquery.migration.v2.SparkSQLDialect) dialectValue_); } if (dialectValueCase_ == 7) { - output.writeMessage(7, (com.google.cloud.bigquery.migration.v2.SnowflakeDialect) dialectValue_); + output.writeMessage( + 7, (com.google.cloud.bigquery.migration.v2.SnowflakeDialect) dialectValue_); } if (dialectValueCase_ == 8) { output.writeMessage(8, (com.google.cloud.bigquery.migration.v2.NetezzaDialect) dialectValue_); } if (dialectValueCase_ == 9) { - output.writeMessage(9, (com.google.cloud.bigquery.migration.v2.AzureSynapseDialect) dialectValue_); + output.writeMessage( + 9, (com.google.cloud.bigquery.migration.v2.AzureSynapseDialect) dialectValue_); } if (dialectValueCase_ == 10) { - output.writeMessage(10, (com.google.cloud.bigquery.migration.v2.VerticaDialect) dialectValue_); + output.writeMessage( + 10, (com.google.cloud.bigquery.migration.v2.VerticaDialect) dialectValue_); } if (dialectValueCase_ == 11) { - output.writeMessage(11, (com.google.cloud.bigquery.migration.v2.SQLServerDialect) dialectValue_); + output.writeMessage( + 11, (com.google.cloud.bigquery.migration.v2.SQLServerDialect) dialectValue_); } if (dialectValueCase_ == 12) { - output.writeMessage(12, (com.google.cloud.bigquery.migration.v2.PostgresqlDialect) dialectValue_); + output.writeMessage( + 12, (com.google.cloud.bigquery.migration.v2.PostgresqlDialect) dialectValue_); } if (dialectValueCase_ == 13) { output.writeMessage(13, (com.google.cloud.bigquery.migration.v2.PrestoDialect) dialectValue_); @@ -780,60 +947,74 @@ public int getSerializedSize() { size = 0; if (dialectValueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.bigquery.migration.v2.BigQueryDialect) dialectValue_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.bigquery.migration.v2.BigQueryDialect) dialectValue_); } if (dialectValueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.bigquery.migration.v2.HiveQLDialect) dialectValue_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.bigquery.migration.v2.HiveQLDialect) dialectValue_); } if (dialectValueCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.bigquery.migration.v2.RedshiftDialect) dialectValue_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.bigquery.migration.v2.RedshiftDialect) dialectValue_); } if (dialectValueCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.bigquery.migration.v2.TeradataDialect) dialectValue_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.bigquery.migration.v2.TeradataDialect) dialectValue_); } if (dialectValueCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.cloud.bigquery.migration.v2.OracleDialect) dialectValue_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.bigquery.migration.v2.OracleDialect) dialectValue_); } if (dialectValueCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.cloud.bigquery.migration.v2.SparkSQLDialect) dialectValue_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.bigquery.migration.v2.SparkSQLDialect) dialectValue_); } if (dialectValueCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.cloud.bigquery.migration.v2.SnowflakeDialect) dialectValue_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.bigquery.migration.v2.SnowflakeDialect) dialectValue_); } if (dialectValueCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.cloud.bigquery.migration.v2.NetezzaDialect) dialectValue_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.bigquery.migration.v2.NetezzaDialect) dialectValue_); } if (dialectValueCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (com.google.cloud.bigquery.migration.v2.AzureSynapseDialect) dialectValue_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.bigquery.migration.v2.AzureSynapseDialect) dialectValue_); } if (dialectValueCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (com.google.cloud.bigquery.migration.v2.VerticaDialect) dialectValue_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, (com.google.cloud.bigquery.migration.v2.VerticaDialect) dialectValue_); } if (dialectValueCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (com.google.cloud.bigquery.migration.v2.SQLServerDialect) dialectValue_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.cloud.bigquery.migration.v2.SQLServerDialect) dialectValue_); } if (dialectValueCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (com.google.cloud.bigquery.migration.v2.PostgresqlDialect) dialectValue_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.cloud.bigquery.migration.v2.PostgresqlDialect) dialectValue_); } if (dialectValueCase_ == 13) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, (com.google.cloud.bigquery.migration.v2.PrestoDialect) dialectValue_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.cloud.bigquery.migration.v2.PrestoDialect) dialectValue_); } if (dialectValueCase_ == 14) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, (com.google.cloud.bigquery.migration.v2.MySQLDialect) dialectValue_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, (com.google.cloud.bigquery.migration.v2.MySQLDialect) dialectValue_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -843,70 +1024,57 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2.Dialect)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.Dialect other = (com.google.cloud.bigquery.migration.v2.Dialect) obj; + com.google.cloud.bigquery.migration.v2.Dialect other = + (com.google.cloud.bigquery.migration.v2.Dialect) obj; if (!getDialectValueCase().equals(other.getDialectValueCase())) return false; switch (dialectValueCase_) { case 1: - if (!getBigqueryDialect() - .equals(other.getBigqueryDialect())) return false; + if (!getBigqueryDialect().equals(other.getBigqueryDialect())) return false; break; case 2: - if (!getHiveqlDialect() - .equals(other.getHiveqlDialect())) return false; + if (!getHiveqlDialect().equals(other.getHiveqlDialect())) return false; break; case 3: - if (!getRedshiftDialect() - .equals(other.getRedshiftDialect())) return false; + if (!getRedshiftDialect().equals(other.getRedshiftDialect())) return false; break; case 4: - if (!getTeradataDialect() - .equals(other.getTeradataDialect())) return false; + if (!getTeradataDialect().equals(other.getTeradataDialect())) return false; break; case 5: - if (!getOracleDialect() - .equals(other.getOracleDialect())) return false; + if (!getOracleDialect().equals(other.getOracleDialect())) return false; break; case 6: - if (!getSparksqlDialect() - .equals(other.getSparksqlDialect())) return false; + if (!getSparksqlDialect().equals(other.getSparksqlDialect())) return false; break; case 7: - if (!getSnowflakeDialect() - .equals(other.getSnowflakeDialect())) return false; + if (!getSnowflakeDialect().equals(other.getSnowflakeDialect())) return false; break; case 8: - if (!getNetezzaDialect() - .equals(other.getNetezzaDialect())) return false; + if (!getNetezzaDialect().equals(other.getNetezzaDialect())) return false; break; case 9: - if (!getAzureSynapseDialect() - .equals(other.getAzureSynapseDialect())) return false; + if (!getAzureSynapseDialect().equals(other.getAzureSynapseDialect())) return false; break; case 10: - if (!getVerticaDialect() - .equals(other.getVerticaDialect())) return false; + if (!getVerticaDialect().equals(other.getVerticaDialect())) return false; break; case 11: - if (!getSqlServerDialect() - .equals(other.getSqlServerDialect())) return false; + if (!getSqlServerDialect().equals(other.getSqlServerDialect())) return false; break; case 12: - if (!getPostgresqlDialect() - .equals(other.getPostgresqlDialect())) return false; + if (!getPostgresqlDialect().equals(other.getPostgresqlDialect())) return false; break; case 13: - if (!getPrestoDialect() - .equals(other.getPrestoDialect())) return false; + if (!getPrestoDialect().equals(other.getPrestoDialect())) return false; break; case 14: - if (!getMysqlDialect() - .equals(other.getMysqlDialect())) return false; + if (!getMysqlDialect().equals(other.getMysqlDialect())) return false; break; case 0: default: @@ -987,130 +1155,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.migration.v2.Dialect parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.bigquery.migration.v2.Dialect parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.Dialect parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.Dialect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.Dialect parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.Dialect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.Dialect parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.Dialect 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.bigquery.migration.v2.Dialect parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.Dialect parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.Dialect parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.Dialect parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.Dialect parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.Dialect parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.Dialect prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 possible dialect options for translation.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.Dialect} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.Dialect) com.google.cloud.bigquery.migration.v2.DialectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_Dialect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_Dialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_Dialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_Dialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.Dialect.class, com.google.cloud.bigquery.migration.v2.Dialect.Builder.class); + com.google.cloud.bigquery.migration.v2.Dialect.class, + com.google.cloud.bigquery.migration.v2.Dialect.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2.Dialect.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1163,9 +1337,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_Dialect_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_Dialect_descriptor; } @java.lang.Override @@ -1184,8 +1358,11 @@ public com.google.cloud.bigquery.migration.v2.Dialect build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2.Dialect buildPartial() { - com.google.cloud.bigquery.migration.v2.Dialect result = new com.google.cloud.bigquery.migration.v2.Dialect(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.migration.v2.Dialect result = + new com.google.cloud.bigquery.migration.v2.Dialect(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -1198,60 +1375,46 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.Dialect result private void buildPartialOneofs(com.google.cloud.bigquery.migration.v2.Dialect result) { result.dialectValueCase_ = dialectValueCase_; result.dialectValue_ = this.dialectValue_; - if (dialectValueCase_ == 1 && - bigqueryDialectBuilder_ != null) { + if (dialectValueCase_ == 1 && bigqueryDialectBuilder_ != null) { result.dialectValue_ = bigqueryDialectBuilder_.build(); } - if (dialectValueCase_ == 2 && - hiveqlDialectBuilder_ != null) { + if (dialectValueCase_ == 2 && hiveqlDialectBuilder_ != null) { result.dialectValue_ = hiveqlDialectBuilder_.build(); } - if (dialectValueCase_ == 3 && - redshiftDialectBuilder_ != null) { + if (dialectValueCase_ == 3 && redshiftDialectBuilder_ != null) { result.dialectValue_ = redshiftDialectBuilder_.build(); } - if (dialectValueCase_ == 4 && - teradataDialectBuilder_ != null) { + if (dialectValueCase_ == 4 && teradataDialectBuilder_ != null) { result.dialectValue_ = teradataDialectBuilder_.build(); } - if (dialectValueCase_ == 5 && - oracleDialectBuilder_ != null) { + if (dialectValueCase_ == 5 && oracleDialectBuilder_ != null) { result.dialectValue_ = oracleDialectBuilder_.build(); } - if (dialectValueCase_ == 6 && - sparksqlDialectBuilder_ != null) { + if (dialectValueCase_ == 6 && sparksqlDialectBuilder_ != null) { result.dialectValue_ = sparksqlDialectBuilder_.build(); } - if (dialectValueCase_ == 7 && - snowflakeDialectBuilder_ != null) { + if (dialectValueCase_ == 7 && snowflakeDialectBuilder_ != null) { result.dialectValue_ = snowflakeDialectBuilder_.build(); } - if (dialectValueCase_ == 8 && - netezzaDialectBuilder_ != null) { + if (dialectValueCase_ == 8 && netezzaDialectBuilder_ != null) { result.dialectValue_ = netezzaDialectBuilder_.build(); } - if (dialectValueCase_ == 9 && - azureSynapseDialectBuilder_ != null) { + if (dialectValueCase_ == 9 && azureSynapseDialectBuilder_ != null) { result.dialectValue_ = azureSynapseDialectBuilder_.build(); } - if (dialectValueCase_ == 10 && - verticaDialectBuilder_ != null) { + if (dialectValueCase_ == 10 && verticaDialectBuilder_ != null) { result.dialectValue_ = verticaDialectBuilder_.build(); } - if (dialectValueCase_ == 11 && - sqlServerDialectBuilder_ != null) { + if (dialectValueCase_ == 11 && sqlServerDialectBuilder_ != null) { result.dialectValue_ = sqlServerDialectBuilder_.build(); } - if (dialectValueCase_ == 12 && - postgresqlDialectBuilder_ != null) { + if (dialectValueCase_ == 12 && postgresqlDialectBuilder_ != null) { result.dialectValue_ = postgresqlDialectBuilder_.build(); } - if (dialectValueCase_ == 13 && - prestoDialectBuilder_ != null) { + if (dialectValueCase_ == 13 && prestoDialectBuilder_ != null) { result.dialectValue_ = prestoDialectBuilder_.build(); } - if (dialectValueCase_ == 14 && - mysqlDialectBuilder_ != null) { + if (dialectValueCase_ == 14 && mysqlDialectBuilder_ != null) { result.dialectValue_ = mysqlDialectBuilder_.build(); } } @@ -1260,38 +1423,39 @@ private void buildPartialOneofs(com.google.cloud.bigquery.migration.v2.Dialect r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.Dialect) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.Dialect)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2.Dialect) other); } else { super.mergeFrom(other); return this; @@ -1301,65 +1465,80 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.Dialect other) { if (other == com.google.cloud.bigquery.migration.v2.Dialect.getDefaultInstance()) return this; switch (other.getDialectValueCase()) { - case BIGQUERY_DIALECT: { - mergeBigqueryDialect(other.getBigqueryDialect()); - break; - } - case HIVEQL_DIALECT: { - mergeHiveqlDialect(other.getHiveqlDialect()); - break; - } - case REDSHIFT_DIALECT: { - mergeRedshiftDialect(other.getRedshiftDialect()); - break; - } - case TERADATA_DIALECT: { - mergeTeradataDialect(other.getTeradataDialect()); - break; - } - case ORACLE_DIALECT: { - mergeOracleDialect(other.getOracleDialect()); - break; - } - case SPARKSQL_DIALECT: { - mergeSparksqlDialect(other.getSparksqlDialect()); - break; - } - case SNOWFLAKE_DIALECT: { - mergeSnowflakeDialect(other.getSnowflakeDialect()); - break; - } - case NETEZZA_DIALECT: { - mergeNetezzaDialect(other.getNetezzaDialect()); - break; - } - case AZURE_SYNAPSE_DIALECT: { - mergeAzureSynapseDialect(other.getAzureSynapseDialect()); - break; - } - case VERTICA_DIALECT: { - mergeVerticaDialect(other.getVerticaDialect()); - break; - } - case SQL_SERVER_DIALECT: { - mergeSqlServerDialect(other.getSqlServerDialect()); - break; - } - case POSTGRESQL_DIALECT: { - mergePostgresqlDialect(other.getPostgresqlDialect()); - break; - } - case PRESTO_DIALECT: { - mergePrestoDialect(other.getPrestoDialect()); - break; - } - case MYSQL_DIALECT: { - mergeMysqlDialect(other.getMysqlDialect()); - break; - } - case DIALECTVALUE_NOT_SET: { - break; - } + case BIGQUERY_DIALECT: + { + mergeBigqueryDialect(other.getBigqueryDialect()); + break; + } + case HIVEQL_DIALECT: + { + mergeHiveqlDialect(other.getHiveqlDialect()); + break; + } + case REDSHIFT_DIALECT: + { + mergeRedshiftDialect(other.getRedshiftDialect()); + break; + } + case TERADATA_DIALECT: + { + mergeTeradataDialect(other.getTeradataDialect()); + break; + } + case ORACLE_DIALECT: + { + mergeOracleDialect(other.getOracleDialect()); + break; + } + case SPARKSQL_DIALECT: + { + mergeSparksqlDialect(other.getSparksqlDialect()); + break; + } + case SNOWFLAKE_DIALECT: + { + mergeSnowflakeDialect(other.getSnowflakeDialect()); + break; + } + case NETEZZA_DIALECT: + { + mergeNetezzaDialect(other.getNetezzaDialect()); + break; + } + case AZURE_SYNAPSE_DIALECT: + { + mergeAzureSynapseDialect(other.getAzureSynapseDialect()); + break; + } + case VERTICA_DIALECT: + { + mergeVerticaDialect(other.getVerticaDialect()); + break; + } + case SQL_SERVER_DIALECT: + { + mergeSqlServerDialect(other.getSqlServerDialect()); + break; + } + case POSTGRESQL_DIALECT: + { + mergePostgresqlDialect(other.getPostgresqlDialect()); + break; + } + case PRESTO_DIALECT: + { + mergePrestoDialect(other.getPrestoDialect()); + break; + } + case MYSQL_DIALECT: + { + mergeMysqlDialect(other.getMysqlDialect()); + break; + } + case DIALECTVALUE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1387,110 +1566,101 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getBigqueryDialectFieldBuilder().getBuilder(), - extensionRegistry); - dialectValueCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getHiveqlDialectFieldBuilder().getBuilder(), - extensionRegistry); - dialectValueCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getRedshiftDialectFieldBuilder().getBuilder(), - extensionRegistry); - dialectValueCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getTeradataDialectFieldBuilder().getBuilder(), - extensionRegistry); - dialectValueCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - getOracleDialectFieldBuilder().getBuilder(), - extensionRegistry); - dialectValueCase_ = 5; - break; - } // case 42 - case 50: { - input.readMessage( - getSparksqlDialectFieldBuilder().getBuilder(), - extensionRegistry); - dialectValueCase_ = 6; - break; - } // case 50 - case 58: { - input.readMessage( - getSnowflakeDialectFieldBuilder().getBuilder(), - extensionRegistry); - dialectValueCase_ = 7; - break; - } // case 58 - case 66: { - input.readMessage( - getNetezzaDialectFieldBuilder().getBuilder(), - extensionRegistry); - dialectValueCase_ = 8; - break; - } // case 66 - case 74: { - input.readMessage( - getAzureSynapseDialectFieldBuilder().getBuilder(), - extensionRegistry); - dialectValueCase_ = 9; - break; - } // case 74 - case 82: { - input.readMessage( - getVerticaDialectFieldBuilder().getBuilder(), - extensionRegistry); - dialectValueCase_ = 10; - break; - } // case 82 - case 90: { - input.readMessage( - getSqlServerDialectFieldBuilder().getBuilder(), - extensionRegistry); - dialectValueCase_ = 11; - break; - } // case 90 - case 98: { - input.readMessage( - getPostgresqlDialectFieldBuilder().getBuilder(), - extensionRegistry); - dialectValueCase_ = 12; - break; - } // case 98 - case 106: { - input.readMessage( - getPrestoDialectFieldBuilder().getBuilder(), - extensionRegistry); - dialectValueCase_ = 13; - break; - } // case 106 - case 114: { - input.readMessage( - getMysqlDialectFieldBuilder().getBuilder(), - extensionRegistry); - dialectValueCase_ = 14; - break; - } // case 114 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getBigqueryDialectFieldBuilder().getBuilder(), extensionRegistry); + dialectValueCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getHiveqlDialectFieldBuilder().getBuilder(), extensionRegistry); + dialectValueCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getRedshiftDialectFieldBuilder().getBuilder(), extensionRegistry); + dialectValueCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getTeradataDialectFieldBuilder().getBuilder(), extensionRegistry); + dialectValueCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getOracleDialectFieldBuilder().getBuilder(), extensionRegistry); + dialectValueCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getSparksqlDialectFieldBuilder().getBuilder(), extensionRegistry); + dialectValueCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + getSnowflakeDialectFieldBuilder().getBuilder(), extensionRegistry); + dialectValueCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage(getNetezzaDialectFieldBuilder().getBuilder(), extensionRegistry); + dialectValueCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage( + getAzureSynapseDialectFieldBuilder().getBuilder(), extensionRegistry); + dialectValueCase_ = 9; + break; + } // case 74 + case 82: + { + input.readMessage(getVerticaDialectFieldBuilder().getBuilder(), extensionRegistry); + dialectValueCase_ = 10; + break; + } // case 82 + case 90: + { + input.readMessage( + getSqlServerDialectFieldBuilder().getBuilder(), extensionRegistry); + dialectValueCase_ = 11; + break; + } // case 90 + case 98: + { + input.readMessage( + getPostgresqlDialectFieldBuilder().getBuilder(), extensionRegistry); + dialectValueCase_ = 12; + break; + } // case 98 + case 106: + { + input.readMessage(getPrestoDialectFieldBuilder().getBuilder(), extensionRegistry); + dialectValueCase_ = 13; + break; + } // case 106 + case 114: + { + input.readMessage(getMysqlDialectFieldBuilder().getBuilder(), extensionRegistry); + dialectValueCase_ = 14; + break; + } // case 114 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1500,12 +1670,12 @@ public Builder mergeFrom( } // finally return this; } + private int dialectValueCase_ = 0; private java.lang.Object dialectValue_; - public DialectValueCase - getDialectValueCase() { - return DialectValueCase.forNumber( - dialectValueCase_); + + public DialectValueCase getDialectValueCase() { + return DialectValueCase.forNumber(dialectValueCase_); } public Builder clearDialectValue() { @@ -1518,13 +1688,19 @@ public Builder clearDialectValue() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.BigQueryDialect, com.google.cloud.bigquery.migration.v2.BigQueryDialect.Builder, com.google.cloud.bigquery.migration.v2.BigQueryDialectOrBuilder> bigqueryDialectBuilder_; + com.google.cloud.bigquery.migration.v2.BigQueryDialect, + com.google.cloud.bigquery.migration.v2.BigQueryDialect.Builder, + com.google.cloud.bigquery.migration.v2.BigQueryDialectOrBuilder> + bigqueryDialectBuilder_; /** + * + * *
      * The BigQuery dialect
      * 
* * .google.cloud.bigquery.migration.v2.BigQueryDialect bigquery_dialect = 1; + * * @return Whether the bigqueryDialect field is set. */ @java.lang.Override @@ -1532,11 +1708,14 @@ public boolean hasBigqueryDialect() { return dialectValueCase_ == 1; } /** + * + * *
      * The BigQuery dialect
      * 
* * .google.cloud.bigquery.migration.v2.BigQueryDialect bigquery_dialect = 1; + * * @return The bigqueryDialect. */ @java.lang.Override @@ -1554,13 +1733,16 @@ public com.google.cloud.bigquery.migration.v2.BigQueryDialect getBigqueryDialect } } /** + * + * *
      * The BigQuery dialect
      * 
* * .google.cloud.bigquery.migration.v2.BigQueryDialect bigquery_dialect = 1; */ - public Builder setBigqueryDialect(com.google.cloud.bigquery.migration.v2.BigQueryDialect value) { + public Builder setBigqueryDialect( + com.google.cloud.bigquery.migration.v2.BigQueryDialect value) { if (bigqueryDialectBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1574,6 +1756,8 @@ public Builder setBigqueryDialect(com.google.cloud.bigquery.migration.v2.BigQuer return this; } /** + * + * *
      * The BigQuery dialect
      * 
@@ -1592,18 +1776,25 @@ public Builder setBigqueryDialect( return this; } /** + * + * *
      * The BigQuery dialect
      * 
* * .google.cloud.bigquery.migration.v2.BigQueryDialect bigquery_dialect = 1; */ - public Builder mergeBigqueryDialect(com.google.cloud.bigquery.migration.v2.BigQueryDialect value) { + public Builder mergeBigqueryDialect( + com.google.cloud.bigquery.migration.v2.BigQueryDialect value) { if (bigqueryDialectBuilder_ == null) { - if (dialectValueCase_ == 1 && - dialectValue_ != com.google.cloud.bigquery.migration.v2.BigQueryDialect.getDefaultInstance()) { - dialectValue_ = com.google.cloud.bigquery.migration.v2.BigQueryDialect.newBuilder((com.google.cloud.bigquery.migration.v2.BigQueryDialect) dialectValue_) - .mergeFrom(value).buildPartial(); + if (dialectValueCase_ == 1 + && dialectValue_ + != com.google.cloud.bigquery.migration.v2.BigQueryDialect.getDefaultInstance()) { + dialectValue_ = + com.google.cloud.bigquery.migration.v2.BigQueryDialect.newBuilder( + (com.google.cloud.bigquery.migration.v2.BigQueryDialect) dialectValue_) + .mergeFrom(value) + .buildPartial(); } else { dialectValue_ = value; } @@ -1619,6 +1810,8 @@ public Builder mergeBigqueryDialect(com.google.cloud.bigquery.migration.v2.BigQu return this; } /** + * + * *
      * The BigQuery dialect
      * 
@@ -1642,16 +1835,21 @@ public Builder clearBigqueryDialect() { return this; } /** + * + * *
      * The BigQuery dialect
      * 
* * .google.cloud.bigquery.migration.v2.BigQueryDialect bigquery_dialect = 1; */ - public com.google.cloud.bigquery.migration.v2.BigQueryDialect.Builder getBigqueryDialectBuilder() { + public com.google.cloud.bigquery.migration.v2.BigQueryDialect.Builder + getBigqueryDialectBuilder() { return getBigqueryDialectFieldBuilder().getBuilder(); } /** + * + * *
      * The BigQuery dialect
      * 
@@ -1659,7 +1857,8 @@ public com.google.cloud.bigquery.migration.v2.BigQueryDialect.Builder getBigquer * .google.cloud.bigquery.migration.v2.BigQueryDialect bigquery_dialect = 1; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.BigQueryDialectOrBuilder getBigqueryDialectOrBuilder() { + public com.google.cloud.bigquery.migration.v2.BigQueryDialectOrBuilder + getBigqueryDialectOrBuilder() { if ((dialectValueCase_ == 1) && (bigqueryDialectBuilder_ != null)) { return bigqueryDialectBuilder_.getMessageOrBuilder(); } else { @@ -1670,6 +1869,8 @@ public com.google.cloud.bigquery.migration.v2.BigQueryDialectOrBuilder getBigque } } /** + * + * *
      * The BigQuery dialect
      * 
@@ -1677,14 +1878,20 @@ public com.google.cloud.bigquery.migration.v2.BigQueryDialectOrBuilder getBigque * .google.cloud.bigquery.migration.v2.BigQueryDialect bigquery_dialect = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.BigQueryDialect, com.google.cloud.bigquery.migration.v2.BigQueryDialect.Builder, com.google.cloud.bigquery.migration.v2.BigQueryDialectOrBuilder> + com.google.cloud.bigquery.migration.v2.BigQueryDialect, + com.google.cloud.bigquery.migration.v2.BigQueryDialect.Builder, + com.google.cloud.bigquery.migration.v2.BigQueryDialectOrBuilder> getBigqueryDialectFieldBuilder() { if (bigqueryDialectBuilder_ == null) { if (!(dialectValueCase_ == 1)) { - dialectValue_ = com.google.cloud.bigquery.migration.v2.BigQueryDialect.getDefaultInstance(); - } - bigqueryDialectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.BigQueryDialect, com.google.cloud.bigquery.migration.v2.BigQueryDialect.Builder, com.google.cloud.bigquery.migration.v2.BigQueryDialectOrBuilder>( + dialectValue_ = + com.google.cloud.bigquery.migration.v2.BigQueryDialect.getDefaultInstance(); + } + bigqueryDialectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.BigQueryDialect, + com.google.cloud.bigquery.migration.v2.BigQueryDialect.Builder, + com.google.cloud.bigquery.migration.v2.BigQueryDialectOrBuilder>( (com.google.cloud.bigquery.migration.v2.BigQueryDialect) dialectValue_, getParentForChildren(), isClean()); @@ -1696,13 +1903,19 @@ public com.google.cloud.bigquery.migration.v2.BigQueryDialectOrBuilder getBigque } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.HiveQLDialect, com.google.cloud.bigquery.migration.v2.HiveQLDialect.Builder, com.google.cloud.bigquery.migration.v2.HiveQLDialectOrBuilder> hiveqlDialectBuilder_; + com.google.cloud.bigquery.migration.v2.HiveQLDialect, + com.google.cloud.bigquery.migration.v2.HiveQLDialect.Builder, + com.google.cloud.bigquery.migration.v2.HiveQLDialectOrBuilder> + hiveqlDialectBuilder_; /** + * + * *
      * The HiveQL dialect
      * 
* * .google.cloud.bigquery.migration.v2.HiveQLDialect hiveql_dialect = 2; + * * @return Whether the hiveqlDialect field is set. */ @java.lang.Override @@ -1710,11 +1923,14 @@ public boolean hasHiveqlDialect() { return dialectValueCase_ == 2; } /** + * + * *
      * The HiveQL dialect
      * 
* * .google.cloud.bigquery.migration.v2.HiveQLDialect hiveql_dialect = 2; + * * @return The hiveqlDialect. */ @java.lang.Override @@ -1732,6 +1948,8 @@ public com.google.cloud.bigquery.migration.v2.HiveQLDialect getHiveqlDialect() { } } /** + * + * *
      * The HiveQL dialect
      * 
@@ -1752,6 +1970,8 @@ public Builder setHiveqlDialect(com.google.cloud.bigquery.migration.v2.HiveQLDia return this; } /** + * + * *
      * The HiveQL dialect
      * 
@@ -1770,6 +1990,8 @@ public Builder setHiveqlDialect( return this; } /** + * + * *
      * The HiveQL dialect
      * 
@@ -1778,10 +2000,14 @@ public Builder setHiveqlDialect( */ public Builder mergeHiveqlDialect(com.google.cloud.bigquery.migration.v2.HiveQLDialect value) { if (hiveqlDialectBuilder_ == null) { - if (dialectValueCase_ == 2 && - dialectValue_ != com.google.cloud.bigquery.migration.v2.HiveQLDialect.getDefaultInstance()) { - dialectValue_ = com.google.cloud.bigquery.migration.v2.HiveQLDialect.newBuilder((com.google.cloud.bigquery.migration.v2.HiveQLDialect) dialectValue_) - .mergeFrom(value).buildPartial(); + if (dialectValueCase_ == 2 + && dialectValue_ + != com.google.cloud.bigquery.migration.v2.HiveQLDialect.getDefaultInstance()) { + dialectValue_ = + com.google.cloud.bigquery.migration.v2.HiveQLDialect.newBuilder( + (com.google.cloud.bigquery.migration.v2.HiveQLDialect) dialectValue_) + .mergeFrom(value) + .buildPartial(); } else { dialectValue_ = value; } @@ -1797,6 +2023,8 @@ public Builder mergeHiveqlDialect(com.google.cloud.bigquery.migration.v2.HiveQLD return this; } /** + * + * *
      * The HiveQL dialect
      * 
@@ -1820,6 +2048,8 @@ public Builder clearHiveqlDialect() { return this; } /** + * + * *
      * The HiveQL dialect
      * 
@@ -1830,6 +2060,8 @@ public com.google.cloud.bigquery.migration.v2.HiveQLDialect.Builder getHiveqlDia return getHiveqlDialectFieldBuilder().getBuilder(); } /** + * + * *
      * The HiveQL dialect
      * 
@@ -1837,7 +2069,8 @@ public com.google.cloud.bigquery.migration.v2.HiveQLDialect.Builder getHiveqlDia * .google.cloud.bigquery.migration.v2.HiveQLDialect hiveql_dialect = 2; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.HiveQLDialectOrBuilder getHiveqlDialectOrBuilder() { + public com.google.cloud.bigquery.migration.v2.HiveQLDialectOrBuilder + getHiveqlDialectOrBuilder() { if ((dialectValueCase_ == 2) && (hiveqlDialectBuilder_ != null)) { return hiveqlDialectBuilder_.getMessageOrBuilder(); } else { @@ -1848,6 +2081,8 @@ public com.google.cloud.bigquery.migration.v2.HiveQLDialectOrBuilder getHiveqlDi } } /** + * + * *
      * The HiveQL dialect
      * 
@@ -1855,14 +2090,19 @@ public com.google.cloud.bigquery.migration.v2.HiveQLDialectOrBuilder getHiveqlDi * .google.cloud.bigquery.migration.v2.HiveQLDialect hiveql_dialect = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.HiveQLDialect, com.google.cloud.bigquery.migration.v2.HiveQLDialect.Builder, com.google.cloud.bigquery.migration.v2.HiveQLDialectOrBuilder> + com.google.cloud.bigquery.migration.v2.HiveQLDialect, + com.google.cloud.bigquery.migration.v2.HiveQLDialect.Builder, + com.google.cloud.bigquery.migration.v2.HiveQLDialectOrBuilder> getHiveqlDialectFieldBuilder() { if (hiveqlDialectBuilder_ == null) { if (!(dialectValueCase_ == 2)) { dialectValue_ = com.google.cloud.bigquery.migration.v2.HiveQLDialect.getDefaultInstance(); } - hiveqlDialectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.HiveQLDialect, com.google.cloud.bigquery.migration.v2.HiveQLDialect.Builder, com.google.cloud.bigquery.migration.v2.HiveQLDialectOrBuilder>( + hiveqlDialectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.HiveQLDialect, + com.google.cloud.bigquery.migration.v2.HiveQLDialect.Builder, + com.google.cloud.bigquery.migration.v2.HiveQLDialectOrBuilder>( (com.google.cloud.bigquery.migration.v2.HiveQLDialect) dialectValue_, getParentForChildren(), isClean()); @@ -1874,13 +2114,19 @@ public com.google.cloud.bigquery.migration.v2.HiveQLDialectOrBuilder getHiveqlDi } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.RedshiftDialect, com.google.cloud.bigquery.migration.v2.RedshiftDialect.Builder, com.google.cloud.bigquery.migration.v2.RedshiftDialectOrBuilder> redshiftDialectBuilder_; + com.google.cloud.bigquery.migration.v2.RedshiftDialect, + com.google.cloud.bigquery.migration.v2.RedshiftDialect.Builder, + com.google.cloud.bigquery.migration.v2.RedshiftDialectOrBuilder> + redshiftDialectBuilder_; /** + * + * *
      * The Redshift dialect
      * 
* * .google.cloud.bigquery.migration.v2.RedshiftDialect redshift_dialect = 3; + * * @return Whether the redshiftDialect field is set. */ @java.lang.Override @@ -1888,11 +2134,14 @@ public boolean hasRedshiftDialect() { return dialectValueCase_ == 3; } /** + * + * *
      * The Redshift dialect
      * 
* * .google.cloud.bigquery.migration.v2.RedshiftDialect redshift_dialect = 3; + * * @return The redshiftDialect. */ @java.lang.Override @@ -1910,13 +2159,16 @@ public com.google.cloud.bigquery.migration.v2.RedshiftDialect getRedshiftDialect } } /** + * + * *
      * The Redshift dialect
      * 
* * .google.cloud.bigquery.migration.v2.RedshiftDialect redshift_dialect = 3; */ - public Builder setRedshiftDialect(com.google.cloud.bigquery.migration.v2.RedshiftDialect value) { + public Builder setRedshiftDialect( + com.google.cloud.bigquery.migration.v2.RedshiftDialect value) { if (redshiftDialectBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1930,6 +2182,8 @@ public Builder setRedshiftDialect(com.google.cloud.bigquery.migration.v2.Redshif return this; } /** + * + * *
      * The Redshift dialect
      * 
@@ -1948,18 +2202,25 @@ public Builder setRedshiftDialect( return this; } /** + * + * *
      * The Redshift dialect
      * 
* * .google.cloud.bigquery.migration.v2.RedshiftDialect redshift_dialect = 3; */ - public Builder mergeRedshiftDialect(com.google.cloud.bigquery.migration.v2.RedshiftDialect value) { + public Builder mergeRedshiftDialect( + com.google.cloud.bigquery.migration.v2.RedshiftDialect value) { if (redshiftDialectBuilder_ == null) { - if (dialectValueCase_ == 3 && - dialectValue_ != com.google.cloud.bigquery.migration.v2.RedshiftDialect.getDefaultInstance()) { - dialectValue_ = com.google.cloud.bigquery.migration.v2.RedshiftDialect.newBuilder((com.google.cloud.bigquery.migration.v2.RedshiftDialect) dialectValue_) - .mergeFrom(value).buildPartial(); + if (dialectValueCase_ == 3 + && dialectValue_ + != com.google.cloud.bigquery.migration.v2.RedshiftDialect.getDefaultInstance()) { + dialectValue_ = + com.google.cloud.bigquery.migration.v2.RedshiftDialect.newBuilder( + (com.google.cloud.bigquery.migration.v2.RedshiftDialect) dialectValue_) + .mergeFrom(value) + .buildPartial(); } else { dialectValue_ = value; } @@ -1975,6 +2236,8 @@ public Builder mergeRedshiftDialect(com.google.cloud.bigquery.migration.v2.Redsh return this; } /** + * + * *
      * The Redshift dialect
      * 
@@ -1998,16 +2261,21 @@ public Builder clearRedshiftDialect() { return this; } /** + * + * *
      * The Redshift dialect
      * 
* * .google.cloud.bigquery.migration.v2.RedshiftDialect redshift_dialect = 3; */ - public com.google.cloud.bigquery.migration.v2.RedshiftDialect.Builder getRedshiftDialectBuilder() { + public com.google.cloud.bigquery.migration.v2.RedshiftDialect.Builder + getRedshiftDialectBuilder() { return getRedshiftDialectFieldBuilder().getBuilder(); } /** + * + * *
      * The Redshift dialect
      * 
@@ -2015,7 +2283,8 @@ public com.google.cloud.bigquery.migration.v2.RedshiftDialect.Builder getRedshif * .google.cloud.bigquery.migration.v2.RedshiftDialect redshift_dialect = 3; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.RedshiftDialectOrBuilder getRedshiftDialectOrBuilder() { + public com.google.cloud.bigquery.migration.v2.RedshiftDialectOrBuilder + getRedshiftDialectOrBuilder() { if ((dialectValueCase_ == 3) && (redshiftDialectBuilder_ != null)) { return redshiftDialectBuilder_.getMessageOrBuilder(); } else { @@ -2026,6 +2295,8 @@ public com.google.cloud.bigquery.migration.v2.RedshiftDialectOrBuilder getRedshi } } /** + * + * *
      * The Redshift dialect
      * 
@@ -2033,14 +2304,20 @@ public com.google.cloud.bigquery.migration.v2.RedshiftDialectOrBuilder getRedshi * .google.cloud.bigquery.migration.v2.RedshiftDialect redshift_dialect = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.RedshiftDialect, com.google.cloud.bigquery.migration.v2.RedshiftDialect.Builder, com.google.cloud.bigquery.migration.v2.RedshiftDialectOrBuilder> + com.google.cloud.bigquery.migration.v2.RedshiftDialect, + com.google.cloud.bigquery.migration.v2.RedshiftDialect.Builder, + com.google.cloud.bigquery.migration.v2.RedshiftDialectOrBuilder> getRedshiftDialectFieldBuilder() { if (redshiftDialectBuilder_ == null) { if (!(dialectValueCase_ == 3)) { - dialectValue_ = com.google.cloud.bigquery.migration.v2.RedshiftDialect.getDefaultInstance(); - } - redshiftDialectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.RedshiftDialect, com.google.cloud.bigquery.migration.v2.RedshiftDialect.Builder, com.google.cloud.bigquery.migration.v2.RedshiftDialectOrBuilder>( + dialectValue_ = + com.google.cloud.bigquery.migration.v2.RedshiftDialect.getDefaultInstance(); + } + redshiftDialectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.RedshiftDialect, + com.google.cloud.bigquery.migration.v2.RedshiftDialect.Builder, + com.google.cloud.bigquery.migration.v2.RedshiftDialectOrBuilder>( (com.google.cloud.bigquery.migration.v2.RedshiftDialect) dialectValue_, getParentForChildren(), isClean()); @@ -2052,13 +2329,19 @@ public com.google.cloud.bigquery.migration.v2.RedshiftDialectOrBuilder getRedshi } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.TeradataDialect, com.google.cloud.bigquery.migration.v2.TeradataDialect.Builder, com.google.cloud.bigquery.migration.v2.TeradataDialectOrBuilder> teradataDialectBuilder_; + com.google.cloud.bigquery.migration.v2.TeradataDialect, + com.google.cloud.bigquery.migration.v2.TeradataDialect.Builder, + com.google.cloud.bigquery.migration.v2.TeradataDialectOrBuilder> + teradataDialectBuilder_; /** + * + * *
      * The Teradata dialect
      * 
* * .google.cloud.bigquery.migration.v2.TeradataDialect teradata_dialect = 4; + * * @return Whether the teradataDialect field is set. */ @java.lang.Override @@ -2066,11 +2349,14 @@ public boolean hasTeradataDialect() { return dialectValueCase_ == 4; } /** + * + * *
      * The Teradata dialect
      * 
* * .google.cloud.bigquery.migration.v2.TeradataDialect teradata_dialect = 4; + * * @return The teradataDialect. */ @java.lang.Override @@ -2088,13 +2374,16 @@ public com.google.cloud.bigquery.migration.v2.TeradataDialect getTeradataDialect } } /** + * + * *
      * The Teradata dialect
      * 
* * .google.cloud.bigquery.migration.v2.TeradataDialect teradata_dialect = 4; */ - public Builder setTeradataDialect(com.google.cloud.bigquery.migration.v2.TeradataDialect value) { + public Builder setTeradataDialect( + com.google.cloud.bigquery.migration.v2.TeradataDialect value) { if (teradataDialectBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2108,6 +2397,8 @@ public Builder setTeradataDialect(com.google.cloud.bigquery.migration.v2.Teradat return this; } /** + * + * *
      * The Teradata dialect
      * 
@@ -2126,18 +2417,25 @@ public Builder setTeradataDialect( return this; } /** + * + * *
      * The Teradata dialect
      * 
* * .google.cloud.bigquery.migration.v2.TeradataDialect teradata_dialect = 4; */ - public Builder mergeTeradataDialect(com.google.cloud.bigquery.migration.v2.TeradataDialect value) { + public Builder mergeTeradataDialect( + com.google.cloud.bigquery.migration.v2.TeradataDialect value) { if (teradataDialectBuilder_ == null) { - if (dialectValueCase_ == 4 && - dialectValue_ != com.google.cloud.bigquery.migration.v2.TeradataDialect.getDefaultInstance()) { - dialectValue_ = com.google.cloud.bigquery.migration.v2.TeradataDialect.newBuilder((com.google.cloud.bigquery.migration.v2.TeradataDialect) dialectValue_) - .mergeFrom(value).buildPartial(); + if (dialectValueCase_ == 4 + && dialectValue_ + != com.google.cloud.bigquery.migration.v2.TeradataDialect.getDefaultInstance()) { + dialectValue_ = + com.google.cloud.bigquery.migration.v2.TeradataDialect.newBuilder( + (com.google.cloud.bigquery.migration.v2.TeradataDialect) dialectValue_) + .mergeFrom(value) + .buildPartial(); } else { dialectValue_ = value; } @@ -2153,6 +2451,8 @@ public Builder mergeTeradataDialect(com.google.cloud.bigquery.migration.v2.Terad return this; } /** + * + * *
      * The Teradata dialect
      * 
@@ -2176,16 +2476,21 @@ public Builder clearTeradataDialect() { return this; } /** + * + * *
      * The Teradata dialect
      * 
* * .google.cloud.bigquery.migration.v2.TeradataDialect teradata_dialect = 4; */ - public com.google.cloud.bigquery.migration.v2.TeradataDialect.Builder getTeradataDialectBuilder() { + public com.google.cloud.bigquery.migration.v2.TeradataDialect.Builder + getTeradataDialectBuilder() { return getTeradataDialectFieldBuilder().getBuilder(); } /** + * + * *
      * The Teradata dialect
      * 
@@ -2193,7 +2498,8 @@ public com.google.cloud.bigquery.migration.v2.TeradataDialect.Builder getTeradat * .google.cloud.bigquery.migration.v2.TeradataDialect teradata_dialect = 4; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.TeradataDialectOrBuilder getTeradataDialectOrBuilder() { + public com.google.cloud.bigquery.migration.v2.TeradataDialectOrBuilder + getTeradataDialectOrBuilder() { if ((dialectValueCase_ == 4) && (teradataDialectBuilder_ != null)) { return teradataDialectBuilder_.getMessageOrBuilder(); } else { @@ -2204,6 +2510,8 @@ public com.google.cloud.bigquery.migration.v2.TeradataDialectOrBuilder getTerada } } /** + * + * *
      * The Teradata dialect
      * 
@@ -2211,14 +2519,20 @@ public com.google.cloud.bigquery.migration.v2.TeradataDialectOrBuilder getTerada * .google.cloud.bigquery.migration.v2.TeradataDialect teradata_dialect = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.TeradataDialect, com.google.cloud.bigquery.migration.v2.TeradataDialect.Builder, com.google.cloud.bigquery.migration.v2.TeradataDialectOrBuilder> + com.google.cloud.bigquery.migration.v2.TeradataDialect, + com.google.cloud.bigquery.migration.v2.TeradataDialect.Builder, + com.google.cloud.bigquery.migration.v2.TeradataDialectOrBuilder> getTeradataDialectFieldBuilder() { if (teradataDialectBuilder_ == null) { if (!(dialectValueCase_ == 4)) { - dialectValue_ = com.google.cloud.bigquery.migration.v2.TeradataDialect.getDefaultInstance(); - } - teradataDialectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.TeradataDialect, com.google.cloud.bigquery.migration.v2.TeradataDialect.Builder, com.google.cloud.bigquery.migration.v2.TeradataDialectOrBuilder>( + dialectValue_ = + com.google.cloud.bigquery.migration.v2.TeradataDialect.getDefaultInstance(); + } + teradataDialectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.TeradataDialect, + com.google.cloud.bigquery.migration.v2.TeradataDialect.Builder, + com.google.cloud.bigquery.migration.v2.TeradataDialectOrBuilder>( (com.google.cloud.bigquery.migration.v2.TeradataDialect) dialectValue_, getParentForChildren(), isClean()); @@ -2230,13 +2544,19 @@ public com.google.cloud.bigquery.migration.v2.TeradataDialectOrBuilder getTerada } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.OracleDialect, com.google.cloud.bigquery.migration.v2.OracleDialect.Builder, com.google.cloud.bigquery.migration.v2.OracleDialectOrBuilder> oracleDialectBuilder_; + com.google.cloud.bigquery.migration.v2.OracleDialect, + com.google.cloud.bigquery.migration.v2.OracleDialect.Builder, + com.google.cloud.bigquery.migration.v2.OracleDialectOrBuilder> + oracleDialectBuilder_; /** + * + * *
      * The Oracle dialect
      * 
* * .google.cloud.bigquery.migration.v2.OracleDialect oracle_dialect = 5; + * * @return Whether the oracleDialect field is set. */ @java.lang.Override @@ -2244,11 +2564,14 @@ public boolean hasOracleDialect() { return dialectValueCase_ == 5; } /** + * + * *
      * The Oracle dialect
      * 
* * .google.cloud.bigquery.migration.v2.OracleDialect oracle_dialect = 5; + * * @return The oracleDialect. */ @java.lang.Override @@ -2266,6 +2589,8 @@ public com.google.cloud.bigquery.migration.v2.OracleDialect getOracleDialect() { } } /** + * + * *
      * The Oracle dialect
      * 
@@ -2286,6 +2611,8 @@ public Builder setOracleDialect(com.google.cloud.bigquery.migration.v2.OracleDia return this; } /** + * + * *
      * The Oracle dialect
      * 
@@ -2304,6 +2631,8 @@ public Builder setOracleDialect( return this; } /** + * + * *
      * The Oracle dialect
      * 
@@ -2312,10 +2641,14 @@ public Builder setOracleDialect( */ public Builder mergeOracleDialect(com.google.cloud.bigquery.migration.v2.OracleDialect value) { if (oracleDialectBuilder_ == null) { - if (dialectValueCase_ == 5 && - dialectValue_ != com.google.cloud.bigquery.migration.v2.OracleDialect.getDefaultInstance()) { - dialectValue_ = com.google.cloud.bigquery.migration.v2.OracleDialect.newBuilder((com.google.cloud.bigquery.migration.v2.OracleDialect) dialectValue_) - .mergeFrom(value).buildPartial(); + if (dialectValueCase_ == 5 + && dialectValue_ + != com.google.cloud.bigquery.migration.v2.OracleDialect.getDefaultInstance()) { + dialectValue_ = + com.google.cloud.bigquery.migration.v2.OracleDialect.newBuilder( + (com.google.cloud.bigquery.migration.v2.OracleDialect) dialectValue_) + .mergeFrom(value) + .buildPartial(); } else { dialectValue_ = value; } @@ -2331,6 +2664,8 @@ public Builder mergeOracleDialect(com.google.cloud.bigquery.migration.v2.OracleD return this; } /** + * + * *
      * The Oracle dialect
      * 
@@ -2354,6 +2689,8 @@ public Builder clearOracleDialect() { return this; } /** + * + * *
      * The Oracle dialect
      * 
@@ -2364,6 +2701,8 @@ public com.google.cloud.bigquery.migration.v2.OracleDialect.Builder getOracleDia return getOracleDialectFieldBuilder().getBuilder(); } /** + * + * *
      * The Oracle dialect
      * 
@@ -2371,7 +2710,8 @@ public com.google.cloud.bigquery.migration.v2.OracleDialect.Builder getOracleDia * .google.cloud.bigquery.migration.v2.OracleDialect oracle_dialect = 5; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.OracleDialectOrBuilder getOracleDialectOrBuilder() { + public com.google.cloud.bigquery.migration.v2.OracleDialectOrBuilder + getOracleDialectOrBuilder() { if ((dialectValueCase_ == 5) && (oracleDialectBuilder_ != null)) { return oracleDialectBuilder_.getMessageOrBuilder(); } else { @@ -2382,6 +2722,8 @@ public com.google.cloud.bigquery.migration.v2.OracleDialectOrBuilder getOracleDi } } /** + * + * *
      * The Oracle dialect
      * 
@@ -2389,14 +2731,19 @@ public com.google.cloud.bigquery.migration.v2.OracleDialectOrBuilder getOracleDi * .google.cloud.bigquery.migration.v2.OracleDialect oracle_dialect = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.OracleDialect, com.google.cloud.bigquery.migration.v2.OracleDialect.Builder, com.google.cloud.bigquery.migration.v2.OracleDialectOrBuilder> + com.google.cloud.bigquery.migration.v2.OracleDialect, + com.google.cloud.bigquery.migration.v2.OracleDialect.Builder, + com.google.cloud.bigquery.migration.v2.OracleDialectOrBuilder> getOracleDialectFieldBuilder() { if (oracleDialectBuilder_ == null) { if (!(dialectValueCase_ == 5)) { dialectValue_ = com.google.cloud.bigquery.migration.v2.OracleDialect.getDefaultInstance(); } - oracleDialectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.OracleDialect, com.google.cloud.bigquery.migration.v2.OracleDialect.Builder, com.google.cloud.bigquery.migration.v2.OracleDialectOrBuilder>( + oracleDialectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.OracleDialect, + com.google.cloud.bigquery.migration.v2.OracleDialect.Builder, + com.google.cloud.bigquery.migration.v2.OracleDialectOrBuilder>( (com.google.cloud.bigquery.migration.v2.OracleDialect) dialectValue_, getParentForChildren(), isClean()); @@ -2408,13 +2755,19 @@ public com.google.cloud.bigquery.migration.v2.OracleDialectOrBuilder getOracleDi } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.SparkSQLDialect, com.google.cloud.bigquery.migration.v2.SparkSQLDialect.Builder, com.google.cloud.bigquery.migration.v2.SparkSQLDialectOrBuilder> sparksqlDialectBuilder_; + com.google.cloud.bigquery.migration.v2.SparkSQLDialect, + com.google.cloud.bigquery.migration.v2.SparkSQLDialect.Builder, + com.google.cloud.bigquery.migration.v2.SparkSQLDialectOrBuilder> + sparksqlDialectBuilder_; /** + * + * *
      * The SparkSQL dialect
      * 
* * .google.cloud.bigquery.migration.v2.SparkSQLDialect sparksql_dialect = 6; + * * @return Whether the sparksqlDialect field is set. */ @java.lang.Override @@ -2422,11 +2775,14 @@ public boolean hasSparksqlDialect() { return dialectValueCase_ == 6; } /** + * + * *
      * The SparkSQL dialect
      * 
* * .google.cloud.bigquery.migration.v2.SparkSQLDialect sparksql_dialect = 6; + * * @return The sparksqlDialect. */ @java.lang.Override @@ -2444,13 +2800,16 @@ public com.google.cloud.bigquery.migration.v2.SparkSQLDialect getSparksqlDialect } } /** + * + * *
      * The SparkSQL dialect
      * 
* * .google.cloud.bigquery.migration.v2.SparkSQLDialect sparksql_dialect = 6; */ - public Builder setSparksqlDialect(com.google.cloud.bigquery.migration.v2.SparkSQLDialect value) { + public Builder setSparksqlDialect( + com.google.cloud.bigquery.migration.v2.SparkSQLDialect value) { if (sparksqlDialectBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2464,6 +2823,8 @@ public Builder setSparksqlDialect(com.google.cloud.bigquery.migration.v2.SparkSQ return this; } /** + * + * *
      * The SparkSQL dialect
      * 
@@ -2482,18 +2843,25 @@ public Builder setSparksqlDialect( return this; } /** + * + * *
      * The SparkSQL dialect
      * 
* * .google.cloud.bigquery.migration.v2.SparkSQLDialect sparksql_dialect = 6; */ - public Builder mergeSparksqlDialect(com.google.cloud.bigquery.migration.v2.SparkSQLDialect value) { + public Builder mergeSparksqlDialect( + com.google.cloud.bigquery.migration.v2.SparkSQLDialect value) { if (sparksqlDialectBuilder_ == null) { - if (dialectValueCase_ == 6 && - dialectValue_ != com.google.cloud.bigquery.migration.v2.SparkSQLDialect.getDefaultInstance()) { - dialectValue_ = com.google.cloud.bigquery.migration.v2.SparkSQLDialect.newBuilder((com.google.cloud.bigquery.migration.v2.SparkSQLDialect) dialectValue_) - .mergeFrom(value).buildPartial(); + if (dialectValueCase_ == 6 + && dialectValue_ + != com.google.cloud.bigquery.migration.v2.SparkSQLDialect.getDefaultInstance()) { + dialectValue_ = + com.google.cloud.bigquery.migration.v2.SparkSQLDialect.newBuilder( + (com.google.cloud.bigquery.migration.v2.SparkSQLDialect) dialectValue_) + .mergeFrom(value) + .buildPartial(); } else { dialectValue_ = value; } @@ -2509,6 +2877,8 @@ public Builder mergeSparksqlDialect(com.google.cloud.bigquery.migration.v2.Spark return this; } /** + * + * *
      * The SparkSQL dialect
      * 
@@ -2532,16 +2902,21 @@ public Builder clearSparksqlDialect() { return this; } /** + * + * *
      * The SparkSQL dialect
      * 
* * .google.cloud.bigquery.migration.v2.SparkSQLDialect sparksql_dialect = 6; */ - public com.google.cloud.bigquery.migration.v2.SparkSQLDialect.Builder getSparksqlDialectBuilder() { + public com.google.cloud.bigquery.migration.v2.SparkSQLDialect.Builder + getSparksqlDialectBuilder() { return getSparksqlDialectFieldBuilder().getBuilder(); } /** + * + * *
      * The SparkSQL dialect
      * 
@@ -2549,7 +2924,8 @@ public com.google.cloud.bigquery.migration.v2.SparkSQLDialect.Builder getSparksq * .google.cloud.bigquery.migration.v2.SparkSQLDialect sparksql_dialect = 6; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.SparkSQLDialectOrBuilder getSparksqlDialectOrBuilder() { + public com.google.cloud.bigquery.migration.v2.SparkSQLDialectOrBuilder + getSparksqlDialectOrBuilder() { if ((dialectValueCase_ == 6) && (sparksqlDialectBuilder_ != null)) { return sparksqlDialectBuilder_.getMessageOrBuilder(); } else { @@ -2560,6 +2936,8 @@ public com.google.cloud.bigquery.migration.v2.SparkSQLDialectOrBuilder getSparks } } /** + * + * *
      * The SparkSQL dialect
      * 
@@ -2567,14 +2945,20 @@ public com.google.cloud.bigquery.migration.v2.SparkSQLDialectOrBuilder getSparks * .google.cloud.bigquery.migration.v2.SparkSQLDialect sparksql_dialect = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.SparkSQLDialect, com.google.cloud.bigquery.migration.v2.SparkSQLDialect.Builder, com.google.cloud.bigquery.migration.v2.SparkSQLDialectOrBuilder> + com.google.cloud.bigquery.migration.v2.SparkSQLDialect, + com.google.cloud.bigquery.migration.v2.SparkSQLDialect.Builder, + com.google.cloud.bigquery.migration.v2.SparkSQLDialectOrBuilder> getSparksqlDialectFieldBuilder() { if (sparksqlDialectBuilder_ == null) { if (!(dialectValueCase_ == 6)) { - dialectValue_ = com.google.cloud.bigquery.migration.v2.SparkSQLDialect.getDefaultInstance(); - } - sparksqlDialectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.SparkSQLDialect, com.google.cloud.bigquery.migration.v2.SparkSQLDialect.Builder, com.google.cloud.bigquery.migration.v2.SparkSQLDialectOrBuilder>( + dialectValue_ = + com.google.cloud.bigquery.migration.v2.SparkSQLDialect.getDefaultInstance(); + } + sparksqlDialectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.SparkSQLDialect, + com.google.cloud.bigquery.migration.v2.SparkSQLDialect.Builder, + com.google.cloud.bigquery.migration.v2.SparkSQLDialectOrBuilder>( (com.google.cloud.bigquery.migration.v2.SparkSQLDialect) dialectValue_, getParentForChildren(), isClean()); @@ -2586,13 +2970,19 @@ public com.google.cloud.bigquery.migration.v2.SparkSQLDialectOrBuilder getSparks } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.SnowflakeDialect, com.google.cloud.bigquery.migration.v2.SnowflakeDialect.Builder, com.google.cloud.bigquery.migration.v2.SnowflakeDialectOrBuilder> snowflakeDialectBuilder_; + com.google.cloud.bigquery.migration.v2.SnowflakeDialect, + com.google.cloud.bigquery.migration.v2.SnowflakeDialect.Builder, + com.google.cloud.bigquery.migration.v2.SnowflakeDialectOrBuilder> + snowflakeDialectBuilder_; /** + * + * *
      * The Snowflake dialect
      * 
* * .google.cloud.bigquery.migration.v2.SnowflakeDialect snowflake_dialect = 7; + * * @return Whether the snowflakeDialect field is set. */ @java.lang.Override @@ -2600,11 +2990,14 @@ public boolean hasSnowflakeDialect() { return dialectValueCase_ == 7; } /** + * + * *
      * The Snowflake dialect
      * 
* * .google.cloud.bigquery.migration.v2.SnowflakeDialect snowflake_dialect = 7; + * * @return The snowflakeDialect. */ @java.lang.Override @@ -2622,13 +3015,16 @@ public com.google.cloud.bigquery.migration.v2.SnowflakeDialect getSnowflakeDiale } } /** + * + * *
      * The Snowflake dialect
      * 
* * .google.cloud.bigquery.migration.v2.SnowflakeDialect snowflake_dialect = 7; */ - public Builder setSnowflakeDialect(com.google.cloud.bigquery.migration.v2.SnowflakeDialect value) { + public Builder setSnowflakeDialect( + com.google.cloud.bigquery.migration.v2.SnowflakeDialect value) { if (snowflakeDialectBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2642,6 +3038,8 @@ public Builder setSnowflakeDialect(com.google.cloud.bigquery.migration.v2.Snowfl return this; } /** + * + * *
      * The Snowflake dialect
      * 
@@ -2660,18 +3058,25 @@ public Builder setSnowflakeDialect( return this; } /** + * + * *
      * The Snowflake dialect
      * 
* * .google.cloud.bigquery.migration.v2.SnowflakeDialect snowflake_dialect = 7; */ - public Builder mergeSnowflakeDialect(com.google.cloud.bigquery.migration.v2.SnowflakeDialect value) { + public Builder mergeSnowflakeDialect( + com.google.cloud.bigquery.migration.v2.SnowflakeDialect value) { if (snowflakeDialectBuilder_ == null) { - if (dialectValueCase_ == 7 && - dialectValue_ != com.google.cloud.bigquery.migration.v2.SnowflakeDialect.getDefaultInstance()) { - dialectValue_ = com.google.cloud.bigquery.migration.v2.SnowflakeDialect.newBuilder((com.google.cloud.bigquery.migration.v2.SnowflakeDialect) dialectValue_) - .mergeFrom(value).buildPartial(); + if (dialectValueCase_ == 7 + && dialectValue_ + != com.google.cloud.bigquery.migration.v2.SnowflakeDialect.getDefaultInstance()) { + dialectValue_ = + com.google.cloud.bigquery.migration.v2.SnowflakeDialect.newBuilder( + (com.google.cloud.bigquery.migration.v2.SnowflakeDialect) dialectValue_) + .mergeFrom(value) + .buildPartial(); } else { dialectValue_ = value; } @@ -2687,6 +3092,8 @@ public Builder mergeSnowflakeDialect(com.google.cloud.bigquery.migration.v2.Snow return this; } /** + * + * *
      * The Snowflake dialect
      * 
@@ -2710,16 +3117,21 @@ public Builder clearSnowflakeDialect() { return this; } /** + * + * *
      * The Snowflake dialect
      * 
* * .google.cloud.bigquery.migration.v2.SnowflakeDialect snowflake_dialect = 7; */ - public com.google.cloud.bigquery.migration.v2.SnowflakeDialect.Builder getSnowflakeDialectBuilder() { + public com.google.cloud.bigquery.migration.v2.SnowflakeDialect.Builder + getSnowflakeDialectBuilder() { return getSnowflakeDialectFieldBuilder().getBuilder(); } /** + * + * *
      * The Snowflake dialect
      * 
@@ -2727,7 +3139,8 @@ public com.google.cloud.bigquery.migration.v2.SnowflakeDialect.Builder getSnowfl * .google.cloud.bigquery.migration.v2.SnowflakeDialect snowflake_dialect = 7; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.SnowflakeDialectOrBuilder getSnowflakeDialectOrBuilder() { + public com.google.cloud.bigquery.migration.v2.SnowflakeDialectOrBuilder + getSnowflakeDialectOrBuilder() { if ((dialectValueCase_ == 7) && (snowflakeDialectBuilder_ != null)) { return snowflakeDialectBuilder_.getMessageOrBuilder(); } else { @@ -2738,6 +3151,8 @@ public com.google.cloud.bigquery.migration.v2.SnowflakeDialectOrBuilder getSnowf } } /** + * + * *
      * The Snowflake dialect
      * 
@@ -2745,14 +3160,20 @@ public com.google.cloud.bigquery.migration.v2.SnowflakeDialectOrBuilder getSnowf * .google.cloud.bigquery.migration.v2.SnowflakeDialect snowflake_dialect = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.SnowflakeDialect, com.google.cloud.bigquery.migration.v2.SnowflakeDialect.Builder, com.google.cloud.bigquery.migration.v2.SnowflakeDialectOrBuilder> + com.google.cloud.bigquery.migration.v2.SnowflakeDialect, + com.google.cloud.bigquery.migration.v2.SnowflakeDialect.Builder, + com.google.cloud.bigquery.migration.v2.SnowflakeDialectOrBuilder> getSnowflakeDialectFieldBuilder() { if (snowflakeDialectBuilder_ == null) { if (!(dialectValueCase_ == 7)) { - dialectValue_ = com.google.cloud.bigquery.migration.v2.SnowflakeDialect.getDefaultInstance(); - } - snowflakeDialectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.SnowflakeDialect, com.google.cloud.bigquery.migration.v2.SnowflakeDialect.Builder, com.google.cloud.bigquery.migration.v2.SnowflakeDialectOrBuilder>( + dialectValue_ = + com.google.cloud.bigquery.migration.v2.SnowflakeDialect.getDefaultInstance(); + } + snowflakeDialectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.SnowflakeDialect, + com.google.cloud.bigquery.migration.v2.SnowflakeDialect.Builder, + com.google.cloud.bigquery.migration.v2.SnowflakeDialectOrBuilder>( (com.google.cloud.bigquery.migration.v2.SnowflakeDialect) dialectValue_, getParentForChildren(), isClean()); @@ -2764,13 +3185,19 @@ public com.google.cloud.bigquery.migration.v2.SnowflakeDialectOrBuilder getSnowf } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.NetezzaDialect, com.google.cloud.bigquery.migration.v2.NetezzaDialect.Builder, com.google.cloud.bigquery.migration.v2.NetezzaDialectOrBuilder> netezzaDialectBuilder_; + com.google.cloud.bigquery.migration.v2.NetezzaDialect, + com.google.cloud.bigquery.migration.v2.NetezzaDialect.Builder, + com.google.cloud.bigquery.migration.v2.NetezzaDialectOrBuilder> + netezzaDialectBuilder_; /** + * + * *
      * The Netezza dialect
      * 
* * .google.cloud.bigquery.migration.v2.NetezzaDialect netezza_dialect = 8; + * * @return Whether the netezzaDialect field is set. */ @java.lang.Override @@ -2778,11 +3205,14 @@ public boolean hasNetezzaDialect() { return dialectValueCase_ == 8; } /** + * + * *
      * The Netezza dialect
      * 
* * .google.cloud.bigquery.migration.v2.NetezzaDialect netezza_dialect = 8; + * * @return The netezzaDialect. */ @java.lang.Override @@ -2800,6 +3230,8 @@ public com.google.cloud.bigquery.migration.v2.NetezzaDialect getNetezzaDialect() } } /** + * + * *
      * The Netezza dialect
      * 
@@ -2820,6 +3252,8 @@ public Builder setNetezzaDialect(com.google.cloud.bigquery.migration.v2.NetezzaD return this; } /** + * + * *
      * The Netezza dialect
      * 
@@ -2838,18 +3272,25 @@ public Builder setNetezzaDialect( return this; } /** + * + * *
      * The Netezza dialect
      * 
* * .google.cloud.bigquery.migration.v2.NetezzaDialect netezza_dialect = 8; */ - public Builder mergeNetezzaDialect(com.google.cloud.bigquery.migration.v2.NetezzaDialect value) { + public Builder mergeNetezzaDialect( + com.google.cloud.bigquery.migration.v2.NetezzaDialect value) { if (netezzaDialectBuilder_ == null) { - if (dialectValueCase_ == 8 && - dialectValue_ != com.google.cloud.bigquery.migration.v2.NetezzaDialect.getDefaultInstance()) { - dialectValue_ = com.google.cloud.bigquery.migration.v2.NetezzaDialect.newBuilder((com.google.cloud.bigquery.migration.v2.NetezzaDialect) dialectValue_) - .mergeFrom(value).buildPartial(); + if (dialectValueCase_ == 8 + && dialectValue_ + != com.google.cloud.bigquery.migration.v2.NetezzaDialect.getDefaultInstance()) { + dialectValue_ = + com.google.cloud.bigquery.migration.v2.NetezzaDialect.newBuilder( + (com.google.cloud.bigquery.migration.v2.NetezzaDialect) dialectValue_) + .mergeFrom(value) + .buildPartial(); } else { dialectValue_ = value; } @@ -2865,6 +3306,8 @@ public Builder mergeNetezzaDialect(com.google.cloud.bigquery.migration.v2.Netezz return this; } /** + * + * *
      * The Netezza dialect
      * 
@@ -2888,16 +3331,21 @@ public Builder clearNetezzaDialect() { return this; } /** + * + * *
      * The Netezza dialect
      * 
* * .google.cloud.bigquery.migration.v2.NetezzaDialect netezza_dialect = 8; */ - public com.google.cloud.bigquery.migration.v2.NetezzaDialect.Builder getNetezzaDialectBuilder() { + public com.google.cloud.bigquery.migration.v2.NetezzaDialect.Builder + getNetezzaDialectBuilder() { return getNetezzaDialectFieldBuilder().getBuilder(); } /** + * + * *
      * The Netezza dialect
      * 
@@ -2905,7 +3353,8 @@ public com.google.cloud.bigquery.migration.v2.NetezzaDialect.Builder getNetezzaD * .google.cloud.bigquery.migration.v2.NetezzaDialect netezza_dialect = 8; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.NetezzaDialectOrBuilder getNetezzaDialectOrBuilder() { + public com.google.cloud.bigquery.migration.v2.NetezzaDialectOrBuilder + getNetezzaDialectOrBuilder() { if ((dialectValueCase_ == 8) && (netezzaDialectBuilder_ != null)) { return netezzaDialectBuilder_.getMessageOrBuilder(); } else { @@ -2916,6 +3365,8 @@ public com.google.cloud.bigquery.migration.v2.NetezzaDialectOrBuilder getNetezza } } /** + * + * *
      * The Netezza dialect
      * 
@@ -2923,14 +3374,20 @@ public com.google.cloud.bigquery.migration.v2.NetezzaDialectOrBuilder getNetezza * .google.cloud.bigquery.migration.v2.NetezzaDialect netezza_dialect = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.NetezzaDialect, com.google.cloud.bigquery.migration.v2.NetezzaDialect.Builder, com.google.cloud.bigquery.migration.v2.NetezzaDialectOrBuilder> + com.google.cloud.bigquery.migration.v2.NetezzaDialect, + com.google.cloud.bigquery.migration.v2.NetezzaDialect.Builder, + com.google.cloud.bigquery.migration.v2.NetezzaDialectOrBuilder> getNetezzaDialectFieldBuilder() { if (netezzaDialectBuilder_ == null) { if (!(dialectValueCase_ == 8)) { - dialectValue_ = com.google.cloud.bigquery.migration.v2.NetezzaDialect.getDefaultInstance(); - } - netezzaDialectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.NetezzaDialect, com.google.cloud.bigquery.migration.v2.NetezzaDialect.Builder, com.google.cloud.bigquery.migration.v2.NetezzaDialectOrBuilder>( + dialectValue_ = + com.google.cloud.bigquery.migration.v2.NetezzaDialect.getDefaultInstance(); + } + netezzaDialectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.NetezzaDialect, + com.google.cloud.bigquery.migration.v2.NetezzaDialect.Builder, + com.google.cloud.bigquery.migration.v2.NetezzaDialectOrBuilder>( (com.google.cloud.bigquery.migration.v2.NetezzaDialect) dialectValue_, getParentForChildren(), isClean()); @@ -2942,13 +3399,20 @@ public com.google.cloud.bigquery.migration.v2.NetezzaDialectOrBuilder getNetezza } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.AzureSynapseDialect, com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.Builder, com.google.cloud.bigquery.migration.v2.AzureSynapseDialectOrBuilder> azureSynapseDialectBuilder_; + com.google.cloud.bigquery.migration.v2.AzureSynapseDialect, + com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.Builder, + com.google.cloud.bigquery.migration.v2.AzureSynapseDialectOrBuilder> + azureSynapseDialectBuilder_; /** + * + * *
      * The Azure Synapse dialect
      * 
* - * .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; + * .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; + * + * * @return Whether the azureSynapseDialect field is set. */ @java.lang.Override @@ -2956,11 +3420,15 @@ public boolean hasAzureSynapseDialect() { return dialectValueCase_ == 9; } /** + * + * *
      * The Azure Synapse dialect
      * 
* - * .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; + * .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; + * + * * @return The azureSynapseDialect. */ @java.lang.Override @@ -2978,13 +3446,17 @@ public com.google.cloud.bigquery.migration.v2.AzureSynapseDialect getAzureSynaps } } /** + * + * *
      * The Azure Synapse dialect
      * 
* - * .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; + * .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; + * */ - public Builder setAzureSynapseDialect(com.google.cloud.bigquery.migration.v2.AzureSynapseDialect value) { + public Builder setAzureSynapseDialect( + com.google.cloud.bigquery.migration.v2.AzureSynapseDialect value) { if (azureSynapseDialectBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2998,11 +3470,14 @@ public Builder setAzureSynapseDialect(com.google.cloud.bigquery.migration.v2.Azu return this; } /** + * + * *
      * The Azure Synapse dialect
      * 
* - * .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; + * .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; + * */ public Builder setAzureSynapseDialect( com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.Builder builderForValue) { @@ -3016,18 +3491,27 @@ public Builder setAzureSynapseDialect( return this; } /** + * + * *
      * The Azure Synapse dialect
      * 
* - * .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; + * .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; + * */ - public Builder mergeAzureSynapseDialect(com.google.cloud.bigquery.migration.v2.AzureSynapseDialect value) { + public Builder mergeAzureSynapseDialect( + com.google.cloud.bigquery.migration.v2.AzureSynapseDialect value) { if (azureSynapseDialectBuilder_ == null) { - if (dialectValueCase_ == 9 && - dialectValue_ != com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.getDefaultInstance()) { - dialectValue_ = com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.newBuilder((com.google.cloud.bigquery.migration.v2.AzureSynapseDialect) dialectValue_) - .mergeFrom(value).buildPartial(); + if (dialectValueCase_ == 9 + && dialectValue_ + != com.google.cloud.bigquery.migration.v2.AzureSynapseDialect + .getDefaultInstance()) { + dialectValue_ = + com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.newBuilder( + (com.google.cloud.bigquery.migration.v2.AzureSynapseDialect) dialectValue_) + .mergeFrom(value) + .buildPartial(); } else { dialectValue_ = value; } @@ -3043,11 +3527,14 @@ public Builder mergeAzureSynapseDialect(com.google.cloud.bigquery.migration.v2.A return this; } /** + * + * *
      * The Azure Synapse dialect
      * 
* - * .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; + * .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; + * */ public Builder clearAzureSynapseDialect() { if (azureSynapseDialectBuilder_ == null) { @@ -3066,24 +3553,32 @@ public Builder clearAzureSynapseDialect() { return this; } /** + * + * *
      * The Azure Synapse dialect
      * 
* - * .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; + * .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; + * */ - public com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.Builder getAzureSynapseDialectBuilder() { + public com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.Builder + getAzureSynapseDialectBuilder() { return getAzureSynapseDialectFieldBuilder().getBuilder(); } /** + * + * *
      * The Azure Synapse dialect
      * 
* - * .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; + * .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.AzureSynapseDialectOrBuilder getAzureSynapseDialectOrBuilder() { + public com.google.cloud.bigquery.migration.v2.AzureSynapseDialectOrBuilder + getAzureSynapseDialectOrBuilder() { if ((dialectValueCase_ == 9) && (azureSynapseDialectBuilder_ != null)) { return azureSynapseDialectBuilder_.getMessageOrBuilder(); } else { @@ -3094,21 +3589,30 @@ public com.google.cloud.bigquery.migration.v2.AzureSynapseDialectOrBuilder getAz } } /** + * + * *
      * The Azure Synapse dialect
      * 
* - * .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; + * .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.AzureSynapseDialect, com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.Builder, com.google.cloud.bigquery.migration.v2.AzureSynapseDialectOrBuilder> + com.google.cloud.bigquery.migration.v2.AzureSynapseDialect, + com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.Builder, + com.google.cloud.bigquery.migration.v2.AzureSynapseDialectOrBuilder> getAzureSynapseDialectFieldBuilder() { if (azureSynapseDialectBuilder_ == null) { if (!(dialectValueCase_ == 9)) { - dialectValue_ = com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.getDefaultInstance(); - } - azureSynapseDialectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.AzureSynapseDialect, com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.Builder, com.google.cloud.bigquery.migration.v2.AzureSynapseDialectOrBuilder>( + dialectValue_ = + com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.getDefaultInstance(); + } + azureSynapseDialectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.AzureSynapseDialect, + com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.Builder, + com.google.cloud.bigquery.migration.v2.AzureSynapseDialectOrBuilder>( (com.google.cloud.bigquery.migration.v2.AzureSynapseDialect) dialectValue_, getParentForChildren(), isClean()); @@ -3120,13 +3624,19 @@ public com.google.cloud.bigquery.migration.v2.AzureSynapseDialectOrBuilder getAz } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.VerticaDialect, com.google.cloud.bigquery.migration.v2.VerticaDialect.Builder, com.google.cloud.bigquery.migration.v2.VerticaDialectOrBuilder> verticaDialectBuilder_; + com.google.cloud.bigquery.migration.v2.VerticaDialect, + com.google.cloud.bigquery.migration.v2.VerticaDialect.Builder, + com.google.cloud.bigquery.migration.v2.VerticaDialectOrBuilder> + verticaDialectBuilder_; /** + * + * *
      * The Vertica dialect
      * 
* * .google.cloud.bigquery.migration.v2.VerticaDialect vertica_dialect = 10; + * * @return Whether the verticaDialect field is set. */ @java.lang.Override @@ -3134,11 +3644,14 @@ public boolean hasVerticaDialect() { return dialectValueCase_ == 10; } /** + * + * *
      * The Vertica dialect
      * 
* * .google.cloud.bigquery.migration.v2.VerticaDialect vertica_dialect = 10; + * * @return The verticaDialect. */ @java.lang.Override @@ -3156,6 +3669,8 @@ public com.google.cloud.bigquery.migration.v2.VerticaDialect getVerticaDialect() } } /** + * + * *
      * The Vertica dialect
      * 
@@ -3176,6 +3691,8 @@ public Builder setVerticaDialect(com.google.cloud.bigquery.migration.v2.VerticaD return this; } /** + * + * *
      * The Vertica dialect
      * 
@@ -3194,18 +3711,25 @@ public Builder setVerticaDialect( return this; } /** + * + * *
      * The Vertica dialect
      * 
* * .google.cloud.bigquery.migration.v2.VerticaDialect vertica_dialect = 10; */ - public Builder mergeVerticaDialect(com.google.cloud.bigquery.migration.v2.VerticaDialect value) { + public Builder mergeVerticaDialect( + com.google.cloud.bigquery.migration.v2.VerticaDialect value) { if (verticaDialectBuilder_ == null) { - if (dialectValueCase_ == 10 && - dialectValue_ != com.google.cloud.bigquery.migration.v2.VerticaDialect.getDefaultInstance()) { - dialectValue_ = com.google.cloud.bigquery.migration.v2.VerticaDialect.newBuilder((com.google.cloud.bigquery.migration.v2.VerticaDialect) dialectValue_) - .mergeFrom(value).buildPartial(); + if (dialectValueCase_ == 10 + && dialectValue_ + != com.google.cloud.bigquery.migration.v2.VerticaDialect.getDefaultInstance()) { + dialectValue_ = + com.google.cloud.bigquery.migration.v2.VerticaDialect.newBuilder( + (com.google.cloud.bigquery.migration.v2.VerticaDialect) dialectValue_) + .mergeFrom(value) + .buildPartial(); } else { dialectValue_ = value; } @@ -3221,6 +3745,8 @@ public Builder mergeVerticaDialect(com.google.cloud.bigquery.migration.v2.Vertic return this; } /** + * + * *
      * The Vertica dialect
      * 
@@ -3244,16 +3770,21 @@ public Builder clearVerticaDialect() { return this; } /** + * + * *
      * The Vertica dialect
      * 
* * .google.cloud.bigquery.migration.v2.VerticaDialect vertica_dialect = 10; */ - public com.google.cloud.bigquery.migration.v2.VerticaDialect.Builder getVerticaDialectBuilder() { + public com.google.cloud.bigquery.migration.v2.VerticaDialect.Builder + getVerticaDialectBuilder() { return getVerticaDialectFieldBuilder().getBuilder(); } /** + * + * *
      * The Vertica dialect
      * 
@@ -3261,7 +3792,8 @@ public com.google.cloud.bigquery.migration.v2.VerticaDialect.Builder getVerticaD * .google.cloud.bigquery.migration.v2.VerticaDialect vertica_dialect = 10; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.VerticaDialectOrBuilder getVerticaDialectOrBuilder() { + public com.google.cloud.bigquery.migration.v2.VerticaDialectOrBuilder + getVerticaDialectOrBuilder() { if ((dialectValueCase_ == 10) && (verticaDialectBuilder_ != null)) { return verticaDialectBuilder_.getMessageOrBuilder(); } else { @@ -3272,6 +3804,8 @@ public com.google.cloud.bigquery.migration.v2.VerticaDialectOrBuilder getVertica } } /** + * + * *
      * The Vertica dialect
      * 
@@ -3279,14 +3813,20 @@ public com.google.cloud.bigquery.migration.v2.VerticaDialectOrBuilder getVertica * .google.cloud.bigquery.migration.v2.VerticaDialect vertica_dialect = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.VerticaDialect, com.google.cloud.bigquery.migration.v2.VerticaDialect.Builder, com.google.cloud.bigquery.migration.v2.VerticaDialectOrBuilder> + com.google.cloud.bigquery.migration.v2.VerticaDialect, + com.google.cloud.bigquery.migration.v2.VerticaDialect.Builder, + com.google.cloud.bigquery.migration.v2.VerticaDialectOrBuilder> getVerticaDialectFieldBuilder() { if (verticaDialectBuilder_ == null) { if (!(dialectValueCase_ == 10)) { - dialectValue_ = com.google.cloud.bigquery.migration.v2.VerticaDialect.getDefaultInstance(); - } - verticaDialectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.VerticaDialect, com.google.cloud.bigquery.migration.v2.VerticaDialect.Builder, com.google.cloud.bigquery.migration.v2.VerticaDialectOrBuilder>( + dialectValue_ = + com.google.cloud.bigquery.migration.v2.VerticaDialect.getDefaultInstance(); + } + verticaDialectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.VerticaDialect, + com.google.cloud.bigquery.migration.v2.VerticaDialect.Builder, + com.google.cloud.bigquery.migration.v2.VerticaDialectOrBuilder>( (com.google.cloud.bigquery.migration.v2.VerticaDialect) dialectValue_, getParentForChildren(), isClean()); @@ -3298,13 +3838,19 @@ public com.google.cloud.bigquery.migration.v2.VerticaDialectOrBuilder getVertica } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.SQLServerDialect, com.google.cloud.bigquery.migration.v2.SQLServerDialect.Builder, com.google.cloud.bigquery.migration.v2.SQLServerDialectOrBuilder> sqlServerDialectBuilder_; + com.google.cloud.bigquery.migration.v2.SQLServerDialect, + com.google.cloud.bigquery.migration.v2.SQLServerDialect.Builder, + com.google.cloud.bigquery.migration.v2.SQLServerDialectOrBuilder> + sqlServerDialectBuilder_; /** + * + * *
      * The SQL Server dialect
      * 
* * .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; + * * @return Whether the sqlServerDialect field is set. */ @java.lang.Override @@ -3312,11 +3858,14 @@ public boolean hasSqlServerDialect() { return dialectValueCase_ == 11; } /** + * + * *
      * The SQL Server dialect
      * 
* * .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; + * * @return The sqlServerDialect. */ @java.lang.Override @@ -3334,13 +3883,16 @@ public com.google.cloud.bigquery.migration.v2.SQLServerDialect getSqlServerDiale } } /** + * + * *
      * The SQL Server dialect
      * 
* * .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; */ - public Builder setSqlServerDialect(com.google.cloud.bigquery.migration.v2.SQLServerDialect value) { + public Builder setSqlServerDialect( + com.google.cloud.bigquery.migration.v2.SQLServerDialect value) { if (sqlServerDialectBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3354,6 +3906,8 @@ public Builder setSqlServerDialect(com.google.cloud.bigquery.migration.v2.SQLSer return this; } /** + * + * *
      * The SQL Server dialect
      * 
@@ -3372,18 +3926,25 @@ public Builder setSqlServerDialect( return this; } /** + * + * *
      * The SQL Server dialect
      * 
* * .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; */ - public Builder mergeSqlServerDialect(com.google.cloud.bigquery.migration.v2.SQLServerDialect value) { + public Builder mergeSqlServerDialect( + com.google.cloud.bigquery.migration.v2.SQLServerDialect value) { if (sqlServerDialectBuilder_ == null) { - if (dialectValueCase_ == 11 && - dialectValue_ != com.google.cloud.bigquery.migration.v2.SQLServerDialect.getDefaultInstance()) { - dialectValue_ = com.google.cloud.bigquery.migration.v2.SQLServerDialect.newBuilder((com.google.cloud.bigquery.migration.v2.SQLServerDialect) dialectValue_) - .mergeFrom(value).buildPartial(); + if (dialectValueCase_ == 11 + && dialectValue_ + != com.google.cloud.bigquery.migration.v2.SQLServerDialect.getDefaultInstance()) { + dialectValue_ = + com.google.cloud.bigquery.migration.v2.SQLServerDialect.newBuilder( + (com.google.cloud.bigquery.migration.v2.SQLServerDialect) dialectValue_) + .mergeFrom(value) + .buildPartial(); } else { dialectValue_ = value; } @@ -3399,6 +3960,8 @@ public Builder mergeSqlServerDialect(com.google.cloud.bigquery.migration.v2.SQLS return this; } /** + * + * *
      * The SQL Server dialect
      * 
@@ -3422,16 +3985,21 @@ public Builder clearSqlServerDialect() { return this; } /** + * + * *
      * The SQL Server dialect
      * 
* * .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; */ - public com.google.cloud.bigquery.migration.v2.SQLServerDialect.Builder getSqlServerDialectBuilder() { + public com.google.cloud.bigquery.migration.v2.SQLServerDialect.Builder + getSqlServerDialectBuilder() { return getSqlServerDialectFieldBuilder().getBuilder(); } /** + * + * *
      * The SQL Server dialect
      * 
@@ -3439,7 +4007,8 @@ public com.google.cloud.bigquery.migration.v2.SQLServerDialect.Builder getSqlSer * .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.SQLServerDialectOrBuilder getSqlServerDialectOrBuilder() { + public com.google.cloud.bigquery.migration.v2.SQLServerDialectOrBuilder + getSqlServerDialectOrBuilder() { if ((dialectValueCase_ == 11) && (sqlServerDialectBuilder_ != null)) { return sqlServerDialectBuilder_.getMessageOrBuilder(); } else { @@ -3450,6 +4019,8 @@ public com.google.cloud.bigquery.migration.v2.SQLServerDialectOrBuilder getSqlSe } } /** + * + * *
      * The SQL Server dialect
      * 
@@ -3457,14 +4028,20 @@ public com.google.cloud.bigquery.migration.v2.SQLServerDialectOrBuilder getSqlSe * .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.SQLServerDialect, com.google.cloud.bigquery.migration.v2.SQLServerDialect.Builder, com.google.cloud.bigquery.migration.v2.SQLServerDialectOrBuilder> + com.google.cloud.bigquery.migration.v2.SQLServerDialect, + com.google.cloud.bigquery.migration.v2.SQLServerDialect.Builder, + com.google.cloud.bigquery.migration.v2.SQLServerDialectOrBuilder> getSqlServerDialectFieldBuilder() { if (sqlServerDialectBuilder_ == null) { if (!(dialectValueCase_ == 11)) { - dialectValue_ = com.google.cloud.bigquery.migration.v2.SQLServerDialect.getDefaultInstance(); - } - sqlServerDialectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.SQLServerDialect, com.google.cloud.bigquery.migration.v2.SQLServerDialect.Builder, com.google.cloud.bigquery.migration.v2.SQLServerDialectOrBuilder>( + dialectValue_ = + com.google.cloud.bigquery.migration.v2.SQLServerDialect.getDefaultInstance(); + } + sqlServerDialectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.SQLServerDialect, + com.google.cloud.bigquery.migration.v2.SQLServerDialect.Builder, + com.google.cloud.bigquery.migration.v2.SQLServerDialectOrBuilder>( (com.google.cloud.bigquery.migration.v2.SQLServerDialect) dialectValue_, getParentForChildren(), isClean()); @@ -3476,13 +4053,19 @@ public com.google.cloud.bigquery.migration.v2.SQLServerDialectOrBuilder getSqlSe } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.PostgresqlDialect, com.google.cloud.bigquery.migration.v2.PostgresqlDialect.Builder, com.google.cloud.bigquery.migration.v2.PostgresqlDialectOrBuilder> postgresqlDialectBuilder_; + com.google.cloud.bigquery.migration.v2.PostgresqlDialect, + com.google.cloud.bigquery.migration.v2.PostgresqlDialect.Builder, + com.google.cloud.bigquery.migration.v2.PostgresqlDialectOrBuilder> + postgresqlDialectBuilder_; /** + * + * *
      * The Postgresql dialect
      * 
* * .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; + * * @return Whether the postgresqlDialect field is set. */ @java.lang.Override @@ -3490,11 +4073,14 @@ public boolean hasPostgresqlDialect() { return dialectValueCase_ == 12; } /** + * + * *
      * The Postgresql dialect
      * 
* * .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; + * * @return The postgresqlDialect. */ @java.lang.Override @@ -3512,13 +4098,16 @@ public com.google.cloud.bigquery.migration.v2.PostgresqlDialect getPostgresqlDia } } /** + * + * *
      * The Postgresql dialect
      * 
* * .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; */ - public Builder setPostgresqlDialect(com.google.cloud.bigquery.migration.v2.PostgresqlDialect value) { + public Builder setPostgresqlDialect( + com.google.cloud.bigquery.migration.v2.PostgresqlDialect value) { if (postgresqlDialectBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3532,6 +4121,8 @@ public Builder setPostgresqlDialect(com.google.cloud.bigquery.migration.v2.Postg return this; } /** + * + * *
      * The Postgresql dialect
      * 
@@ -3550,18 +4141,25 @@ public Builder setPostgresqlDialect( return this; } /** + * + * *
      * The Postgresql dialect
      * 
* * .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; */ - public Builder mergePostgresqlDialect(com.google.cloud.bigquery.migration.v2.PostgresqlDialect value) { + public Builder mergePostgresqlDialect( + com.google.cloud.bigquery.migration.v2.PostgresqlDialect value) { if (postgresqlDialectBuilder_ == null) { - if (dialectValueCase_ == 12 && - dialectValue_ != com.google.cloud.bigquery.migration.v2.PostgresqlDialect.getDefaultInstance()) { - dialectValue_ = com.google.cloud.bigquery.migration.v2.PostgresqlDialect.newBuilder((com.google.cloud.bigquery.migration.v2.PostgresqlDialect) dialectValue_) - .mergeFrom(value).buildPartial(); + if (dialectValueCase_ == 12 + && dialectValue_ + != com.google.cloud.bigquery.migration.v2.PostgresqlDialect.getDefaultInstance()) { + dialectValue_ = + com.google.cloud.bigquery.migration.v2.PostgresqlDialect.newBuilder( + (com.google.cloud.bigquery.migration.v2.PostgresqlDialect) dialectValue_) + .mergeFrom(value) + .buildPartial(); } else { dialectValue_ = value; } @@ -3577,6 +4175,8 @@ public Builder mergePostgresqlDialect(com.google.cloud.bigquery.migration.v2.Pos return this; } /** + * + * *
      * The Postgresql dialect
      * 
@@ -3600,16 +4200,21 @@ public Builder clearPostgresqlDialect() { return this; } /** + * + * *
      * The Postgresql dialect
      * 
* * .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; */ - public com.google.cloud.bigquery.migration.v2.PostgresqlDialect.Builder getPostgresqlDialectBuilder() { + public com.google.cloud.bigquery.migration.v2.PostgresqlDialect.Builder + getPostgresqlDialectBuilder() { return getPostgresqlDialectFieldBuilder().getBuilder(); } /** + * + * *
      * The Postgresql dialect
      * 
@@ -3617,7 +4222,8 @@ public com.google.cloud.bigquery.migration.v2.PostgresqlDialect.Builder getPostg * .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.PostgresqlDialectOrBuilder getPostgresqlDialectOrBuilder() { + public com.google.cloud.bigquery.migration.v2.PostgresqlDialectOrBuilder + getPostgresqlDialectOrBuilder() { if ((dialectValueCase_ == 12) && (postgresqlDialectBuilder_ != null)) { return postgresqlDialectBuilder_.getMessageOrBuilder(); } else { @@ -3628,6 +4234,8 @@ public com.google.cloud.bigquery.migration.v2.PostgresqlDialectOrBuilder getPost } } /** + * + * *
      * The Postgresql dialect
      * 
@@ -3635,14 +4243,20 @@ public com.google.cloud.bigquery.migration.v2.PostgresqlDialectOrBuilder getPost * .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.PostgresqlDialect, com.google.cloud.bigquery.migration.v2.PostgresqlDialect.Builder, com.google.cloud.bigquery.migration.v2.PostgresqlDialectOrBuilder> + com.google.cloud.bigquery.migration.v2.PostgresqlDialect, + com.google.cloud.bigquery.migration.v2.PostgresqlDialect.Builder, + com.google.cloud.bigquery.migration.v2.PostgresqlDialectOrBuilder> getPostgresqlDialectFieldBuilder() { if (postgresqlDialectBuilder_ == null) { if (!(dialectValueCase_ == 12)) { - dialectValue_ = com.google.cloud.bigquery.migration.v2.PostgresqlDialect.getDefaultInstance(); - } - postgresqlDialectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.PostgresqlDialect, com.google.cloud.bigquery.migration.v2.PostgresqlDialect.Builder, com.google.cloud.bigquery.migration.v2.PostgresqlDialectOrBuilder>( + dialectValue_ = + com.google.cloud.bigquery.migration.v2.PostgresqlDialect.getDefaultInstance(); + } + postgresqlDialectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.PostgresqlDialect, + com.google.cloud.bigquery.migration.v2.PostgresqlDialect.Builder, + com.google.cloud.bigquery.migration.v2.PostgresqlDialectOrBuilder>( (com.google.cloud.bigquery.migration.v2.PostgresqlDialect) dialectValue_, getParentForChildren(), isClean()); @@ -3654,13 +4268,19 @@ public com.google.cloud.bigquery.migration.v2.PostgresqlDialectOrBuilder getPost } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.PrestoDialect, com.google.cloud.bigquery.migration.v2.PrestoDialect.Builder, com.google.cloud.bigquery.migration.v2.PrestoDialectOrBuilder> prestoDialectBuilder_; + com.google.cloud.bigquery.migration.v2.PrestoDialect, + com.google.cloud.bigquery.migration.v2.PrestoDialect.Builder, + com.google.cloud.bigquery.migration.v2.PrestoDialectOrBuilder> + prestoDialectBuilder_; /** + * + * *
      * The Presto dialect
      * 
* * .google.cloud.bigquery.migration.v2.PrestoDialect presto_dialect = 13; + * * @return Whether the prestoDialect field is set. */ @java.lang.Override @@ -3668,11 +4288,14 @@ public boolean hasPrestoDialect() { return dialectValueCase_ == 13; } /** + * + * *
      * The Presto dialect
      * 
* * .google.cloud.bigquery.migration.v2.PrestoDialect presto_dialect = 13; + * * @return The prestoDialect. */ @java.lang.Override @@ -3690,6 +4313,8 @@ public com.google.cloud.bigquery.migration.v2.PrestoDialect getPrestoDialect() { } } /** + * + * *
      * The Presto dialect
      * 
@@ -3710,6 +4335,8 @@ public Builder setPrestoDialect(com.google.cloud.bigquery.migration.v2.PrestoDia return this; } /** + * + * *
      * The Presto dialect
      * 
@@ -3728,6 +4355,8 @@ public Builder setPrestoDialect( return this; } /** + * + * *
      * The Presto dialect
      * 
@@ -3736,10 +4365,14 @@ public Builder setPrestoDialect( */ public Builder mergePrestoDialect(com.google.cloud.bigquery.migration.v2.PrestoDialect value) { if (prestoDialectBuilder_ == null) { - if (dialectValueCase_ == 13 && - dialectValue_ != com.google.cloud.bigquery.migration.v2.PrestoDialect.getDefaultInstance()) { - dialectValue_ = com.google.cloud.bigquery.migration.v2.PrestoDialect.newBuilder((com.google.cloud.bigquery.migration.v2.PrestoDialect) dialectValue_) - .mergeFrom(value).buildPartial(); + if (dialectValueCase_ == 13 + && dialectValue_ + != com.google.cloud.bigquery.migration.v2.PrestoDialect.getDefaultInstance()) { + dialectValue_ = + com.google.cloud.bigquery.migration.v2.PrestoDialect.newBuilder( + (com.google.cloud.bigquery.migration.v2.PrestoDialect) dialectValue_) + .mergeFrom(value) + .buildPartial(); } else { dialectValue_ = value; } @@ -3755,6 +4388,8 @@ public Builder mergePrestoDialect(com.google.cloud.bigquery.migration.v2.PrestoD return this; } /** + * + * *
      * The Presto dialect
      * 
@@ -3778,6 +4413,8 @@ public Builder clearPrestoDialect() { return this; } /** + * + * *
      * The Presto dialect
      * 
@@ -3788,6 +4425,8 @@ public com.google.cloud.bigquery.migration.v2.PrestoDialect.Builder getPrestoDia return getPrestoDialectFieldBuilder().getBuilder(); } /** + * + * *
      * The Presto dialect
      * 
@@ -3795,7 +4434,8 @@ public com.google.cloud.bigquery.migration.v2.PrestoDialect.Builder getPrestoDia * .google.cloud.bigquery.migration.v2.PrestoDialect presto_dialect = 13; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.PrestoDialectOrBuilder getPrestoDialectOrBuilder() { + public com.google.cloud.bigquery.migration.v2.PrestoDialectOrBuilder + getPrestoDialectOrBuilder() { if ((dialectValueCase_ == 13) && (prestoDialectBuilder_ != null)) { return prestoDialectBuilder_.getMessageOrBuilder(); } else { @@ -3806,6 +4446,8 @@ public com.google.cloud.bigquery.migration.v2.PrestoDialectOrBuilder getPrestoDi } } /** + * + * *
      * The Presto dialect
      * 
@@ -3813,14 +4455,19 @@ public com.google.cloud.bigquery.migration.v2.PrestoDialectOrBuilder getPrestoDi * .google.cloud.bigquery.migration.v2.PrestoDialect presto_dialect = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.PrestoDialect, com.google.cloud.bigquery.migration.v2.PrestoDialect.Builder, com.google.cloud.bigquery.migration.v2.PrestoDialectOrBuilder> + com.google.cloud.bigquery.migration.v2.PrestoDialect, + com.google.cloud.bigquery.migration.v2.PrestoDialect.Builder, + com.google.cloud.bigquery.migration.v2.PrestoDialectOrBuilder> getPrestoDialectFieldBuilder() { if (prestoDialectBuilder_ == null) { if (!(dialectValueCase_ == 13)) { dialectValue_ = com.google.cloud.bigquery.migration.v2.PrestoDialect.getDefaultInstance(); } - prestoDialectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.PrestoDialect, com.google.cloud.bigquery.migration.v2.PrestoDialect.Builder, com.google.cloud.bigquery.migration.v2.PrestoDialectOrBuilder>( + prestoDialectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.PrestoDialect, + com.google.cloud.bigquery.migration.v2.PrestoDialect.Builder, + com.google.cloud.bigquery.migration.v2.PrestoDialectOrBuilder>( (com.google.cloud.bigquery.migration.v2.PrestoDialect) dialectValue_, getParentForChildren(), isClean()); @@ -3832,13 +4479,19 @@ public com.google.cloud.bigquery.migration.v2.PrestoDialectOrBuilder getPrestoDi } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.MySQLDialect, com.google.cloud.bigquery.migration.v2.MySQLDialect.Builder, com.google.cloud.bigquery.migration.v2.MySQLDialectOrBuilder> mysqlDialectBuilder_; + com.google.cloud.bigquery.migration.v2.MySQLDialect, + com.google.cloud.bigquery.migration.v2.MySQLDialect.Builder, + com.google.cloud.bigquery.migration.v2.MySQLDialectOrBuilder> + mysqlDialectBuilder_; /** + * + * *
      * The MySQL dialect
      * 
* * .google.cloud.bigquery.migration.v2.MySQLDialect mysql_dialect = 14; + * * @return Whether the mysqlDialect field is set. */ @java.lang.Override @@ -3846,11 +4499,14 @@ public boolean hasMysqlDialect() { return dialectValueCase_ == 14; } /** + * + * *
      * The MySQL dialect
      * 
* * .google.cloud.bigquery.migration.v2.MySQLDialect mysql_dialect = 14; + * * @return The mysqlDialect. */ @java.lang.Override @@ -3868,6 +4524,8 @@ public com.google.cloud.bigquery.migration.v2.MySQLDialect getMysqlDialect() { } } /** + * + * *
      * The MySQL dialect
      * 
@@ -3888,6 +4546,8 @@ public Builder setMysqlDialect(com.google.cloud.bigquery.migration.v2.MySQLDiale return this; } /** + * + * *
      * The MySQL dialect
      * 
@@ -3906,6 +4566,8 @@ public Builder setMysqlDialect( return this; } /** + * + * *
      * The MySQL dialect
      * 
@@ -3914,10 +4576,14 @@ public Builder setMysqlDialect( */ public Builder mergeMysqlDialect(com.google.cloud.bigquery.migration.v2.MySQLDialect value) { if (mysqlDialectBuilder_ == null) { - if (dialectValueCase_ == 14 && - dialectValue_ != com.google.cloud.bigquery.migration.v2.MySQLDialect.getDefaultInstance()) { - dialectValue_ = com.google.cloud.bigquery.migration.v2.MySQLDialect.newBuilder((com.google.cloud.bigquery.migration.v2.MySQLDialect) dialectValue_) - .mergeFrom(value).buildPartial(); + if (dialectValueCase_ == 14 + && dialectValue_ + != com.google.cloud.bigquery.migration.v2.MySQLDialect.getDefaultInstance()) { + dialectValue_ = + com.google.cloud.bigquery.migration.v2.MySQLDialect.newBuilder( + (com.google.cloud.bigquery.migration.v2.MySQLDialect) dialectValue_) + .mergeFrom(value) + .buildPartial(); } else { dialectValue_ = value; } @@ -3933,6 +4599,8 @@ public Builder mergeMysqlDialect(com.google.cloud.bigquery.migration.v2.MySQLDia return this; } /** + * + * *
      * The MySQL dialect
      * 
@@ -3956,6 +4624,8 @@ public Builder clearMysqlDialect() { return this; } /** + * + * *
      * The MySQL dialect
      * 
@@ -3966,6 +4636,8 @@ public com.google.cloud.bigquery.migration.v2.MySQLDialect.Builder getMysqlDiale return getMysqlDialectFieldBuilder().getBuilder(); } /** + * + * *
      * The MySQL dialect
      * 
@@ -3984,6 +4656,8 @@ public com.google.cloud.bigquery.migration.v2.MySQLDialectOrBuilder getMysqlDial } } /** + * + * *
      * The MySQL dialect
      * 
@@ -3991,14 +4665,19 @@ public com.google.cloud.bigquery.migration.v2.MySQLDialectOrBuilder getMysqlDial * .google.cloud.bigquery.migration.v2.MySQLDialect mysql_dialect = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.MySQLDialect, com.google.cloud.bigquery.migration.v2.MySQLDialect.Builder, com.google.cloud.bigquery.migration.v2.MySQLDialectOrBuilder> + com.google.cloud.bigquery.migration.v2.MySQLDialect, + com.google.cloud.bigquery.migration.v2.MySQLDialect.Builder, + com.google.cloud.bigquery.migration.v2.MySQLDialectOrBuilder> getMysqlDialectFieldBuilder() { if (mysqlDialectBuilder_ == null) { if (!(dialectValueCase_ == 14)) { dialectValue_ = com.google.cloud.bigquery.migration.v2.MySQLDialect.getDefaultInstance(); } - mysqlDialectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.MySQLDialect, com.google.cloud.bigquery.migration.v2.MySQLDialect.Builder, com.google.cloud.bigquery.migration.v2.MySQLDialectOrBuilder>( + mysqlDialectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.MySQLDialect, + com.google.cloud.bigquery.migration.v2.MySQLDialect.Builder, + com.google.cloud.bigquery.migration.v2.MySQLDialectOrBuilder>( (com.google.cloud.bigquery.migration.v2.MySQLDialect) dialectValue_, getParentForChildren(), isClean()); @@ -4008,9 +4687,9 @@ public com.google.cloud.bigquery.migration.v2.MySQLDialectOrBuilder getMysqlDial onChanged(); return mysqlDialectBuilder_; } + @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); } @@ -4020,12 +4699,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.Dialect) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.Dialect) private static final com.google.cloud.bigquery.migration.v2.Dialect DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.Dialect(); } @@ -4034,27 +4713,27 @@ public static com.google.cloud.bigquery.migration.v2.Dialect getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Dialect parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Dialect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4069,6 +4748,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.Dialect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DialectOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DialectOrBuilder.java similarity index 89% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DialectOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DialectOrBuilder.java index 5b7b1c6..9e5d367 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DialectOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/DialectOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; -public interface DialectOrBuilder extends +public interface DialectOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.Dialect) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The BigQuery dialect
    * 
* * .google.cloud.bigquery.migration.v2.BigQueryDialect bigquery_dialect = 1; + * * @return Whether the bigqueryDialect field is set. */ boolean hasBigqueryDialect(); /** + * + * *
    * The BigQuery dialect
    * 
* * .google.cloud.bigquery.migration.v2.BigQueryDialect bigquery_dialect = 1; + * * @return The bigqueryDialect. */ com.google.cloud.bigquery.migration.v2.BigQueryDialect getBigqueryDialect(); /** + * + * *
    * The BigQuery dialect
    * 
@@ -35,24 +59,32 @@ public interface DialectOrBuilder extends com.google.cloud.bigquery.migration.v2.BigQueryDialectOrBuilder getBigqueryDialectOrBuilder(); /** + * + * *
    * The HiveQL dialect
    * 
* * .google.cloud.bigquery.migration.v2.HiveQLDialect hiveql_dialect = 2; + * * @return Whether the hiveqlDialect field is set. */ boolean hasHiveqlDialect(); /** + * + * *
    * The HiveQL dialect
    * 
* * .google.cloud.bigquery.migration.v2.HiveQLDialect hiveql_dialect = 2; + * * @return The hiveqlDialect. */ com.google.cloud.bigquery.migration.v2.HiveQLDialect getHiveqlDialect(); /** + * + * *
    * The HiveQL dialect
    * 
@@ -62,24 +94,32 @@ public interface DialectOrBuilder extends com.google.cloud.bigquery.migration.v2.HiveQLDialectOrBuilder getHiveqlDialectOrBuilder(); /** + * + * *
    * The Redshift dialect
    * 
* * .google.cloud.bigquery.migration.v2.RedshiftDialect redshift_dialect = 3; + * * @return Whether the redshiftDialect field is set. */ boolean hasRedshiftDialect(); /** + * + * *
    * The Redshift dialect
    * 
* * .google.cloud.bigquery.migration.v2.RedshiftDialect redshift_dialect = 3; + * * @return The redshiftDialect. */ com.google.cloud.bigquery.migration.v2.RedshiftDialect getRedshiftDialect(); /** + * + * *
    * The Redshift dialect
    * 
@@ -89,24 +129,32 @@ public interface DialectOrBuilder extends com.google.cloud.bigquery.migration.v2.RedshiftDialectOrBuilder getRedshiftDialectOrBuilder(); /** + * + * *
    * The Teradata dialect
    * 
* * .google.cloud.bigquery.migration.v2.TeradataDialect teradata_dialect = 4; + * * @return Whether the teradataDialect field is set. */ boolean hasTeradataDialect(); /** + * + * *
    * The Teradata dialect
    * 
* * .google.cloud.bigquery.migration.v2.TeradataDialect teradata_dialect = 4; + * * @return The teradataDialect. */ com.google.cloud.bigquery.migration.v2.TeradataDialect getTeradataDialect(); /** + * + * *
    * The Teradata dialect
    * 
@@ -116,24 +164,32 @@ public interface DialectOrBuilder extends com.google.cloud.bigquery.migration.v2.TeradataDialectOrBuilder getTeradataDialectOrBuilder(); /** + * + * *
    * The Oracle dialect
    * 
* * .google.cloud.bigquery.migration.v2.OracleDialect oracle_dialect = 5; + * * @return Whether the oracleDialect field is set. */ boolean hasOracleDialect(); /** + * + * *
    * The Oracle dialect
    * 
* * .google.cloud.bigquery.migration.v2.OracleDialect oracle_dialect = 5; + * * @return The oracleDialect. */ com.google.cloud.bigquery.migration.v2.OracleDialect getOracleDialect(); /** + * + * *
    * The Oracle dialect
    * 
@@ -143,24 +199,32 @@ public interface DialectOrBuilder extends com.google.cloud.bigquery.migration.v2.OracleDialectOrBuilder getOracleDialectOrBuilder(); /** + * + * *
    * The SparkSQL dialect
    * 
* * .google.cloud.bigquery.migration.v2.SparkSQLDialect sparksql_dialect = 6; + * * @return Whether the sparksqlDialect field is set. */ boolean hasSparksqlDialect(); /** + * + * *
    * The SparkSQL dialect
    * 
* * .google.cloud.bigquery.migration.v2.SparkSQLDialect sparksql_dialect = 6; + * * @return The sparksqlDialect. */ com.google.cloud.bigquery.migration.v2.SparkSQLDialect getSparksqlDialect(); /** + * + * *
    * The SparkSQL dialect
    * 
@@ -170,24 +234,32 @@ public interface DialectOrBuilder extends com.google.cloud.bigquery.migration.v2.SparkSQLDialectOrBuilder getSparksqlDialectOrBuilder(); /** + * + * *
    * The Snowflake dialect
    * 
* * .google.cloud.bigquery.migration.v2.SnowflakeDialect snowflake_dialect = 7; + * * @return Whether the snowflakeDialect field is set. */ boolean hasSnowflakeDialect(); /** + * + * *
    * The Snowflake dialect
    * 
* * .google.cloud.bigquery.migration.v2.SnowflakeDialect snowflake_dialect = 7; + * * @return The snowflakeDialect. */ com.google.cloud.bigquery.migration.v2.SnowflakeDialect getSnowflakeDialect(); /** + * + * *
    * The Snowflake dialect
    * 
@@ -197,24 +269,32 @@ public interface DialectOrBuilder extends com.google.cloud.bigquery.migration.v2.SnowflakeDialectOrBuilder getSnowflakeDialectOrBuilder(); /** + * + * *
    * The Netezza dialect
    * 
* * .google.cloud.bigquery.migration.v2.NetezzaDialect netezza_dialect = 8; + * * @return Whether the netezzaDialect field is set. */ boolean hasNetezzaDialect(); /** + * + * *
    * The Netezza dialect
    * 
* * .google.cloud.bigquery.migration.v2.NetezzaDialect netezza_dialect = 8; + * * @return The netezzaDialect. */ com.google.cloud.bigquery.migration.v2.NetezzaDialect getNetezzaDialect(); /** + * + * *
    * The Netezza dialect
    * 
@@ -224,51 +304,68 @@ public interface DialectOrBuilder extends com.google.cloud.bigquery.migration.v2.NetezzaDialectOrBuilder getNetezzaDialectOrBuilder(); /** + * + * *
    * The Azure Synapse dialect
    * 
* * .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; + * * @return Whether the azureSynapseDialect field is set. */ boolean hasAzureSynapseDialect(); /** + * + * *
    * The Azure Synapse dialect
    * 
* * .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; + * * @return The azureSynapseDialect. */ com.google.cloud.bigquery.migration.v2.AzureSynapseDialect getAzureSynapseDialect(); /** + * + * *
    * The Azure Synapse dialect
    * 
* * .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; */ - com.google.cloud.bigquery.migration.v2.AzureSynapseDialectOrBuilder getAzureSynapseDialectOrBuilder(); + com.google.cloud.bigquery.migration.v2.AzureSynapseDialectOrBuilder + getAzureSynapseDialectOrBuilder(); /** + * + * *
    * The Vertica dialect
    * 
* * .google.cloud.bigquery.migration.v2.VerticaDialect vertica_dialect = 10; + * * @return Whether the verticaDialect field is set. */ boolean hasVerticaDialect(); /** + * + * *
    * The Vertica dialect
    * 
* * .google.cloud.bigquery.migration.v2.VerticaDialect vertica_dialect = 10; + * * @return The verticaDialect. */ com.google.cloud.bigquery.migration.v2.VerticaDialect getVerticaDialect(); /** + * + * *
    * The Vertica dialect
    * 
@@ -278,24 +375,32 @@ public interface DialectOrBuilder extends com.google.cloud.bigquery.migration.v2.VerticaDialectOrBuilder getVerticaDialectOrBuilder(); /** + * + * *
    * The SQL Server dialect
    * 
* * .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; + * * @return Whether the sqlServerDialect field is set. */ boolean hasSqlServerDialect(); /** + * + * *
    * The SQL Server dialect
    * 
* * .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; + * * @return The sqlServerDialect. */ com.google.cloud.bigquery.migration.v2.SQLServerDialect getSqlServerDialect(); /** + * + * *
    * The SQL Server dialect
    * 
@@ -305,24 +410,32 @@ public interface DialectOrBuilder extends com.google.cloud.bigquery.migration.v2.SQLServerDialectOrBuilder getSqlServerDialectOrBuilder(); /** + * + * *
    * The Postgresql dialect
    * 
* * .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; + * * @return Whether the postgresqlDialect field is set. */ boolean hasPostgresqlDialect(); /** + * + * *
    * The Postgresql dialect
    * 
* * .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; + * * @return The postgresqlDialect. */ com.google.cloud.bigquery.migration.v2.PostgresqlDialect getPostgresqlDialect(); /** + * + * *
    * The Postgresql dialect
    * 
@@ -332,24 +445,32 @@ public interface DialectOrBuilder extends com.google.cloud.bigquery.migration.v2.PostgresqlDialectOrBuilder getPostgresqlDialectOrBuilder(); /** + * + * *
    * The Presto dialect
    * 
* * .google.cloud.bigquery.migration.v2.PrestoDialect presto_dialect = 13; + * * @return Whether the prestoDialect field is set. */ boolean hasPrestoDialect(); /** + * + * *
    * The Presto dialect
    * 
* * .google.cloud.bigquery.migration.v2.PrestoDialect presto_dialect = 13; + * * @return The prestoDialect. */ com.google.cloud.bigquery.migration.v2.PrestoDialect getPrestoDialect(); /** + * + * *
    * The Presto dialect
    * 
@@ -359,24 +480,32 @@ public interface DialectOrBuilder extends com.google.cloud.bigquery.migration.v2.PrestoDialectOrBuilder getPrestoDialectOrBuilder(); /** + * + * *
    * The MySQL dialect
    * 
* * .google.cloud.bigquery.migration.v2.MySQLDialect mysql_dialect = 14; + * * @return Whether the mysqlDialect field is set. */ boolean hasMysqlDialect(); /** + * + * *
    * The MySQL dialect
    * 
* * .google.cloud.bigquery.migration.v2.MySQLDialect mysql_dialect = 14; + * * @return The mysqlDialect. */ com.google.cloud.bigquery.migration.v2.MySQLDialect getMysqlDialect(); /** + * + * *
    * The MySQL dialect
    * 
diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorDetail.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorDetail.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorDetail.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorDetail.java index 85b8220..50071f4 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorDetail.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorDetail.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_error_details.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * Provides details for errors, e.g. issues that where encountered when
  * processing a subtask.
@@ -11,51 +28,57 @@
  *
  * Protobuf type {@code google.cloud.bigquery.migration.v2.ErrorDetail}
  */
-public final class ErrorDetail extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ErrorDetail extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.ErrorDetail)
     ErrorDetailOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ErrorDetail.newBuilder() to construct.
   private ErrorDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private ErrorDetail() {
-  }
+
+  private ErrorDetail() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ErrorDetail();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2_ErrorDetail_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto
+        .internal_static_google_cloud_bigquery_migration_v2_ErrorDetail_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2_ErrorDetail_fieldAccessorTable
+    return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto
+        .internal_static_google_cloud_bigquery_migration_v2_ErrorDetail_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.migration.v2.ErrorDetail.class, com.google.cloud.bigquery.migration.v2.ErrorDetail.Builder.class);
+            com.google.cloud.bigquery.migration.v2.ErrorDetail.class,
+            com.google.cloud.bigquery.migration.v2.ErrorDetail.Builder.class);
   }
 
   public static final int LOCATION_FIELD_NUMBER = 1;
   private com.google.cloud.bigquery.migration.v2.ErrorLocation location_;
   /**
+   *
+   *
    * 
    * Optional. The exact location within the resource (if applicable).
    * 
* - * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the location field is set. */ @java.lang.Override @@ -63,37 +86,53 @@ public boolean hasLocation() { return location_ != null; } /** + * + * *
    * Optional. The exact location within the resource (if applicable).
    * 
* - * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The location. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.ErrorLocation getLocation() { - return location_ == null ? com.google.cloud.bigquery.migration.v2.ErrorLocation.getDefaultInstance() : location_; + return location_ == null + ? com.google.cloud.bigquery.migration.v2.ErrorLocation.getDefaultInstance() + : location_; } /** + * + * *
    * Optional. The exact location within the resource (if applicable).
    * 
* - * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.ErrorLocationOrBuilder getLocationOrBuilder() { - return location_ == null ? com.google.cloud.bigquery.migration.v2.ErrorLocation.getDefaultInstance() : location_; + return location_ == null + ? com.google.cloud.bigquery.migration.v2.ErrorLocation.getDefaultInstance() + : location_; } public static final int ERROR_INFO_FIELD_NUMBER = 2; private com.google.rpc.ErrorInfo errorInfo_; /** + * + * *
    * Required. Describes the cause of the error with structured detail.
    * 
* * .google.rpc.ErrorInfo error_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the errorInfo field is set. */ @java.lang.Override @@ -101,11 +140,14 @@ public boolean hasErrorInfo() { return errorInfo_ != null; } /** + * + * *
    * Required. Describes the cause of the error with structured detail.
    * 
* * .google.rpc.ErrorInfo error_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The errorInfo. */ @java.lang.Override @@ -113,6 +155,8 @@ public com.google.rpc.ErrorInfo getErrorInfo() { return errorInfo_ == null ? com.google.rpc.ErrorInfo.getDefaultInstance() : errorInfo_; } /** + * + * *
    * Required. Describes the cause of the error with structured detail.
    * 
@@ -125,6 +169,7 @@ public com.google.rpc.ErrorInfoOrBuilder getErrorInfoOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -136,8 +181,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 (location_ != null) { output.writeMessage(1, getLocation()); } @@ -154,12 +198,10 @@ public int getSerializedSize() { size = 0; if (location_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getLocation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLocation()); } if (errorInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getErrorInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getErrorInfo()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -169,22 +211,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2.ErrorDetail)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.ErrorDetail other = (com.google.cloud.bigquery.migration.v2.ErrorDetail) obj; + com.google.cloud.bigquery.migration.v2.ErrorDetail other = + (com.google.cloud.bigquery.migration.v2.ErrorDetail) obj; if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { - if (!getLocation() - .equals(other.getLocation())) return false; + if (!getLocation().equals(other.getLocation())) return false; } if (hasErrorInfo() != other.hasErrorInfo()) return false; if (hasErrorInfo()) { - if (!getErrorInfo() - .equals(other.getErrorInfo())) return false; + if (!getErrorInfo().equals(other.getErrorInfo())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -211,96 +252,103 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.ErrorDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.ErrorDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.ErrorDetail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.ErrorDetail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.ErrorDetail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.ErrorDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.ErrorDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.ErrorDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.ErrorDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.ErrorDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.ErrorDetail parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.ErrorDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.ErrorDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.ErrorDetail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.ErrorDetail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Provides details for errors, e.g. issues that where encountered when
    * processing a subtask.
@@ -308,33 +356,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.migration.v2.ErrorDetail}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.ErrorDetail)
       com.google.cloud.bigquery.migration.v2.ErrorDetailOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2_ErrorDetail_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto
+          .internal_static_google_cloud_bigquery_migration_v2_ErrorDetail_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2_ErrorDetail_fieldAccessorTable
+      return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto
+          .internal_static_google_cloud_bigquery_migration_v2_ErrorDetail_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.migration.v2.ErrorDetail.class, com.google.cloud.bigquery.migration.v2.ErrorDetail.Builder.class);
+              com.google.cloud.bigquery.migration.v2.ErrorDetail.class,
+              com.google.cloud.bigquery.migration.v2.ErrorDetail.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.migration.v2.ErrorDetail.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -353,9 +400,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2_ErrorDetail_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto
+          .internal_static_google_cloud_bigquery_migration_v2_ErrorDetail_descriptor;
     }
 
     @java.lang.Override
@@ -374,8 +421,11 @@ public com.google.cloud.bigquery.migration.v2.ErrorDetail build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.migration.v2.ErrorDetail buildPartial() {
-      com.google.cloud.bigquery.migration.v2.ErrorDetail result = new com.google.cloud.bigquery.migration.v2.ErrorDetail(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.migration.v2.ErrorDetail result =
+          new com.google.cloud.bigquery.migration.v2.ErrorDetail(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -383,14 +433,10 @@ public com.google.cloud.bigquery.migration.v2.ErrorDetail buildPartial() {
     private void buildPartial0(com.google.cloud.bigquery.migration.v2.ErrorDetail result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.location_ = locationBuilder_ == null
-            ? location_
-            : locationBuilder_.build();
+        result.location_ = locationBuilder_ == null ? location_ : locationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.errorInfo_ = errorInfoBuilder_ == null
-            ? errorInfo_
-            : errorInfoBuilder_.build();
+        result.errorInfo_ = errorInfoBuilder_ == null ? errorInfo_ : errorInfoBuilder_.build();
       }
     }
 
@@ -398,38 +444,39 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.ErrorDetail re
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.migration.v2.ErrorDetail) {
-        return mergeFrom((com.google.cloud.bigquery.migration.v2.ErrorDetail)other);
+        return mergeFrom((com.google.cloud.bigquery.migration.v2.ErrorDetail) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -437,7 +484,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.ErrorDetail other) {
-      if (other == com.google.cloud.bigquery.migration.v2.ErrorDetail.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.migration.v2.ErrorDetail.getDefaultInstance())
+        return this;
       if (other.hasLocation()) {
         mergeLocation(other.getLocation());
       }
@@ -470,26 +518,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getLocationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getErrorInfoFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getLocationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getErrorInfoFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -499,43 +546,63 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.bigquery.migration.v2.ErrorLocation location_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.migration.v2.ErrorLocation, com.google.cloud.bigquery.migration.v2.ErrorLocation.Builder, com.google.cloud.bigquery.migration.v2.ErrorLocationOrBuilder> locationBuilder_;
+            com.google.cloud.bigquery.migration.v2.ErrorLocation,
+            com.google.cloud.bigquery.migration.v2.ErrorLocation.Builder,
+            com.google.cloud.bigquery.migration.v2.ErrorLocationOrBuilder>
+        locationBuilder_;
     /**
+     *
+     *
      * 
      * Optional. The exact location within the resource (if applicable).
      * 
* - * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the location field is set. */ public boolean hasLocation() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. The exact location within the resource (if applicable).
      * 
* - * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The location. */ public com.google.cloud.bigquery.migration.v2.ErrorLocation getLocation() { if (locationBuilder_ == null) { - return location_ == null ? com.google.cloud.bigquery.migration.v2.ErrorLocation.getDefaultInstance() : location_; + return location_ == null + ? com.google.cloud.bigquery.migration.v2.ErrorLocation.getDefaultInstance() + : location_; } else { return locationBuilder_.getMessage(); } } /** + * + * *
      * Optional. The exact location within the resource (if applicable).
      * 
* - * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setLocation(com.google.cloud.bigquery.migration.v2.ErrorLocation value) { if (locationBuilder_ == null) { @@ -551,11 +618,15 @@ public Builder setLocation(com.google.cloud.bigquery.migration.v2.ErrorLocation return this; } /** + * + * *
      * Optional. The exact location within the resource (if applicable).
      * 
* - * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setLocation( com.google.cloud.bigquery.migration.v2.ErrorLocation.Builder builderForValue) { @@ -569,17 +640,22 @@ public Builder setLocation( return this; } /** + * + * *
      * Optional. The exact location within the resource (if applicable).
      * 
* - * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeLocation(com.google.cloud.bigquery.migration.v2.ErrorLocation value) { if (locationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - location_ != null && - location_ != com.google.cloud.bigquery.migration.v2.ErrorLocation.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && location_ != null + && location_ + != com.google.cloud.bigquery.migration.v2.ErrorLocation.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; @@ -592,11 +668,15 @@ public Builder mergeLocation(com.google.cloud.bigquery.migration.v2.ErrorLocatio return this; } /** + * + * *
      * Optional. The exact location within the resource (if applicable).
      * 
* - * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000001); @@ -609,11 +689,15 @@ public Builder clearLocation() { return this; } /** + * + * *
      * Optional. The exact location within the resource (if applicable).
      * 
* - * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.bigquery.migration.v2.ErrorLocation.Builder getLocationBuilder() { bitField0_ |= 0x00000001; @@ -621,36 +705,48 @@ public com.google.cloud.bigquery.migration.v2.ErrorLocation.Builder getLocationB return getLocationFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The exact location within the resource (if applicable).
      * 
* - * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.bigquery.migration.v2.ErrorLocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { - return location_ == null ? - com.google.cloud.bigquery.migration.v2.ErrorLocation.getDefaultInstance() : location_; + return location_ == null + ? com.google.cloud.bigquery.migration.v2.ErrorLocation.getDefaultInstance() + : location_; } } /** + * + * *
      * Optional. The exact location within the resource (if applicable).
      * 
* - * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.ErrorLocation, com.google.cloud.bigquery.migration.v2.ErrorLocation.Builder, com.google.cloud.bigquery.migration.v2.ErrorLocationOrBuilder> + com.google.cloud.bigquery.migration.v2.ErrorLocation, + com.google.cloud.bigquery.migration.v2.ErrorLocation.Builder, + com.google.cloud.bigquery.migration.v2.ErrorLocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { - locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.ErrorLocation, com.google.cloud.bigquery.migration.v2.ErrorLocation.Builder, com.google.cloud.bigquery.migration.v2.ErrorLocationOrBuilder>( - getLocation(), - getParentForChildren(), - isClean()); + locationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.ErrorLocation, + com.google.cloud.bigquery.migration.v2.ErrorLocation.Builder, + com.google.cloud.bigquery.migration.v2.ErrorLocationOrBuilder>( + getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; @@ -658,24 +754,33 @@ public com.google.cloud.bigquery.migration.v2.ErrorLocationOrBuilder getLocation private com.google.rpc.ErrorInfo errorInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.ErrorInfo, com.google.rpc.ErrorInfo.Builder, com.google.rpc.ErrorInfoOrBuilder> errorInfoBuilder_; + com.google.rpc.ErrorInfo, + com.google.rpc.ErrorInfo.Builder, + com.google.rpc.ErrorInfoOrBuilder> + errorInfoBuilder_; /** + * + * *
      * Required. Describes the cause of the error with structured detail.
      * 
* * .google.rpc.ErrorInfo error_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the errorInfo field is set. */ public boolean hasErrorInfo() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Describes the cause of the error with structured detail.
      * 
* * .google.rpc.ErrorInfo error_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The errorInfo. */ public com.google.rpc.ErrorInfo getErrorInfo() { @@ -686,6 +791,8 @@ public com.google.rpc.ErrorInfo getErrorInfo() { } } /** + * + * *
      * Required. Describes the cause of the error with structured detail.
      * 
@@ -706,14 +813,15 @@ public Builder setErrorInfo(com.google.rpc.ErrorInfo value) { return this; } /** + * + * *
      * Required. Describes the cause of the error with structured detail.
      * 
* * .google.rpc.ErrorInfo error_info = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setErrorInfo( - com.google.rpc.ErrorInfo.Builder builderForValue) { + public Builder setErrorInfo(com.google.rpc.ErrorInfo.Builder builderForValue) { if (errorInfoBuilder_ == null) { errorInfo_ = builderForValue.build(); } else { @@ -724,6 +832,8 @@ public Builder setErrorInfo( return this; } /** + * + * *
      * Required. Describes the cause of the error with structured detail.
      * 
@@ -732,9 +842,9 @@ public Builder setErrorInfo( */ public Builder mergeErrorInfo(com.google.rpc.ErrorInfo value) { if (errorInfoBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - errorInfo_ != null && - errorInfo_ != com.google.rpc.ErrorInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && errorInfo_ != null + && errorInfo_ != com.google.rpc.ErrorInfo.getDefaultInstance()) { getErrorInfoBuilder().mergeFrom(value); } else { errorInfo_ = value; @@ -747,6 +857,8 @@ public Builder mergeErrorInfo(com.google.rpc.ErrorInfo value) { return this; } /** + * + * *
      * Required. Describes the cause of the error with structured detail.
      * 
@@ -764,6 +876,8 @@ public Builder clearErrorInfo() { return this; } /** + * + * *
      * Required. Describes the cause of the error with structured detail.
      * 
@@ -776,6 +890,8 @@ public com.google.rpc.ErrorInfo.Builder getErrorInfoBuilder() { return getErrorInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Describes the cause of the error with structured detail.
      * 
@@ -786,11 +902,12 @@ public com.google.rpc.ErrorInfoOrBuilder getErrorInfoOrBuilder() { if (errorInfoBuilder_ != null) { return errorInfoBuilder_.getMessageOrBuilder(); } else { - return errorInfo_ == null ? - com.google.rpc.ErrorInfo.getDefaultInstance() : errorInfo_; + return errorInfo_ == null ? com.google.rpc.ErrorInfo.getDefaultInstance() : errorInfo_; } } /** + * + * *
      * Required. Describes the cause of the error with structured detail.
      * 
@@ -798,21 +915,24 @@ public com.google.rpc.ErrorInfoOrBuilder getErrorInfoOrBuilder() { * .google.rpc.ErrorInfo error_info = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.ErrorInfo, com.google.rpc.ErrorInfo.Builder, com.google.rpc.ErrorInfoOrBuilder> + com.google.rpc.ErrorInfo, + com.google.rpc.ErrorInfo.Builder, + com.google.rpc.ErrorInfoOrBuilder> getErrorInfoFieldBuilder() { if (errorInfoBuilder_ == null) { - errorInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.ErrorInfo, com.google.rpc.ErrorInfo.Builder, com.google.rpc.ErrorInfoOrBuilder>( - getErrorInfo(), - getParentForChildren(), - isClean()); + errorInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.ErrorInfo, + com.google.rpc.ErrorInfo.Builder, + com.google.rpc.ErrorInfoOrBuilder>( + getErrorInfo(), getParentForChildren(), isClean()); errorInfo_ = null; } return errorInfoBuilder_; } + @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); } @@ -822,12 +942,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.ErrorDetail) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.ErrorDetail) private static final com.google.cloud.bigquery.migration.v2.ErrorDetail DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.ErrorDetail(); } @@ -836,27 +956,27 @@ public static com.google.cloud.bigquery.migration.v2.ErrorDetail getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ErrorDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -871,6 +991,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.ErrorDetail getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorDetailOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorDetailOrBuilder.java similarity index 60% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorDetailOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorDetailOrBuilder.java index b57f7be..ac95b09 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorDetailOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorDetailOrBuilder.java @@ -1,58 +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/bigquery/migration/v2/migration_error_details.proto package com.google.cloud.bigquery.migration.v2; -public interface ErrorDetailOrBuilder extends +public interface ErrorDetailOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.ErrorDetail) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The exact location within the resource (if applicable).
    * 
* - * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the location field is set. */ boolean hasLocation(); /** + * + * *
    * Optional. The exact location within the resource (if applicable).
    * 
* - * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The location. */ com.google.cloud.bigquery.migration.v2.ErrorLocation getLocation(); /** + * + * *
    * Optional. The exact location within the resource (if applicable).
    * 
* - * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.bigquery.migration.v2.ErrorLocationOrBuilder getLocationOrBuilder(); /** + * + * *
    * Required. Describes the cause of the error with structured detail.
    * 
* * .google.rpc.ErrorInfo error_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the errorInfo field is set. */ boolean hasErrorInfo(); /** + * + * *
    * Required. Describes the cause of the error with structured detail.
    * 
* * .google.rpc.ErrorInfo error_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The errorInfo. */ com.google.rpc.ErrorInfo getErrorInfo(); /** + * + * *
    * Required. Describes the cause of the error with structured detail.
    * 
diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorLocation.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorLocation.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorLocation.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorLocation.java index 93e3ade..22d96c0 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorLocation.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorLocation.java @@ -1,61 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_error_details.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * Holds information about where the error is located.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.ErrorLocation} */ -public final class ErrorLocation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ErrorLocation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.ErrorLocation) ErrorLocationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ErrorLocation.newBuilder() to construct. private ErrorLocation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ErrorLocation() { - } + + private ErrorLocation() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ErrorLocation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2_ErrorLocation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_ErrorLocation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2_ErrorLocation_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_ErrorLocation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.ErrorLocation.class, com.google.cloud.bigquery.migration.v2.ErrorLocation.Builder.class); + com.google.cloud.bigquery.migration.v2.ErrorLocation.class, + com.google.cloud.bigquery.migration.v2.ErrorLocation.Builder.class); } public static final int LINE_FIELD_NUMBER = 1; private int line_ = 0; /** + * + * *
    * Optional. If applicable, denotes the line where the error occurred. A zero value
    * means that there is no line information.
    * 
* * int32 line = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The line. */ @java.lang.Override @@ -66,12 +87,15 @@ public int getLine() { public static final int COLUMN_FIELD_NUMBER = 2; private int column_ = 0; /** + * + * *
    * Optional. If applicable, denotes the column where the error occurred. A zero value
    * means that there is no columns information.
    * 
* * int32 column = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The column. */ @java.lang.Override @@ -80,6 +104,7 @@ public int getColumn() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -91,8 +116,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 (line_ != 0) { output.writeInt32(1, line_); } @@ -109,12 +133,10 @@ public int getSerializedSize() { size = 0; if (line_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, line_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, line_); } if (column_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, column_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, column_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -124,17 +146,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2.ErrorLocation)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.ErrorLocation other = (com.google.cloud.bigquery.migration.v2.ErrorLocation) obj; + com.google.cloud.bigquery.migration.v2.ErrorLocation other = + (com.google.cloud.bigquery.migration.v2.ErrorLocation) obj; - if (getLine() - != other.getLine()) return false; - if (getColumn() - != other.getColumn()) return false; + if (getLine() != other.getLine()) return false; + if (getColumn() != other.getColumn()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -156,129 +177,135 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.ErrorLocation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.ErrorLocation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.ErrorLocation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.ErrorLocation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.ErrorLocation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.ErrorLocation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.ErrorLocation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.ErrorLocation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.ErrorLocation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.ErrorLocation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.ErrorLocation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.ErrorLocation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.ErrorLocation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.ErrorLocation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.ErrorLocation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Holds information about where the error is located.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.ErrorLocation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.ErrorLocation) com.google.cloud.bigquery.migration.v2.ErrorLocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2_ErrorLocation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_ErrorLocation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2_ErrorLocation_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_ErrorLocation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.ErrorLocation.class, com.google.cloud.bigquery.migration.v2.ErrorLocation.Builder.class); + com.google.cloud.bigquery.migration.v2.ErrorLocation.class, + com.google.cloud.bigquery.migration.v2.ErrorLocation.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2.ErrorLocation.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,9 +316,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2_ErrorLocation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_ErrorLocation_descriptor; } @java.lang.Override @@ -310,8 +337,11 @@ public com.google.cloud.bigquery.migration.v2.ErrorLocation build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2.ErrorLocation buildPartial() { - com.google.cloud.bigquery.migration.v2.ErrorLocation result = new com.google.cloud.bigquery.migration.v2.ErrorLocation(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.migration.v2.ErrorLocation result = + new com.google.cloud.bigquery.migration.v2.ErrorLocation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +360,39 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.ErrorLocation public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.ErrorLocation) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.ErrorLocation)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2.ErrorLocation) other); } else { super.mergeFrom(other); return this; @@ -369,7 +400,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.ErrorLocation other) { - if (other == com.google.cloud.bigquery.migration.v2.ErrorLocation.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.migration.v2.ErrorLocation.getDefaultInstance()) + return this; if (other.getLine() != 0) { setLine(other.getLine()); } @@ -402,22 +434,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - line_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - column_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + line_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + column_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -427,16 +462,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private int line_ ; + private int line_; /** + * + * *
      * Optional. If applicable, denotes the line where the error occurred. A zero value
      * means that there is no line information.
      * 
* * int32 line = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The line. */ @java.lang.Override @@ -444,29 +483,35 @@ public int getLine() { return line_; } /** + * + * *
      * Optional. If applicable, denotes the line where the error occurred. A zero value
      * means that there is no line information.
      * 
* * int32 line = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The line to set. * @return This builder for chaining. */ public Builder setLine(int value) { - + line_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. If applicable, denotes the line where the error occurred. A zero value
      * means that there is no line information.
      * 
* * int32 line = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearLine() { @@ -476,14 +521,17 @@ public Builder clearLine() { return this; } - private int column_ ; + private int column_; /** + * + * *
      * Optional. If applicable, denotes the column where the error occurred. A zero value
      * means that there is no columns information.
      * 
* * int32 column = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The column. */ @java.lang.Override @@ -491,29 +539,35 @@ public int getColumn() { return column_; } /** + * + * *
      * Optional. If applicable, denotes the column where the error occurred. A zero value
      * means that there is no columns information.
      * 
* * int32 column = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The column to set. * @return This builder for chaining. */ public Builder setColumn(int value) { - + column_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. If applicable, denotes the column where the error occurred. A zero value
      * means that there is no columns information.
      * 
* * int32 column = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearColumn() { @@ -522,9 +576,9 @@ public Builder clearColumn() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -534,12 +588,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.ErrorLocation) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.ErrorLocation) private static final com.google.cloud.bigquery.migration.v2.ErrorLocation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.ErrorLocation(); } @@ -548,27 +602,27 @@ public static com.google.cloud.bigquery.migration.v2.ErrorLocation getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ErrorLocation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorLocation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -583,6 +637,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.ErrorLocation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorLocationOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorLocationOrBuilder.java similarity index 57% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorLocationOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorLocationOrBuilder.java index 831063b..c6061ba 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorLocationOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ErrorLocationOrBuilder.java @@ -1,30 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_error_details.proto package com.google.cloud.bigquery.migration.v2; -public interface ErrorLocationOrBuilder extends +public interface ErrorLocationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.ErrorLocation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. If applicable, denotes the line where the error occurred. A zero value
    * means that there is no line information.
    * 
* * int32 line = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The line. */ int getLine(); /** + * + * *
    * Optional. If applicable, denotes the column where the error occurred. A zero value
    * means that there is no columns information.
    * 
* * int32 column = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The column. */ int getColumn(); diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationSubtaskRequest.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationSubtaskRequest.java similarity index 63% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationSubtaskRequest.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationSubtaskRequest.java index eb52056..a71b87e 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationSubtaskRequest.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationSubtaskRequest.java @@ -1,63 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_service.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * A request to get a previously created migration subtasks.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest} */ -public final class GetMigrationSubtaskRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetMigrationSubtaskRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest) GetMigrationSubtaskRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetMigrationSubtaskRequest.newBuilder() to construct. private GetMigrationSubtaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetMigrationSubtaskRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetMigrationSubtaskRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_GetMigrationSubtaskRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_GetMigrationSubtaskRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_GetMigrationSubtaskRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_GetMigrationSubtaskRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest.class, com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest.Builder.class); + com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest.class, + com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The unique identifier for the migration subtask.
    * Example: `projects/123/locations/us/workflows/1234/subtasks/543`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,30 +91,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The unique identifier for the migration subtask.
    * Example: `projects/123/locations/us/workflows/1234/subtasks/543`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -100,11 +127,15 @@ public java.lang.String getName() { public static final int READ_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask readMask_; /** + * + * *
    * Optional. The list of fields to be retrieved.
    * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readMask field is set. */ @java.lang.Override @@ -112,11 +143,15 @@ public boolean hasReadMask() { return readMask_ != null; } /** + * + * *
    * Optional. The list of fields to be retrieved.
    * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readMask. */ @java.lang.Override @@ -124,11 +159,14 @@ public com.google.protobuf.FieldMask getReadMask() { return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } /** + * + * *
    * Optional. The list of fields to be retrieved.
    * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { @@ -136,6 +174,7 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,8 +186,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -168,8 +206,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (readMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReadMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -179,19 +216,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest other = (com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest) obj; + com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest other = + (com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasReadMask() != other.hasReadMask()) return false; if (hasReadMask()) { - if (!getReadMask() - .equals(other.getReadMask())) return false; + if (!getReadMask().equals(other.getReadMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -216,129 +252,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A request to get a previously created migration subtasks.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest) com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_GetMigrationSubtaskRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_GetMigrationSubtaskRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_GetMigrationSubtaskRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_GetMigrationSubtaskRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest.class, com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest.Builder.class); + com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest.class, + com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -353,13 +398,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_GetMigrationSubtaskRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_GetMigrationSubtaskRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest + getDefaultInstanceForType() { return com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest.getDefaultInstance(); } @@ -374,21 +420,23 @@ public com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest build() @java.lang.Override public com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest buildPartial() { - com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest result = new com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest result = + new com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.readMask_ = readMaskBuilder_ == null - ? readMask_ - : readMaskBuilder_.build(); + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); } } @@ -396,46 +444,50 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.GetMigrationSu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest other) { - if (other == com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest other) { + if (other + == com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -470,24 +522,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getReadMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -497,23 +550,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The unique identifier for the migration subtask.
      * Example: `projects/123/locations/us/workflows/1234/subtasks/543`
      * 
* - * string 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; @@ -522,21 +580,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The unique identifier for the migration subtask.
      * Example: `projects/123/locations/us/workflows/1234/subtasks/543`
      * 
* - * string 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 { @@ -544,30 +605,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The unique identifier for the migration subtask.
      * Example: `projects/123/locations/us/workflows/1234/subtasks/543`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The unique identifier for the migration subtask.
      * Example: `projects/123/locations/us/workflows/1234/subtasks/543`
      * 
* - * string 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() { @@ -577,18 +649,24 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The unique identifier for the migration subtask.
      * Example: `projects/123/locations/us/workflows/1234/subtasks/543`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -598,24 +676,35 @@ public Builder setNameBytes( private com.google.protobuf.FieldMask readMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> readMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + readMaskBuilder_; /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readMask field is set. */ public boolean hasReadMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -626,11 +715,14 @@ public com.google.protobuf.FieldMask getReadMask() { } } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { @@ -646,14 +738,16 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setReadMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); } else { @@ -664,17 +758,20 @@ public Builder setReadMask( return this; } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - readMask_ != null && - readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; @@ -687,11 +784,14 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearReadMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -704,11 +804,14 @@ public Builder clearReadMask() { return this; } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { bitField0_ |= 0x00000002; @@ -716,43 +819,51 @@ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { return getReadMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { if (readMaskBuilder_ != null) { return readMaskBuilder_.getMessageOrBuilder(); } else { - return readMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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> getReadMaskFieldBuilder() { if (readMaskBuilder_ == null) { - readMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getReadMask(), - getParentForChildren(), - isClean()); + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); readMask_ = null; } return readMaskBuilder_; } + @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); } @@ -762,41 +873,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest) - private static final com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest(); } - public static com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetMigrationSubtaskRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMigrationSubtaskRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -808,9 +921,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationSubtaskRequestOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationSubtaskRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationSubtaskRequestOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationSubtaskRequestOrBuilder.java index 8634988..926deaa 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationSubtaskRequestOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationSubtaskRequestOrBuilder.java @@ -1,58 +1,94 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_service.proto package com.google.cloud.bigquery.migration.v2; -public interface GetMigrationSubtaskRequestOrBuilder extends +public interface GetMigrationSubtaskRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The unique identifier for the migration subtask.
    * Example: `projects/123/locations/us/workflows/1234/subtasks/543`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The unique identifier for the migration subtask.
    * Example: `projects/123/locations/us/workflows/1234/subtasks/543`
    * 
* - * string 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(); /** + * + * *
    * Optional. The list of fields to be retrieved.
    * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readMask field is set. */ boolean hasReadMask(); /** + * + * *
    * Optional. The list of fields to be retrieved.
    * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readMask. */ com.google.protobuf.FieldMask getReadMask(); /** + * + * *
    * Optional. The list of fields to be retrieved.
    * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationWorkflowRequest.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationWorkflowRequest.java similarity index 63% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationWorkflowRequest.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationWorkflowRequest.java index 825a7a1..e767696 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationWorkflowRequest.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationWorkflowRequest.java @@ -1,63 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_service.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * A request to get a previously created migration workflow.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest} */ -public final class GetMigrationWorkflowRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetMigrationWorkflowRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest) GetMigrationWorkflowRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetMigrationWorkflowRequest.newBuilder() to construct. private GetMigrationWorkflowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetMigrationWorkflowRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetMigrationWorkflowRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_GetMigrationWorkflowRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_GetMigrationWorkflowRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_GetMigrationWorkflowRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_GetMigrationWorkflowRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest.class, com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest.Builder.class); + com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest.class, + com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The unique identifier for the migration workflow.
    * Example: `projects/123/locations/us/workflows/1234`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,30 +91,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The unique identifier for the migration workflow.
    * Example: `projects/123/locations/us/workflows/1234`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -100,11 +127,14 @@ public java.lang.String getName() { public static final int READ_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask readMask_; /** + * + * *
    * The list of fields to be retrieved.
    * 
* * .google.protobuf.FieldMask read_mask = 2; + * * @return Whether the readMask field is set. */ @java.lang.Override @@ -112,11 +142,14 @@ public boolean hasReadMask() { return readMask_ != null; } /** + * + * *
    * The list of fields to be retrieved.
    * 
* * .google.protobuf.FieldMask read_mask = 2; + * * @return The readMask. */ @java.lang.Override @@ -124,6 +157,8 @@ public com.google.protobuf.FieldMask getReadMask() { return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } /** + * + * *
    * The list of fields to be retrieved.
    * 
@@ -136,6 +171,7 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -168,8 +203,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (readMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReadMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -179,19 +213,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest other = (com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest) obj; + com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest other = + (com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasReadMask() != other.hasReadMask()) return false; if (hasReadMask()) { - if (!getReadMask() - .equals(other.getReadMask())) return false; + if (!getReadMask().equals(other.getReadMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -216,129 +249,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A request to get a previously created migration workflow.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest) com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_GetMigrationWorkflowRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_GetMigrationWorkflowRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_GetMigrationWorkflowRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_GetMigrationWorkflowRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest.class, com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest.Builder.class); + com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest.class, + com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -353,14 +395,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_GetMigrationWorkflowRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_GetMigrationWorkflowRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest.getDefaultInstance(); + public com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest + .getDefaultInstance(); } @java.lang.Override @@ -374,21 +418,23 @@ public com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest build( @java.lang.Override public com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest buildPartial() { - com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest result = new com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest result = + new com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.readMask_ = readMaskBuilder_ == null - ? readMask_ - : readMaskBuilder_.build(); + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); } } @@ -396,46 +442,51 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.GetMigrationWo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest)other); + return mergeFrom( + (com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest other) { - if (other == com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest other) { + if (other + == com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -470,24 +521,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getReadMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -497,23 +549,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string 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; @@ -522,21 +579,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string 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 { @@ -544,30 +604,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string 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() { @@ -577,18 +648,24 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -598,24 +675,33 @@ public Builder setNameBytes( private com.google.protobuf.FieldMask readMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> readMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + readMaskBuilder_; /** + * + * *
      * The list of fields to be retrieved.
      * 
* * .google.protobuf.FieldMask read_mask = 2; + * * @return Whether the readMask field is set. */ public boolean hasReadMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The list of fields to be retrieved.
      * 
* * .google.protobuf.FieldMask read_mask = 2; + * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -626,6 +712,8 @@ public com.google.protobuf.FieldMask getReadMask() { } } /** + * + * *
      * The list of fields to be retrieved.
      * 
@@ -646,14 +734,15 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be retrieved.
      * 
* * .google.protobuf.FieldMask read_mask = 2; */ - public Builder setReadMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); } else { @@ -664,6 +753,8 @@ public Builder setReadMask( return this; } /** + * + * *
      * The list of fields to be retrieved.
      * 
@@ -672,9 +763,9 @@ public Builder setReadMask( */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - readMask_ != null && - readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; @@ -687,6 +778,8 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be retrieved.
      * 
@@ -704,6 +797,8 @@ public Builder clearReadMask() { return this; } /** + * + * *
      * The list of fields to be retrieved.
      * 
@@ -716,6 +811,8 @@ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { return getReadMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The list of fields to be retrieved.
      * 
@@ -726,11 +823,12 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { if (readMaskBuilder_ != null) { return readMaskBuilder_.getMessageOrBuilder(); } else { - return readMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } } /** + * + * *
      * The list of fields to be retrieved.
      * 
@@ -738,21 +836,24 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { * .google.protobuf.FieldMask read_mask = 2; */ 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> getReadMaskFieldBuilder() { if (readMaskBuilder_ == null) { - readMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getReadMask(), - getParentForChildren(), - isClean()); + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); readMask_ = null; } return readMaskBuilder_; } + @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); } @@ -762,41 +863,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest) - private static final com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest(); } - public static com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetMigrationWorkflowRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMigrationWorkflowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -808,9 +911,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationWorkflowRequestOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationWorkflowRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationWorkflowRequestOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationWorkflowRequestOrBuilder.java index 8b40779..c182962 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationWorkflowRequestOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/GetMigrationWorkflowRequestOrBuilder.java @@ -1,53 +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/bigquery/migration/v2/migration_service.proto package com.google.cloud.bigquery.migration.v2; -public interface GetMigrationWorkflowRequestOrBuilder extends +public interface GetMigrationWorkflowRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The unique identifier for the migration workflow.
    * Example: `projects/123/locations/us/workflows/1234`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The unique identifier for the migration workflow.
    * Example: `projects/123/locations/us/workflows/1234`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The list of fields to be retrieved.
    * 
* * .google.protobuf.FieldMask read_mask = 2; + * * @return Whether the readMask field is set. */ boolean hasReadMask(); /** + * + * *
    * The list of fields to be retrieved.
    * 
* * .google.protobuf.FieldMask read_mask = 2; + * * @return The readMask. */ com.google.protobuf.FieldMask getReadMask(); /** + * + * *
    * The list of fields to be retrieved.
    * 
diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/HiveQLDialect.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/HiveQLDialect.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/HiveQLDialect.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/HiveQLDialect.java index 7f4f72c..4b7c372 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/HiveQLDialect.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/HiveQLDialect.java @@ -1,53 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * The dialect definition for HiveQL.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.HiveQLDialect} */ -public final class HiveQLDialect extends - com.google.protobuf.GeneratedMessageV3 implements +public final class HiveQLDialect extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.HiveQLDialect) HiveQLDialectOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HiveQLDialect.newBuilder() to construct. private HiveQLDialect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HiveQLDialect() { - } + + private HiveQLDialect() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HiveQLDialect(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_HiveQLDialect_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_HiveQLDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_HiveQLDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_HiveQLDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.HiveQLDialect.class, com.google.cloud.bigquery.migration.v2.HiveQLDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.HiveQLDialect.class, + com.google.cloud.bigquery.migration.v2.HiveQLDialect.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -59,8 +78,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 { getUnknownFields().writeTo(output); } @@ -78,12 +96,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.bigquery.migration.v2.HiveQLDialect)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.HiveQLDialect other = (com.google.cloud.bigquery.migration.v2.HiveQLDialect) obj; + com.google.cloud.bigquery.migration.v2.HiveQLDialect other = + (com.google.cloud.bigquery.migration.v2.HiveQLDialect) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -102,129 +121,135 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.HiveQLDialect parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.HiveQLDialect parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.HiveQLDialect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.HiveQLDialect parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.HiveQLDialect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.HiveQLDialect parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.HiveQLDialect parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.HiveQLDialect parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.HiveQLDialect parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.HiveQLDialect parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.HiveQLDialect parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.HiveQLDialect parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.HiveQLDialect parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.HiveQLDialect parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.HiveQLDialect prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 dialect definition for HiveQL.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.HiveQLDialect} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.HiveQLDialect) com.google.cloud.bigquery.migration.v2.HiveQLDialectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_HiveQLDialect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_HiveQLDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_HiveQLDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_HiveQLDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.HiveQLDialect.class, com.google.cloud.bigquery.migration.v2.HiveQLDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.HiveQLDialect.class, + com.google.cloud.bigquery.migration.v2.HiveQLDialect.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2.HiveQLDialect.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -232,9 +257,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_HiveQLDialect_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_HiveQLDialect_descriptor; } @java.lang.Override @@ -253,7 +278,8 @@ public com.google.cloud.bigquery.migration.v2.HiveQLDialect build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2.HiveQLDialect buildPartial() { - com.google.cloud.bigquery.migration.v2.HiveQLDialect result = new com.google.cloud.bigquery.migration.v2.HiveQLDialect(this); + com.google.cloud.bigquery.migration.v2.HiveQLDialect result = + new com.google.cloud.bigquery.migration.v2.HiveQLDialect(this); onBuilt(); return result; } @@ -262,38 +288,39 @@ public com.google.cloud.bigquery.migration.v2.HiveQLDialect buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.HiveQLDialect) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.HiveQLDialect)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2.HiveQLDialect) other); } else { super.mergeFrom(other); return this; @@ -301,7 +328,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.HiveQLDialect other) { - if (other == com.google.cloud.bigquery.migration.v2.HiveQLDialect.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.migration.v2.HiveQLDialect.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -328,12 +356,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -343,9 +372,9 @@ public Builder mergeFrom( } // finally 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); } @@ -355,12 +384,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.HiveQLDialect) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.HiveQLDialect) private static final com.google.cloud.bigquery.migration.v2.HiveQLDialect DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.HiveQLDialect(); } @@ -369,27 +398,27 @@ public static com.google.cloud.bigquery.migration.v2.HiveQLDialect getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HiveQLDialect parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HiveQLDialect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -404,6 +433,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.HiveQLDialect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/HiveQLDialectOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/HiveQLDialectOrBuilder.java new file mode 100644 index 0000000..bd5451f --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/HiveQLDialectOrBuilder.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/bigquery/migration/v2/translation_config.proto + +package com.google.cloud.bigquery.migration.v2; + +public interface HiveQLDialectOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.HiveQLDialect) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksRequest.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksRequest.java similarity index 69% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksRequest.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksRequest.java index cce7454..cf725e1 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksRequest.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_service.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * A request to list previously created migration subtasks.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest} */ -public final class ListMigrationSubtasksRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListMigrationSubtasksRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest) ListMigrationSubtasksRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListMigrationSubtasksRequest.newBuilder() to construct. private ListMigrationSubtasksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListMigrationSubtasksRequest() { parent_ = ""; pageToken_ = ""; @@ -27,39 +45,46 @@ private ListMigrationSubtasksRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListMigrationSubtasksRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest.class, com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest.Builder.class); + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest.class, + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The migration task of the subtasks to list.
    * Example: `projects/123/locations/us/workflows/1234`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -68,30 +93,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The migration task of the subtasks to list.
    * Example: `projects/123/locations/us/workflows/1234`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -102,11 +129,15 @@ public java.lang.String getParent() { public static final int READ_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask readMask_; /** + * + * *
    * Optional. The list of fields to be retrieved.
    * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readMask field is set. */ @java.lang.Override @@ -114,11 +145,15 @@ public boolean hasReadMask() { return readMask_ != null; } /** + * + * *
    * Optional. The list of fields to be retrieved.
    * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readMask. */ @java.lang.Override @@ -126,11 +161,14 @@ public com.google.protobuf.FieldMask getReadMask() { return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } /** + * + * *
    * Optional. The list of fields to be retrieved.
    * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { @@ -140,12 +178,15 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of migration tasks to return. The service may return
    * fewer than this number.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -154,9 +195,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. A page token, received from previous `ListMigrationSubtasks` call.
    * Provide this to retrieve the subsequent page.
@@ -165,6 +209,7 @@ public int getPageSize() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -173,14 +218,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; } } /** + * + * *
    * Optional. A page token, received from previous `ListMigrationSubtasks` call.
    * Provide this to retrieve the subsequent page.
@@ -189,16 +235,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -207,9 +252,12 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Optional. The filter to apply. This can be used to get the subtasks of a specific
    * tasks in a workflow, e.g. `migration_task = "ab012"` where `"ab012"` is the
@@ -217,6 +265,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -225,14 +274,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; } } /** + * + * *
    * Optional. The filter to apply. This can be used to get the subtasks of a specific
    * tasks in a workflow, e.g. `migration_task = "ab012"` where `"ab012"` is the
@@ -240,16 +290,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -258,6 +307,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -299,12 +348,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (readMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReadMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadMask()); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -320,26 +367,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest other = (com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest) obj; + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest other = + (com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasReadMask() != other.hasReadMask()) return false; if (hasReadMask()) { - if (!getReadMask() - .equals(other.getReadMask())) return false; - } - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getReadMask().equals(other.getReadMask())) return false; + } + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -369,129 +412,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A request to list previously created migration subtasks.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest) com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest.class, com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest.Builder.class); + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest.class, + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -509,14 +561,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest.getDefaultInstance(); + public com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest + .getDefaultInstance(); } @java.lang.Override @@ -530,21 +584,23 @@ public com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest build @java.lang.Override public com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest buildPartial() { - com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest result = new com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest result = + new com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.readMask_ = readMaskBuilder_ == null - ? readMask_ - : readMaskBuilder_.build(); + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.pageSize_ = pageSize_; @@ -561,46 +617,51 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.ListMigrationS public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest)other); + return mergeFrom( + (com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest other) { - if (other == com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest other) { + if (other + == com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -648,39 +709,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getReadMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -690,23 +755,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The migration task of the subtasks to list.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string 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; @@ -715,21 +785,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The migration task of the subtasks to list.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string 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 { @@ -737,30 +810,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The migration task of the subtasks to list.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The migration task of the subtasks to list.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string 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() { @@ -770,18 +854,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The migration task of the subtasks to list.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -791,24 +881,35 @@ public Builder setParentBytes( private com.google.protobuf.FieldMask readMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> readMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + readMaskBuilder_; /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readMask field is set. */ public boolean hasReadMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -819,11 +920,14 @@ public com.google.protobuf.FieldMask getReadMask() { } } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { @@ -839,14 +943,16 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setReadMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); } else { @@ -857,17 +963,20 @@ public Builder setReadMask( return this; } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - readMask_ != null && - readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; @@ -880,11 +989,14 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearReadMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -897,11 +1009,14 @@ public Builder clearReadMask() { return this; } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { bitField0_ |= 0x00000002; @@ -909,49 +1024,60 @@ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { return getReadMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { if (readMaskBuilder_ != null) { return readMaskBuilder_.getMessageOrBuilder(); } else { - return readMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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> getReadMaskFieldBuilder() { if (readMaskBuilder_ == null) { - readMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getReadMask(), - getParentForChildren(), - isClean()); + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); readMask_ = null; } return readMaskBuilder_; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of migration tasks to return. The service may return
      * fewer than this number.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -959,29 +1085,35 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of migration tasks to return. The service may return
      * fewer than this number.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. The maximum number of migration tasks to return. The service may return
      * fewer than this number.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -993,6 +1125,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. A page token, received from previous `ListMigrationSubtasks` call.
      * Provide this to retrieve the subsequent page.
@@ -1001,13 +1135,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -1016,6 +1150,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A page token, received from previous `ListMigrationSubtasks` call.
      * Provide this to retrieve the subsequent page.
@@ -1024,15 +1160,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -1040,6 +1175,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A page token, received from previous `ListMigrationSubtasks` call.
      * Provide this to retrieve the subsequent page.
@@ -1048,18 +1185,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. A page token, received from previous `ListMigrationSubtasks` call.
      * Provide this to retrieve the subsequent page.
@@ -1068,6 +1209,7 @@ public Builder setPageToken(
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1077,6 +1219,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. A page token, received from previous `ListMigrationSubtasks` call.
      * Provide this to retrieve the subsequent page.
@@ -1085,12 +1229,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; @@ -1100,6 +1246,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. The filter to apply. This can be used to get the subtasks of a specific
      * tasks in a workflow, e.g. `migration_task = "ab012"` where `"ab012"` is the
@@ -1107,13 +1255,13 @@ public Builder setPageTokenBytes(
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -1122,6 +1270,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. The filter to apply. This can be used to get the subtasks of a specific
      * tasks in a workflow, e.g. `migration_task = "ab012"` where `"ab012"` is the
@@ -1129,15 +1279,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -1145,6 +1294,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. The filter to apply. This can be used to get the subtasks of a specific
      * tasks in a workflow, e.g. `migration_task = "ab012"` where `"ab012"` is the
@@ -1152,18 +1303,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Optional. The filter to apply. This can be used to get the subtasks of a specific
      * tasks in a workflow, e.g. `migration_task = "ab012"` where `"ab012"` is the
@@ -1171,6 +1326,7 @@ public Builder setFilter(
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1180,6 +1336,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Optional. The filter to apply. This can be used to get the subtasks of a specific
      * tasks in a workflow, e.g. `migration_task = "ab012"` where `"ab012"` is the
@@ -1187,21 +1345,23 @@ public Builder clearFilter() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1211,41 +1371,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest) - private static final com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest(); } - public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMigrationSubtasksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMigrationSubtasksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1257,9 +1419,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksRequestOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksRequestOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksRequestOrBuilder.java index 3fd4f73..303f6a2 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksRequestOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksRequestOrBuilder.java @@ -1,73 +1,114 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_service.proto package com.google.cloud.bigquery.migration.v2; -public interface ListMigrationSubtasksRequestOrBuilder extends +public interface ListMigrationSubtasksRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The migration task of the subtasks to list.
    * Example: `projects/123/locations/us/workflows/1234`
    * 
* - * string 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 migration task of the subtasks to list.
    * Example: `projects/123/locations/us/workflows/1234`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The list of fields to be retrieved.
    * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readMask field is set. */ boolean hasReadMask(); /** + * + * *
    * Optional. The list of fields to be retrieved.
    * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readMask. */ com.google.protobuf.FieldMask getReadMask(); /** + * + * *
    * Optional. The list of fields to be retrieved.
    * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); /** + * + * *
    * Optional. The maximum number of migration tasks to return. The service may return
    * fewer than this number.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. A page token, received from previous `ListMigrationSubtasks` call.
    * Provide this to retrieve the subsequent page.
@@ -76,10 +117,13 @@ public interface ListMigrationSubtasksRequestOrBuilder extends
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. A page token, received from previous `ListMigrationSubtasks` call.
    * Provide this to retrieve the subsequent page.
@@ -88,12 +132,14 @@ public interface ListMigrationSubtasksRequestOrBuilder extends
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Optional. The filter to apply. This can be used to get the subtasks of a specific
    * tasks in a workflow, e.g. `migration_task = "ab012"` where `"ab012"` is the
@@ -101,10 +147,13 @@ public interface ListMigrationSubtasksRequestOrBuilder extends
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. The filter to apply. This can be used to get the subtasks of a specific
    * tasks in a workflow, e.g. `migration_task = "ab012"` where `"ab012"` is the
@@ -112,8 +161,8 @@ public interface ListMigrationSubtasksRequestOrBuilder extends
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksResponse.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksResponse.java similarity index 66% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksResponse.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksResponse.java index 64490e4..9ff50c3 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksResponse.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_service.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * Response object for a `ListMigrationSubtasks` call.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse} */ -public final class ListMigrationSubtasksResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListMigrationSubtasksResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse) ListMigrationSubtasksResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListMigrationSubtasksResponse.newBuilder() to construct. private ListMigrationSubtasksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListMigrationSubtasksResponse() { migrationSubtasks_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,100 +44,123 @@ private ListMigrationSubtasksResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListMigrationSubtasksResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksResponse_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse.class, com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse.Builder.class); + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse.class, + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse.Builder.class); } public static final int MIGRATION_SUBTASKS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List migrationSubtasks_; + private java.util.List + migrationSubtasks_; /** + * + * *
    * The migration subtasks for the specified task.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ @java.lang.Override - public java.util.List getMigrationSubtasksList() { + public java.util.List + getMigrationSubtasksList() { return migrationSubtasks_; } /** + * + * *
    * The migration subtasks for the specified task.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List getMigrationSubtasksOrBuilderList() { return migrationSubtasks_; } /** + * + * *
    * The migration subtasks for the specified task.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ @java.lang.Override public int getMigrationSubtasksCount() { return migrationSubtasks_.size(); } /** + * + * *
    * The migration subtasks for the specified task.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.MigrationSubtask getMigrationSubtasks(int index) { return migrationSubtasks_.get(index); } /** + * + * *
    * The migration subtasks for the specified task.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.MigrationSubtaskOrBuilder getMigrationSubtasksOrBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2.MigrationSubtaskOrBuilder + getMigrationSubtasksOrBuilder(int index) { return migrationSubtasks_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -128,30 +169,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 { @@ -160,6 +201,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +213,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < migrationSubtasks_.size(); i++) { output.writeMessage(1, migrationSubtasks_.get(i)); } @@ -189,8 +230,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < migrationSubtasks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, migrationSubtasks_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, migrationSubtasks_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -203,17 +244,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse other = (com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse) obj; + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse other = + (com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse) obj; - if (!getMigrationSubtasksList() - .equals(other.getMigrationSubtasksList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getMigrationSubtasksList().equals(other.getMigrationSubtasksList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -237,129 +277,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 object for a `ListMigrationSubtasks` call.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse) com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksResponse_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse.class, com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse.Builder.class); + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse.class, + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse.Builder.class); } - // Construct using com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,14 +425,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse getDefaultInstanceForType() { - return com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse.getDefaultInstance(); + public com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse + getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse + .getDefaultInstance(); } @java.lang.Override @@ -397,14 +448,18 @@ public com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse buil @java.lang.Override public com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse buildPartial() { - com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse result = new com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse(this); + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse result = + new com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse result) { if (migrationSubtasksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { migrationSubtasks_ = java.util.Collections.unmodifiableList(migrationSubtasks_); @@ -416,7 +471,8 @@ private void buildPartialRepeatedFields(com.google.cloud.bigquery.migration.v2.L } } - private void buildPartial0(com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse result) { + private void buildPartial0( + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -427,46 +483,51 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.ListMigrationS public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse)other); + return mergeFrom( + (com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse other) { - if (other == com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse other) { + if (other + == com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse + .getDefaultInstance()) return this; if (migrationSubtasksBuilder_ == null) { if (!other.migrationSubtasks_.isEmpty()) { if (migrationSubtasks_.isEmpty()) { @@ -485,9 +546,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.ListMigrationSub migrationSubtasksBuilder_ = null; migrationSubtasks_ = other.migrationSubtasks_; bitField0_ = (bitField0_ & ~0x00000001); - migrationSubtasksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMigrationSubtasksFieldBuilder() : null; + migrationSubtasksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMigrationSubtasksFieldBuilder() + : null; } else { migrationSubtasksBuilder_.addAllMessages(other.migrationSubtasks_); } @@ -524,30 +586,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.bigquery.migration.v2.MigrationSubtask m = - input.readMessage( - com.google.cloud.bigquery.migration.v2.MigrationSubtask.parser(), - extensionRegistry); - if (migrationSubtasksBuilder_ == null) { - ensureMigrationSubtasksIsMutable(); - migrationSubtasks_.add(m); - } else { - migrationSubtasksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.bigquery.migration.v2.MigrationSubtask m = + input.readMessage( + com.google.cloud.bigquery.migration.v2.MigrationSubtask.parser(), + extensionRegistry); + if (migrationSubtasksBuilder_ == null) { + ensureMigrationSubtasksIsMutable(); + migrationSubtasks_.add(m); + } else { + migrationSubtasksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,28 +622,39 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List migrationSubtasks_ = - java.util.Collections.emptyList(); + private java.util.List + migrationSubtasks_ = java.util.Collections.emptyList(); + private void ensureMigrationSubtasksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - migrationSubtasks_ = new java.util.ArrayList(migrationSubtasks_); + migrationSubtasks_ = + new java.util.ArrayList( + migrationSubtasks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.MigrationSubtask, com.google.cloud.bigquery.migration.v2.MigrationSubtask.Builder, com.google.cloud.bigquery.migration.v2.MigrationSubtaskOrBuilder> migrationSubtasksBuilder_; + com.google.cloud.bigquery.migration.v2.MigrationSubtask, + com.google.cloud.bigquery.migration.v2.MigrationSubtask.Builder, + com.google.cloud.bigquery.migration.v2.MigrationSubtaskOrBuilder> + migrationSubtasksBuilder_; /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ - public java.util.List getMigrationSubtasksList() { + public java.util.List + getMigrationSubtasksList() { if (migrationSubtasksBuilder_ == null) { return java.util.Collections.unmodifiableList(migrationSubtasks_); } else { @@ -586,11 +662,14 @@ public java.util.List g } } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ public int getMigrationSubtasksCount() { if (migrationSubtasksBuilder_ == null) { @@ -600,11 +679,14 @@ public int getMigrationSubtasksCount() { } } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ public com.google.cloud.bigquery.migration.v2.MigrationSubtask getMigrationSubtasks(int index) { if (migrationSubtasksBuilder_ == null) { @@ -614,11 +696,14 @@ public com.google.cloud.bigquery.migration.v2.MigrationSubtask getMigrationSubta } } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ public Builder setMigrationSubtasks( int index, com.google.cloud.bigquery.migration.v2.MigrationSubtask value) { @@ -635,14 +720,18 @@ public Builder setMigrationSubtasks( return this; } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ public Builder setMigrationSubtasks( - int index, com.google.cloud.bigquery.migration.v2.MigrationSubtask.Builder builderForValue) { + int index, + com.google.cloud.bigquery.migration.v2.MigrationSubtask.Builder builderForValue) { if (migrationSubtasksBuilder_ == null) { ensureMigrationSubtasksIsMutable(); migrationSubtasks_.set(index, builderForValue.build()); @@ -653,13 +742,17 @@ public Builder setMigrationSubtasks( return this; } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ - public Builder addMigrationSubtasks(com.google.cloud.bigquery.migration.v2.MigrationSubtask value) { + public Builder addMigrationSubtasks( + com.google.cloud.bigquery.migration.v2.MigrationSubtask value) { if (migrationSubtasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -673,11 +766,14 @@ public Builder addMigrationSubtasks(com.google.cloud.bigquery.migration.v2.Migra return this; } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ public Builder addMigrationSubtasks( int index, com.google.cloud.bigquery.migration.v2.MigrationSubtask value) { @@ -694,11 +790,14 @@ public Builder addMigrationSubtasks( return this; } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ public Builder addMigrationSubtasks( com.google.cloud.bigquery.migration.v2.MigrationSubtask.Builder builderForValue) { @@ -712,14 +811,18 @@ public Builder addMigrationSubtasks( return this; } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ public Builder addMigrationSubtasks( - int index, com.google.cloud.bigquery.migration.v2.MigrationSubtask.Builder builderForValue) { + int index, + com.google.cloud.bigquery.migration.v2.MigrationSubtask.Builder builderForValue) { if (migrationSubtasksBuilder_ == null) { ensureMigrationSubtasksIsMutable(); migrationSubtasks_.add(index, builderForValue.build()); @@ -730,18 +833,21 @@ public Builder addMigrationSubtasks( return this; } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ public Builder addAllMigrationSubtasks( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (migrationSubtasksBuilder_ == null) { ensureMigrationSubtasksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, migrationSubtasks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, migrationSubtasks_); onChanged(); } else { migrationSubtasksBuilder_.addAllMessages(values); @@ -749,11 +855,14 @@ public Builder addAllMigrationSubtasks( return this; } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ public Builder clearMigrationSubtasks() { if (migrationSubtasksBuilder_ == null) { @@ -766,11 +875,14 @@ public Builder clearMigrationSubtasks() { return this; } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ public Builder removeMigrationSubtasks(int index) { if (migrationSubtasksBuilder_ == null) { @@ -783,39 +895,50 @@ public Builder removeMigrationSubtasks(int index) { return this; } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ - public com.google.cloud.bigquery.migration.v2.MigrationSubtask.Builder getMigrationSubtasksBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2.MigrationSubtask.Builder + getMigrationSubtasksBuilder(int index) { return getMigrationSubtasksFieldBuilder().getBuilder(index); } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ - public com.google.cloud.bigquery.migration.v2.MigrationSubtaskOrBuilder getMigrationSubtasksOrBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2.MigrationSubtaskOrBuilder + getMigrationSubtasksOrBuilder(int index) { if (migrationSubtasksBuilder_ == null) { - return migrationSubtasks_.get(index); } else { + return migrationSubtasks_.get(index); + } else { return migrationSubtasksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ - public java.util.List - getMigrationSubtasksOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.bigquery.migration.v2.MigrationSubtaskOrBuilder> + getMigrationSubtasksOrBuilderList() { if (migrationSubtasksBuilder_ != null) { return migrationSubtasksBuilder_.getMessageOrBuilderList(); } else { @@ -823,45 +946,62 @@ public com.google.cloud.bigquery.migration.v2.MigrationSubtaskOrBuilder getMigra } } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ - public com.google.cloud.bigquery.migration.v2.MigrationSubtask.Builder addMigrationSubtasksBuilder() { - return getMigrationSubtasksFieldBuilder().addBuilder( - com.google.cloud.bigquery.migration.v2.MigrationSubtask.getDefaultInstance()); + public com.google.cloud.bigquery.migration.v2.MigrationSubtask.Builder + addMigrationSubtasksBuilder() { + return getMigrationSubtasksFieldBuilder() + .addBuilder(com.google.cloud.bigquery.migration.v2.MigrationSubtask.getDefaultInstance()); } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ - public com.google.cloud.bigquery.migration.v2.MigrationSubtask.Builder addMigrationSubtasksBuilder( - int index) { - return getMigrationSubtasksFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.migration.v2.MigrationSubtask.getDefaultInstance()); + public com.google.cloud.bigquery.migration.v2.MigrationSubtask.Builder + addMigrationSubtasksBuilder(int index) { + return getMigrationSubtasksFieldBuilder() + .addBuilder( + index, com.google.cloud.bigquery.migration.v2.MigrationSubtask.getDefaultInstance()); } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ - public java.util.List - getMigrationSubtasksBuilderList() { + public java.util.List + getMigrationSubtasksBuilderList() { return getMigrationSubtasksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.MigrationSubtask, com.google.cloud.bigquery.migration.v2.MigrationSubtask.Builder, com.google.cloud.bigquery.migration.v2.MigrationSubtaskOrBuilder> + com.google.cloud.bigquery.migration.v2.MigrationSubtask, + com.google.cloud.bigquery.migration.v2.MigrationSubtask.Builder, + com.google.cloud.bigquery.migration.v2.MigrationSubtaskOrBuilder> getMigrationSubtasksFieldBuilder() { if (migrationSubtasksBuilder_ == null) { - migrationSubtasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.MigrationSubtask, com.google.cloud.bigquery.migration.v2.MigrationSubtask.Builder, com.google.cloud.bigquery.migration.v2.MigrationSubtaskOrBuilder>( + migrationSubtasksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.MigrationSubtask, + com.google.cloud.bigquery.migration.v2.MigrationSubtask.Builder, + com.google.cloud.bigquery.migration.v2.MigrationSubtaskOrBuilder>( migrationSubtasks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -873,19 +1013,21 @@ public com.google.cloud.bigquery.migration.v2.MigrationSubtask.Builder addMigrat 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; @@ -894,21 +1036,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 { @@ -916,30 +1059,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -949,27 +1099,31 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -979,41 +1133,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse) - private static final com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse(); } - public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMigrationSubtasksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMigrationSubtasksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1025,9 +1181,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksResponseOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksResponseOrBuilder.java similarity index 66% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksResponseOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksResponseOrBuilder.java index 4b90734..a613829 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksResponseOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationSubtasksResponseOrBuilder.java @@ -1,75 +1,111 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_service.proto package com.google.cloud.bigquery.migration.v2; -public interface ListMigrationSubtasksResponseOrBuilder extends +public interface ListMigrationSubtasksResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The migration subtasks for the specified task.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ - java.util.List + java.util.List getMigrationSubtasksList(); /** + * + * *
    * The migration subtasks for the specified task.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ com.google.cloud.bigquery.migration.v2.MigrationSubtask getMigrationSubtasks(int index); /** + * + * *
    * The migration subtasks for the specified task.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ int getMigrationSubtasksCount(); /** + * + * *
    * The migration subtasks for the specified task.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ - java.util.List + java.util.List getMigrationSubtasksOrBuilderList(); /** + * + * *
    * The migration subtasks for the specified task.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * */ com.google.cloud.bigquery.migration.v2.MigrationSubtaskOrBuilder getMigrationSubtasksOrBuilder( 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(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsRequest.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsRequest.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsRequest.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsRequest.java index d28e099..6c13c6a 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsRequest.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_service.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * A request to list previously created migration workflows.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest} */ -public final class ListMigrationWorkflowsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListMigrationWorkflowsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest) ListMigrationWorkflowsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListMigrationWorkflowsRequest.newBuilder() to construct. private ListMigrationWorkflowsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListMigrationWorkflowsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,39 +44,46 @@ private ListMigrationWorkflowsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListMigrationWorkflowsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest.class, com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest.Builder.class); + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest.class, + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The project and location of the migration workflows to list.
    * Example: `projects/123/locations/us`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -67,30 +92,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project and location of the migration workflows to list.
    * Example: `projects/123/locations/us`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -101,11 +128,14 @@ public java.lang.String getParent() { public static final int READ_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask readMask_; /** + * + * *
    * The list of fields to be retrieved.
    * 
* * .google.protobuf.FieldMask read_mask = 2; + * * @return Whether the readMask field is set. */ @java.lang.Override @@ -113,11 +143,14 @@ public boolean hasReadMask() { return readMask_ != null; } /** + * + * *
    * The list of fields to be retrieved.
    * 
* * .google.protobuf.FieldMask read_mask = 2; + * * @return The readMask. */ @java.lang.Override @@ -125,6 +158,8 @@ public com.google.protobuf.FieldMask getReadMask() { return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } /** + * + * *
    * The list of fields to be retrieved.
    * 
@@ -139,12 +174,15 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * The maximum number of migration workflows to return. The service may return
    * fewer than this number.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -153,9 +191,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from previous `ListMigrationWorkflows` call.
    * Provide this to retrieve the subsequent page.
@@ -164,6 +205,7 @@ public int getPageSize() {
    * 
* * string page_token = 4; + * * @return The pageToken. */ @java.lang.Override @@ -172,14 +214,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 previous `ListMigrationWorkflows` call.
    * Provide this to retrieve the subsequent page.
@@ -188,16 +231,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -206,6 +248,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -217,8 +260,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -244,12 +286,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (readMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReadMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadMask()); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -262,24 +302,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest other = (com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest) obj; + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest other = + (com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasReadMask() != other.hasReadMask()) return false; if (hasReadMask()) { - if (!getReadMask() - .equals(other.getReadMask())) return false; + if (!getReadMask().equals(other.getReadMask())) return false; } - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,129 +344,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A request to list previously created migration workflows.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest) com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest.class, com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest.Builder.class); + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest.class, + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -446,14 +492,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest.getDefaultInstance(); + public com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest + .getDefaultInstance(); } @java.lang.Override @@ -467,21 +515,23 @@ public com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest buil @java.lang.Override public com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest buildPartial() { - com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest result = new com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest result = + new com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.readMask_ = readMaskBuilder_ == null - ? readMask_ - : readMaskBuilder_.build(); + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.pageSize_ = pageSize_; @@ -495,46 +545,51 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.ListMigrationW public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest)other); + return mergeFrom( + (com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest other) { - if (other == com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest other) { + if (other + == com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -577,34 +632,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getReadMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -614,23 +672,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project and location of the migration workflows to list.
      * Example: `projects/123/locations/us`
      * 
* - * string 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; @@ -639,21 +702,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location of the migration workflows to list.
      * Example: `projects/123/locations/us`
      * 
* - * string 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 { @@ -661,30 +727,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location of the migration workflows to list.
      * Example: `projects/123/locations/us`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The project and location of the migration workflows to list.
      * Example: `projects/123/locations/us`
      * 
* - * string 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() { @@ -694,18 +771,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The project and location of the migration workflows to list.
      * Example: `projects/123/locations/us`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -715,24 +798,33 @@ public Builder setParentBytes( private com.google.protobuf.FieldMask readMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> readMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + readMaskBuilder_; /** + * + * *
      * The list of fields to be retrieved.
      * 
* * .google.protobuf.FieldMask read_mask = 2; + * * @return Whether the readMask field is set. */ public boolean hasReadMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The list of fields to be retrieved.
      * 
* * .google.protobuf.FieldMask read_mask = 2; + * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -743,6 +835,8 @@ public com.google.protobuf.FieldMask getReadMask() { } } /** + * + * *
      * The list of fields to be retrieved.
      * 
@@ -763,14 +857,15 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be retrieved.
      * 
* * .google.protobuf.FieldMask read_mask = 2; */ - public Builder setReadMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); } else { @@ -781,6 +876,8 @@ public Builder setReadMask( return this; } /** + * + * *
      * The list of fields to be retrieved.
      * 
@@ -789,9 +886,9 @@ public Builder setReadMask( */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - readMask_ != null && - readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; @@ -804,6 +901,8 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be retrieved.
      * 
@@ -821,6 +920,8 @@ public Builder clearReadMask() { return this; } /** + * + * *
      * The list of fields to be retrieved.
      * 
@@ -833,6 +934,8 @@ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { return getReadMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The list of fields to be retrieved.
      * 
@@ -843,11 +946,12 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { if (readMaskBuilder_ != null) { return readMaskBuilder_.getMessageOrBuilder(); } else { - return readMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } } /** + * + * *
      * The list of fields to be retrieved.
      * 
@@ -855,27 +959,33 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { * .google.protobuf.FieldMask read_mask = 2; */ 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> getReadMaskFieldBuilder() { if (readMaskBuilder_ == null) { - readMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getReadMask(), - getParentForChildren(), - isClean()); + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); readMask_ = null; } return readMaskBuilder_; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of migration workflows to return. The service may return
      * fewer than this number.
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -883,29 +993,35 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of migration workflows to return. The service may return
      * fewer than this number.
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The maximum number of migration workflows to return. The service may return
      * fewer than this number.
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -917,6 +1033,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from previous `ListMigrationWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -925,13 +1043,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -940,6 +1058,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from previous `ListMigrationWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -948,15 +1068,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -964,6 +1083,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from previous `ListMigrationWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -972,18 +1093,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * A page token, received from previous `ListMigrationWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -992,6 +1117,7 @@ public Builder setPageToken(
      * 
* * string page_token = 4; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1001,6 +1127,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from previous `ListMigrationWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -1009,21 +1137,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1033,41 +1163,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest) - private static final com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest(); } - public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMigrationWorkflowsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMigrationWorkflowsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1079,9 +1211,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsRequestOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsRequestOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsRequestOrBuilder.java index 9526a37..4e5af0d 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsRequestOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsRequestOrBuilder.java @@ -1,53 +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/bigquery/migration/v2/migration_service.proto package com.google.cloud.bigquery.migration.v2; -public interface ListMigrationWorkflowsRequestOrBuilder extends +public interface ListMigrationWorkflowsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project and location of the migration workflows to list.
    * Example: `projects/123/locations/us`
    * 
* - * string 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 project and location of the migration workflows to list.
    * Example: `projects/123/locations/us`
    * 
* - * string 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 list of fields to be retrieved.
    * 
* * .google.protobuf.FieldMask read_mask = 2; + * * @return Whether the readMask field is set. */ boolean hasReadMask(); /** + * + * *
    * The list of fields to be retrieved.
    * 
* * .google.protobuf.FieldMask read_mask = 2; + * * @return The readMask. */ com.google.protobuf.FieldMask getReadMask(); /** + * + * *
    * The list of fields to be retrieved.
    * 
@@ -57,17 +90,22 @@ public interface ListMigrationWorkflowsRequestOrBuilder extends com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); /** + * + * *
    * The maximum number of migration workflows to return. The service may return
    * fewer than this number.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from previous `ListMigrationWorkflows` call.
    * Provide this to retrieve the subsequent page.
@@ -76,10 +114,13 @@ public interface ListMigrationWorkflowsRequestOrBuilder extends
    * 
* * string page_token = 4; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from previous `ListMigrationWorkflows` call.
    * Provide this to retrieve the subsequent page.
@@ -88,8 +129,8 @@ public interface ListMigrationWorkflowsRequestOrBuilder extends
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsResponse.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsResponse.java similarity index 66% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsResponse.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsResponse.java index c2dc9e1..88d26b2 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsResponse.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsResponse.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/bigquery/migration/v2/migration_service.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * Response object for a `ListMigrationWorkflows` call.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse} */ -public final class ListMigrationWorkflowsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListMigrationWorkflowsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse) ListMigrationWorkflowsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListMigrationWorkflowsResponse.newBuilder() to construct. - private ListMigrationWorkflowsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListMigrationWorkflowsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListMigrationWorkflowsResponse() { migrationWorkflows_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,100 +45,123 @@ private ListMigrationWorkflowsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListMigrationWorkflowsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsResponse_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse.class, com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse.Builder.class); + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse.class, + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse.Builder.class); } public static final int MIGRATION_WORKFLOWS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List migrationWorkflows_; + private java.util.List + migrationWorkflows_; /** + * + * *
    * The migration workflows for the specified project / location.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ @java.lang.Override - public java.util.List getMigrationWorkflowsList() { + public java.util.List + getMigrationWorkflowsList() { return migrationWorkflows_; } /** + * + * *
    * The migration workflows for the specified project / location.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List getMigrationWorkflowsOrBuilderList() { return migrationWorkflows_; } /** + * + * *
    * The migration workflows for the specified project / location.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ @java.lang.Override public int getMigrationWorkflowsCount() { return migrationWorkflows_.size(); } /** + * + * *
    * The migration workflows for the specified project / location.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.MigrationWorkflow getMigrationWorkflows(int index) { return migrationWorkflows_.get(index); } /** + * + * *
    * The migration workflows for the specified project / location.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.MigrationWorkflowOrBuilder getMigrationWorkflowsOrBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2.MigrationWorkflowOrBuilder + getMigrationWorkflowsOrBuilder(int index) { return migrationWorkflows_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -128,30 +170,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 { @@ -160,6 +202,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +214,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 < migrationWorkflows_.size(); i++) { output.writeMessage(1, migrationWorkflows_.get(i)); } @@ -189,8 +231,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < migrationWorkflows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, migrationWorkflows_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, migrationWorkflows_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -203,17 +245,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse other = (com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse) obj; + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse other = + (com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse) obj; - if (!getMigrationWorkflowsList() - .equals(other.getMigrationWorkflowsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getMigrationWorkflowsList().equals(other.getMigrationWorkflowsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -237,129 +278,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 object for a `ListMigrationWorkflows` call.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse) com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsResponse_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse.class, com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse.Builder.class); + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse.class, + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse.Builder.class); } - // Construct using com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,14 +426,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse getDefaultInstanceForType() { - return com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse.getDefaultInstance(); + public com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse + getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse + .getDefaultInstance(); } @java.lang.Override @@ -397,14 +449,18 @@ public com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse bui @java.lang.Override public com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse buildPartial() { - com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse result = new com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse(this); + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse result = + new com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse result) { if (migrationWorkflowsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { migrationWorkflows_ = java.util.Collections.unmodifiableList(migrationWorkflows_); @@ -416,7 +472,8 @@ private void buildPartialRepeatedFields(com.google.cloud.bigquery.migration.v2.L } } - private void buildPartial0(com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse result) { + private void buildPartial0( + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -427,46 +484,51 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.ListMigrationW public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse)other); + return mergeFrom( + (com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse other) { - if (other == com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse other) { + if (other + == com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse + .getDefaultInstance()) return this; if (migrationWorkflowsBuilder_ == null) { if (!other.migrationWorkflows_.isEmpty()) { if (migrationWorkflows_.isEmpty()) { @@ -485,9 +547,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.ListMigrationWor migrationWorkflowsBuilder_ = null; migrationWorkflows_ = other.migrationWorkflows_; bitField0_ = (bitField0_ & ~0x00000001); - migrationWorkflowsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMigrationWorkflowsFieldBuilder() : null; + migrationWorkflowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMigrationWorkflowsFieldBuilder() + : null; } else { migrationWorkflowsBuilder_.addAllMessages(other.migrationWorkflows_); } @@ -524,30 +587,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.bigquery.migration.v2.MigrationWorkflow m = - input.readMessage( - com.google.cloud.bigquery.migration.v2.MigrationWorkflow.parser(), - extensionRegistry); - if (migrationWorkflowsBuilder_ == null) { - ensureMigrationWorkflowsIsMutable(); - migrationWorkflows_.add(m); - } else { - migrationWorkflowsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.bigquery.migration.v2.MigrationWorkflow m = + input.readMessage( + com.google.cloud.bigquery.migration.v2.MigrationWorkflow.parser(), + extensionRegistry); + if (migrationWorkflowsBuilder_ == null) { + ensureMigrationWorkflowsIsMutable(); + migrationWorkflows_.add(m); + } else { + migrationWorkflowsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,28 +623,39 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List migrationWorkflows_ = - java.util.Collections.emptyList(); + private java.util.List + migrationWorkflows_ = java.util.Collections.emptyList(); + private void ensureMigrationWorkflowsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - migrationWorkflows_ = new java.util.ArrayList(migrationWorkflows_); + migrationWorkflows_ = + new java.util.ArrayList( + migrationWorkflows_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.MigrationWorkflow, com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder, com.google.cloud.bigquery.migration.v2.MigrationWorkflowOrBuilder> migrationWorkflowsBuilder_; + com.google.cloud.bigquery.migration.v2.MigrationWorkflow, + com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder, + com.google.cloud.bigquery.migration.v2.MigrationWorkflowOrBuilder> + migrationWorkflowsBuilder_; /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ - public java.util.List getMigrationWorkflowsList() { + public java.util.List + getMigrationWorkflowsList() { if (migrationWorkflowsBuilder_ == null) { return java.util.Collections.unmodifiableList(migrationWorkflows_); } else { @@ -586,11 +663,14 @@ public java.util.List } } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ public int getMigrationWorkflowsCount() { if (migrationWorkflowsBuilder_ == null) { @@ -600,13 +680,17 @@ public int getMigrationWorkflowsCount() { } } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ - public com.google.cloud.bigquery.migration.v2.MigrationWorkflow getMigrationWorkflows(int index) { + public com.google.cloud.bigquery.migration.v2.MigrationWorkflow getMigrationWorkflows( + int index) { if (migrationWorkflowsBuilder_ == null) { return migrationWorkflows_.get(index); } else { @@ -614,11 +698,14 @@ public com.google.cloud.bigquery.migration.v2.MigrationWorkflow getMigrationWork } } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ public Builder setMigrationWorkflows( int index, com.google.cloud.bigquery.migration.v2.MigrationWorkflow value) { @@ -635,14 +722,18 @@ public Builder setMigrationWorkflows( return this; } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ public Builder setMigrationWorkflows( - int index, com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder builderForValue) { + int index, + com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder builderForValue) { if (migrationWorkflowsBuilder_ == null) { ensureMigrationWorkflowsIsMutable(); migrationWorkflows_.set(index, builderForValue.build()); @@ -653,13 +744,17 @@ public Builder setMigrationWorkflows( return this; } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ - public Builder addMigrationWorkflows(com.google.cloud.bigquery.migration.v2.MigrationWorkflow value) { + public Builder addMigrationWorkflows( + com.google.cloud.bigquery.migration.v2.MigrationWorkflow value) { if (migrationWorkflowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -673,11 +768,14 @@ public Builder addMigrationWorkflows(com.google.cloud.bigquery.migration.v2.Migr return this; } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ public Builder addMigrationWorkflows( int index, com.google.cloud.bigquery.migration.v2.MigrationWorkflow value) { @@ -694,11 +792,14 @@ public Builder addMigrationWorkflows( return this; } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ public Builder addMigrationWorkflows( com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder builderForValue) { @@ -712,14 +813,18 @@ public Builder addMigrationWorkflows( return this; } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ public Builder addMigrationWorkflows( - int index, com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder builderForValue) { + int index, + com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder builderForValue) { if (migrationWorkflowsBuilder_ == null) { ensureMigrationWorkflowsIsMutable(); migrationWorkflows_.add(index, builderForValue.build()); @@ -730,18 +835,21 @@ public Builder addMigrationWorkflows( return this; } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ public Builder addAllMigrationWorkflows( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (migrationWorkflowsBuilder_ == null) { ensureMigrationWorkflowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, migrationWorkflows_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, migrationWorkflows_); onChanged(); } else { migrationWorkflowsBuilder_.addAllMessages(values); @@ -749,11 +857,14 @@ public Builder addAllMigrationWorkflows( return this; } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ public Builder clearMigrationWorkflows() { if (migrationWorkflowsBuilder_ == null) { @@ -766,11 +877,14 @@ public Builder clearMigrationWorkflows() { return this; } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ public Builder removeMigrationWorkflows(int index) { if (migrationWorkflowsBuilder_ == null) { @@ -783,39 +897,50 @@ public Builder removeMigrationWorkflows(int index) { return this; } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ - public com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder getMigrationWorkflowsBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder + getMigrationWorkflowsBuilder(int index) { return getMigrationWorkflowsFieldBuilder().getBuilder(index); } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ - public com.google.cloud.bigquery.migration.v2.MigrationWorkflowOrBuilder getMigrationWorkflowsOrBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2.MigrationWorkflowOrBuilder + getMigrationWorkflowsOrBuilder(int index) { if (migrationWorkflowsBuilder_ == null) { - return migrationWorkflows_.get(index); } else { + return migrationWorkflows_.get(index); + } else { return migrationWorkflowsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ - public java.util.List - getMigrationWorkflowsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.bigquery.migration.v2.MigrationWorkflowOrBuilder> + getMigrationWorkflowsOrBuilderList() { if (migrationWorkflowsBuilder_ != null) { return migrationWorkflowsBuilder_.getMessageOrBuilderList(); } else { @@ -823,45 +948,63 @@ public com.google.cloud.bigquery.migration.v2.MigrationWorkflowOrBuilder getMigr } } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ - public com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder addMigrationWorkflowsBuilder() { - return getMigrationWorkflowsFieldBuilder().addBuilder( - com.google.cloud.bigquery.migration.v2.MigrationWorkflow.getDefaultInstance()); + public com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder + addMigrationWorkflowsBuilder() { + return getMigrationWorkflowsFieldBuilder() + .addBuilder( + com.google.cloud.bigquery.migration.v2.MigrationWorkflow.getDefaultInstance()); } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ - public com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder addMigrationWorkflowsBuilder( - int index) { - return getMigrationWorkflowsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.migration.v2.MigrationWorkflow.getDefaultInstance()); + public com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder + addMigrationWorkflowsBuilder(int index) { + return getMigrationWorkflowsFieldBuilder() + .addBuilder( + index, com.google.cloud.bigquery.migration.v2.MigrationWorkflow.getDefaultInstance()); } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ - public java.util.List - getMigrationWorkflowsBuilderList() { + public java.util.List + getMigrationWorkflowsBuilderList() { return getMigrationWorkflowsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.MigrationWorkflow, com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder, com.google.cloud.bigquery.migration.v2.MigrationWorkflowOrBuilder> + com.google.cloud.bigquery.migration.v2.MigrationWorkflow, + com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder, + com.google.cloud.bigquery.migration.v2.MigrationWorkflowOrBuilder> getMigrationWorkflowsFieldBuilder() { if (migrationWorkflowsBuilder_ == null) { - migrationWorkflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.MigrationWorkflow, com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder, com.google.cloud.bigquery.migration.v2.MigrationWorkflowOrBuilder>( + migrationWorkflowsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.MigrationWorkflow, + com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder, + com.google.cloud.bigquery.migration.v2.MigrationWorkflowOrBuilder>( migrationWorkflows_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -873,19 +1016,21 @@ public com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder addMigra 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; @@ -894,21 +1039,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 { @@ -916,30 +1062,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -949,27 +1102,31 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -979,41 +1136,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse) - private static final com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse(); } - public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMigrationWorkflowsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMigrationWorkflowsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1025,9 +1184,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsResponseOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsResponseOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsResponseOrBuilder.java index b945131..6346bcd 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsResponseOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ListMigrationWorkflowsResponseOrBuilder.java @@ -1,75 +1,111 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_service.proto package com.google.cloud.bigquery.migration.v2; -public interface ListMigrationWorkflowsResponseOrBuilder extends +public interface ListMigrationWorkflowsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The migration workflows for the specified project / location.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ - java.util.List + java.util.List getMigrationWorkflowsList(); /** + * + * *
    * The migration workflows for the specified project / location.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ com.google.cloud.bigquery.migration.v2.MigrationWorkflow getMigrationWorkflows(int index); /** + * + * *
    * The migration workflows for the specified project / location.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ int getMigrationWorkflowsCount(); /** + * + * *
    * The migration workflows for the specified project / location.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ - java.util.List + java.util.List getMigrationWorkflowsOrBuilderList(); /** + * + * *
    * The migration workflows for the specified project / location.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * */ com.google.cloud.bigquery.migration.v2.MigrationWorkflowOrBuilder getMigrationWorkflowsOrBuilder( 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(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/LocationName.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/LocationName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/LocationName.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/LocationName.java diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationEntitiesProto.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationEntitiesProto.java new file mode 100644 index 0000000..6cb9181 --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationEntitiesProto.java @@ -0,0 +1,197 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/migration_entities.proto + +package com.google.cloud.bigquery.migration.v2; + +public final class MigrationEntitiesProto { + private MigrationEntitiesProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_MigrationWorkflow_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_MigrationWorkflow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_MigrationWorkflow_TasksEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_MigrationWorkflow_TasksEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_MigrationTask_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_MigrationTask_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_MigrationSubtask_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_MigrationSubtask_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/bigquery/migration/v2/mig" + + "ration_entities.proto\022\"google.cloud.bigq" + + "uery.migration.v2\032\037google/api/field_beha" + + "vior.proto\032\031google/api/resource.proto\032@g" + + "oogle/cloud/bigquery/migration/v2/migrat" + + "ion_error_details.proto\032:google/cloud/bi" + + "gquery/migration/v2/migration_metrics.pr" + + "oto\032;google/cloud/bigquery/migration/v2/" + + "translation_config.proto\032\037google/protobu" + + "f/timestamp.proto\032\036google/rpc/error_deta" + + "ils.proto\"\363\004\n\021MigrationWorkflow\022\024\n\004name\030" + + "\001 \001(\tB\006\340A\003\340A\005\022\024\n\014display_name\030\006 \001(\t\022O\n\005t" + + "asks\030\002 \003(\0132@.google.cloud.bigquery.migra" + + "tion.v2.MigrationWorkflow.TasksEntry\022O\n\005" + + "state\030\003 \001(\0162;.google.cloud.bigquery.migr" + + "ation.v2.MigrationWorkflow.StateB\003\340A\003\022/\n" + + "\013create_time\030\004 \001(\0132\032.google.protobuf.Tim" + + "estamp\0224\n\020last_update_time\030\005 \001(\0132\032.googl" + + "e.protobuf.Timestamp\032_\n\nTasksEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022@\n\005value\030\002 \001(\01321.google.cloud.bi" + + "gquery.migration.v2.MigrationTask:\0028\001\"Q\n" + + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005DRAFT\020\001" + + "\022\013\n\007RUNNING\020\002\022\n\n\006PAUSED\020\003\022\r\n\tCOMPLETED\020\004" + + ":u\352Ar\n2bigquerymigration.googleapis.com/" + + "MigrationWorkflow\022\n\006points\030\004 \003" + + "(\0132).google.cloud.bigquery.migration.v2." + + "PointB\003\340A\002\"\212\001\n\005Point\022B\n\010interval\030\001 \001(\01320" + + ".google.cloud.bigquery.migration.v2.Time" + + "Interval\022=\n\005value\030\002 \001(\0132..google.cloud.b" + + "igquery.migration.v2.TypedValue\"v\n\014TimeI" + + "nterval\0223\n\nstart_time\030\001 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\001\0221\n\010end_time\030\002 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\002\"\252\001\n\nType" + + "dValue\022\024\n\nbool_value\030\001 \001(\010H\000\022\025\n\013int64_va" + + "lue\030\002 \001(\003H\000\022\026\n\014double_value\030\003 \001(\001H\000\022\026\n\014s" + + "tring_value\030\004 \001(\tH\000\0226\n\022distribution_valu" + + "e\030\005 \001(\0132\030.google.api.DistributionH\000B\007\n\005v" + + "alueB\321\001\n&com.google.cloud.bigquery.migra" + + "tion.v2B\025MigrationMetricsProtoP\001ZDcloud." + + "google.com/go/bigquery/migration/apiv2/m" + + "igrationpb;migrationpb\252\002\"Google.Cloud.Bi" + + "gQuery.Migration.V2\312\002\"Google\\Cloud\\BigQu" + + "ery\\Migration\\V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.DistributionProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.MetricProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_migration_v2_TimeSeries_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_migration_v2_TimeSeries_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_TimeSeries_descriptor, + new java.lang.String[] { + "Metric", "ValueType", "MetricKind", "Points", + }); + internal_static_google_cloud_bigquery_migration_v2_Point_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_migration_v2_Point_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_Point_descriptor, + new java.lang.String[] { + "Interval", "Value", + }); + internal_static_google_cloud_bigquery_migration_v2_TimeInterval_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_migration_v2_TimeInterval_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_TimeInterval_descriptor, + new java.lang.String[] { + "StartTime", "EndTime", + }); + internal_static_google_cloud_bigquery_migration_v2_TypedValue_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_bigquery_migration_v2_TypedValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_TypedValue_descriptor, + new java.lang.String[] { + "BoolValue", "Int64Value", "DoubleValue", "StringValue", "DistributionValue", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.DistributionProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.MetricProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceProto.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceProto.java new file mode 100644 index 0000000..1744caf --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceProto.java @@ -0,0 +1,270 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/migration_service.proto + +package com.google.cloud.bigquery.migration.v2; + +public final class MigrationServiceProto { + private MigrationServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_CreateMigrationWorkflowRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_CreateMigrationWorkflowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_GetMigrationWorkflowRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_GetMigrationWorkflowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_DeleteMigrationWorkflowRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_DeleteMigrationWorkflowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_StartMigrationWorkflowRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_StartMigrationWorkflowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_GetMigrationSubtaskRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_GetMigrationSubtaskRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksResponse_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/bigquery/migration/v2/mig" + + "ration_service.proto\022\"google.cloud.bigqu" + + "ery.migration.v2\032\034google/api/annotations" + + ".proto\032\027google/api/client.proto\032\037google/" + + "api/field_behavior.proto\032\031google/api/res" + + "ource.proto\032;google/cloud/bigquery/migra" + + "tion/v2/migration_entities.proto\032\033google" + + "/protobuf/empty.proto\032 google/protobuf/f" + + "ield_mask.proto\"\263\001\n\036CreateMigrationWorkf" + + "lowRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loca" + + "tions.googleapis.com/Location\022V\n\022migrati" + + "on_workflow\030\002 \001(\01325.google.cloud.bigquer" + + "y.migration.v2.MigrationWorkflowB\003\340A\002\"\226\001" + + "\n\033GetMigrationWorkflowRequest\022H\n\004name\030\001 " + + "\001(\tB:\340A\002\372A4\n2bigquerymigration.googleapi" + + "s.com/MigrationWorkflow\022-\n\tread_mask\030\002 \001" + + "(\0132\032.google.protobuf.FieldMask\"\260\001\n\035ListM" + + "igrationWorkflowsRequest\0229\n\006parent\030\001 \001(\t" + + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + + "ion\022-\n\tread_mask\030\002 \001(\0132\032.google.protobuf" + + ".FieldMask\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_to" + + "ken\030\004 \001(\t\"\215\001\n\036ListMigrationWorkflowsResp" + + "onse\022R\n\023migration_workflows\030\001 \003(\01325.goog" + + "le.cloud.bigquery.migration.v2.Migration" + + "Workflow\022\027\n\017next_page_token\030\002 \001(\t\"j\n\036Del" + + "eteMigrationWorkflowRequest\022H\n\004name\030\001 \001(" + + "\tB:\340A\002\372A4\n2bigquerymigration.googleapis." + + "com/MigrationWorkflow\"i\n\035StartMigrationW" + + "orkflowRequest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2bi" + + "gquerymigration.googleapis.com/Migration" + + "Workflow\"\231\001\n\032GetMigrationSubtaskRequest\022" + + "G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1bigquerymigration" + + ".googleapis.com/MigrationSubtask\0222\n\tread" + + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB" + + "\003\340A\001\"\344\001\n\034ListMigrationSubtasksRequest\022J\n" + + "\006parent\030\001 \001(\tB:\340A\002\372A4\n2bigquerymigration" + + ".googleapis.com/MigrationWorkflow\0222\n\trea" + + "d_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + + "B\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_to" + + "ken\030\004 \001(\tB\003\340A\001\022\023\n\006filter\030\005 \001(\tB\003\340A\001\"\212\001\n\035" + + "ListMigrationSubtasksResponse\022P\n\022migrati" + + "on_subtasks\030\001 \003(\01324.google.cloud.bigquer" + + "y.migration.v2.MigrationSubtask\022\027\n\017next_" + + "page_token\030\002 \001(\t2\313\014\n\020MigrationService\022\373\001" + + "\n\027CreateMigrationWorkflow\022B.google.cloud" + + ".bigquery.migration.v2.CreateMigrationWo" + + "rkflowRequest\0325.google.cloud.bigquery.mi" + + "gration.v2.MigrationWorkflow\"e\202\323\344\223\002C\"-/v" + + "2/{parent=projects/*/locations/*}/workfl" + + "ows:\022migration_workflow\332A\031parent,migrati" + + "on_workflow\022\314\001\n\024GetMigrationWorkflow\022?.g" + + "oogle.cloud.bigquery.migration.v2.GetMig" + + "rationWorkflowRequest\0325.google.cloud.big" + + "query.migration.v2.MigrationWorkflow\"<\202\323" + + "\344\223\002/\022-/v2/{name=projects/*/locations/*/w" + + "orkflows/*}\332A\004name\022\337\001\n\026ListMigrationWork" + + "flows\022A.google.cloud.bigquery.migration." + + "v2.ListMigrationWorkflowsRequest\032B.googl" + + "e.cloud.bigquery.migration.v2.ListMigrat" + + "ionWorkflowsResponse\">\202\323\344\223\002/\022-/v2/{paren" + + "t=projects/*/locations/*}/workflows\332A\006pa" + + "rent\022\263\001\n\027DeleteMigrationWorkflow\022B.googl" + + "e.cloud.bigquery.migration.v2.DeleteMigr" + + "ationWorkflowRequest\032\026.google.protobuf.E" + + "mpty\"<\202\323\344\223\002/*-/v2/{name=projects/*/locat" + + "ions/*/workflows/*}\332A\004name\022\272\001\n\026StartMigr" + + "ationWorkflow\022A.google.cloud.bigquery.mi" + + "gration.v2.StartMigrationWorkflowRequest" + + "\032\026.google.protobuf.Empty\"E\202\323\344\223\0028\"3/v2/{n" + + "ame=projects/*/locations/*/workflows/*}:" + + "start:\001*\332A\004name\022\324\001\n\023GetMigrationSubtask\022" + + ">.google.cloud.bigquery.migration.v2.Get" + + "MigrationSubtaskRequest\0324.google.cloud.b" + + "igquery.migration.v2.MigrationSubtask\"G\202" + + "\323\344\223\002:\0228/v2/{name=projects/*/locations/*/" + + "workflows/*/subtasks/*}\332A\004name\022\347\001\n\025ListM" + + "igrationSubtasks\022@.google.cloud.bigquery" + + ".migration.v2.ListMigrationSubtasksReque" + + "st\032A.google.cloud.bigquery.migration.v2." + + "ListMigrationSubtasksResponse\"I\202\323\344\223\002:\0228/" + + "v2/{parent=projects/*/locations/*/workfl" + + "ows/*}/subtasks\332A\006parent\032T\312A bigquerymig" + + "ration.googleapis.com\322A.https://www.goog" + + "leapis.com/auth/cloud-platformB\321\001\n&com.g" + + "oogle.cloud.bigquery.migration.v2B\025Migra" + + "tionServiceProtoP\001ZDcloud.google.com/go/" + + "bigquery/migration/apiv2/migrationpb;mig" + + "rationpb\252\002\"Google.Cloud.BigQuery.Migrati" + + "on.V2\312\002\"Google\\Cloud\\BigQuery\\Migration\\" + + "V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_migration_v2_CreateMigrationWorkflowRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_migration_v2_CreateMigrationWorkflowRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_CreateMigrationWorkflowRequest_descriptor, + new java.lang.String[] { + "Parent", "MigrationWorkflow", + }); + internal_static_google_cloud_bigquery_migration_v2_GetMigrationWorkflowRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_migration_v2_GetMigrationWorkflowRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_GetMigrationWorkflowRequest_descriptor, + new java.lang.String[] { + "Name", "ReadMask", + }); + internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsRequest_descriptor, + new java.lang.String[] { + "Parent", "ReadMask", "PageSize", "PageToken", + }); + internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_ListMigrationWorkflowsResponse_descriptor, + new java.lang.String[] { + "MigrationWorkflows", "NextPageToken", + }); + internal_static_google_cloud_bigquery_migration_v2_DeleteMigrationWorkflowRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_bigquery_migration_v2_DeleteMigrationWorkflowRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_DeleteMigrationWorkflowRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_migration_v2_StartMigrationWorkflowRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_bigquery_migration_v2_StartMigrationWorkflowRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_StartMigrationWorkflowRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_migration_v2_GetMigrationSubtaskRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_bigquery_migration_v2_GetMigrationSubtaskRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_GetMigrationSubtaskRequest_descriptor, + new java.lang.String[] { + "Name", "ReadMask", + }); + internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksRequest_descriptor, + new java.lang.String[] { + "Parent", "ReadMask", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_ListMigrationSubtasksResponse_descriptor, + new java.lang.String[] { + "MigrationSubtasks", "NextPageToken", + }); + 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); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationSubtask.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationSubtask.java similarity index 69% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationSubtask.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationSubtask.java index aa57861..e9a1089 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationSubtask.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationSubtask.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_entities.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * A subtask for a migration which carries details about the configuration of
  * the subtask. The content of the details should not matter to the end user,
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.bigquery.migration.v2.MigrationSubtask}
  */
-public final class MigrationSubtask extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MigrationSubtask extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.MigrationSubtask)
     MigrationSubtaskOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MigrationSubtask.newBuilder() to construct.
   private MigrationSubtask(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private MigrationSubtask() {
     name_ = "";
     taskId_ = "";
@@ -32,39 +50,43 @@ private MigrationSubtask() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MigrationSubtask();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2_MigrationSubtask_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto
+        .internal_static_google_cloud_bigquery_migration_v2_MigrationSubtask_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2_MigrationSubtask_fieldAccessorTable
+    return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto
+        .internal_static_google_cloud_bigquery_migration_v2_MigrationSubtask_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.migration.v2.MigrationSubtask.class, com.google.cloud.bigquery.migration.v2.MigrationSubtask.Builder.class);
+            com.google.cloud.bigquery.migration.v2.MigrationSubtask.class,
+            com.google.cloud.bigquery.migration.v2.MigrationSubtask.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Possible states of a migration subtask.
    * 
* * Protobuf enum {@code google.cloud.bigquery.migration.v2.MigrationSubtask.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The state is unspecified.
      * 
@@ -73,6 +95,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The subtask is ready, i.e. it is ready for execution.
      * 
@@ -81,6 +105,8 @@ public enum State */ ACTIVE(1), /** + * + * *
      * The subtask is running, i.e. it is assigned to a worker for execution.
      * 
@@ -89,6 +115,8 @@ public enum State */ RUNNING(2), /** + * + * *
      * The subtask finished successfully.
      * 
@@ -97,6 +125,8 @@ public enum State */ SUCCEEDED(3), /** + * + * *
      * The subtask finished unsuccessfully.
      * 
@@ -105,6 +135,8 @@ public enum State */ FAILED(4), /** + * + * *
      * The subtask is paused, i.e., it will not be scheduled. If it was already
      * assigned,it might still finish but no new lease renewals will be granted.
@@ -117,6 +149,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * The state is unspecified.
      * 
@@ -125,6 +159,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The subtask is ready, i.e. it is ready for execution.
      * 
@@ -133,6 +169,8 @@ public enum State */ public static final int ACTIVE_VALUE = 1; /** + * + * *
      * The subtask is running, i.e. it is assigned to a worker for execution.
      * 
@@ -141,6 +179,8 @@ public enum State */ public static final int RUNNING_VALUE = 2; /** + * + * *
      * The subtask finished successfully.
      * 
@@ -149,6 +189,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 3; /** + * + * *
      * The subtask finished unsuccessfully.
      * 
@@ -157,6 +199,8 @@ public enum State */ public static final int FAILED_VALUE = 4; /** + * + * *
      * The subtask is paused, i.e., it will not be scheduled. If it was already
      * assigned,it might still finish but no new lease renewals will be granted.
@@ -166,7 +210,6 @@ public enum State
      */
     public static final int PAUSED_VALUE = 5;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -191,52 +234,57 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return ACTIVE;
-        case 2: return RUNNING;
-        case 3: return SUCCEEDED;
-        case 4: return FAILED;
-        case 5: return PAUSED;
-        default: return null;
-      }
-    }
-
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return ACTIVE;
+        case 2:
+          return RUNNING;
+        case 3:
+          return SUCCEEDED;
+        case 4:
+          return FAILED;
+        case 5:
+          return PAUSED;
+        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() {
-      return com.google.cloud.bigquery.migration.v2.MigrationSubtask.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.bigquery.migration.v2.MigrationSubtask.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;
@@ -254,16 +302,22 @@ private State(int value) {
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Output only. Immutable. The resource name for the migration subtask. The ID
    * is server-generated.
    * Example: `projects/123/locations/us/workflows/345/subtasks/678`
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The name. */ @java.lang.Override @@ -272,31 +326,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. Immutable. The resource name for the migration subtask. The ID
    * is server-generated.
    * Example: `projects/123/locations/us/workflows/345/subtasks/678`
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @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 { @@ -305,14 +361,18 @@ public java.lang.String getName() { } public static final int TASK_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object taskId_ = ""; /** + * + * *
    * The unique ID of the task to which this subtask belongs.
    * 
* * string task_id = 2; + * * @return The taskId. */ @java.lang.Override @@ -321,29 +381,29 @@ public java.lang.String getTaskId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); taskId_ = s; return s; } } /** + * + * *
    * The unique ID of the task to which this subtask belongs.
    * 
* * string task_id = 2; + * * @return The bytes for taskId. */ @java.lang.Override - public com.google.protobuf.ByteString - getTaskIdBytes() { + public com.google.protobuf.ByteString getTaskIdBytes() { java.lang.Object ref = taskId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); taskId_ = b; return b; } else { @@ -352,9 +412,12 @@ public java.lang.String getTaskId() { } public static final int TYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** + * + * *
    * The type of the Subtask. The migration service does not check whether this
    * is a known type. It is up to the task creator (i.e. orchestrator or worker)
@@ -363,6 +426,7 @@ public java.lang.String getTaskId() {
    * 
* * string type = 3; + * * @return The type. */ @java.lang.Override @@ -371,14 +435,15 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** + * + * *
    * The type of the Subtask. The migration service does not check whether this
    * is a known type. It is up to the task creator (i.e. orchestrator or worker)
@@ -387,16 +452,15 @@ public java.lang.String getType() {
    * 
* * string type = 3; + * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -407,38 +471,57 @@ public java.lang.String getType() { public static final int STATE_FIELD_NUMBER = 5; private int state_ = 0; /** + * + * *
    * Output only. The current state of the subtask.
    * 
* - * .google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current state of the subtask.
    * 
* - * .google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.bigquery.migration.v2.MigrationSubtask.State getState() { - com.google.cloud.bigquery.migration.v2.MigrationSubtask.State result = com.google.cloud.bigquery.migration.v2.MigrationSubtask.State.forNumber(state_); - return result == null ? com.google.cloud.bigquery.migration.v2.MigrationSubtask.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.MigrationSubtask.State getState() { + com.google.cloud.bigquery.migration.v2.MigrationSubtask.State result = + com.google.cloud.bigquery.migration.v2.MigrationSubtask.State.forNumber(state_); + return result == null + ? com.google.cloud.bigquery.migration.v2.MigrationSubtask.State.UNRECOGNIZED + : result; } public static final int PROCESSING_ERROR_FIELD_NUMBER = 6; private com.google.rpc.ErrorInfo processingError_; /** + * + * *
    * Output only. An explanation that may be populated when the task is in
    * FAILED state.
    * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the processingError field is set. */ @java.lang.Override @@ -446,105 +529,143 @@ public boolean hasProcessingError() { return processingError_ != null; } /** + * + * *
    * Output only. An explanation that may be populated when the task is in
    * FAILED state.
    * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The processingError. */ @java.lang.Override public com.google.rpc.ErrorInfo getProcessingError() { - return processingError_ == null ? com.google.rpc.ErrorInfo.getDefaultInstance() : processingError_; + return processingError_ == null + ? com.google.rpc.ErrorInfo.getDefaultInstance() + : processingError_; } /** + * + * *
    * Output only. An explanation that may be populated when the task is in
    * FAILED state.
    * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.rpc.ErrorInfoOrBuilder getProcessingErrorOrBuilder() { - return processingError_ == null ? com.google.rpc.ErrorInfo.getDefaultInstance() : processingError_; + return processingError_ == null + ? com.google.rpc.ErrorInfo.getDefaultInstance() + : processingError_; } public static final int RESOURCE_ERROR_DETAILS_FIELD_NUMBER = 12; + @SuppressWarnings("serial") - private java.util.List resourceErrorDetails_; + private java.util.List + resourceErrorDetails_; /** + * + * *
    * Output only. Provides details to errors and issues encountered while
    * processing the subtask. Presence of error details does not mean that the
    * subtask failed.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getResourceErrorDetailsList() { + public java.util.List + getResourceErrorDetailsList() { return resourceErrorDetails_; } /** + * + * *
    * Output only. Provides details to errors and issues encountered while
    * processing the subtask. Presence of error details does not mean that the
    * subtask failed.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder> getResourceErrorDetailsOrBuilderList() { return resourceErrorDetails_; } /** + * + * *
    * Output only. Provides details to errors and issues encountered while
    * processing the subtask. Presence of error details does not mean that the
    * subtask failed.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getResourceErrorDetailsCount() { return resourceErrorDetails_.size(); } /** + * + * *
    * Output only. Provides details to errors and issues encountered while
    * processing the subtask. Presence of error details does not mean that the
    * subtask failed.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.ResourceErrorDetail getResourceErrorDetails(int index) { + public com.google.cloud.bigquery.migration.v2.ResourceErrorDetail getResourceErrorDetails( + int index) { return resourceErrorDetails_.get(index); } /** + * + * *
    * Output only. Provides details to errors and issues encountered while
    * processing the subtask. Presence of error details does not mean that the
    * subtask failed.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder getResourceErrorDetailsOrBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder + getResourceErrorDetailsOrBuilder(int index) { return resourceErrorDetails_.get(index); } public static final int RESOURCE_ERROR_COUNT_FIELD_NUMBER = 13; private int resourceErrorCount_ = 0; /** + * + * *
    * The number or resources with errors. Note: This is not the total
    * number of errors as each resource can have more than one error.
@@ -553,6 +674,7 @@ public com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder getRe
    * 
* * int32 resource_error_count = 13; + * * @return The resourceErrorCount. */ @java.lang.Override @@ -563,11 +685,14 @@ public int getResourceErrorCount() { public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Time when the subtask was created.
    * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -575,11 +700,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Time when the subtask was created.
    * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return The createTime. */ @java.lang.Override @@ -587,6 +715,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Time when the subtask was created.
    * 
@@ -601,11 +731,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int LAST_UPDATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp lastUpdateTime_; /** + * + * *
    * Time when the subtask was last updated.
    * 
* * .google.protobuf.Timestamp last_update_time = 8; + * * @return Whether the lastUpdateTime field is set. */ @java.lang.Override @@ -613,18 +746,25 @@ public boolean hasLastUpdateTime() { return lastUpdateTime_ != null; } /** + * + * *
    * Time when the subtask was last updated.
    * 
* * .google.protobuf.Timestamp last_update_time = 8; + * * @return The lastUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastUpdateTime() { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } /** + * + * *
    * Time when the subtask was last updated.
    * 
@@ -633,13 +773,18 @@ public com.google.protobuf.Timestamp getLastUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } public static final int METRICS_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private java.util.List metrics_; /** + * + * *
    * The metrics for the subtask.
    * 
@@ -651,6 +796,8 @@ public java.util.List getMetr return metrics_; } /** + * + * *
    * The metrics for the subtask.
    * 
@@ -658,11 +805,13 @@ public java.util.List getMetr * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11; */ @java.lang.Override - public java.util.List + public java.util.List getMetricsOrBuilderList() { return metrics_; } /** + * + * *
    * The metrics for the subtask.
    * 
@@ -674,6 +823,8 @@ public int getMetricsCount() { return metrics_.size(); } /** + * + * *
    * The metrics for the subtask.
    * 
@@ -685,6 +836,8 @@ public com.google.cloud.bigquery.migration.v2.TimeSeries getMetrics(int index) { return metrics_.get(index); } /** + * + * *
    * The metrics for the subtask.
    * 
@@ -692,12 +845,12 @@ public com.google.cloud.bigquery.migration.v2.TimeSeries getMetrics(int index) { * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder getMetricsOrBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder getMetricsOrBuilder(int index) { return metrics_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -709,8 +862,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -720,7 +872,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_); } - if (state_ != com.google.cloud.bigquery.migration.v2.MigrationSubtask.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.bigquery.migration.v2.MigrationSubtask.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(5, state_); } if (processingError_ != null) { @@ -759,33 +913,30 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_); } - if (state_ != com.google.cloud.bigquery.migration.v2.MigrationSubtask.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, state_); + if (state_ + != com.google.cloud.bigquery.migration.v2.MigrationSubtask.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); } if (processingError_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getProcessingError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getProcessingError()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); } if (lastUpdateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getLastUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLastUpdateTime()); } for (int i = 0; i < metrics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, metrics_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, metrics_.get(i)); } for (int i = 0; i < resourceErrorDetails_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, resourceErrorDetails_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, resourceErrorDetails_.get(i)); } if (resourceErrorCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(13, resourceErrorCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(13, resourceErrorCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -795,41 +946,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.bigquery.migration.v2.MigrationSubtask)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.MigrationSubtask other = (com.google.cloud.bigquery.migration.v2.MigrationSubtask) obj; + com.google.cloud.bigquery.migration.v2.MigrationSubtask other = + (com.google.cloud.bigquery.migration.v2.MigrationSubtask) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getTaskId() - .equals(other.getTaskId())) return false; - if (!getType() - .equals(other.getType())) return false; + if (!getName().equals(other.getName())) return false; + if (!getTaskId().equals(other.getTaskId())) return false; + if (!getType().equals(other.getType())) return false; if (state_ != other.state_) return false; if (hasProcessingError() != other.hasProcessingError()) return false; if (hasProcessingError()) { - if (!getProcessingError() - .equals(other.getProcessingError())) return false; + if (!getProcessingError().equals(other.getProcessingError())) return false; } - if (!getResourceErrorDetailsList() - .equals(other.getResourceErrorDetailsList())) return false; - if (getResourceErrorCount() - != other.getResourceErrorCount()) return false; + if (!getResourceErrorDetailsList().equals(other.getResourceErrorDetailsList())) return false; + if (getResourceErrorCount() != other.getResourceErrorCount()) 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 (hasLastUpdateTime() != other.hasLastUpdateTime()) return false; if (hasLastUpdateTime()) { - if (!getLastUpdateTime() - .equals(other.getLastUpdateTime())) return false; + if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false; } - if (!getMetricsList() - .equals(other.getMetricsList())) return false; + if (!getMetricsList().equals(other.getMetricsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -877,96 +1020,104 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.MigrationSubtask parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.MigrationSubtask parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.MigrationSubtask parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.MigrationSubtask parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.MigrationSubtask parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.MigrationSubtask parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.MigrationSubtask parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.MigrationSubtask parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.MigrationSubtask parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.MigrationSubtask parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.MigrationSubtask parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.MigrationSubtask parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.MigrationSubtask parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.MigrationSubtask parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.MigrationSubtask prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.MigrationSubtask prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 subtask for a migration which carries details about the configuration of
    * the subtask. The content of the details should not matter to the end user,
@@ -975,33 +1126,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.migration.v2.MigrationSubtask}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.MigrationSubtask)
       com.google.cloud.bigquery.migration.v2.MigrationSubtaskOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2_MigrationSubtask_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto
+          .internal_static_google_cloud_bigquery_migration_v2_MigrationSubtask_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2_MigrationSubtask_fieldAccessorTable
+      return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto
+          .internal_static_google_cloud_bigquery_migration_v2_MigrationSubtask_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.migration.v2.MigrationSubtask.class, com.google.cloud.bigquery.migration.v2.MigrationSubtask.Builder.class);
+              com.google.cloud.bigquery.migration.v2.MigrationSubtask.class,
+              com.google.cloud.bigquery.migration.v2.MigrationSubtask.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.migration.v2.MigrationSubtask.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1044,9 +1194,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2_MigrationSubtask_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto
+          .internal_static_google_cloud_bigquery_migration_v2_MigrationSubtask_descriptor;
     }
 
     @java.lang.Override
@@ -1065,14 +1215,18 @@ public com.google.cloud.bigquery.migration.v2.MigrationSubtask build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.migration.v2.MigrationSubtask buildPartial() {
-      com.google.cloud.bigquery.migration.v2.MigrationSubtask result = new com.google.cloud.bigquery.migration.v2.MigrationSubtask(this);
+      com.google.cloud.bigquery.migration.v2.MigrationSubtask result =
+          new com.google.cloud.bigquery.migration.v2.MigrationSubtask(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.bigquery.migration.v2.MigrationSubtask result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.bigquery.migration.v2.MigrationSubtask result) {
       if (resourceErrorDetailsBuilder_ == null) {
         if (((bitField0_ & 0x00000020) != 0)) {
           resourceErrorDetails_ = java.util.Collections.unmodifiableList(resourceErrorDetails_);
@@ -1108,22 +1262,18 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.MigrationSubta
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.processingError_ = processingErrorBuilder_ == null
-            ? processingError_
-            : processingErrorBuilder_.build();
+        result.processingError_ =
+            processingErrorBuilder_ == null ? processingError_ : processingErrorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
         result.resourceErrorCount_ = resourceErrorCount_;
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.lastUpdateTime_ = lastUpdateTimeBuilder_ == null
-            ? lastUpdateTime_
-            : lastUpdateTimeBuilder_.build();
+        result.lastUpdateTime_ =
+            lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build();
       }
     }
 
@@ -1131,38 +1281,39 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.MigrationSubta
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.migration.v2.MigrationSubtask) {
-        return mergeFrom((com.google.cloud.bigquery.migration.v2.MigrationSubtask)other);
+        return mergeFrom((com.google.cloud.bigquery.migration.v2.MigrationSubtask) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1170,7 +1321,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.MigrationSubtask other) {
-      if (other == com.google.cloud.bigquery.migration.v2.MigrationSubtask.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.migration.v2.MigrationSubtask.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -1210,9 +1362,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.MigrationSubtask
             resourceErrorDetailsBuilder_ = null;
             resourceErrorDetails_ = other.resourceErrorDetails_;
             bitField0_ = (bitField0_ & ~0x00000020);
-            resourceErrorDetailsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getResourceErrorDetailsFieldBuilder() : null;
+            resourceErrorDetailsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getResourceErrorDetailsFieldBuilder()
+                    : null;
           } else {
             resourceErrorDetailsBuilder_.addAllMessages(other.resourceErrorDetails_);
           }
@@ -1245,9 +1398,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.MigrationSubtask
             metricsBuilder_ = null;
             metrics_ = other.metrics_;
             bitField0_ = (bitField0_ & ~0x00000200);
-            metricsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getMetricsFieldBuilder() : null;
+            metricsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getMetricsFieldBuilder()
+                    : null;
           } else {
             metricsBuilder_.addAllMessages(other.metrics_);
           }
@@ -1279,84 +1433,89 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              taskId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              type_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 40: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 40
-            case 50: {
-              input.readMessage(
-                  getProcessingErrorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getLastUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 66
-            case 90: {
-              com.google.cloud.bigquery.migration.v2.TimeSeries m =
-                  input.readMessage(
-                      com.google.cloud.bigquery.migration.v2.TimeSeries.parser(),
-                      extensionRegistry);
-              if (metricsBuilder_ == null) {
-                ensureMetricsIsMutable();
-                metrics_.add(m);
-              } else {
-                metricsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 90
-            case 98: {
-              com.google.cloud.bigquery.migration.v2.ResourceErrorDetail m =
-                  input.readMessage(
-                      com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.parser(),
-                      extensionRegistry);
-              if (resourceErrorDetailsBuilder_ == null) {
-                ensureResourceErrorDetailsIsMutable();
-                resourceErrorDetails_.add(m);
-              } else {
-                resourceErrorDetailsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 98
-            case 104: {
-              resourceErrorCount_ = input.readInt32();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 104
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                taskId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                type_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 40:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 40
+            case 50:
+              {
+                input.readMessage(getProcessingErrorFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getLastUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 66
+            case 90:
+              {
+                com.google.cloud.bigquery.migration.v2.TimeSeries m =
+                    input.readMessage(
+                        com.google.cloud.bigquery.migration.v2.TimeSeries.parser(),
+                        extensionRegistry);
+                if (metricsBuilder_ == null) {
+                  ensureMetricsIsMutable();
+                  metrics_.add(m);
+                } else {
+                  metricsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 90
+            case 98:
+              {
+                com.google.cloud.bigquery.migration.v2.ResourceErrorDetail m =
+                    input.readMessage(
+                        com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.parser(),
+                        extensionRegistry);
+                if (resourceErrorDetailsBuilder_ == null) {
+                  ensureResourceErrorDetailsIsMutable();
+                  resourceErrorDetails_.add(m);
+                } else {
+                  resourceErrorDetailsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 98
+            case 104:
+              {
+                resourceErrorCount_ = input.readInt32();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 104
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1366,24 +1525,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. Immutable. The resource name for the migration subtask. The ID
      * is server-generated.
      * Example: `projects/123/locations/us/workflows/345/subtasks/678`
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @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; @@ -1392,22 +1556,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Immutable. The resource name for the migration subtask. The ID
      * is server-generated.
      * Example: `projects/123/locations/us/workflows/345/subtasks/678`
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @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 { @@ -1415,32 +1582,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Immutable. The resource name for the migration subtask. The ID
      * is server-generated.
      * Example: `projects/123/locations/us/workflows/345/subtasks/678`
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. Immutable. The resource name for the migration subtask. The ID
      * is server-generated.
      * Example: `projects/123/locations/us/workflows/345/subtasks/678`
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -1450,19 +1628,25 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. Immutable. The resource name for the migration subtask. The ID
      * is server-generated.
      * Example: `projects/123/locations/us/workflows/345/subtasks/678`
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1472,18 +1656,20 @@ public Builder setNameBytes( private java.lang.Object taskId_ = ""; /** + * + * *
      * The unique ID of the task to which this subtask belongs.
      * 
* * string task_id = 2; + * * @return The taskId. */ public java.lang.String getTaskId() { java.lang.Object ref = taskId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); taskId_ = s; return s; @@ -1492,20 +1678,21 @@ public java.lang.String getTaskId() { } } /** + * + * *
      * The unique ID of the task to which this subtask belongs.
      * 
* * string task_id = 2; + * * @return The bytes for taskId. */ - public com.google.protobuf.ByteString - getTaskIdBytes() { + public com.google.protobuf.ByteString getTaskIdBytes() { java.lang.Object ref = taskId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); taskId_ = b; return b; } else { @@ -1513,28 +1700,35 @@ public java.lang.String getTaskId() { } } /** + * + * *
      * The unique ID of the task to which this subtask belongs.
      * 
* * string task_id = 2; + * * @param value The taskId to set. * @return This builder for chaining. */ - public Builder setTaskId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTaskId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } taskId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The unique ID of the task to which this subtask belongs.
      * 
* * string task_id = 2; + * * @return This builder for chaining. */ public Builder clearTaskId() { @@ -1544,17 +1738,21 @@ public Builder clearTaskId() { return this; } /** + * + * *
      * The unique ID of the task to which this subtask belongs.
      * 
* * string task_id = 2; + * * @param value The bytes for taskId to set. * @return This builder for chaining. */ - public Builder setTaskIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTaskIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); taskId_ = value; bitField0_ |= 0x00000002; @@ -1564,6 +1762,8 @@ public Builder setTaskIdBytes( private java.lang.Object type_ = ""; /** + * + * *
      * The type of the Subtask. The migration service does not check whether this
      * is a known type. It is up to the task creator (i.e. orchestrator or worker)
@@ -1572,13 +1772,13 @@ public Builder setTaskIdBytes(
      * 
* * string type = 3; + * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -1587,6 +1787,8 @@ public java.lang.String getType() { } } /** + * + * *
      * The type of the Subtask. The migration service does not check whether this
      * is a known type. It is up to the task creator (i.e. orchestrator or worker)
@@ -1595,15 +1797,14 @@ public java.lang.String getType() {
      * 
* * string type = 3; + * * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -1611,6 +1812,8 @@ public java.lang.String getType() { } } /** + * + * *
      * The type of the Subtask. The migration service does not check whether this
      * is a known type. It is up to the task creator (i.e. orchestrator or worker)
@@ -1619,18 +1822,22 @@ public java.lang.String getType() {
      * 
* * string type = 3; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } type_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The type of the Subtask. The migration service does not check whether this
      * is a known type. It is up to the task creator (i.e. orchestrator or worker)
@@ -1639,6 +1846,7 @@ public Builder setType(
      * 
* * string type = 3; + * * @return This builder for chaining. */ public Builder clearType() { @@ -1648,6 +1856,8 @@ public Builder clearType() { return this; } /** + * + * *
      * The type of the Subtask. The migration service does not check whether this
      * is a known type. It is up to the task creator (i.e. orchestrator or worker)
@@ -1656,12 +1866,14 @@ public Builder clearType() {
      * 
* * string type = 3; + * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); type_ = value; bitField0_ |= 0x00000004; @@ -1671,22 +1883,33 @@ public Builder setTypeBytes( private int state_ = 0; /** + * + * *
      * Output only. The current state of the subtask.
      * 
* - * .google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current state of the subtask.
      * 
* - * .google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1697,24 +1920,37 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. The current state of the subtask.
      * 
* - * .google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.MigrationSubtask.State getState() { - com.google.cloud.bigquery.migration.v2.MigrationSubtask.State result = com.google.cloud.bigquery.migration.v2.MigrationSubtask.State.forNumber(state_); - return result == null ? com.google.cloud.bigquery.migration.v2.MigrationSubtask.State.UNRECOGNIZED : result; + com.google.cloud.bigquery.migration.v2.MigrationSubtask.State result = + com.google.cloud.bigquery.migration.v2.MigrationSubtask.State.forNumber(state_); + return result == null + ? com.google.cloud.bigquery.migration.v2.MigrationSubtask.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The current state of the subtask.
      * 
* - * .google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -1728,11 +1964,16 @@ public Builder setState(com.google.cloud.bigquery.migration.v2.MigrationSubtask. return this; } /** + * + * *
      * Output only. The current state of the subtask.
      * 
* - * .google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -1744,42 +1985,61 @@ public Builder clearState() { private com.google.rpc.ErrorInfo processingError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.ErrorInfo, com.google.rpc.ErrorInfo.Builder, com.google.rpc.ErrorInfoOrBuilder> processingErrorBuilder_; + com.google.rpc.ErrorInfo, + com.google.rpc.ErrorInfo.Builder, + com.google.rpc.ErrorInfoOrBuilder> + processingErrorBuilder_; /** + * + * *
      * Output only. An explanation that may be populated when the task is in
      * FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the processingError field is set. */ public boolean hasProcessingError() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Output only. An explanation that may be populated when the task is in
      * FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The processingError. */ public com.google.rpc.ErrorInfo getProcessingError() { if (processingErrorBuilder_ == null) { - return processingError_ == null ? com.google.rpc.ErrorInfo.getDefaultInstance() : processingError_; + return processingError_ == null + ? com.google.rpc.ErrorInfo.getDefaultInstance() + : processingError_; } else { return processingErrorBuilder_.getMessage(); } } /** + * + * *
      * Output only. An explanation that may be populated when the task is in
      * FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setProcessingError(com.google.rpc.ErrorInfo value) { if (processingErrorBuilder_ == null) { @@ -1795,15 +2055,18 @@ public Builder setProcessingError(com.google.rpc.ErrorInfo value) { return this; } /** + * + * *
      * Output only. An explanation that may be populated when the task is in
      * FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setProcessingError( - com.google.rpc.ErrorInfo.Builder builderForValue) { + public Builder setProcessingError(com.google.rpc.ErrorInfo.Builder builderForValue) { if (processingErrorBuilder_ == null) { processingError_ = builderForValue.build(); } else { @@ -1814,18 +2077,22 @@ public Builder setProcessingError( return this; } /** + * + * *
      * Output only. An explanation that may be populated when the task is in
      * FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeProcessingError(com.google.rpc.ErrorInfo value) { if (processingErrorBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - processingError_ != null && - processingError_ != com.google.rpc.ErrorInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && processingError_ != null + && processingError_ != com.google.rpc.ErrorInfo.getDefaultInstance()) { getProcessingErrorBuilder().mergeFrom(value); } else { processingError_ = value; @@ -1838,12 +2105,16 @@ public Builder mergeProcessingError(com.google.rpc.ErrorInfo value) { return this; } /** + * + * *
      * Output only. An explanation that may be populated when the task is in
      * FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearProcessingError() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1856,12 +2127,16 @@ public Builder clearProcessingError() { return this; } /** + * + * *
      * Output only. An explanation that may be populated when the task is in
      * FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.rpc.ErrorInfo.Builder getProcessingErrorBuilder() { bitField0_ |= 0x00000010; @@ -1869,65 +2144,88 @@ public com.google.rpc.ErrorInfo.Builder getProcessingErrorBuilder() { return getProcessingErrorFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. An explanation that may be populated when the task is in
      * FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.rpc.ErrorInfoOrBuilder getProcessingErrorOrBuilder() { if (processingErrorBuilder_ != null) { return processingErrorBuilder_.getMessageOrBuilder(); } else { - return processingError_ == null ? - com.google.rpc.ErrorInfo.getDefaultInstance() : processingError_; + return processingError_ == null + ? com.google.rpc.ErrorInfo.getDefaultInstance() + : processingError_; } } /** + * + * *
      * Output only. An explanation that may be populated when the task is in
      * FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.ErrorInfo, com.google.rpc.ErrorInfo.Builder, com.google.rpc.ErrorInfoOrBuilder> + com.google.rpc.ErrorInfo, + com.google.rpc.ErrorInfo.Builder, + com.google.rpc.ErrorInfoOrBuilder> getProcessingErrorFieldBuilder() { if (processingErrorBuilder_ == null) { - processingErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.ErrorInfo, com.google.rpc.ErrorInfo.Builder, com.google.rpc.ErrorInfoOrBuilder>( - getProcessingError(), - getParentForChildren(), - isClean()); + processingErrorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.ErrorInfo, + com.google.rpc.ErrorInfo.Builder, + com.google.rpc.ErrorInfoOrBuilder>( + getProcessingError(), getParentForChildren(), isClean()); processingError_ = null; } return processingErrorBuilder_; } - private java.util.List resourceErrorDetails_ = - java.util.Collections.emptyList(); + private java.util.List + resourceErrorDetails_ = java.util.Collections.emptyList(); + private void ensureResourceErrorDetailsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - resourceErrorDetails_ = new java.util.ArrayList(resourceErrorDetails_); + resourceErrorDetails_ = + new java.util.ArrayList( + resourceErrorDetails_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.ResourceErrorDetail, com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder, com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder> resourceErrorDetailsBuilder_; + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail, + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder, + com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder> + resourceErrorDetailsBuilder_; /** + * + * *
      * Output only. Provides details to errors and issues encountered while
      * processing the subtask. Presence of error details does not mean that the
      * subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getResourceErrorDetailsList() { + public java.util.List + getResourceErrorDetailsList() { if (resourceErrorDetailsBuilder_ == null) { return java.util.Collections.unmodifiableList(resourceErrorDetails_); } else { @@ -1935,13 +2233,17 @@ public java.util.List * Output only. Provides details to errors and issues encountered while * processing the subtask. Presence of error details does not mean that the * subtask failed. *
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getResourceErrorDetailsCount() { if (resourceErrorDetailsBuilder_ == null) { @@ -1951,15 +2253,20 @@ public int getResourceErrorDetailsCount() { } } /** + * + * *
      * Output only. Provides details to errors and issues encountered while
      * processing the subtask. Presence of error details does not mean that the
      * subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.bigquery.migration.v2.ResourceErrorDetail getResourceErrorDetails(int index) { + public com.google.cloud.bigquery.migration.v2.ResourceErrorDetail getResourceErrorDetails( + int index) { if (resourceErrorDetailsBuilder_ == null) { return resourceErrorDetails_.get(index); } else { @@ -1967,13 +2274,17 @@ public com.google.cloud.bigquery.migration.v2.ResourceErrorDetail getResourceErr } } /** + * + * *
      * Output only. Provides details to errors and issues encountered while
      * processing the subtask. Presence of error details does not mean that the
      * subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setResourceErrorDetails( int index, com.google.cloud.bigquery.migration.v2.ResourceErrorDetail value) { @@ -1990,16 +2301,21 @@ public Builder setResourceErrorDetails( return this; } /** + * + * *
      * Output only. Provides details to errors and issues encountered while
      * processing the subtask. Presence of error details does not mean that the
      * subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setResourceErrorDetails( - int index, com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder builderForValue) { + int index, + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder builderForValue) { if (resourceErrorDetailsBuilder_ == null) { ensureResourceErrorDetailsIsMutable(); resourceErrorDetails_.set(index, builderForValue.build()); @@ -2010,15 +2326,20 @@ public Builder setResourceErrorDetails( return this; } /** + * + * *
      * Output only. Provides details to errors and issues encountered while
      * processing the subtask. Presence of error details does not mean that the
      * subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addResourceErrorDetails(com.google.cloud.bigquery.migration.v2.ResourceErrorDetail value) { + public Builder addResourceErrorDetails( + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail value) { if (resourceErrorDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2032,13 +2353,17 @@ public Builder addResourceErrorDetails(com.google.cloud.bigquery.migration.v2.Re return this; } /** + * + * *
      * Output only. Provides details to errors and issues encountered while
      * processing the subtask. Presence of error details does not mean that the
      * subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addResourceErrorDetails( int index, com.google.cloud.bigquery.migration.v2.ResourceErrorDetail value) { @@ -2055,13 +2380,17 @@ public Builder addResourceErrorDetails( return this; } /** + * + * *
      * Output only. Provides details to errors and issues encountered while
      * processing the subtask. Presence of error details does not mean that the
      * subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addResourceErrorDetails( com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder builderForValue) { @@ -2075,16 +2404,21 @@ public Builder addResourceErrorDetails( return this; } /** + * + * *
      * Output only. Provides details to errors and issues encountered while
      * processing the subtask. Presence of error details does not mean that the
      * subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addResourceErrorDetails( - int index, com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder builderForValue) { + int index, + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder builderForValue) { if (resourceErrorDetailsBuilder_ == null) { ensureResourceErrorDetailsIsMutable(); resourceErrorDetails_.add(index, builderForValue.build()); @@ -2095,20 +2429,24 @@ public Builder addResourceErrorDetails( return this; } /** + * + * *
      * Output only. Provides details to errors and issues encountered while
      * processing the subtask. Presence of error details does not mean that the
      * subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllResourceErrorDetails( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (resourceErrorDetailsBuilder_ == null) { ensureResourceErrorDetailsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resourceErrorDetails_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceErrorDetails_); onChanged(); } else { resourceErrorDetailsBuilder_.addAllMessages(values); @@ -2116,13 +2454,17 @@ public Builder addAllResourceErrorDetails( return this; } /** + * + * *
      * Output only. Provides details to errors and issues encountered while
      * processing the subtask. Presence of error details does not mean that the
      * subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearResourceErrorDetails() { if (resourceErrorDetailsBuilder_ == null) { @@ -2135,13 +2477,17 @@ public Builder clearResourceErrorDetails() { return this; } /** + * + * *
      * Output only. Provides details to errors and issues encountered while
      * processing the subtask. Presence of error details does not mean that the
      * subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeResourceErrorDetails(int index) { if (resourceErrorDetailsBuilder_ == null) { @@ -2154,45 +2500,59 @@ public Builder removeResourceErrorDetails(int index) { return this; } /** + * + * *
      * Output only. Provides details to errors and issues encountered while
      * processing the subtask. Presence of error details does not mean that the
      * subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder getResourceErrorDetailsBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder + getResourceErrorDetailsBuilder(int index) { return getResourceErrorDetailsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Provides details to errors and issues encountered while
      * processing the subtask. Presence of error details does not mean that the
      * subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder getResourceErrorDetailsOrBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder + getResourceErrorDetailsOrBuilder(int index) { if (resourceErrorDetailsBuilder_ == null) { - return resourceErrorDetails_.get(index); } else { + return resourceErrorDetails_.get(index); + } else { return resourceErrorDetailsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Provides details to errors and issues encountered while
      * processing the subtask. Presence of error details does not mean that the
      * subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getResourceErrorDetailsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder> + getResourceErrorDetailsOrBuilderList() { if (resourceErrorDetailsBuilder_ != null) { return resourceErrorDetailsBuilder_.getMessageOrBuilderList(); } else { @@ -2200,51 +2560,73 @@ public com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder getRe } } /** + * + * *
      * Output only. Provides details to errors and issues encountered while
      * processing the subtask. Presence of error details does not mean that the
      * subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder addResourceErrorDetailsBuilder() { - return getResourceErrorDetailsFieldBuilder().addBuilder( - com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.getDefaultInstance()); + public com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder + addResourceErrorDetailsBuilder() { + return getResourceErrorDetailsFieldBuilder() + .addBuilder( + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.getDefaultInstance()); } /** + * + * *
      * Output only. Provides details to errors and issues encountered while
      * processing the subtask. Presence of error details does not mean that the
      * subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder addResourceErrorDetailsBuilder( - int index) { - return getResourceErrorDetailsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.getDefaultInstance()); + public com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder + addResourceErrorDetailsBuilder(int index) { + return getResourceErrorDetailsFieldBuilder() + .addBuilder( + index, + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.getDefaultInstance()); } /** + * + * *
      * Output only. Provides details to errors and issues encountered while
      * processing the subtask. Presence of error details does not mean that the
      * subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getResourceErrorDetailsBuilderList() { + public java.util.List + getResourceErrorDetailsBuilderList() { return getResourceErrorDetailsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.ResourceErrorDetail, com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder, com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder> + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail, + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder, + com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder> getResourceErrorDetailsFieldBuilder() { if (resourceErrorDetailsBuilder_ == null) { - resourceErrorDetailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.ResourceErrorDetail, com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder, com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder>( + resourceErrorDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail, + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder, + com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder>( resourceErrorDetails_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), @@ -2254,8 +2636,10 @@ public com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder addRes return resourceErrorDetailsBuilder_; } - private int resourceErrorCount_ ; + private int resourceErrorCount_; /** + * + * *
      * The number or resources with errors. Note: This is not the total
      * number of errors as each resource can have more than one error.
@@ -2264,6 +2648,7 @@ public com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder addRes
      * 
* * int32 resource_error_count = 13; + * * @return The resourceErrorCount. */ @java.lang.Override @@ -2271,6 +2656,8 @@ public int getResourceErrorCount() { return resourceErrorCount_; } /** + * + * *
      * The number or resources with errors. Note: This is not the total
      * number of errors as each resource can have more than one error.
@@ -2279,17 +2666,20 @@ public int getResourceErrorCount() {
      * 
* * int32 resource_error_count = 13; + * * @param value The resourceErrorCount to set. * @return This builder for chaining. */ public Builder setResourceErrorCount(int value) { - + resourceErrorCount_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * The number or resources with errors. Note: This is not the total
      * number of errors as each resource can have more than one error.
@@ -2298,6 +2688,7 @@ public Builder setResourceErrorCount(int value) {
      * 
* * int32 resource_error_count = 13; + * * @return This builder for chaining. */ public Builder clearResourceErrorCount() { @@ -2309,34 +2700,47 @@ public Builder clearResourceErrorCount() { 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_; /** + * + * *
      * Time when the subtask was created.
      * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Time when the subtask was created.
      * 
* * .google.protobuf.Timestamp create_time = 7; + * * @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(); } } /** + * + * *
      * Time when the subtask was created.
      * 
@@ -2357,14 +2761,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the subtask was created.
      * 
* * .google.protobuf.Timestamp create_time = 7; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -2375,6 +2780,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Time when the subtask was created.
      * 
@@ -2383,9 +2790,9 @@ public Builder setCreateTime( */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -2398,6 +2805,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the subtask was created.
      * 
@@ -2415,6 +2824,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Time when the subtask was created.
      * 
@@ -2427,6 +2838,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the subtask was created.
      * 
@@ -2437,11 +2850,14 @@ 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_; } } /** + * + * *
      * Time when the subtask was created.
      * 
@@ -2449,14 +2865,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 7; */ 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_; @@ -2464,34 +2883,47 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp lastUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastUpdateTimeBuilder_; /** + * + * *
      * Time when the subtask was last updated.
      * 
* * .google.protobuf.Timestamp last_update_time = 8; + * * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Time when the subtask was last updated.
      * 
* * .google.protobuf.Timestamp last_update_time = 8; + * * @return The lastUpdateTime. */ public com.google.protobuf.Timestamp getLastUpdateTime() { if (lastUpdateTimeBuilder_ == null) { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } else { return lastUpdateTimeBuilder_.getMessage(); } } /** + * + * *
      * Time when the subtask was last updated.
      * 
@@ -2512,14 +2944,15 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the subtask was last updated.
      * 
* * .google.protobuf.Timestamp last_update_time = 8; */ - public Builder setLastUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); } else { @@ -2530,6 +2963,8 @@ public Builder setLastUpdateTime( return this; } /** + * + * *
      * Time when the subtask was last updated.
      * 
@@ -2538,9 +2973,9 @@ public Builder setLastUpdateTime( */ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - lastUpdateTime_ != null && - lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && lastUpdateTime_ != null + && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastUpdateTimeBuilder().mergeFrom(value); } else { lastUpdateTime_ = value; @@ -2553,6 +2988,8 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the subtask was last updated.
      * 
@@ -2570,6 +3007,8 @@ public Builder clearLastUpdateTime() { return this; } /** + * + * *
      * Time when the subtask was last updated.
      * 
@@ -2582,6 +3021,8 @@ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { return getLastUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the subtask was last updated.
      * 
@@ -2592,11 +3033,14 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { if (lastUpdateTimeBuilder_ != null) { return lastUpdateTimeBuilder_.getMessageOrBuilder(); } else { - return lastUpdateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } } /** + * + * *
      * Time when the subtask was last updated.
      * 
@@ -2604,32 +3048,42 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { * .google.protobuf.Timestamp last_update_time = 8; */ 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> getLastUpdateTimeFieldBuilder() { if (lastUpdateTimeBuilder_ == null) { - lastUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getLastUpdateTime(), - getParentForChildren(), - isClean()); + lastUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastUpdateTime(), getParentForChildren(), isClean()); lastUpdateTime_ = null; } return lastUpdateTimeBuilder_; } private java.util.List metrics_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMetricsIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { - metrics_ = new java.util.ArrayList(metrics_); + metrics_ = + new java.util.ArrayList(metrics_); bitField0_ |= 0x00000200; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.TimeSeries, com.google.cloud.bigquery.migration.v2.TimeSeries.Builder, com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder> metricsBuilder_; + com.google.cloud.bigquery.migration.v2.TimeSeries, + com.google.cloud.bigquery.migration.v2.TimeSeries.Builder, + com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder> + metricsBuilder_; /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2644,6 +3098,8 @@ public java.util.List getMetr } } /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2658,6 +3114,8 @@ public int getMetricsCount() { } } /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2672,14 +3130,15 @@ public com.google.cloud.bigquery.migration.v2.TimeSeries getMetrics(int index) { } } /** + * + * *
      * The metrics for the subtask.
      * 
* * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11; */ - public Builder setMetrics( - int index, com.google.cloud.bigquery.migration.v2.TimeSeries value) { + public Builder setMetrics(int index, com.google.cloud.bigquery.migration.v2.TimeSeries value) { if (metricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2693,6 +3152,8 @@ public Builder setMetrics( return this; } /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2711,6 +3172,8 @@ public Builder setMetrics( return this; } /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2731,14 +3194,15 @@ public Builder addMetrics(com.google.cloud.bigquery.migration.v2.TimeSeries valu return this; } /** + * + * *
      * The metrics for the subtask.
      * 
* * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11; */ - public Builder addMetrics( - int index, com.google.cloud.bigquery.migration.v2.TimeSeries value) { + public Builder addMetrics(int index, com.google.cloud.bigquery.migration.v2.TimeSeries value) { if (metricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2752,6 +3216,8 @@ public Builder addMetrics( return this; } /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2770,6 +3236,8 @@ public Builder addMetrics( return this; } /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2788,6 +3256,8 @@ public Builder addMetrics( return this; } /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2798,8 +3268,7 @@ public Builder addAllMetrics( java.lang.Iterable values) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, metrics_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); onChanged(); } else { metricsBuilder_.addAllMessages(values); @@ -2807,6 +3276,8 @@ public Builder addAllMetrics( return this; } /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2824,6 +3295,8 @@ public Builder clearMetrics() { return this; } /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2841,17 +3314,20 @@ public Builder removeMetrics(int index) { return this; } /** + * + * *
      * The metrics for the subtask.
      * 
* * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11; */ - public com.google.cloud.bigquery.migration.v2.TimeSeries.Builder getMetricsBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2.TimeSeries.Builder getMetricsBuilder(int index) { return getMetricsFieldBuilder().getBuilder(index); } /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2861,19 +3337,22 @@ public com.google.cloud.bigquery.migration.v2.TimeSeries.Builder getMetricsBuild public com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder getMetricsOrBuilder( int index) { if (metricsBuilder_ == null) { - return metrics_.get(index); } else { + return metrics_.get(index); + } else { return metricsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The metrics for the subtask.
      * 
* * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11; */ - public java.util.List - getMetricsOrBuilderList() { + public java.util.List + getMetricsOrBuilderList() { if (metricsBuilder_ != null) { return metricsBuilder_.getMessageOrBuilderList(); } else { @@ -2881,6 +3360,8 @@ public com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder getMetricsOrBu } } /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2888,49 +3369,56 @@ public com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder getMetricsOrBu * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11; */ public com.google.cloud.bigquery.migration.v2.TimeSeries.Builder addMetricsBuilder() { - return getMetricsFieldBuilder().addBuilder( - com.google.cloud.bigquery.migration.v2.TimeSeries.getDefaultInstance()); + return getMetricsFieldBuilder() + .addBuilder(com.google.cloud.bigquery.migration.v2.TimeSeries.getDefaultInstance()); } /** + * + * *
      * The metrics for the subtask.
      * 
* * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11; */ - public com.google.cloud.bigquery.migration.v2.TimeSeries.Builder addMetricsBuilder( - int index) { - return getMetricsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.migration.v2.TimeSeries.getDefaultInstance()); + public com.google.cloud.bigquery.migration.v2.TimeSeries.Builder addMetricsBuilder(int index) { + return getMetricsFieldBuilder() + .addBuilder( + index, com.google.cloud.bigquery.migration.v2.TimeSeries.getDefaultInstance()); } /** + * + * *
      * The metrics for the subtask.
      * 
* * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11; */ - public java.util.List - getMetricsBuilderList() { + public java.util.List + getMetricsBuilderList() { return getMetricsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.TimeSeries, com.google.cloud.bigquery.migration.v2.TimeSeries.Builder, com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder> + com.google.cloud.bigquery.migration.v2.TimeSeries, + com.google.cloud.bigquery.migration.v2.TimeSeries.Builder, + com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder> getMetricsFieldBuilder() { if (metricsBuilder_ == null) { - metricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.TimeSeries, com.google.cloud.bigquery.migration.v2.TimeSeries.Builder, com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder>( - metrics_, - ((bitField0_ & 0x00000200) != 0), - getParentForChildren(), - isClean()); + metricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.TimeSeries, + com.google.cloud.bigquery.migration.v2.TimeSeries.Builder, + com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder>( + metrics_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); metrics_ = null; } return metricsBuilder_; } + @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); } @@ -2940,12 +3428,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.MigrationSubtask) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.MigrationSubtask) private static final com.google.cloud.bigquery.migration.v2.MigrationSubtask DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.MigrationSubtask(); } @@ -2954,27 +3442,27 @@ public static com.google.cloud.bigquery.migration.v2.MigrationSubtask getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MigrationSubtask parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MigrationSubtask parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2989,6 +3477,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.MigrationSubtask getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationSubtaskName.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationSubtaskName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationSubtaskName.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationSubtaskName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationSubtaskOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationSubtaskOrBuilder.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationSubtaskOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationSubtaskOrBuilder.java index 442e633..cc61a02 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationSubtaskOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationSubtaskOrBuilder.java @@ -1,57 +1,89 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_entities.proto package com.google.cloud.bigquery.migration.v2; -public interface MigrationSubtaskOrBuilder extends +public interface MigrationSubtaskOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.MigrationSubtask) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Immutable. The resource name for the migration subtask. The ID
    * is server-generated.
    * Example: `projects/123/locations/us/workflows/345/subtasks/678`
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Immutable. The resource name for the migration subtask. The ID
    * is server-generated.
    * Example: `projects/123/locations/us/workflows/345/subtasks/678`
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The unique ID of the task to which this subtask belongs.
    * 
* * string task_id = 2; + * * @return The taskId. */ java.lang.String getTaskId(); /** + * + * *
    * The unique ID of the task to which this subtask belongs.
    * 
* * string task_id = 2; + * * @return The bytes for taskId. */ - com.google.protobuf.ByteString - getTaskIdBytes(); + com.google.protobuf.ByteString getTaskIdBytes(); /** + * + * *
    * The type of the Subtask. The migration service does not check whether this
    * is a known type. It is up to the task creator (i.e. orchestrator or worker)
@@ -60,10 +92,13 @@ public interface MigrationSubtaskOrBuilder extends
    * 
* * string type = 3; + * * @return The type. */ java.lang.String getType(); /** + * + * *
    * The type of the Subtask. The migration service does not check whether this
    * is a known type. It is up to the task creator (i.e. orchestrator or worker)
@@ -72,115 +107,158 @@ public interface MigrationSubtaskOrBuilder extends
    * 
* * string type = 3; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
    * Output only. The current state of the subtask.
    * 
* - * .google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current state of the subtask.
    * 
* - * .google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.bigquery.migration.v2.MigrationSubtask.State getState(); /** + * + * *
    * Output only. An explanation that may be populated when the task is in
    * FAILED state.
    * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the processingError field is set. */ boolean hasProcessingError(); /** + * + * *
    * Output only. An explanation that may be populated when the task is in
    * FAILED state.
    * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The processingError. */ com.google.rpc.ErrorInfo getProcessingError(); /** + * + * *
    * Output only. An explanation that may be populated when the task is in
    * FAILED state.
    * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.rpc.ErrorInfoOrBuilder getProcessingErrorOrBuilder(); /** + * + * *
    * Output only. Provides details to errors and issues encountered while
    * processing the subtask. Presence of error details does not mean that the
    * subtask failed.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getResourceErrorDetailsList(); /** + * + * *
    * Output only. Provides details to errors and issues encountered while
    * processing the subtask. Presence of error details does not mean that the
    * subtask failed.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.bigquery.migration.v2.ResourceErrorDetail getResourceErrorDetails(int index); /** + * + * *
    * Output only. Provides details to errors and issues encountered while
    * processing the subtask. Presence of error details does not mean that the
    * subtask failed.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getResourceErrorDetailsCount(); /** + * + * *
    * Output only. Provides details to errors and issues encountered while
    * processing the subtask. Presence of error details does not mean that the
    * subtask failed.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getResourceErrorDetailsOrBuilderList(); /** + * + * *
    * Output only. Provides details to errors and issues encountered while
    * processing the subtask. Presence of error details does not mean that the
    * subtask failed.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder getResourceErrorDetailsOrBuilder( - int index); + com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder + getResourceErrorDetailsOrBuilder(int index); /** + * + * *
    * The number or resources with errors. Note: This is not the total
    * number of errors as each resource can have more than one error.
@@ -189,29 +267,38 @@ com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder getResourceE
    * 
* * int32 resource_error_count = 13; + * * @return The resourceErrorCount. */ int getResourceErrorCount(); /** + * + * *
    * Time when the subtask was created.
    * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Time when the subtask was created.
    * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Time when the subtask was created.
    * 
@@ -221,24 +308,32 @@ com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder getResourceE com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Time when the subtask was last updated.
    * 
* * .google.protobuf.Timestamp last_update_time = 8; + * * @return Whether the lastUpdateTime field is set. */ boolean hasLastUpdateTime(); /** + * + * *
    * Time when the subtask was last updated.
    * 
* * .google.protobuf.Timestamp last_update_time = 8; + * * @return The lastUpdateTime. */ com.google.protobuf.Timestamp getLastUpdateTime(); /** + * + * *
    * Time when the subtask was last updated.
    * 
@@ -248,15 +343,18 @@ com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder getResourceE com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder(); /** + * + * *
    * The metrics for the subtask.
    * 
* * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11; */ - java.util.List - getMetricsList(); + java.util.List getMetricsList(); /** + * + * *
    * The metrics for the subtask.
    * 
@@ -265,6 +363,8 @@ com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder getResourceE */ com.google.cloud.bigquery.migration.v2.TimeSeries getMetrics(int index); /** + * + * *
    * The metrics for the subtask.
    * 
@@ -273,21 +373,24 @@ com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder getResourceE */ int getMetricsCount(); /** + * + * *
    * The metrics for the subtask.
    * 
* * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11; */ - java.util.List + java.util.List getMetricsOrBuilderList(); /** + * + * *
    * The metrics for the subtask.
    * 
* * repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11; */ - com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder getMetricsOrBuilder( - int index); + com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder getMetricsOrBuilder(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTask.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTask.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTask.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTask.java index 201ae04..15ea656 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTask.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTask.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_entities.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * A single task for a migration which has details about the configuration of
  * the task.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.bigquery.migration.v2.MigrationTask}
  */
-public final class MigrationTask extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MigrationTask extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.MigrationTask)
     MigrationTaskOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MigrationTask.newBuilder() to construct.
   private MigrationTask(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private MigrationTask() {
     id_ = "";
     type_ = "";
@@ -28,39 +46,43 @@ private MigrationTask() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MigrationTask();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2_MigrationTask_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto
+        .internal_static_google_cloud_bigquery_migration_v2_MigrationTask_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2_MigrationTask_fieldAccessorTable
+    return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto
+        .internal_static_google_cloud_bigquery_migration_v2_MigrationTask_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.migration.v2.MigrationTask.class, com.google.cloud.bigquery.migration.v2.MigrationTask.Builder.class);
+            com.google.cloud.bigquery.migration.v2.MigrationTask.class,
+            com.google.cloud.bigquery.migration.v2.MigrationTask.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Possible states of a migration task.
    * 
* * Protobuf enum {@code google.cloud.bigquery.migration.v2.MigrationTask.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The state is unspecified.
      * 
@@ -69,6 +91,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The task is waiting for orchestration.
      * 
@@ -77,6 +101,8 @@ public enum State */ PENDING(1), /** + * + * *
      * The task is assigned to an orchestrator.
      * 
@@ -85,6 +111,8 @@ public enum State */ ORCHESTRATING(2), /** + * + * *
      * The task is running, i.e. its subtasks are ready for execution.
      * 
@@ -93,6 +121,8 @@ public enum State */ RUNNING(3), /** + * + * *
      * Tha task is paused. Assigned subtasks can continue, but no new subtasks
      * will be scheduled.
@@ -102,6 +132,8 @@ public enum State
      */
     PAUSED(4),
     /**
+     *
+     *
      * 
      * The task finished successfully.
      * 
@@ -110,6 +142,8 @@ public enum State */ SUCCEEDED(5), /** + * + * *
      * The task finished unsuccessfully.
      * 
@@ -121,6 +155,8 @@ public enum State ; /** + * + * *
      * The state is unspecified.
      * 
@@ -129,6 +165,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The task is waiting for orchestration.
      * 
@@ -137,6 +175,8 @@ public enum State */ public static final int PENDING_VALUE = 1; /** + * + * *
      * The task is assigned to an orchestrator.
      * 
@@ -145,6 +185,8 @@ public enum State */ public static final int ORCHESTRATING_VALUE = 2; /** + * + * *
      * The task is running, i.e. its subtasks are ready for execution.
      * 
@@ -153,6 +195,8 @@ public enum State */ public static final int RUNNING_VALUE = 3; /** + * + * *
      * Tha task is paused. Assigned subtasks can continue, but no new subtasks
      * will be scheduled.
@@ -162,6 +206,8 @@ public enum State
      */
     public static final int PAUSED_VALUE = 4;
     /**
+     *
+     *
      * 
      * The task finished successfully.
      * 
@@ -170,6 +216,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 5; /** + * + * *
      * The task finished unsuccessfully.
      * 
@@ -178,7 +226,6 @@ public enum State */ public static final int FAILED_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -203,53 +250,59 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return PENDING; - case 2: return ORCHESTRATING; - case 3: return RUNNING; - case 4: return PAUSED; - case 5: return SUCCEEDED; - case 6: return FAILED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return PENDING; + case 2: + return ORCHESTRATING; + case 3: + return RUNNING; + case 4: + return PAUSED; + case 5: + return SUCCEEDED; + case 6: + 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() { - return com.google.cloud.bigquery.migration.v2.MigrationTask.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationTask.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; @@ -268,12 +321,15 @@ private State(int value) { private int taskDetailsCase_ = 0; private java.lang.Object taskDetails_; + public enum TaskDetailsCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TRANSLATION_CONFIG_DETAILS(14), TASKDETAILS_NOT_SET(0); private final int value; + private TaskDetailsCase(int value) { this.value = value; } @@ -289,29 +345,36 @@ public static TaskDetailsCase valueOf(int value) { public static TaskDetailsCase forNumber(int value) { switch (value) { - case 14: return TRANSLATION_CONFIG_DETAILS; - case 0: return TASKDETAILS_NOT_SET; - default: return null; + case 14: + return TRANSLATION_CONFIG_DETAILS; + case 0: + return TASKDETAILS_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public TaskDetailsCase - getTaskDetailsCase() { - return TaskDetailsCase.forNumber( - taskDetailsCase_); + public TaskDetailsCase getTaskDetailsCase() { + return TaskDetailsCase.forNumber(taskDetailsCase_); } public static final int TRANSLATION_CONFIG_DETAILS_FIELD_NUMBER = 14; /** + * + * *
    * Task configuration for Batch SQL Translation.
    * 
* - * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * + * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * + * * @return Whether the translationConfigDetails field is set. */ @java.lang.Override @@ -319,45 +382,62 @@ public boolean hasTranslationConfigDetails() { return taskDetailsCase_ == 14; } /** + * + * *
    * Task configuration for Batch SQL Translation.
    * 
* - * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * + * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * + * * @return The translationConfigDetails. */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.TranslationConfigDetails getTranslationConfigDetails() { + public com.google.cloud.bigquery.migration.v2.TranslationConfigDetails + getTranslationConfigDetails() { if (taskDetailsCase_ == 14) { - return (com.google.cloud.bigquery.migration.v2.TranslationConfigDetails) taskDetails_; + return (com.google.cloud.bigquery.migration.v2.TranslationConfigDetails) taskDetails_; } return com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.getDefaultInstance(); } /** + * + * *
    * Task configuration for Batch SQL Translation.
    * 
* - * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * + * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.TranslationConfigDetailsOrBuilder getTranslationConfigDetailsOrBuilder() { + public com.google.cloud.bigquery.migration.v2.TranslationConfigDetailsOrBuilder + getTranslationConfigDetailsOrBuilder() { if (taskDetailsCase_ == 14) { - return (com.google.cloud.bigquery.migration.v2.TranslationConfigDetails) taskDetails_; + return (com.google.cloud.bigquery.migration.v2.TranslationConfigDetails) taskDetails_; } return com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.getDefaultInstance(); } public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** + * + * *
    * Output only. Immutable. The unique identifier for the migration task. The
    * ID is server-generated.
    * 
* - * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The id. */ @java.lang.Override @@ -366,30 +446,32 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** + * + * *
    * Output only. Immutable. The unique identifier for the migration task. The
    * ID is server-generated.
    * 
* - * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -398,9 +480,12 @@ public java.lang.String getId() { } public static final int TYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** + * + * *
    * The type of the task. This must be one of the supported task types:
    * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ,
@@ -411,6 +496,7 @@ public java.lang.String getId() {
    * 
* * string type = 2; + * * @return The type. */ @java.lang.Override @@ -419,14 +505,15 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** + * + * *
    * The type of the task. This must be one of the supported task types:
    * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ,
@@ -437,16 +524,15 @@ public java.lang.String getType() {
    * 
* * string type = 2; + * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -457,38 +543,57 @@ public java.lang.String getType() { public static final int STATE_FIELD_NUMBER = 4; private int state_ = 0; /** + * + * *
    * Output only. The current state of the task.
    * 
* - * .google.cloud.bigquery.migration.v2.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current state of the task.
    * 
* - * .google.cloud.bigquery.migration.v2.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.bigquery.migration.v2.MigrationTask.State getState() { - com.google.cloud.bigquery.migration.v2.MigrationTask.State result = com.google.cloud.bigquery.migration.v2.MigrationTask.State.forNumber(state_); - return result == null ? com.google.cloud.bigquery.migration.v2.MigrationTask.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.MigrationTask.State getState() { + com.google.cloud.bigquery.migration.v2.MigrationTask.State result = + com.google.cloud.bigquery.migration.v2.MigrationTask.State.forNumber(state_); + return result == null + ? com.google.cloud.bigquery.migration.v2.MigrationTask.State.UNRECOGNIZED + : result; } public static final int PROCESSING_ERROR_FIELD_NUMBER = 5; private com.google.rpc.ErrorInfo processingError_; /** + * + * *
    * Output only. An explanation that may be populated when the task is in
    * FAILED state.
    * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the processingError field is set. */ @java.lang.Override @@ -496,39 +601,53 @@ public boolean hasProcessingError() { return processingError_ != null; } /** + * + * *
    * Output only. An explanation that may be populated when the task is in
    * FAILED state.
    * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The processingError. */ @java.lang.Override public com.google.rpc.ErrorInfo getProcessingError() { - return processingError_ == null ? com.google.rpc.ErrorInfo.getDefaultInstance() : processingError_; + return processingError_ == null + ? com.google.rpc.ErrorInfo.getDefaultInstance() + : processingError_; } /** + * + * *
    * Output only. An explanation that may be populated when the task is in
    * FAILED state.
    * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.rpc.ErrorInfoOrBuilder getProcessingErrorOrBuilder() { - return processingError_ == null ? com.google.rpc.ErrorInfo.getDefaultInstance() : processingError_; + return processingError_ == null + ? com.google.rpc.ErrorInfo.getDefaultInstance() + : processingError_; } public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Time when the task was created.
    * 
* * .google.protobuf.Timestamp create_time = 6; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -536,11 +655,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Time when the task was created.
    * 
* * .google.protobuf.Timestamp create_time = 6; + * * @return The createTime. */ @java.lang.Override @@ -548,6 +670,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Time when the task was created.
    * 
@@ -562,11 +686,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int LAST_UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp lastUpdateTime_; /** + * + * *
    * Time when the task was last updated.
    * 
* * .google.protobuf.Timestamp last_update_time = 7; + * * @return Whether the lastUpdateTime field is set. */ @java.lang.Override @@ -574,18 +701,25 @@ public boolean hasLastUpdateTime() { return lastUpdateTime_ != null; } /** + * + * *
    * Time when the task was last updated.
    * 
* * .google.protobuf.Timestamp last_update_time = 7; + * * @return The lastUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastUpdateTime() { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } /** + * + * *
    * Time when the task was last updated.
    * 
@@ -594,10 +728,13 @@ public com.google.protobuf.Timestamp getLastUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -609,15 +746,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); } - if (state_ != com.google.cloud.bigquery.migration.v2.MigrationTask.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.bigquery.migration.v2.MigrationTask.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(4, state_); } if (processingError_ != null) { @@ -630,7 +768,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(7, getLastUpdateTime()); } if (taskDetailsCase_ == 14) { - output.writeMessage(14, (com.google.cloud.bigquery.migration.v2.TranslationConfigDetails) taskDetails_); + output.writeMessage( + 14, (com.google.cloud.bigquery.migration.v2.TranslationConfigDetails) taskDetails_); } getUnknownFields().writeTo(output); } @@ -647,25 +786,24 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); } - if (state_ != com.google.cloud.bigquery.migration.v2.MigrationTask.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, state_); + if (state_ + != com.google.cloud.bigquery.migration.v2.MigrationTask.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); } if (processingError_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getProcessingError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getProcessingError()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (lastUpdateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getLastUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLastUpdateTime()); } if (taskDetailsCase_ == 14) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, (com.google.cloud.bigquery.migration.v2.TranslationConfigDetails) taskDetails_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, (com.google.cloud.bigquery.migration.v2.TranslationConfigDetails) taskDetails_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -675,38 +813,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2.MigrationTask)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.MigrationTask other = (com.google.cloud.bigquery.migration.v2.MigrationTask) obj; + com.google.cloud.bigquery.migration.v2.MigrationTask other = + (com.google.cloud.bigquery.migration.v2.MigrationTask) obj; - if (!getId() - .equals(other.getId())) return false; - if (!getType() - .equals(other.getType())) return false; + if (!getId().equals(other.getId())) return false; + if (!getType().equals(other.getType())) return false; if (state_ != other.state_) return false; if (hasProcessingError() != other.hasProcessingError()) return false; if (hasProcessingError()) { - if (!getProcessingError() - .equals(other.getProcessingError())) return false; + if (!getProcessingError().equals(other.getProcessingError())) 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 (hasLastUpdateTime() != other.hasLastUpdateTime()) return false; if (hasLastUpdateTime()) { - if (!getLastUpdateTime() - .equals(other.getLastUpdateTime())) return false; + if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false; } if (!getTaskDetailsCase().equals(other.getTaskDetailsCase())) return false; switch (taskDetailsCase_) { case 14: - if (!getTranslationConfigDetails() - .equals(other.getTranslationConfigDetails())) return false; + if (!getTranslationConfigDetails().equals(other.getTranslationConfigDetails())) + return false; break; case 0: default: @@ -754,96 +888,103 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.MigrationTask parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.MigrationTask parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.MigrationTask parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.MigrationTask parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.MigrationTask parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.MigrationTask parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.MigrationTask parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.MigrationTask parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.MigrationTask parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.MigrationTask parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.MigrationTask parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.MigrationTask parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.MigrationTask parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.MigrationTask parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.MigrationTask prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 single task for a migration which has details about the configuration of
    * the task.
@@ -851,33 +992,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.migration.v2.MigrationTask}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.MigrationTask)
       com.google.cloud.bigquery.migration.v2.MigrationTaskOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2_MigrationTask_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto
+          .internal_static_google_cloud_bigquery_migration_v2_MigrationTask_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2_MigrationTask_fieldAccessorTable
+      return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto
+          .internal_static_google_cloud_bigquery_migration_v2_MigrationTask_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.migration.v2.MigrationTask.class, com.google.cloud.bigquery.migration.v2.MigrationTask.Builder.class);
+              com.google.cloud.bigquery.migration.v2.MigrationTask.class,
+              com.google.cloud.bigquery.migration.v2.MigrationTask.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.migration.v2.MigrationTask.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -909,9 +1049,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2_MigrationTask_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto
+          .internal_static_google_cloud_bigquery_migration_v2_MigrationTask_descriptor;
     }
 
     @java.lang.Override
@@ -930,8 +1070,11 @@ public com.google.cloud.bigquery.migration.v2.MigrationTask build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.migration.v2.MigrationTask buildPartial() {
-      com.google.cloud.bigquery.migration.v2.MigrationTask result = new com.google.cloud.bigquery.migration.v2.MigrationTask(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.migration.v2.MigrationTask result =
+          new com.google.cloud.bigquery.migration.v2.MigrationTask(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -949,27 +1092,22 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.MigrationTask
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.processingError_ = processingErrorBuilder_ == null
-            ? processingError_
-            : processingErrorBuilder_.build();
+        result.processingError_ =
+            processingErrorBuilder_ == null ? processingError_ : processingErrorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.lastUpdateTime_ = lastUpdateTimeBuilder_ == null
-            ? lastUpdateTime_
-            : lastUpdateTimeBuilder_.build();
+        result.lastUpdateTime_ =
+            lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build();
       }
     }
 
     private void buildPartialOneofs(com.google.cloud.bigquery.migration.v2.MigrationTask result) {
       result.taskDetailsCase_ = taskDetailsCase_;
       result.taskDetails_ = this.taskDetails_;
-      if (taskDetailsCase_ == 14 &&
-          translationConfigDetailsBuilder_ != null) {
+      if (taskDetailsCase_ == 14 && translationConfigDetailsBuilder_ != null) {
         result.taskDetails_ = translationConfigDetailsBuilder_.build();
       }
     }
@@ -978,38 +1116,39 @@ private void buildPartialOneofs(com.google.cloud.bigquery.migration.v2.Migration
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.migration.v2.MigrationTask) {
-        return mergeFrom((com.google.cloud.bigquery.migration.v2.MigrationTask)other);
+        return mergeFrom((com.google.cloud.bigquery.migration.v2.MigrationTask) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1017,7 +1156,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.MigrationTask other) {
-      if (other == com.google.cloud.bigquery.migration.v2.MigrationTask.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.migration.v2.MigrationTask.getDefaultInstance())
+        return this;
       if (!other.getId().isEmpty()) {
         id_ = other.id_;
         bitField0_ |= 0x00000002;
@@ -1041,13 +1181,15 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.MigrationTask ot
         mergeLastUpdateTime(other.getLastUpdateTime());
       }
       switch (other.getTaskDetailsCase()) {
-        case TRANSLATION_CONFIG_DETAILS: {
-          mergeTranslationConfigDetails(other.getTranslationConfigDetails());
-          break;
-        }
-        case TASKDETAILS_NOT_SET: {
-          break;
-        }
+        case TRANSLATION_CONFIG_DETAILS:
+          {
+            mergeTranslationConfigDetails(other.getTranslationConfigDetails());
+            break;
+          }
+        case TASKDETAILS_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1075,55 +1217,56 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              id_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 10
-            case 18: {
-              type_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 18
-            case 32: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 42: {
-              input.readMessage(
-                  getProcessingErrorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getLastUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 58
-            case 114: {
-              input.readMessage(
-                  getTranslationConfigDetailsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              taskDetailsCase_ = 14;
-              break;
-            } // case 114
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                id_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 10
+            case 18:
+              {
+                type_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 18
+            case 32:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 42:
+              {
+                input.readMessage(getProcessingErrorFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getLastUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 58
+            case 114:
+              {
+                input.readMessage(
+                    getTranslationConfigDetailsFieldBuilder().getBuilder(), extensionRegistry);
+                taskDetailsCase_ = 14;
+                break;
+              } // case 114
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1133,12 +1276,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int taskDetailsCase_ = 0;
     private java.lang.Object taskDetails_;
-    public TaskDetailsCase
-        getTaskDetailsCase() {
-      return TaskDetailsCase.forNumber(
-          taskDetailsCase_);
+
+    public TaskDetailsCase getTaskDetailsCase() {
+      return TaskDetailsCase.forNumber(taskDetailsCase_);
     }
 
     public Builder clearTaskDetails() {
@@ -1151,13 +1294,21 @@ public Builder clearTaskDetails() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.migration.v2.TranslationConfigDetails, com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.Builder, com.google.cloud.bigquery.migration.v2.TranslationConfigDetailsOrBuilder> translationConfigDetailsBuilder_;
+            com.google.cloud.bigquery.migration.v2.TranslationConfigDetails,
+            com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.Builder,
+            com.google.cloud.bigquery.migration.v2.TranslationConfigDetailsOrBuilder>
+        translationConfigDetailsBuilder_;
     /**
+     *
+     *
      * 
      * Task configuration for Batch SQL Translation.
      * 
* - * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * + * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * + * * @return Whether the translationConfigDetails field is set. */ @java.lang.Override @@ -1165,15 +1316,21 @@ public boolean hasTranslationConfigDetails() { return taskDetailsCase_ == 14; } /** + * + * *
      * Task configuration for Batch SQL Translation.
      * 
* - * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * + * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * + * * @return The translationConfigDetails. */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.TranslationConfigDetails getTranslationConfigDetails() { + public com.google.cloud.bigquery.migration.v2.TranslationConfigDetails + getTranslationConfigDetails() { if (translationConfigDetailsBuilder_ == null) { if (taskDetailsCase_ == 14) { return (com.google.cloud.bigquery.migration.v2.TranslationConfigDetails) taskDetails_; @@ -1187,13 +1344,18 @@ public com.google.cloud.bigquery.migration.v2.TranslationConfigDetails getTransl } } /** + * + * *
      * Task configuration for Batch SQL Translation.
      * 
* - * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * + * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * */ - public Builder setTranslationConfigDetails(com.google.cloud.bigquery.migration.v2.TranslationConfigDetails value) { + public Builder setTranslationConfigDetails( + com.google.cloud.bigquery.migration.v2.TranslationConfigDetails value) { if (translationConfigDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1207,11 +1369,15 @@ public Builder setTranslationConfigDetails(com.google.cloud.bigquery.migration.v return this; } /** + * + * *
      * Task configuration for Batch SQL Translation.
      * 
* - * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * + * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * */ public Builder setTranslationConfigDetails( com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.Builder builderForValue) { @@ -1225,18 +1391,29 @@ public Builder setTranslationConfigDetails( return this; } /** + * + * *
      * Task configuration for Batch SQL Translation.
      * 
* - * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * + * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * */ - public Builder mergeTranslationConfigDetails(com.google.cloud.bigquery.migration.v2.TranslationConfigDetails value) { + public Builder mergeTranslationConfigDetails( + com.google.cloud.bigquery.migration.v2.TranslationConfigDetails value) { if (translationConfigDetailsBuilder_ == null) { - if (taskDetailsCase_ == 14 && - taskDetails_ != com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.getDefaultInstance()) { - taskDetails_ = com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.newBuilder((com.google.cloud.bigquery.migration.v2.TranslationConfigDetails) taskDetails_) - .mergeFrom(value).buildPartial(); + if (taskDetailsCase_ == 14 + && taskDetails_ + != com.google.cloud.bigquery.migration.v2.TranslationConfigDetails + .getDefaultInstance()) { + taskDetails_ = + com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.newBuilder( + (com.google.cloud.bigquery.migration.v2.TranslationConfigDetails) + taskDetails_) + .mergeFrom(value) + .buildPartial(); } else { taskDetails_ = value; } @@ -1252,11 +1429,15 @@ public Builder mergeTranslationConfigDetails(com.google.cloud.bigquery.migration return this; } /** + * + * *
      * Task configuration for Batch SQL Translation.
      * 
* - * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * + * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * */ public Builder clearTranslationConfigDetails() { if (translationConfigDetailsBuilder_ == null) { @@ -1275,24 +1456,34 @@ public Builder clearTranslationConfigDetails() { return this; } /** + * + * *
      * Task configuration for Batch SQL Translation.
      * 
* - * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * + * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * */ - public com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.Builder getTranslationConfigDetailsBuilder() { + public com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.Builder + getTranslationConfigDetailsBuilder() { return getTranslationConfigDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Task configuration for Batch SQL Translation.
      * 
* - * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * + * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.TranslationConfigDetailsOrBuilder getTranslationConfigDetailsOrBuilder() { + public com.google.cloud.bigquery.migration.v2.TranslationConfigDetailsOrBuilder + getTranslationConfigDetailsOrBuilder() { if ((taskDetailsCase_ == 14) && (translationConfigDetailsBuilder_ != null)) { return translationConfigDetailsBuilder_.getMessageOrBuilder(); } else { @@ -1303,21 +1494,31 @@ public com.google.cloud.bigquery.migration.v2.TranslationConfigDetailsOrBuilder } } /** + * + * *
      * Task configuration for Batch SQL Translation.
      * 
* - * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * + * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.TranslationConfigDetails, com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.Builder, com.google.cloud.bigquery.migration.v2.TranslationConfigDetailsOrBuilder> + com.google.cloud.bigquery.migration.v2.TranslationConfigDetails, + com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.Builder, + com.google.cloud.bigquery.migration.v2.TranslationConfigDetailsOrBuilder> getTranslationConfigDetailsFieldBuilder() { if (translationConfigDetailsBuilder_ == null) { if (!(taskDetailsCase_ == 14)) { - taskDetails_ = com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.getDefaultInstance(); + taskDetails_ = + com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.getDefaultInstance(); } - translationConfigDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.TranslationConfigDetails, com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.Builder, com.google.cloud.bigquery.migration.v2.TranslationConfigDetailsOrBuilder>( + translationConfigDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.TranslationConfigDetails, + com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.Builder, + com.google.cloud.bigquery.migration.v2.TranslationConfigDetailsOrBuilder>( (com.google.cloud.bigquery.migration.v2.TranslationConfigDetails) taskDetails_, getParentForChildren(), isClean()); @@ -1330,19 +1531,23 @@ public com.google.cloud.bigquery.migration.v2.TranslationConfigDetailsOrBuilder private java.lang.Object id_ = ""; /** + * + * *
      * Output only. Immutable. The unique identifier for the migration task. The
      * ID is server-generated.
      * 
* - * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -1351,21 +1556,24 @@ public java.lang.String getId() { } } /** + * + * *
      * Output only. Immutable. The unique identifier for the migration task. The
      * ID is server-generated.
      * 
* - * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for id. */ - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -1373,30 +1581,41 @@ public java.lang.String getId() { } } /** + * + * *
      * Output only. Immutable. The unique identifier for the migration task. The
      * ID is server-generated.
      * 
* - * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } id_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Output only. Immutable. The unique identifier for the migration task. The
      * ID is server-generated.
      * 
* - * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return This builder for chaining. */ public Builder clearId() { @@ -1406,18 +1625,24 @@ public Builder clearId() { return this; } /** + * + * *
      * Output only. Immutable. The unique identifier for the migration task. The
      * ID is server-generated.
      * 
* - * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000002; @@ -1427,6 +1652,8 @@ public Builder setIdBytes( private java.lang.Object type_ = ""; /** + * + * *
      * The type of the task. This must be one of the supported task types:
      * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ,
@@ -1437,13 +1664,13 @@ public Builder setIdBytes(
      * 
* * string type = 2; + * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -1452,6 +1679,8 @@ public java.lang.String getType() { } } /** + * + * *
      * The type of the task. This must be one of the supported task types:
      * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ,
@@ -1462,15 +1691,14 @@ public java.lang.String getType() {
      * 
* * string type = 2; + * * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -1478,6 +1706,8 @@ public java.lang.String getType() { } } /** + * + * *
      * The type of the task. This must be one of the supported task types:
      * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ,
@@ -1488,18 +1718,22 @@ public java.lang.String getType() {
      * 
* * string type = 2; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } type_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The type of the task. This must be one of the supported task types:
      * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ,
@@ -1510,6 +1744,7 @@ public Builder setType(
      * 
* * string type = 2; + * * @return This builder for chaining. */ public Builder clearType() { @@ -1519,6 +1754,8 @@ public Builder clearType() { return this; } /** + * + * *
      * The type of the task. This must be one of the supported task types:
      * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ,
@@ -1529,12 +1766,14 @@ public Builder clearType() {
      * 
* * string type = 2; + * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); type_ = value; bitField0_ |= 0x00000004; @@ -1544,22 +1783,33 @@ public Builder setTypeBytes( private int state_ = 0; /** + * + * *
      * Output only. The current state of the task.
      * 
* - * .google.cloud.bigquery.migration.v2.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current state of the task.
      * 
* - * .google.cloud.bigquery.migration.v2.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1570,24 +1820,37 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. The current state of the task.
      * 
* - * .google.cloud.bigquery.migration.v2.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.MigrationTask.State getState() { - com.google.cloud.bigquery.migration.v2.MigrationTask.State result = com.google.cloud.bigquery.migration.v2.MigrationTask.State.forNumber(state_); - return result == null ? com.google.cloud.bigquery.migration.v2.MigrationTask.State.UNRECOGNIZED : result; + com.google.cloud.bigquery.migration.v2.MigrationTask.State result = + com.google.cloud.bigquery.migration.v2.MigrationTask.State.forNumber(state_); + return result == null + ? com.google.cloud.bigquery.migration.v2.MigrationTask.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The current state of the task.
      * 
* - * .google.cloud.bigquery.migration.v2.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -1601,11 +1864,16 @@ public Builder setState(com.google.cloud.bigquery.migration.v2.MigrationTask.Sta return this; } /** + * + * *
      * Output only. The current state of the task.
      * 
* - * .google.cloud.bigquery.migration.v2.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -1617,42 +1885,61 @@ public Builder clearState() { private com.google.rpc.ErrorInfo processingError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.ErrorInfo, com.google.rpc.ErrorInfo.Builder, com.google.rpc.ErrorInfoOrBuilder> processingErrorBuilder_; + com.google.rpc.ErrorInfo, + com.google.rpc.ErrorInfo.Builder, + com.google.rpc.ErrorInfoOrBuilder> + processingErrorBuilder_; /** + * + * *
      * Output only. An explanation that may be populated when the task is in
      * FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the processingError field is set. */ public boolean hasProcessingError() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Output only. An explanation that may be populated when the task is in
      * FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The processingError. */ public com.google.rpc.ErrorInfo getProcessingError() { if (processingErrorBuilder_ == null) { - return processingError_ == null ? com.google.rpc.ErrorInfo.getDefaultInstance() : processingError_; + return processingError_ == null + ? com.google.rpc.ErrorInfo.getDefaultInstance() + : processingError_; } else { return processingErrorBuilder_.getMessage(); } } /** + * + * *
      * Output only. An explanation that may be populated when the task is in
      * FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setProcessingError(com.google.rpc.ErrorInfo value) { if (processingErrorBuilder_ == null) { @@ -1668,15 +1955,18 @@ public Builder setProcessingError(com.google.rpc.ErrorInfo value) { return this; } /** + * + * *
      * Output only. An explanation that may be populated when the task is in
      * FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setProcessingError( - com.google.rpc.ErrorInfo.Builder builderForValue) { + public Builder setProcessingError(com.google.rpc.ErrorInfo.Builder builderForValue) { if (processingErrorBuilder_ == null) { processingError_ = builderForValue.build(); } else { @@ -1687,18 +1977,22 @@ public Builder setProcessingError( return this; } /** + * + * *
      * Output only. An explanation that may be populated when the task is in
      * FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeProcessingError(com.google.rpc.ErrorInfo value) { if (processingErrorBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - processingError_ != null && - processingError_ != com.google.rpc.ErrorInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && processingError_ != null + && processingError_ != com.google.rpc.ErrorInfo.getDefaultInstance()) { getProcessingErrorBuilder().mergeFrom(value); } else { processingError_ = value; @@ -1711,12 +2005,16 @@ public Builder mergeProcessingError(com.google.rpc.ErrorInfo value) { return this; } /** + * + * *
      * Output only. An explanation that may be populated when the task is in
      * FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearProcessingError() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1729,12 +2027,16 @@ public Builder clearProcessingError() { return this; } /** + * + * *
      * Output only. An explanation that may be populated when the task is in
      * FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.rpc.ErrorInfo.Builder getProcessingErrorBuilder() { bitField0_ |= 0x00000010; @@ -1742,38 +2044,50 @@ public com.google.rpc.ErrorInfo.Builder getProcessingErrorBuilder() { return getProcessingErrorFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. An explanation that may be populated when the task is in
      * FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.rpc.ErrorInfoOrBuilder getProcessingErrorOrBuilder() { if (processingErrorBuilder_ != null) { return processingErrorBuilder_.getMessageOrBuilder(); } else { - return processingError_ == null ? - com.google.rpc.ErrorInfo.getDefaultInstance() : processingError_; + return processingError_ == null + ? com.google.rpc.ErrorInfo.getDefaultInstance() + : processingError_; } } /** + * + * *
      * Output only. An explanation that may be populated when the task is in
      * FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.ErrorInfo, com.google.rpc.ErrorInfo.Builder, com.google.rpc.ErrorInfoOrBuilder> + com.google.rpc.ErrorInfo, + com.google.rpc.ErrorInfo.Builder, + com.google.rpc.ErrorInfoOrBuilder> getProcessingErrorFieldBuilder() { if (processingErrorBuilder_ == null) { - processingErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.ErrorInfo, com.google.rpc.ErrorInfo.Builder, com.google.rpc.ErrorInfoOrBuilder>( - getProcessingError(), - getParentForChildren(), - isClean()); + processingErrorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.ErrorInfo, + com.google.rpc.ErrorInfo.Builder, + com.google.rpc.ErrorInfoOrBuilder>( + getProcessingError(), getParentForChildren(), isClean()); processingError_ = null; } return processingErrorBuilder_; @@ -1781,34 +2095,47 @@ public com.google.rpc.ErrorInfoOrBuilder getProcessingErrorOrBuilder() { 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_; /** + * + * *
      * Time when the task was created.
      * 
* * .google.protobuf.Timestamp create_time = 6; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Time when the task was created.
      * 
* * .google.protobuf.Timestamp create_time = 6; + * * @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(); } } /** + * + * *
      * Time when the task was created.
      * 
@@ -1829,14 +2156,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the task was created.
      * 
* * .google.protobuf.Timestamp create_time = 6; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1847,6 +2175,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Time when the task was created.
      * 
@@ -1855,9 +2185,9 @@ public Builder setCreateTime( */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1870,6 +2200,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the task was created.
      * 
@@ -1887,6 +2219,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Time when the task was created.
      * 
@@ -1899,6 +2233,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the task was created.
      * 
@@ -1909,11 +2245,14 @@ 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_; } } /** + * + * *
      * Time when the task was created.
      * 
@@ -1921,14 +2260,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 6; */ 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_; @@ -1936,34 +2278,47 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp lastUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastUpdateTimeBuilder_; /** + * + * *
      * Time when the task was last updated.
      * 
* * .google.protobuf.Timestamp last_update_time = 7; + * * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Time when the task was last updated.
      * 
* * .google.protobuf.Timestamp last_update_time = 7; + * * @return The lastUpdateTime. */ public com.google.protobuf.Timestamp getLastUpdateTime() { if (lastUpdateTimeBuilder_ == null) { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } else { return lastUpdateTimeBuilder_.getMessage(); } } /** + * + * *
      * Time when the task was last updated.
      * 
@@ -1984,14 +2339,15 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the task was last updated.
      * 
* * .google.protobuf.Timestamp last_update_time = 7; */ - public Builder setLastUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); } else { @@ -2002,6 +2358,8 @@ public Builder setLastUpdateTime( return this; } /** + * + * *
      * Time when the task was last updated.
      * 
@@ -2010,9 +2368,9 @@ public Builder setLastUpdateTime( */ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - lastUpdateTime_ != null && - lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && lastUpdateTime_ != null + && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastUpdateTimeBuilder().mergeFrom(value); } else { lastUpdateTime_ = value; @@ -2025,6 +2383,8 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the task was last updated.
      * 
@@ -2042,6 +2402,8 @@ public Builder clearLastUpdateTime() { return this; } /** + * + * *
      * Time when the task was last updated.
      * 
@@ -2054,6 +2416,8 @@ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { return getLastUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the task was last updated.
      * 
@@ -2064,11 +2428,14 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { if (lastUpdateTimeBuilder_ != null) { return lastUpdateTimeBuilder_.getMessageOrBuilder(); } else { - return lastUpdateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } } /** + * + * *
      * Time when the task was last updated.
      * 
@@ -2076,21 +2443,24 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { * .google.protobuf.Timestamp last_update_time = 7; */ 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> getLastUpdateTimeFieldBuilder() { if (lastUpdateTimeBuilder_ == null) { - lastUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getLastUpdateTime(), - getParentForChildren(), - isClean()); + lastUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastUpdateTime(), getParentForChildren(), isClean()); lastUpdateTime_ = null; } return lastUpdateTimeBuilder_; } + @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); } @@ -2100,12 +2470,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.MigrationTask) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.MigrationTask) private static final com.google.cloud.bigquery.migration.v2.MigrationTask DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.MigrationTask(); } @@ -2114,27 +2484,27 @@ public static com.google.cloud.bigquery.migration.v2.MigrationTask getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MigrationTask parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MigrationTask parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2149,6 +2519,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.MigrationTask getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskOrBuilder.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskOrBuilder.java index 164608e..bd85ca8 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskOrBuilder.java @@ -1,62 +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/bigquery/migration/v2/migration_entities.proto package com.google.cloud.bigquery.migration.v2; -public interface MigrationTaskOrBuilder extends +public interface MigrationTaskOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.MigrationTask) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Task configuration for Batch SQL Translation.
    * 
* - * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * + * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * + * * @return Whether the translationConfigDetails field is set. */ boolean hasTranslationConfigDetails(); /** + * + * *
    * Task configuration for Batch SQL Translation.
    * 
* - * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * + * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * + * * @return The translationConfigDetails. */ com.google.cloud.bigquery.migration.v2.TranslationConfigDetails getTranslationConfigDetails(); /** + * + * *
    * Task configuration for Batch SQL Translation.
    * 
* - * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * + * .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * */ - com.google.cloud.bigquery.migration.v2.TranslationConfigDetailsOrBuilder getTranslationConfigDetailsOrBuilder(); + com.google.cloud.bigquery.migration.v2.TranslationConfigDetailsOrBuilder + getTranslationConfigDetailsOrBuilder(); /** + * + * *
    * Output only. Immutable. The unique identifier for the migration task. The
    * ID is server-generated.
    * 
* - * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * Output only. Immutable. The unique identifier for the migration task. The
    * ID is server-generated.
    * 
* - * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * The type of the task. This must be one of the supported task types:
    * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ,
@@ -67,10 +109,13 @@ public interface MigrationTaskOrBuilder extends
    * 
* * string type = 2; + * * @return The type. */ java.lang.String getType(); /** + * + * *
    * The type of the task. This must be one of the supported task types:
    * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ,
@@ -81,79 +126,108 @@ public interface MigrationTaskOrBuilder extends
    * 
* * string type = 2; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
    * Output only. The current state of the task.
    * 
* - * .google.cloud.bigquery.migration.v2.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current state of the task.
    * 
* - * .google.cloud.bigquery.migration.v2.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.bigquery.migration.v2.MigrationTask.State getState(); /** + * + * *
    * Output only. An explanation that may be populated when the task is in
    * FAILED state.
    * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the processingError field is set. */ boolean hasProcessingError(); /** + * + * *
    * Output only. An explanation that may be populated when the task is in
    * FAILED state.
    * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The processingError. */ com.google.rpc.ErrorInfo getProcessingError(); /** + * + * *
    * Output only. An explanation that may be populated when the task is in
    * FAILED state.
    * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.rpc.ErrorInfoOrBuilder getProcessingErrorOrBuilder(); /** + * + * *
    * Time when the task was created.
    * 
* * .google.protobuf.Timestamp create_time = 6; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Time when the task was created.
    * 
* * .google.protobuf.Timestamp create_time = 6; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Time when the task was created.
    * 
@@ -163,24 +237,32 @@ public interface MigrationTaskOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Time when the task was last updated.
    * 
* * .google.protobuf.Timestamp last_update_time = 7; + * * @return Whether the lastUpdateTime field is set. */ boolean hasLastUpdateTime(); /** + * + * *
    * Time when the task was last updated.
    * 
* * .google.protobuf.Timestamp last_update_time = 7; + * * @return The lastUpdateTime. */ com.google.protobuf.Timestamp getLastUpdateTime(); /** + * + * *
    * Time when the task was last updated.
    * 
diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflow.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflow.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflow.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflow.java index 27af260..558e890 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflow.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflow.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_entities.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * A migration workflow which specifies what needs to be done for an EDW
  * migration.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.bigquery.migration.v2.MigrationWorkflow}
  */
-public final class MigrationWorkflow extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MigrationWorkflow extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.MigrationWorkflow)
     MigrationWorkflowOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MigrationWorkflow.newBuilder() to construct.
   private MigrationWorkflow(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private MigrationWorkflow() {
     name_ = "";
     displayName_ = "";
@@ -28,51 +46,54 @@ private MigrationWorkflow() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MigrationWorkflow();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2_MigrationWorkflow_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto
+        .internal_static_google_cloud_bigquery_migration_v2_MigrationWorkflow_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 internalGetTasks();
       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.bigquery.migration.v2.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2_MigrationWorkflow_fieldAccessorTable
+    return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto
+        .internal_static_google_cloud_bigquery_migration_v2_MigrationWorkflow_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.migration.v2.MigrationWorkflow.class, com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder.class);
+            com.google.cloud.bigquery.migration.v2.MigrationWorkflow.class,
+            com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Possible migration workflow states.
    * 
* * Protobuf enum {@code google.cloud.bigquery.migration.v2.MigrationWorkflow.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Workflow state is unspecified.
      * 
@@ -81,6 +102,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Workflow is in draft status, i.e. tasks are not yet eligible for
      * execution.
@@ -90,6 +113,8 @@ public enum State
      */
     DRAFT(1),
     /**
+     *
+     *
      * 
      * Workflow is running (i.e. tasks are eligible for execution).
      * 
@@ -98,6 +123,8 @@ public enum State */ RUNNING(2), /** + * + * *
      * Workflow is paused. Tasks currently in progress may continue, but no
      * further tasks will be scheduled.
@@ -107,6 +134,8 @@ public enum State
      */
     PAUSED(3),
     /**
+     *
+     *
      * 
      * Workflow is complete. There should not be any task in a non-terminal
      * state, but if they are (e.g. forced termination), they will not be
@@ -120,6 +149,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Workflow state is unspecified.
      * 
@@ -128,6 +159,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Workflow is in draft status, i.e. tasks are not yet eligible for
      * execution.
@@ -137,6 +170,8 @@ public enum State
      */
     public static final int DRAFT_VALUE = 1;
     /**
+     *
+     *
      * 
      * Workflow is running (i.e. tasks are eligible for execution).
      * 
@@ -145,6 +180,8 @@ public enum State */ public static final int RUNNING_VALUE = 2; /** + * + * *
      * Workflow is paused. Tasks currently in progress may continue, but no
      * further tasks will be scheduled.
@@ -154,6 +191,8 @@ public enum State
      */
     public static final int PAUSED_VALUE = 3;
     /**
+     *
+     *
      * 
      * Workflow is complete. There should not be any task in a non-terminal
      * state, but if they are (e.g. forced termination), they will not be
@@ -164,7 +203,6 @@ public enum State
      */
     public static final int COMPLETED_VALUE = 4;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -189,51 +227,55 @@ 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 RUNNING;
-        case 3: return PAUSED;
-        case 4: return COMPLETED;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return DRAFT;
+        case 2:
+          return RUNNING;
+        case 3:
+          return PAUSED;
+        case 4:
+          return COMPLETED;
+        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() {
-      return com.google.cloud.bigquery.migration.v2.MigrationWorkflow.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.bigquery.migration.v2.MigrationWorkflow.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;
@@ -251,16 +293,22 @@ private State(int value) {
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Output only. Immutable. The unique identifier for the migration workflow.
    * The ID is server-generated.
    * Example: `projects/123/locations/us/workflows/345`
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The name. */ @java.lang.Override @@ -269,31 +317,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. Immutable. The unique identifier for the migration workflow.
    * The ID is server-generated.
    * Example: `projects/123/locations/us/workflows/345`
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @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 { @@ -302,15 +352,19 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * The display name of the workflow. This can be set to give a workflow
    * a descriptive name. There is no guarantee or enforcement of uniqueness.
    * 
* * string display_name = 6; + * * @return The displayName. */ @java.lang.Override @@ -319,30 +373,30 @@ 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 display name of the workflow. This can be set to give a workflow
    * a descriptive name. There is no guarantee or enforcement of uniqueness.
    * 
* * 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 { @@ -351,32 +405,42 @@ public java.lang.String getDisplayName() { } public static final int TASKS_FIELD_NUMBER = 2; + private static final class TasksDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.bigquery.migration.v2.MigrationTask> defaultEntry = + java.lang.String, com.google.cloud.bigquery.migration.v2.MigrationTask> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2_MigrationWorkflow_TasksEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.bigquery.migration.v2.MigrationTask.getDefaultInstance()); + . + newDefaultInstance( + com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto + .internal_static_google_cloud_bigquery_migration_v2_MigrationWorkflow_TasksEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.bigquery.migration.v2.MigrationTask.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.bigquery.migration.v2.MigrationTask> tasks_; - private com.google.protobuf.MapField - internalGetTasks() { + java.lang.String, com.google.cloud.bigquery.migration.v2.MigrationTask> + tasks_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.bigquery.migration.v2.MigrationTask> + internalGetTasks() { if (tasks_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TasksDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(TasksDefaultEntryHolder.defaultEntry); } return tasks_; } + public int getTasksCount() { return internalGetTasks().getMap().size(); } /** + * + * *
    * The tasks in a workflow in a named map. The name (i.e. key) has no
    * meaning and is merely a convenient way to address a specific task
@@ -386,20 +450,22 @@ public int getTasksCount() {
    * map<string, .google.cloud.bigquery.migration.v2.MigrationTask> tasks = 2;
    */
   @java.lang.Override
-  public boolean containsTasks(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsTasks(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetTasks().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getTasksMap()} instead.
-   */
+  /** Use {@link #getTasksMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
-  public java.util.Map getTasks() {
+  public java.util.Map
+      getTasks() {
     return getTasksMap();
   }
   /**
+   *
+   *
    * 
    * The tasks in a workflow in a named map. The name (i.e. key) has no
    * meaning and is merely a convenient way to address a specific task
@@ -409,10 +475,13 @@ public java.util.Mapmap<string, .google.cloud.bigquery.migration.v2.MigrationTask> tasks = 2;
    */
   @java.lang.Override
-  public java.util.Map getTasksMap() {
+  public java.util.Map
+      getTasksMap() {
     return internalGetTasks().getMap();
   }
   /**
+   *
+   *
    * 
    * The tasks in a workflow in a named map. The name (i.e. key) has no
    * meaning and is merely a convenient way to address a specific task
@@ -422,17 +491,20 @@ public java.util.Mapmap<string, .google.cloud.bigquery.migration.v2.MigrationTask> tasks = 2;
    */
   @java.lang.Override
-  public /* nullable */
-com.google.cloud.bigquery.migration.v2.MigrationTask getTasksOrDefault(
+  public /* nullable */ com.google.cloud.bigquery.migration.v2.MigrationTask getTasksOrDefault(
       java.lang.String key,
       /* nullable */
-com.google.cloud.bigquery.migration.v2.MigrationTask defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
+      com.google.cloud.bigquery.migration.v2.MigrationTask defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetTasks().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * The tasks in a workflow in a named map. The name (i.e. key) has no
    * meaning and is merely a convenient way to address a specific task
@@ -444,7 +516,9 @@ com.google.cloud.bigquery.migration.v2.MigrationTask getTasksOrDefault(
   @java.lang.Override
   public com.google.cloud.bigquery.migration.v2.MigrationTask getTasksOrThrow(
       java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetTasks().getMap();
     if (!map.containsKey(key)) {
@@ -456,37 +530,55 @@ public com.google.cloud.bigquery.migration.v2.MigrationTask getTasksOrThrow(
   public static final int STATE_FIELD_NUMBER = 3;
   private int state_ = 0;
   /**
+   *
+   *
    * 
    * Output only. That status of the workflow.
    * 
* - * .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. That status of the workflow.
    * 
* - * .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.bigquery.migration.v2.MigrationWorkflow.State getState() { - com.google.cloud.bigquery.migration.v2.MigrationWorkflow.State result = com.google.cloud.bigquery.migration.v2.MigrationWorkflow.State.forNumber(state_); - return result == null ? com.google.cloud.bigquery.migration.v2.MigrationWorkflow.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.MigrationWorkflow.State getState() { + com.google.cloud.bigquery.migration.v2.MigrationWorkflow.State result = + com.google.cloud.bigquery.migration.v2.MigrationWorkflow.State.forNumber(state_); + return result == null + ? com.google.cloud.bigquery.migration.v2.MigrationWorkflow.State.UNRECOGNIZED + : result; } public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Time when the workflow was created.
    * 
* * .google.protobuf.Timestamp create_time = 4; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -494,11 +586,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Time when the workflow was created.
    * 
* * .google.protobuf.Timestamp create_time = 4; + * * @return The createTime. */ @java.lang.Override @@ -506,6 +601,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Time when the workflow was created.
    * 
@@ -520,11 +617,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int LAST_UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp lastUpdateTime_; /** + * + * *
    * Time when the workflow was last updated.
    * 
* * .google.protobuf.Timestamp last_update_time = 5; + * * @return Whether the lastUpdateTime field is set. */ @java.lang.Override @@ -532,18 +632,25 @@ public boolean hasLastUpdateTime() { return lastUpdateTime_ != null; } /** + * + * *
    * Time when the workflow was last updated.
    * 
* * .google.protobuf.Timestamp last_update_time = 5; + * * @return The lastUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastUpdateTime() { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } /** + * + * *
    * Time when the workflow was last updated.
    * 
@@ -552,10 +659,13 @@ public com.google.protobuf.Timestamp getLastUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -567,18 +677,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetTasks(), - TasksDefaultEntryHolder.defaultEntry, - 2); - if (state_ != com.google.cloud.bigquery.migration.v2.MigrationWorkflow.State.STATE_UNSPECIFIED.getNumber()) { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetTasks(), TasksDefaultEntryHolder.defaultEntry, 2); + if (state_ + != com.google.cloud.bigquery.migration.v2.MigrationWorkflow.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, state_); } if (createTime_ != null) { @@ -602,27 +709,28 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - for (java.util.Map.Entry entry - : internalGetTasks().getMap().entrySet()) { - com.google.protobuf.MapEntry - tasks__ = TasksDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, tasks__); - } - if (state_ != com.google.cloud.bigquery.migration.v2.MigrationWorkflow.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); + for (java.util.Map.Entry + entry : internalGetTasks().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.bigquery.migration.v2.MigrationTask> + tasks__ = + TasksDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, tasks__); + } + if (state_ + != com.google.cloud.bigquery.migration.v2.MigrationWorkflow.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); } if (lastUpdateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getLastUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getLastUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, displayName_); @@ -635,29 +743,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2.MigrationWorkflow)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.MigrationWorkflow other = (com.google.cloud.bigquery.migration.v2.MigrationWorkflow) obj; + com.google.cloud.bigquery.migration.v2.MigrationWorkflow other = + (com.google.cloud.bigquery.migration.v2.MigrationWorkflow) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!internalGetTasks().equals( - other.internalGetTasks())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!internalGetTasks().equals(other.internalGetTasks())) return false; if (state_ != other.state_) 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 (hasLastUpdateTime() != other.hasLastUpdateTime()) return false; if (hasLastUpdateTime()) { - if (!getLastUpdateTime() - .equals(other.getLastUpdateTime())) return false; + if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -694,96 +798,104 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.MigrationWorkflow parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.MigrationWorkflow parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.MigrationWorkflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.MigrationWorkflow parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.MigrationWorkflow parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.MigrationWorkflow parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.MigrationWorkflow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.MigrationWorkflow parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.MigrationWorkflow parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.MigrationWorkflow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.MigrationWorkflow parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.MigrationWorkflow parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.MigrationWorkflow parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.MigrationWorkflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.MigrationWorkflow prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.MigrationWorkflow prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 migration workflow which specifies what needs to be done for an EDW
    * migration.
@@ -791,55 +903,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.migration.v2.MigrationWorkflow}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.MigrationWorkflow)
       com.google.cloud.bigquery.migration.v2.MigrationWorkflowOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2_MigrationWorkflow_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto
+          .internal_static_google_cloud_bigquery_migration_v2_MigrationWorkflow_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 2:
           return internalGetTasks();
         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 internalGetMutableTasks();
         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.bigquery.migration.v2.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2_MigrationWorkflow_fieldAccessorTable
+      return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto
+          .internal_static_google_cloud_bigquery_migration_v2_MigrationWorkflow_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.migration.v2.MigrationWorkflow.class, com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder.class);
+              com.google.cloud.bigquery.migration.v2.MigrationWorkflow.class,
+              com.google.cloud.bigquery.migration.v2.MigrationWorkflow.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.migration.v2.MigrationWorkflow.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -862,9 +971,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2_MigrationWorkflow_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto
+          .internal_static_google_cloud_bigquery_migration_v2_MigrationWorkflow_descriptor;
     }
 
     @java.lang.Override
@@ -883,8 +992,11 @@ public com.google.cloud.bigquery.migration.v2.MigrationWorkflow build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.migration.v2.MigrationWorkflow buildPartial() {
-      com.google.cloud.bigquery.migration.v2.MigrationWorkflow result = new com.google.cloud.bigquery.migration.v2.MigrationWorkflow(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.migration.v2.MigrationWorkflow result =
+          new com.google.cloud.bigquery.migration.v2.MigrationWorkflow(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -905,14 +1017,11 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.MigrationWorkf
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.lastUpdateTime_ = lastUpdateTimeBuilder_ == null
-            ? lastUpdateTime_
-            : lastUpdateTimeBuilder_.build();
+        result.lastUpdateTime_ =
+            lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build();
       }
     }
 
@@ -920,38 +1029,39 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.MigrationWorkf
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.migration.v2.MigrationWorkflow) {
-        return mergeFrom((com.google.cloud.bigquery.migration.v2.MigrationWorkflow)other);
+        return mergeFrom((com.google.cloud.bigquery.migration.v2.MigrationWorkflow) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -959,7 +1069,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.MigrationWorkflow other) {
-      if (other == com.google.cloud.bigquery.migration.v2.MigrationWorkflow.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.migration.v2.MigrationWorkflow.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -970,8 +1081,7 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.MigrationWorkflo
         bitField0_ |= 0x00000002;
         onChanged();
       }
-      internalGetMutableTasks().mergeFrom(
-          other.internalGetTasks());
+      internalGetMutableTasks().mergeFrom(other.internalGetTasks());
       bitField0_ |= 0x00000004;
       if (other.state_ != 0) {
         setStateValue(other.getStateValue());
@@ -1008,50 +1118,55 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              com.google.protobuf.MapEntry
-              tasks__ = input.readMessage(
-                  TasksDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableTasks().getMutableMap().put(
-                  tasks__.getKey(), tasks__.getValue());
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 18
-            case 24: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 24
-            case 34: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getLastUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 42
-            case 50: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.protobuf.MapEntry<
+                        java.lang.String, com.google.cloud.bigquery.migration.v2.MigrationTask>
+                    tasks__ =
+                        input.readMessage(
+                            TasksDefaultEntryHolder.defaultEntry.getParserForType(),
+                            extensionRegistry);
+                internalGetMutableTasks().getMutableMap().put(tasks__.getKey(), tasks__.getValue());
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 18
+            case 24:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 24
+            case 34:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getLastUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 42
+            case 50:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 50
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1061,24 +1176,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. Immutable. The unique identifier for the migration workflow.
      * The ID is server-generated.
      * Example: `projects/123/locations/us/workflows/345`
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @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; @@ -1087,22 +1207,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Immutable. The unique identifier for the migration workflow.
      * The ID is server-generated.
      * Example: `projects/123/locations/us/workflows/345`
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @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 { @@ -1110,32 +1233,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Immutable. The unique identifier for the migration workflow.
      * The ID is server-generated.
      * Example: `projects/123/locations/us/workflows/345`
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. Immutable. The unique identifier for the migration workflow.
      * The ID is server-generated.
      * Example: `projects/123/locations/us/workflows/345`
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -1145,19 +1279,25 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. Immutable. The unique identifier for the migration workflow.
      * The ID is server-generated.
      * Example: `projects/123/locations/us/workflows/345`
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1167,19 +1307,21 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * The display name of the workflow. This can be set to give a workflow
      * a descriptive name. There is no guarantee or enforcement of uniqueness.
      * 
* * 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; @@ -1188,21 +1330,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The display name of the workflow. This can be set to give a workflow
      * a descriptive name. There is no guarantee or enforcement of uniqueness.
      * 
* * 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 { @@ -1210,30 +1353,37 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The display name of the workflow. This can be set to give a workflow
      * a descriptive name. There is no guarantee or enforcement of uniqueness.
      * 
* * string display_name = 6; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The display name of the workflow. This can be set to give a workflow
      * a descriptive name. There is no guarantee or enforcement of uniqueness.
      * 
* * string display_name = 6; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1243,18 +1393,22 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * The display name of the workflow. This can be set to give a workflow
      * a descriptive name. There is no guarantee or enforcement of uniqueness.
      * 
* * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1263,20 +1417,23 @@ public Builder setDisplayNameBytes( } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.bigquery.migration.v2.MigrationTask> tasks_; - private com.google.protobuf.MapField + java.lang.String, com.google.cloud.bigquery.migration.v2.MigrationTask> + tasks_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.bigquery.migration.v2.MigrationTask> internalGetTasks() { if (tasks_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TasksDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(TasksDefaultEntryHolder.defaultEntry); } return tasks_; } - private com.google.protobuf.MapField + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.bigquery.migration.v2.MigrationTask> internalGetMutableTasks() { if (tasks_ == null) { - tasks_ = com.google.protobuf.MapField.newMapField( - TasksDefaultEntryHolder.defaultEntry); + tasks_ = com.google.protobuf.MapField.newMapField(TasksDefaultEntryHolder.defaultEntry); } if (!tasks_.isMutable()) { tasks_ = tasks_.copy(); @@ -1285,10 +1442,13 @@ public Builder setDisplayNameBytes( onChanged(); return tasks_; } + public int getTasksCount() { return internalGetTasks().getMap().size(); } /** + * + * *
      * The tasks in a workflow in a named map. The name (i.e. key) has no
      * meaning and is merely a convenient way to address a specific task
@@ -1298,20 +1458,22 @@ public int getTasksCount() {
      * map<string, .google.cloud.bigquery.migration.v2.MigrationTask> tasks = 2;
      */
     @java.lang.Override
-    public boolean containsTasks(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsTasks(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetTasks().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getTasksMap()} instead.
-     */
+    /** Use {@link #getTasksMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
-    public java.util.Map getTasks() {
+    public java.util.Map
+        getTasks() {
       return getTasksMap();
     }
     /**
+     *
+     *
      * 
      * The tasks in a workflow in a named map. The name (i.e. key) has no
      * meaning and is merely a convenient way to address a specific task
@@ -1321,10 +1483,13 @@ public java.util.Mapmap<string, .google.cloud.bigquery.migration.v2.MigrationTask> tasks = 2;
      */
     @java.lang.Override
-    public java.util.Map getTasksMap() {
+    public java.util.Map
+        getTasksMap() {
       return internalGetTasks().getMap();
     }
     /**
+     *
+     *
      * 
      * The tasks in a workflow in a named map. The name (i.e. key) has no
      * meaning and is merely a convenient way to address a specific task
@@ -1334,17 +1499,20 @@ public java.util.Mapmap<string, .google.cloud.bigquery.migration.v2.MigrationTask> tasks = 2;
      */
     @java.lang.Override
-    public /* nullable */
-com.google.cloud.bigquery.migration.v2.MigrationTask getTasksOrDefault(
+    public /* nullable */ com.google.cloud.bigquery.migration.v2.MigrationTask getTasksOrDefault(
         java.lang.String key,
         /* nullable */
-com.google.cloud.bigquery.migration.v2.MigrationTask defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
+        com.google.cloud.bigquery.migration.v2.MigrationTask defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetTasks().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * The tasks in a workflow in a named map. The name (i.e. key) has no
      * meaning and is merely a convenient way to address a specific task
@@ -1356,7 +1524,9 @@ com.google.cloud.bigquery.migration.v2.MigrationTask getTasksOrDefault(
     @java.lang.Override
     public com.google.cloud.bigquery.migration.v2.MigrationTask getTasksOrThrow(
         java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetTasks().getMap();
       if (!map.containsKey(key)) {
@@ -1364,13 +1534,15 @@ public com.google.cloud.bigquery.migration.v2.MigrationTask getTasksOrThrow(
       }
       return map.get(key);
     }
+
     public Builder clearTasks() {
       bitField0_ = (bitField0_ & ~0x00000004);
-      internalGetMutableTasks().getMutableMap()
-          .clear();
+      internalGetMutableTasks().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * The tasks in a workflow in a named map. The name (i.e. key) has no
      * meaning and is merely a convenient way to address a specific task
@@ -1379,16 +1551,14 @@ public Builder clearTasks() {
      *
      * map<string, .google.cloud.bigquery.migration.v2.MigrationTask> tasks = 2;
      */
-    public Builder removeTasks(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableTasks().getMutableMap()
-          .remove(key);
+    public Builder removeTasks(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableTasks().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
     public java.util.Map
         getMutableTasks() {
@@ -1396,6 +1566,8 @@ public Builder removeTasks(
       return internalGetMutableTasks().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * The tasks in a workflow in a named map. The name (i.e. key) has no
      * meaning and is merely a convenient way to address a specific task
@@ -1405,16 +1577,20 @@ public Builder removeTasks(
      * map<string, .google.cloud.bigquery.migration.v2.MigrationTask> tasks = 2;
      */
     public Builder putTasks(
-        java.lang.String key,
-        com.google.cloud.bigquery.migration.v2.MigrationTask value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableTasks().getMutableMap()
-          .put(key, value);
+        java.lang.String key, com.google.cloud.bigquery.migration.v2.MigrationTask value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableTasks().getMutableMap().put(key, value);
       bitField0_ |= 0x00000004;
       return this;
     }
     /**
+     *
+     *
      * 
      * The tasks in a workflow in a named map. The name (i.e. key) has no
      * meaning and is merely a convenient way to address a specific task
@@ -1424,31 +1600,42 @@ public Builder putTasks(
      * map<string, .google.cloud.bigquery.migration.v2.MigrationTask> tasks = 2;
      */
     public Builder putAllTasks(
-        java.util.Map values) {
-      internalGetMutableTasks().getMutableMap()
-          .putAll(values);
+        java.util.Map
+            values) {
+      internalGetMutableTasks().getMutableMap().putAll(values);
       bitField0_ |= 0x00000004;
       return this;
     }
 
     private int state_ = 0;
     /**
+     *
+     *
      * 
      * Output only. That status of the workflow.
      * 
* - * .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. That status of the workflow.
      * 
* - * .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1459,24 +1646,37 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. That status of the workflow.
      * 
* - * .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.MigrationWorkflow.State getState() { - com.google.cloud.bigquery.migration.v2.MigrationWorkflow.State result = com.google.cloud.bigquery.migration.v2.MigrationWorkflow.State.forNumber(state_); - return result == null ? com.google.cloud.bigquery.migration.v2.MigrationWorkflow.State.UNRECOGNIZED : result; + com.google.cloud.bigquery.migration.v2.MigrationWorkflow.State result = + com.google.cloud.bigquery.migration.v2.MigrationWorkflow.State.forNumber(state_); + return result == null + ? com.google.cloud.bigquery.migration.v2.MigrationWorkflow.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. That status of the workflow.
      * 
* - * .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -1490,11 +1690,16 @@ public Builder setState(com.google.cloud.bigquery.migration.v2.MigrationWorkflow return this; } /** + * + * *
      * Output only. That status of the workflow.
      * 
* - * .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -1506,34 +1711,47 @@ public Builder clearState() { 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_; /** + * + * *
      * Time when the workflow was created.
      * 
* * .google.protobuf.Timestamp create_time = 4; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Time when the workflow was created.
      * 
* * .google.protobuf.Timestamp create_time = 4; + * * @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(); } } /** + * + * *
      * Time when the workflow was created.
      * 
@@ -1554,14 +1772,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the workflow was created.
      * 
* * .google.protobuf.Timestamp create_time = 4; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1572,6 +1791,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Time when the workflow was created.
      * 
@@ -1580,9 +1801,9 @@ public Builder setCreateTime( */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1595,6 +1816,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the workflow was created.
      * 
@@ -1612,6 +1835,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Time when the workflow was created.
      * 
@@ -1624,6 +1849,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the workflow was created.
      * 
@@ -1634,11 +1861,14 @@ 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_; } } /** + * + * *
      * Time when the workflow was created.
      * 
@@ -1646,14 +1876,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> 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_; @@ -1661,34 +1894,47 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp lastUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastUpdateTimeBuilder_; /** + * + * *
      * Time when the workflow was last updated.
      * 
* * .google.protobuf.Timestamp last_update_time = 5; + * * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Time when the workflow was last updated.
      * 
* * .google.protobuf.Timestamp last_update_time = 5; + * * @return The lastUpdateTime. */ public com.google.protobuf.Timestamp getLastUpdateTime() { if (lastUpdateTimeBuilder_ == null) { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } else { return lastUpdateTimeBuilder_.getMessage(); } } /** + * + * *
      * Time when the workflow was last updated.
      * 
@@ -1709,14 +1955,15 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the workflow was last updated.
      * 
* * .google.protobuf.Timestamp last_update_time = 5; */ - public Builder setLastUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); } else { @@ -1727,6 +1974,8 @@ public Builder setLastUpdateTime( return this; } /** + * + * *
      * Time when the workflow was last updated.
      * 
@@ -1735,9 +1984,9 @@ public Builder setLastUpdateTime( */ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - lastUpdateTime_ != null && - lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && lastUpdateTime_ != null + && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastUpdateTimeBuilder().mergeFrom(value); } else { lastUpdateTime_ = value; @@ -1750,6 +1999,8 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the workflow was last updated.
      * 
@@ -1767,6 +2018,8 @@ public Builder clearLastUpdateTime() { return this; } /** + * + * *
      * Time when the workflow was last updated.
      * 
@@ -1779,6 +2032,8 @@ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { return getLastUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the workflow was last updated.
      * 
@@ -1789,11 +2044,14 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { if (lastUpdateTimeBuilder_ != null) { return lastUpdateTimeBuilder_.getMessageOrBuilder(); } else { - return lastUpdateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } } /** + * + * *
      * Time when the workflow was last updated.
      * 
@@ -1801,21 +2059,24 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { * .google.protobuf.Timestamp last_update_time = 5; */ 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> getLastUpdateTimeFieldBuilder() { if (lastUpdateTimeBuilder_ == null) { - lastUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getLastUpdateTime(), - getParentForChildren(), - isClean()); + lastUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastUpdateTime(), getParentForChildren(), isClean()); lastUpdateTime_ = null; } return lastUpdateTimeBuilder_; } + @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); } @@ -1825,12 +2086,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.MigrationWorkflow) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.MigrationWorkflow) private static final com.google.cloud.bigquery.migration.v2.MigrationWorkflow DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.MigrationWorkflow(); } @@ -1839,27 +2100,27 @@ public static com.google.cloud.bigquery.migration.v2.MigrationWorkflow getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MigrationWorkflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MigrationWorkflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1874,6 +2135,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.MigrationWorkflow getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflowName.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflowName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflowName.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflowName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflowOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflowOrBuilder.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflowOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflowOrBuilder.java index 0e8d3e5..1582775 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflowOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflowOrBuilder.java @@ -1,59 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_entities.proto package com.google.cloud.bigquery.migration.v2; -public interface MigrationWorkflowOrBuilder extends +public interface MigrationWorkflowOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.MigrationWorkflow) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Immutable. The unique identifier for the migration workflow.
    * The ID is server-generated.
    * Example: `projects/123/locations/us/workflows/345`
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Immutable. The unique identifier for the migration workflow.
    * The ID is server-generated.
    * Example: `projects/123/locations/us/workflows/345`
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The display name of the workflow. This can be set to give a workflow
    * a descriptive name. There is no guarantee or enforcement of uniqueness.
    * 
* * string display_name = 6; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * The display name of the workflow. This can be set to give a workflow
    * a descriptive name. There is no guarantee or enforcement of uniqueness.
    * 
* * string display_name = 6; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * The tasks in a workflow in a named map. The name (i.e. key) has no
    * meaning and is merely a convenient way to address a specific task
@@ -64,6 +96,8 @@ public interface MigrationWorkflowOrBuilder extends
    */
   int getTasksCount();
   /**
+   *
+   *
    * 
    * The tasks in a workflow in a named map. The name (i.e. key) has no
    * meaning and is merely a convenient way to address a specific task
@@ -72,15 +106,13 @@ public interface MigrationWorkflowOrBuilder extends
    *
    * map<string, .google.cloud.bigquery.migration.v2.MigrationTask> tasks = 2;
    */
-  boolean containsTasks(
-      java.lang.String key);
-  /**
-   * Use {@link #getTasksMap()} instead.
-   */
+  boolean containsTasks(java.lang.String key);
+  /** Use {@link #getTasksMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getTasks();
+  java.util.Map getTasks();
   /**
+   *
+   *
    * 
    * The tasks in a workflow in a named map. The name (i.e. key) has no
    * meaning and is merely a convenient way to address a specific task
@@ -90,8 +122,10 @@ boolean containsTasks(
    * map<string, .google.cloud.bigquery.migration.v2.MigrationTask> tasks = 2;
    */
   java.util.Map
-  getTasksMap();
+      getTasksMap();
   /**
+   *
+   *
    * 
    * The tasks in a workflow in a named map. The name (i.e. key) has no
    * meaning and is merely a convenient way to address a specific task
@@ -101,11 +135,13 @@ boolean containsTasks(
    * map<string, .google.cloud.bigquery.migration.v2.MigrationTask> tasks = 2;
    */
   /* nullable */
-com.google.cloud.bigquery.migration.v2.MigrationTask getTasksOrDefault(
+  com.google.cloud.bigquery.migration.v2.MigrationTask getTasksOrDefault(
       java.lang.String key,
       /* nullable */
-com.google.cloud.bigquery.migration.v2.MigrationTask defaultValue);
+      com.google.cloud.bigquery.migration.v2.MigrationTask defaultValue);
   /**
+   *
+   *
    * 
    * The tasks in a workflow in a named map. The name (i.e. key) has no
    * meaning and is merely a convenient way to address a specific task
@@ -114,47 +150,64 @@ com.google.cloud.bigquery.migration.v2.MigrationTask getTasksOrDefault(
    *
    * map<string, .google.cloud.bigquery.migration.v2.MigrationTask> tasks = 2;
    */
-  com.google.cloud.bigquery.migration.v2.MigrationTask getTasksOrThrow(
-      java.lang.String key);
+  com.google.cloud.bigquery.migration.v2.MigrationTask getTasksOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Output only. That status of the workflow.
    * 
* - * .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. That status of the workflow.
    * 
* - * .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.bigquery.migration.v2.MigrationWorkflow.State getState(); /** + * + * *
    * Time when the workflow was created.
    * 
* * .google.protobuf.Timestamp create_time = 4; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Time when the workflow was created.
    * 
* * .google.protobuf.Timestamp create_time = 4; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Time when the workflow was created.
    * 
@@ -164,24 +217,32 @@ com.google.cloud.bigquery.migration.v2.MigrationTask getTasksOrThrow( com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Time when the workflow was last updated.
    * 
* * .google.protobuf.Timestamp last_update_time = 5; + * * @return Whether the lastUpdateTime field is set. */ boolean hasLastUpdateTime(); /** + * + * *
    * Time when the workflow was last updated.
    * 
* * .google.protobuf.Timestamp last_update_time = 5; + * * @return The lastUpdateTime. */ com.google.protobuf.Timestamp getLastUpdateTime(); /** + * + * *
    * Time when the workflow was last updated.
    * 
diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MySQLDialect.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MySQLDialect.java similarity index 63% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MySQLDialect.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MySQLDialect.java index d007363..1c6f3ea 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MySQLDialect.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MySQLDialect.java @@ -1,53 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * The dialect definition for MySQL.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.MySQLDialect} */ -public final class MySQLDialect extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MySQLDialect extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.MySQLDialect) MySQLDialectOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MySQLDialect.newBuilder() to construct. private MySQLDialect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MySQLDialect() { - } + + private MySQLDialect() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MySQLDialect(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_MySQLDialect_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_MySQLDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_MySQLDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_MySQLDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.MySQLDialect.class, com.google.cloud.bigquery.migration.v2.MySQLDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.MySQLDialect.class, + com.google.cloud.bigquery.migration.v2.MySQLDialect.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -59,8 +78,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 { getUnknownFields().writeTo(output); } @@ -78,12 +96,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.bigquery.migration.v2.MySQLDialect)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.MySQLDialect other = (com.google.cloud.bigquery.migration.v2.MySQLDialect) obj; + com.google.cloud.bigquery.migration.v2.MySQLDialect other = + (com.google.cloud.bigquery.migration.v2.MySQLDialect) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -102,129 +121,135 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.MySQLDialect parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.MySQLDialect parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.MySQLDialect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.MySQLDialect parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.MySQLDialect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.MySQLDialect parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.MySQLDialect parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.MySQLDialect parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.MySQLDialect parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.MySQLDialect parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.MySQLDialect parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.MySQLDialect parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.MySQLDialect parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.MySQLDialect parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.MySQLDialect prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 dialect definition for MySQL.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.MySQLDialect} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.MySQLDialect) com.google.cloud.bigquery.migration.v2.MySQLDialectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_MySQLDialect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_MySQLDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_MySQLDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_MySQLDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.MySQLDialect.class, com.google.cloud.bigquery.migration.v2.MySQLDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.MySQLDialect.class, + com.google.cloud.bigquery.migration.v2.MySQLDialect.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2.MySQLDialect.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -232,9 +257,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_MySQLDialect_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_MySQLDialect_descriptor; } @java.lang.Override @@ -253,7 +278,8 @@ public com.google.cloud.bigquery.migration.v2.MySQLDialect build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2.MySQLDialect buildPartial() { - com.google.cloud.bigquery.migration.v2.MySQLDialect result = new com.google.cloud.bigquery.migration.v2.MySQLDialect(this); + com.google.cloud.bigquery.migration.v2.MySQLDialect result = + new com.google.cloud.bigquery.migration.v2.MySQLDialect(this); onBuilt(); return result; } @@ -262,38 +288,39 @@ public com.google.cloud.bigquery.migration.v2.MySQLDialect buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.MySQLDialect) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.MySQLDialect)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2.MySQLDialect) other); } else { super.mergeFrom(other); return this; @@ -301,7 +328,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.MySQLDialect other) { - if (other == com.google.cloud.bigquery.migration.v2.MySQLDialect.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.migration.v2.MySQLDialect.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -328,12 +356,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -343,9 +372,9 @@ public Builder mergeFrom( } // finally 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); } @@ -355,12 +384,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.MySQLDialect) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.MySQLDialect) private static final com.google.cloud.bigquery.migration.v2.MySQLDialect DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.MySQLDialect(); } @@ -369,27 +398,27 @@ public static com.google.cloud.bigquery.migration.v2.MySQLDialect getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MySQLDialect parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MySQLDialect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -404,6 +433,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.MySQLDialect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MySQLDialectOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MySQLDialectOrBuilder.java new file mode 100644 index 0000000..4d93496 --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MySQLDialectOrBuilder.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/bigquery/migration/v2/translation_config.proto + +package com.google.cloud.bigquery.migration.v2; + +public interface MySQLDialectOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.MySQLDialect) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingKey.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingKey.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingKey.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingKey.java index aea3bcc..9fa3f22 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingKey.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingKey.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * The potential components of a full name mapping that will be mapped
  * during translation in the source data warehouse.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.bigquery.migration.v2.NameMappingKey}
  */
-public final class NameMappingKey extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class NameMappingKey extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.NameMappingKey)
     NameMappingKeyOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use NameMappingKey.newBuilder() to construct.
   private NameMappingKey(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private NameMappingKey() {
     type_ = 0;
     database_ = "";
@@ -30,39 +48,43 @@ private NameMappingKey() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new NameMappingKey();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.migration.v2.TranslationConfigProto
+        .internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_fieldAccessorTable
+    return com.google.cloud.bigquery.migration.v2.TranslationConfigProto
+        .internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.migration.v2.NameMappingKey.class, com.google.cloud.bigquery.migration.v2.NameMappingKey.Builder.class);
+            com.google.cloud.bigquery.migration.v2.NameMappingKey.class,
+            com.google.cloud.bigquery.migration.v2.NameMappingKey.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The type of the object that is being mapped.
    * 
* * Protobuf enum {@code google.cloud.bigquery.migration.v2.NameMappingKey.Type} */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { + public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified name mapping type.
      * 
@@ -71,6 +93,8 @@ public enum Type */ TYPE_UNSPECIFIED(0), /** + * + * *
      * The object being mapped is a database.
      * 
@@ -79,6 +103,8 @@ public enum Type */ DATABASE(1), /** + * + * *
      * The object being mapped is a schema.
      * 
@@ -87,6 +113,8 @@ public enum Type */ SCHEMA(2), /** + * + * *
      * The object being mapped is a relation.
      * 
@@ -95,6 +123,8 @@ public enum Type */ RELATION(3), /** + * + * *
      * The object being mapped is an attribute.
      * 
@@ -103,6 +133,8 @@ public enum Type */ ATTRIBUTE(4), /** + * + * *
      * The object being mapped is a relation alias.
      * 
@@ -111,6 +143,8 @@ public enum Type */ RELATION_ALIAS(5), /** + * + * *
      * The object being mapped is a an attribute alias.
      * 
@@ -119,6 +153,8 @@ public enum Type */ ATTRIBUTE_ALIAS(6), /** + * + * *
      * The object being mapped is a function.
      * 
@@ -130,6 +166,8 @@ public enum Type ; /** + * + * *
      * Unspecified name mapping type.
      * 
@@ -138,6 +176,8 @@ public enum Type */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The object being mapped is a database.
      * 
@@ -146,6 +186,8 @@ public enum Type */ public static final int DATABASE_VALUE = 1; /** + * + * *
      * The object being mapped is a schema.
      * 
@@ -154,6 +196,8 @@ public enum Type */ public static final int SCHEMA_VALUE = 2; /** + * + * *
      * The object being mapped is a relation.
      * 
@@ -162,6 +206,8 @@ public enum Type */ public static final int RELATION_VALUE = 3; /** + * + * *
      * The object being mapped is an attribute.
      * 
@@ -170,6 +216,8 @@ public enum Type */ public static final int ATTRIBUTE_VALUE = 4; /** + * + * *
      * The object being mapped is a relation alias.
      * 
@@ -178,6 +226,8 @@ public enum Type */ public static final int RELATION_ALIAS_VALUE = 5; /** + * + * *
      * The object being mapped is a an attribute alias.
      * 
@@ -186,6 +236,8 @@ public enum Type */ public static final int ATTRIBUTE_ALIAS_VALUE = 6; /** + * + * *
      * The object being mapped is a function.
      * 
@@ -194,7 +246,6 @@ public enum Type */ public static final int FUNCTION_VALUE = 7; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -219,54 +270,61 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: return TYPE_UNSPECIFIED; - case 1: return DATABASE; - case 2: return SCHEMA; - case 3: return RELATION; - case 4: return ATTRIBUTE; - case 5: return RELATION_ALIAS; - case 6: return ATTRIBUTE_ALIAS; - case 7: return FUNCTION; - default: return null; + case 0: + return TYPE_UNSPECIFIED; + case 1: + return DATABASE; + case 2: + return SCHEMA; + case 3: + return RELATION; + case 4: + return ATTRIBUTE; + case 5: + return RELATION_ALIAS; + case 6: + return ATTRIBUTE_ALIAS; + case 7: + return FUNCTION; + 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() { - return com.google.cloud.bigquery.migration.v2.NameMappingKey.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.NameMappingKey.getDescriptor() + .getEnumTypes() + .get(0); } private static final Type[] VALUES = values(); - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -286,39 +344,54 @@ private Type(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_ = 0; /** + * + * *
    * The type of object that is being mapped.
    * 
* * .google.cloud.bigquery.migration.v2.NameMappingKey.Type type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * The type of object that is being mapped.
    * 
* * .google.cloud.bigquery.migration.v2.NameMappingKey.Type type = 1; + * * @return The type. */ - @java.lang.Override public com.google.cloud.bigquery.migration.v2.NameMappingKey.Type getType() { - com.google.cloud.bigquery.migration.v2.NameMappingKey.Type result = com.google.cloud.bigquery.migration.v2.NameMappingKey.Type.forNumber(type_); - return result == null ? com.google.cloud.bigquery.migration.v2.NameMappingKey.Type.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.NameMappingKey.Type getType() { + com.google.cloud.bigquery.migration.v2.NameMappingKey.Type result = + com.google.cloud.bigquery.migration.v2.NameMappingKey.Type.forNumber(type_); + return result == null + ? com.google.cloud.bigquery.migration.v2.NameMappingKey.Type.UNRECOGNIZED + : result; } public static final int DATABASE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object database_ = ""; /** + * + * *
    * The database name (BigQuery project ID equivalent in the source data
    * warehouse).
    * 
* * string database = 2; + * * @return The database. */ @java.lang.Override @@ -327,30 +400,30 @@ public java.lang.String getDatabase() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; } } /** + * + * *
    * The database name (BigQuery project ID equivalent in the source data
    * warehouse).
    * 
* * string database = 2; + * * @return The bytes for database. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatabaseBytes() { + public com.google.protobuf.ByteString getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); database_ = b; return b; } else { @@ -359,14 +432,18 @@ public java.lang.String getDatabase() { } public static final int SCHEMA_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object schema_ = ""; /** + * + * *
    * The schema name (BigQuery dataset equivalent in the source data warehouse).
    * 
* * string schema = 3; + * * @return The schema. */ @java.lang.Override @@ -375,29 +452,29 @@ public java.lang.String getSchema() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; } } /** + * + * *
    * The schema name (BigQuery dataset equivalent in the source data warehouse).
    * 
* * string schema = 3; + * * @return The bytes for schema. */ @java.lang.Override - public com.google.protobuf.ByteString - getSchemaBytes() { + public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schema_ = b; return b; } else { @@ -406,15 +483,19 @@ public java.lang.String getSchema() { } public static final int RELATION_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object relation_ = ""; /** + * + * *
    * The relation name (BigQuery table or view equivalent in the source data
    * warehouse).
    * 
* * string relation = 4; + * * @return The relation. */ @java.lang.Override @@ -423,30 +504,30 @@ public java.lang.String getRelation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); relation_ = s; return s; } } /** + * + * *
    * The relation name (BigQuery table or view equivalent in the source data
    * warehouse).
    * 
* * string relation = 4; + * * @return The bytes for relation. */ @java.lang.Override - public com.google.protobuf.ByteString - getRelationBytes() { + public com.google.protobuf.ByteString getRelationBytes() { java.lang.Object ref = relation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); relation_ = b; return b; } else { @@ -455,15 +536,19 @@ public java.lang.String getRelation() { } public static final int ATTRIBUTE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object attribute_ = ""; /** + * + * *
    * The attribute name (BigQuery column equivalent in the source data
    * warehouse).
    * 
* * string attribute = 5; + * * @return The attribute. */ @java.lang.Override @@ -472,30 +557,30 @@ public java.lang.String getAttribute() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attribute_ = s; return s; } } /** + * + * *
    * The attribute name (BigQuery column equivalent in the source data
    * warehouse).
    * 
* * string attribute = 5; + * * @return The bytes for attribute. */ @java.lang.Override - public com.google.protobuf.ByteString - getAttributeBytes() { + public com.google.protobuf.ByteString getAttributeBytes() { java.lang.Object ref = attribute_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); attribute_ = b; return b; } else { @@ -504,6 +589,7 @@ public java.lang.String getAttribute() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -515,9 +601,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != com.google.cloud.bigquery.migration.v2.NameMappingKey.Type.TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.cloud.bigquery.migration.v2.NameMappingKey.Type.TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { @@ -541,9 +628,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ != com.google.cloud.bigquery.migration.v2.NameMappingKey.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); + if (type_ + != com.google.cloud.bigquery.migration.v2.NameMappingKey.Type.TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, database_); @@ -565,22 +653,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2.NameMappingKey)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.NameMappingKey other = (com.google.cloud.bigquery.migration.v2.NameMappingKey) obj; + com.google.cloud.bigquery.migration.v2.NameMappingKey other = + (com.google.cloud.bigquery.migration.v2.NameMappingKey) obj; if (type_ != other.type_) return false; - if (!getDatabase() - .equals(other.getDatabase())) return false; - if (!getSchema() - .equals(other.getSchema())) return false; - if (!getRelation() - .equals(other.getRelation())) return false; - if (!getAttribute() - .equals(other.getAttribute())) return false; + if (!getDatabase().equals(other.getDatabase())) return false; + if (!getSchema().equals(other.getSchema())) return false; + if (!getRelation().equals(other.getRelation())) return false; + if (!getAttribute().equals(other.getAttribute())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -608,96 +693,104 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.NameMappingKey parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.NameMappingKey parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.NameMappingKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.NameMappingKey parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.NameMappingKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.NameMappingKey parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.NameMappingKey parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.NameMappingKey parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.NameMappingKey parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.NameMappingKey parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.NameMappingKey parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.NameMappingKey parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.NameMappingKey parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.NameMappingKey parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.NameMappingKey prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.NameMappingKey prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 potential components of a full name mapping that will be mapped
    * during translation in the source data warehouse.
@@ -705,33 +798,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.migration.v2.NameMappingKey}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.NameMappingKey)
       com.google.cloud.bigquery.migration.v2.NameMappingKeyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto
+          .internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_fieldAccessorTable
+      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto
+          .internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.migration.v2.NameMappingKey.class, com.google.cloud.bigquery.migration.v2.NameMappingKey.Builder.class);
+              com.google.cloud.bigquery.migration.v2.NameMappingKey.class,
+              com.google.cloud.bigquery.migration.v2.NameMappingKey.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.migration.v2.NameMappingKey.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -745,9 +837,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto
+          .internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_descriptor;
     }
 
     @java.lang.Override
@@ -766,8 +858,11 @@ public com.google.cloud.bigquery.migration.v2.NameMappingKey build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.migration.v2.NameMappingKey buildPartial() {
-      com.google.cloud.bigquery.migration.v2.NameMappingKey result = new com.google.cloud.bigquery.migration.v2.NameMappingKey(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.migration.v2.NameMappingKey result =
+          new com.google.cloud.bigquery.migration.v2.NameMappingKey(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -795,38 +890,39 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.NameMappingKey
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.migration.v2.NameMappingKey) {
-        return mergeFrom((com.google.cloud.bigquery.migration.v2.NameMappingKey)other);
+        return mergeFrom((com.google.cloud.bigquery.migration.v2.NameMappingKey) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -834,7 +930,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.NameMappingKey other) {
-      if (other == com.google.cloud.bigquery.migration.v2.NameMappingKey.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.migration.v2.NameMappingKey.getDefaultInstance())
+        return this;
       if (other.type_ != 0) {
         setTypeValue(other.getTypeValue());
       }
@@ -884,37 +981,43 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              type_ = input.readEnum();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              database_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              schema_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              relation_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              attribute_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                type_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                database_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                schema_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                relation_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                attribute_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -924,26 +1027,34 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private int type_ = 0;
     /**
+     *
+     *
      * 
      * The type of object that is being mapped.
      * 
* * .google.cloud.bigquery.migration.v2.NameMappingKey.Type type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * The type of object that is being mapped.
      * 
* * .google.cloud.bigquery.migration.v2.NameMappingKey.Type type = 1; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -954,24 +1065,33 @@ public Builder setTypeValue(int value) { return this; } /** + * + * *
      * The type of object that is being mapped.
      * 
* * .google.cloud.bigquery.migration.v2.NameMappingKey.Type type = 1; + * * @return The type. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.NameMappingKey.Type getType() { - com.google.cloud.bigquery.migration.v2.NameMappingKey.Type result = com.google.cloud.bigquery.migration.v2.NameMappingKey.Type.forNumber(type_); - return result == null ? com.google.cloud.bigquery.migration.v2.NameMappingKey.Type.UNRECOGNIZED : result; + com.google.cloud.bigquery.migration.v2.NameMappingKey.Type result = + com.google.cloud.bigquery.migration.v2.NameMappingKey.Type.forNumber(type_); + return result == null + ? com.google.cloud.bigquery.migration.v2.NameMappingKey.Type.UNRECOGNIZED + : result; } /** + * + * *
      * The type of object that is being mapped.
      * 
* * .google.cloud.bigquery.migration.v2.NameMappingKey.Type type = 1; + * * @param value The type to set. * @return This builder for chaining. */ @@ -985,11 +1105,14 @@ public Builder setType(com.google.cloud.bigquery.migration.v2.NameMappingKey.Typ return this; } /** + * + * *
      * The type of object that is being mapped.
      * 
* * .google.cloud.bigquery.migration.v2.NameMappingKey.Type type = 1; + * * @return This builder for chaining. */ public Builder clearType() { @@ -1001,19 +1124,21 @@ public Builder clearType() { private java.lang.Object database_ = ""; /** + * + * *
      * The database name (BigQuery project ID equivalent in the source data
      * warehouse).
      * 
* * string database = 2; + * * @return The database. */ public java.lang.String getDatabase() { java.lang.Object ref = database_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; @@ -1022,21 +1147,22 @@ public java.lang.String getDatabase() { } } /** + * + * *
      * The database name (BigQuery project ID equivalent in the source data
      * warehouse).
      * 
* * string database = 2; + * * @return The bytes for database. */ - public com.google.protobuf.ByteString - getDatabaseBytes() { + public com.google.protobuf.ByteString getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); database_ = b; return b; } else { @@ -1044,30 +1170,37 @@ public java.lang.String getDatabase() { } } /** + * + * *
      * The database name (BigQuery project ID equivalent in the source data
      * warehouse).
      * 
* * string database = 2; + * * @param value The database to set. * @return This builder for chaining. */ - public Builder setDatabase( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatabase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } database_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The database name (BigQuery project ID equivalent in the source data
      * warehouse).
      * 
* * string database = 2; + * * @return This builder for chaining. */ public Builder clearDatabase() { @@ -1077,18 +1210,22 @@ public Builder clearDatabase() { return this; } /** + * + * *
      * The database name (BigQuery project ID equivalent in the source data
      * warehouse).
      * 
* * string database = 2; + * * @param value The bytes for database to set. * @return This builder for chaining. */ - public Builder setDatabaseBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); database_ = value; bitField0_ |= 0x00000002; @@ -1098,18 +1235,20 @@ public Builder setDatabaseBytes( private java.lang.Object schema_ = ""; /** + * + * *
      * The schema name (BigQuery dataset equivalent in the source data warehouse).
      * 
* * string schema = 3; + * * @return The schema. */ public java.lang.String getSchema() { java.lang.Object ref = schema_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; @@ -1118,20 +1257,21 @@ public java.lang.String getSchema() { } } /** + * + * *
      * The schema name (BigQuery dataset equivalent in the source data warehouse).
      * 
* * string schema = 3; + * * @return The bytes for schema. */ - public com.google.protobuf.ByteString - getSchemaBytes() { + public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schema_ = b; return b; } else { @@ -1139,28 +1279,35 @@ public java.lang.String getSchema() { } } /** + * + * *
      * The schema name (BigQuery dataset equivalent in the source data warehouse).
      * 
* * string schema = 3; + * * @param value The schema to set. * @return This builder for chaining. */ - public Builder setSchema( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } schema_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The schema name (BigQuery dataset equivalent in the source data warehouse).
      * 
* * string schema = 3; + * * @return This builder for chaining. */ public Builder clearSchema() { @@ -1170,17 +1317,21 @@ public Builder clearSchema() { return this; } /** + * + * *
      * The schema name (BigQuery dataset equivalent in the source data warehouse).
      * 
* * string schema = 3; + * * @param value The bytes for schema to set. * @return This builder for chaining. */ - public Builder setSchemaBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); schema_ = value; bitField0_ |= 0x00000004; @@ -1190,19 +1341,21 @@ public Builder setSchemaBytes( private java.lang.Object relation_ = ""; /** + * + * *
      * The relation name (BigQuery table or view equivalent in the source data
      * warehouse).
      * 
* * string relation = 4; + * * @return The relation. */ public java.lang.String getRelation() { java.lang.Object ref = relation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); relation_ = s; return s; @@ -1211,21 +1364,22 @@ public java.lang.String getRelation() { } } /** + * + * *
      * The relation name (BigQuery table or view equivalent in the source data
      * warehouse).
      * 
* * string relation = 4; + * * @return The bytes for relation. */ - public com.google.protobuf.ByteString - getRelationBytes() { + public com.google.protobuf.ByteString getRelationBytes() { java.lang.Object ref = relation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); relation_ = b; return b; } else { @@ -1233,30 +1387,37 @@ public java.lang.String getRelation() { } } /** + * + * *
      * The relation name (BigQuery table or view equivalent in the source data
      * warehouse).
      * 
* * string relation = 4; + * * @param value The relation to set. * @return This builder for chaining. */ - public Builder setRelation( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRelation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } relation_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The relation name (BigQuery table or view equivalent in the source data
      * warehouse).
      * 
* * string relation = 4; + * * @return This builder for chaining. */ public Builder clearRelation() { @@ -1266,18 +1427,22 @@ public Builder clearRelation() { return this; } /** + * + * *
      * The relation name (BigQuery table or view equivalent in the source data
      * warehouse).
      * 
* * string relation = 4; + * * @param value The bytes for relation to set. * @return This builder for chaining. */ - public Builder setRelationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRelationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); relation_ = value; bitField0_ |= 0x00000008; @@ -1287,19 +1452,21 @@ public Builder setRelationBytes( private java.lang.Object attribute_ = ""; /** + * + * *
      * The attribute name (BigQuery column equivalent in the source data
      * warehouse).
      * 
* * string attribute = 5; + * * @return The attribute. */ public java.lang.String getAttribute() { java.lang.Object ref = attribute_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attribute_ = s; return s; @@ -1308,21 +1475,22 @@ public java.lang.String getAttribute() { } } /** + * + * *
      * The attribute name (BigQuery column equivalent in the source data
      * warehouse).
      * 
* * string attribute = 5; + * * @return The bytes for attribute. */ - public com.google.protobuf.ByteString - getAttributeBytes() { + public com.google.protobuf.ByteString getAttributeBytes() { java.lang.Object ref = attribute_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); attribute_ = b; return b; } else { @@ -1330,30 +1498,37 @@ public java.lang.String getAttribute() { } } /** + * + * *
      * The attribute name (BigQuery column equivalent in the source data
      * warehouse).
      * 
* * string attribute = 5; + * * @param value The attribute to set. * @return This builder for chaining. */ - public Builder setAttribute( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAttribute(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } attribute_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * The attribute name (BigQuery column equivalent in the source data
      * warehouse).
      * 
* * string attribute = 5; + * * @return This builder for chaining. */ public Builder clearAttribute() { @@ -1363,27 +1538,31 @@ public Builder clearAttribute() { return this; } /** + * + * *
      * The attribute name (BigQuery column equivalent in the source data
      * warehouse).
      * 
* * string attribute = 5; + * * @param value The bytes for attribute to set. * @return This builder for chaining. */ - public Builder setAttributeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAttributeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); attribute_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1393,12 +1572,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.NameMappingKey) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.NameMappingKey) private static final com.google.cloud.bigquery.migration.v2.NameMappingKey DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.NameMappingKey(); } @@ -1407,27 +1586,27 @@ public static com.google.cloud.bigquery.migration.v2.NameMappingKey getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NameMappingKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NameMappingKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1442,6 +1621,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.NameMappingKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingKeyOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingKeyOrBuilder.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingKeyOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingKeyOrBuilder.java index 1ebe693..aaf3835 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingKeyOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingKeyOrBuilder.java @@ -1,114 +1,156 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; -public interface NameMappingKeyOrBuilder extends +public interface NameMappingKeyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.NameMappingKey) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The type of object that is being mapped.
    * 
* * .google.cloud.bigquery.migration.v2.NameMappingKey.Type type = 1; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * The type of object that is being mapped.
    * 
* * .google.cloud.bigquery.migration.v2.NameMappingKey.Type type = 1; + * * @return The type. */ com.google.cloud.bigquery.migration.v2.NameMappingKey.Type getType(); /** + * + * *
    * The database name (BigQuery project ID equivalent in the source data
    * warehouse).
    * 
* * string database = 2; + * * @return The database. */ java.lang.String getDatabase(); /** + * + * *
    * The database name (BigQuery project ID equivalent in the source data
    * warehouse).
    * 
* * string database = 2; + * * @return The bytes for database. */ - com.google.protobuf.ByteString - getDatabaseBytes(); + com.google.protobuf.ByteString getDatabaseBytes(); /** + * + * *
    * The schema name (BigQuery dataset equivalent in the source data warehouse).
    * 
* * string schema = 3; + * * @return The schema. */ java.lang.String getSchema(); /** + * + * *
    * The schema name (BigQuery dataset equivalent in the source data warehouse).
    * 
* * string schema = 3; + * * @return The bytes for schema. */ - com.google.protobuf.ByteString - getSchemaBytes(); + com.google.protobuf.ByteString getSchemaBytes(); /** + * + * *
    * The relation name (BigQuery table or view equivalent in the source data
    * warehouse).
    * 
* * string relation = 4; + * * @return The relation. */ java.lang.String getRelation(); /** + * + * *
    * The relation name (BigQuery table or view equivalent in the source data
    * warehouse).
    * 
* * string relation = 4; + * * @return The bytes for relation. */ - com.google.protobuf.ByteString - getRelationBytes(); + com.google.protobuf.ByteString getRelationBytes(); /** + * + * *
    * The attribute name (BigQuery column equivalent in the source data
    * warehouse).
    * 
* * string attribute = 5; + * * @return The attribute. */ java.lang.String getAttribute(); /** + * + * *
    * The attribute name (BigQuery column equivalent in the source data
    * warehouse).
    * 
* * string attribute = 5; + * * @return The bytes for attribute. */ - com.google.protobuf.ByteString - getAttributeBytes(); + com.google.protobuf.ByteString getAttributeBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingValue.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingValue.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingValue.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingValue.java index 4ae02c7..5541e3e 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingValue.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingValue.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * The potential components of a full name mapping that will be mapped
  * during translation in the target data warehouse.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.bigquery.migration.v2.NameMappingValue}
  */
-public final class NameMappingValue extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class NameMappingValue extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.NameMappingValue)
     NameMappingValueOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use NameMappingValue.newBuilder() to construct.
   private NameMappingValue(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private NameMappingValue() {
     database_ = "";
     schema_ = "";
@@ -29,39 +47,44 @@ private NameMappingValue() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new NameMappingValue();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.migration.v2.TranslationConfigProto
+        .internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_fieldAccessorTable
+    return com.google.cloud.bigquery.migration.v2.TranslationConfigProto
+        .internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.migration.v2.NameMappingValue.class, com.google.cloud.bigquery.migration.v2.NameMappingValue.Builder.class);
+            com.google.cloud.bigquery.migration.v2.NameMappingValue.class,
+            com.google.cloud.bigquery.migration.v2.NameMappingValue.Builder.class);
   }
 
   public static final int DATABASE_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object database_ = "";
   /**
+   *
+   *
    * 
    * The database name (BigQuery project ID equivalent in the target data
    * warehouse).
    * 
* * string database = 1; + * * @return The database. */ @java.lang.Override @@ -70,30 +93,30 @@ public java.lang.String getDatabase() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; } } /** + * + * *
    * The database name (BigQuery project ID equivalent in the target data
    * warehouse).
    * 
* * string database = 1; + * * @return The bytes for database. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatabaseBytes() { + public com.google.protobuf.ByteString getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); database_ = b; return b; } else { @@ -102,14 +125,18 @@ public java.lang.String getDatabase() { } public static final int SCHEMA_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object schema_ = ""; /** + * + * *
    * The schema name (BigQuery dataset equivalent in the target data warehouse).
    * 
* * string schema = 2; + * * @return The schema. */ @java.lang.Override @@ -118,29 +145,29 @@ public java.lang.String getSchema() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; } } /** + * + * *
    * The schema name (BigQuery dataset equivalent in the target data warehouse).
    * 
* * string schema = 2; + * * @return The bytes for schema. */ @java.lang.Override - public com.google.protobuf.ByteString - getSchemaBytes() { + public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schema_ = b; return b; } else { @@ -149,15 +176,19 @@ public java.lang.String getSchema() { } public static final int RELATION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object relation_ = ""; /** + * + * *
    * The relation name (BigQuery table or view equivalent in the target data
    * warehouse).
    * 
* * string relation = 3; + * * @return The relation. */ @java.lang.Override @@ -166,30 +197,30 @@ public java.lang.String getRelation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); relation_ = s; return s; } } /** + * + * *
    * The relation name (BigQuery table or view equivalent in the target data
    * warehouse).
    * 
* * string relation = 3; + * * @return The bytes for relation. */ @java.lang.Override - public com.google.protobuf.ByteString - getRelationBytes() { + public com.google.protobuf.ByteString getRelationBytes() { java.lang.Object ref = relation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); relation_ = b; return b; } else { @@ -198,15 +229,19 @@ public java.lang.String getRelation() { } public static final int ATTRIBUTE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object attribute_ = ""; /** + * + * *
    * The attribute name (BigQuery column equivalent in the target data
    * warehouse).
    * 
* * string attribute = 4; + * * @return The attribute. */ @java.lang.Override @@ -215,30 +250,30 @@ public java.lang.String getAttribute() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attribute_ = s; return s; } } /** + * + * *
    * The attribute name (BigQuery column equivalent in the target data
    * warehouse).
    * 
* * string attribute = 4; + * * @return The bytes for attribute. */ @java.lang.Override - public com.google.protobuf.ByteString - getAttributeBytes() { + public com.google.protobuf.ByteString getAttributeBytes() { java.lang.Object ref = attribute_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); attribute_ = b; return b; } else { @@ -247,6 +282,7 @@ public java.lang.String getAttribute() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -258,8 +294,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_); } @@ -301,21 +336,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2.NameMappingValue)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.NameMappingValue other = (com.google.cloud.bigquery.migration.v2.NameMappingValue) obj; - - if (!getDatabase() - .equals(other.getDatabase())) return false; - if (!getSchema() - .equals(other.getSchema())) return false; - if (!getRelation() - .equals(other.getRelation())) return false; - if (!getAttribute() - .equals(other.getAttribute())) return false; + com.google.cloud.bigquery.migration.v2.NameMappingValue other = + (com.google.cloud.bigquery.migration.v2.NameMappingValue) obj; + + if (!getDatabase().equals(other.getDatabase())) return false; + if (!getSchema().equals(other.getSchema())) return false; + if (!getRelation().equals(other.getRelation())) return false; + if (!getAttribute().equals(other.getAttribute())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -341,96 +373,104 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.NameMappingValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.NameMappingValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.NameMappingValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.NameMappingValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.NameMappingValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.NameMappingValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.NameMappingValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.NameMappingValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.NameMappingValue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.NameMappingValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.NameMappingValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.NameMappingValue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.NameMappingValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.NameMappingValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.NameMappingValue prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.NameMappingValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 potential components of a full name mapping that will be mapped
    * during translation in the target data warehouse.
@@ -438,33 +478,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.migration.v2.NameMappingValue}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.NameMappingValue)
       com.google.cloud.bigquery.migration.v2.NameMappingValueOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto
+          .internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_fieldAccessorTable
+      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto
+          .internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.migration.v2.NameMappingValue.class, com.google.cloud.bigquery.migration.v2.NameMappingValue.Builder.class);
+              com.google.cloud.bigquery.migration.v2.NameMappingValue.class,
+              com.google.cloud.bigquery.migration.v2.NameMappingValue.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.migration.v2.NameMappingValue.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -477,9 +516,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto
+          .internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_descriptor;
     }
 
     @java.lang.Override
@@ -498,8 +537,11 @@ public com.google.cloud.bigquery.migration.v2.NameMappingValue build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.migration.v2.NameMappingValue buildPartial() {
-      com.google.cloud.bigquery.migration.v2.NameMappingValue result = new com.google.cloud.bigquery.migration.v2.NameMappingValue(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.migration.v2.NameMappingValue result =
+          new com.google.cloud.bigquery.migration.v2.NameMappingValue(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -524,38 +566,39 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.NameMappingVal
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.migration.v2.NameMappingValue) {
-        return mergeFrom((com.google.cloud.bigquery.migration.v2.NameMappingValue)other);
+        return mergeFrom((com.google.cloud.bigquery.migration.v2.NameMappingValue) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -563,7 +606,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.NameMappingValue other) {
-      if (other == com.google.cloud.bigquery.migration.v2.NameMappingValue.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.migration.v2.NameMappingValue.getDefaultInstance())
+        return this;
       if (!other.getDatabase().isEmpty()) {
         database_ = other.database_;
         bitField0_ |= 0x00000001;
@@ -610,32 +654,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              database_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              schema_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              relation_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              attribute_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                database_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                schema_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                relation_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                attribute_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -645,23 +694,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object database_ = "";
     /**
+     *
+     *
      * 
      * The database name (BigQuery project ID equivalent in the target data
      * warehouse).
      * 
* * string database = 1; + * * @return The database. */ public java.lang.String getDatabase() { java.lang.Object ref = database_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; @@ -670,21 +722,22 @@ public java.lang.String getDatabase() { } } /** + * + * *
      * The database name (BigQuery project ID equivalent in the target data
      * warehouse).
      * 
* * string database = 1; + * * @return The bytes for database. */ - public com.google.protobuf.ByteString - getDatabaseBytes() { + public com.google.protobuf.ByteString getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); database_ = b; return b; } else { @@ -692,30 +745,37 @@ public java.lang.String getDatabase() { } } /** + * + * *
      * The database name (BigQuery project ID equivalent in the target data
      * warehouse).
      * 
* * string database = 1; + * * @param value The database to set. * @return This builder for chaining. */ - public Builder setDatabase( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatabase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } database_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The database name (BigQuery project ID equivalent in the target data
      * warehouse).
      * 
* * string database = 1; + * * @return This builder for chaining. */ public Builder clearDatabase() { @@ -725,18 +785,22 @@ public Builder clearDatabase() { return this; } /** + * + * *
      * The database name (BigQuery project ID equivalent in the target data
      * warehouse).
      * 
* * string database = 1; + * * @param value The bytes for database to set. * @return This builder for chaining. */ - public Builder setDatabaseBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); database_ = value; bitField0_ |= 0x00000001; @@ -746,18 +810,20 @@ public Builder setDatabaseBytes( private java.lang.Object schema_ = ""; /** + * + * *
      * The schema name (BigQuery dataset equivalent in the target data warehouse).
      * 
* * string schema = 2; + * * @return The schema. */ public java.lang.String getSchema() { java.lang.Object ref = schema_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; @@ -766,20 +832,21 @@ public java.lang.String getSchema() { } } /** + * + * *
      * The schema name (BigQuery dataset equivalent in the target data warehouse).
      * 
* * string schema = 2; + * * @return The bytes for schema. */ - public com.google.protobuf.ByteString - getSchemaBytes() { + public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schema_ = b; return b; } else { @@ -787,28 +854,35 @@ public java.lang.String getSchema() { } } /** + * + * *
      * The schema name (BigQuery dataset equivalent in the target data warehouse).
      * 
* * string schema = 2; + * * @param value The schema to set. * @return This builder for chaining. */ - public Builder setSchema( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } schema_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The schema name (BigQuery dataset equivalent in the target data warehouse).
      * 
* * string schema = 2; + * * @return This builder for chaining. */ public Builder clearSchema() { @@ -818,17 +892,21 @@ public Builder clearSchema() { return this; } /** + * + * *
      * The schema name (BigQuery dataset equivalent in the target data warehouse).
      * 
* * string schema = 2; + * * @param value The bytes for schema to set. * @return This builder for chaining. */ - public Builder setSchemaBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); schema_ = value; bitField0_ |= 0x00000002; @@ -838,19 +916,21 @@ public Builder setSchemaBytes( private java.lang.Object relation_ = ""; /** + * + * *
      * The relation name (BigQuery table or view equivalent in the target data
      * warehouse).
      * 
* * string relation = 3; + * * @return The relation. */ public java.lang.String getRelation() { java.lang.Object ref = relation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); relation_ = s; return s; @@ -859,21 +939,22 @@ public java.lang.String getRelation() { } } /** + * + * *
      * The relation name (BigQuery table or view equivalent in the target data
      * warehouse).
      * 
* * string relation = 3; + * * @return The bytes for relation. */ - public com.google.protobuf.ByteString - getRelationBytes() { + public com.google.protobuf.ByteString getRelationBytes() { java.lang.Object ref = relation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); relation_ = b; return b; } else { @@ -881,30 +962,37 @@ public java.lang.String getRelation() { } } /** + * + * *
      * The relation name (BigQuery table or view equivalent in the target data
      * warehouse).
      * 
* * string relation = 3; + * * @param value The relation to set. * @return This builder for chaining. */ - public Builder setRelation( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRelation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } relation_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The relation name (BigQuery table or view equivalent in the target data
      * warehouse).
      * 
* * string relation = 3; + * * @return This builder for chaining. */ public Builder clearRelation() { @@ -914,18 +1002,22 @@ public Builder clearRelation() { return this; } /** + * + * *
      * The relation name (BigQuery table or view equivalent in the target data
      * warehouse).
      * 
* * string relation = 3; + * * @param value The bytes for relation to set. * @return This builder for chaining. */ - public Builder setRelationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRelationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); relation_ = value; bitField0_ |= 0x00000004; @@ -935,19 +1027,21 @@ public Builder setRelationBytes( private java.lang.Object attribute_ = ""; /** + * + * *
      * The attribute name (BigQuery column equivalent in the target data
      * warehouse).
      * 
* * string attribute = 4; + * * @return The attribute. */ public java.lang.String getAttribute() { java.lang.Object ref = attribute_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attribute_ = s; return s; @@ -956,21 +1050,22 @@ public java.lang.String getAttribute() { } } /** + * + * *
      * The attribute name (BigQuery column equivalent in the target data
      * warehouse).
      * 
* * string attribute = 4; + * * @return The bytes for attribute. */ - public com.google.protobuf.ByteString - getAttributeBytes() { + public com.google.protobuf.ByteString getAttributeBytes() { java.lang.Object ref = attribute_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); attribute_ = b; return b; } else { @@ -978,30 +1073,37 @@ public java.lang.String getAttribute() { } } /** + * + * *
      * The attribute name (BigQuery column equivalent in the target data
      * warehouse).
      * 
* * string attribute = 4; + * * @param value The attribute to set. * @return This builder for chaining. */ - public Builder setAttribute( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAttribute(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } attribute_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The attribute name (BigQuery column equivalent in the target data
      * warehouse).
      * 
* * string attribute = 4; + * * @return This builder for chaining. */ public Builder clearAttribute() { @@ -1011,27 +1113,31 @@ public Builder clearAttribute() { return this; } /** + * + * *
      * The attribute name (BigQuery column equivalent in the target data
      * warehouse).
      * 
* * string attribute = 4; + * * @param value The bytes for attribute to set. * @return This builder for chaining. */ - public Builder setAttributeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAttributeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); attribute_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1041,12 +1147,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.NameMappingValue) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.NameMappingValue) private static final com.google.cloud.bigquery.migration.v2.NameMappingValue DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.NameMappingValue(); } @@ -1055,27 +1161,27 @@ public static com.google.cloud.bigquery.migration.v2.NameMappingValue getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NameMappingValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NameMappingValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1090,6 +1196,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.NameMappingValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingValueOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingValueOrBuilder.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingValueOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingValueOrBuilder.java index 6915b33..4086b85 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingValueOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NameMappingValueOrBuilder.java @@ -1,95 +1,131 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; -public interface NameMappingValueOrBuilder extends +public interface NameMappingValueOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.NameMappingValue) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The database name (BigQuery project ID equivalent in the target data
    * warehouse).
    * 
* * string database = 1; + * * @return The database. */ java.lang.String getDatabase(); /** + * + * *
    * The database name (BigQuery project ID equivalent in the target data
    * warehouse).
    * 
* * string database = 1; + * * @return The bytes for database. */ - com.google.protobuf.ByteString - getDatabaseBytes(); + com.google.protobuf.ByteString getDatabaseBytes(); /** + * + * *
    * The schema name (BigQuery dataset equivalent in the target data warehouse).
    * 
* * string schema = 2; + * * @return The schema. */ java.lang.String getSchema(); /** + * + * *
    * The schema name (BigQuery dataset equivalent in the target data warehouse).
    * 
* * string schema = 2; + * * @return The bytes for schema. */ - com.google.protobuf.ByteString - getSchemaBytes(); + com.google.protobuf.ByteString getSchemaBytes(); /** + * + * *
    * The relation name (BigQuery table or view equivalent in the target data
    * warehouse).
    * 
* * string relation = 3; + * * @return The relation. */ java.lang.String getRelation(); /** + * + * *
    * The relation name (BigQuery table or view equivalent in the target data
    * warehouse).
    * 
* * string relation = 3; + * * @return The bytes for relation. */ - com.google.protobuf.ByteString - getRelationBytes(); + com.google.protobuf.ByteString getRelationBytes(); /** + * + * *
    * The attribute name (BigQuery column equivalent in the target data
    * warehouse).
    * 
* * string attribute = 4; + * * @return The attribute. */ java.lang.String getAttribute(); /** + * + * *
    * The attribute name (BigQuery column equivalent in the target data
    * warehouse).
    * 
* * string attribute = 4; + * * @return The bytes for attribute. */ - com.google.protobuf.ByteString - getAttributeBytes(); + com.google.protobuf.ByteString getAttributeBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NetezzaDialect.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NetezzaDialect.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NetezzaDialect.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NetezzaDialect.java index 9d3a39a..de25156 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NetezzaDialect.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NetezzaDialect.java @@ -1,53 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * The dialect definition for Netezza.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.NetezzaDialect} */ -public final class NetezzaDialect extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NetezzaDialect extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.NetezzaDialect) NetezzaDialectOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NetezzaDialect.newBuilder() to construct. private NetezzaDialect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NetezzaDialect() { - } + + private NetezzaDialect() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NetezzaDialect(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_NetezzaDialect_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_NetezzaDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_NetezzaDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_NetezzaDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.NetezzaDialect.class, com.google.cloud.bigquery.migration.v2.NetezzaDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.NetezzaDialect.class, + com.google.cloud.bigquery.migration.v2.NetezzaDialect.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -59,8 +78,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 { getUnknownFields().writeTo(output); } @@ -78,12 +96,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.bigquery.migration.v2.NetezzaDialect)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.NetezzaDialect other = (com.google.cloud.bigquery.migration.v2.NetezzaDialect) obj; + com.google.cloud.bigquery.migration.v2.NetezzaDialect other = + (com.google.cloud.bigquery.migration.v2.NetezzaDialect) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -102,129 +121,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.NetezzaDialect parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.NetezzaDialect parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.NetezzaDialect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.NetezzaDialect parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.NetezzaDialect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.NetezzaDialect parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.NetezzaDialect parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.NetezzaDialect parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.NetezzaDialect parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.NetezzaDialect parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.NetezzaDialect parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.NetezzaDialect parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.NetezzaDialect parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.NetezzaDialect parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.NetezzaDialect prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.NetezzaDialect prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 dialect definition for Netezza.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.NetezzaDialect} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.NetezzaDialect) com.google.cloud.bigquery.migration.v2.NetezzaDialectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_NetezzaDialect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_NetezzaDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_NetezzaDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_NetezzaDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.NetezzaDialect.class, com.google.cloud.bigquery.migration.v2.NetezzaDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.NetezzaDialect.class, + com.google.cloud.bigquery.migration.v2.NetezzaDialect.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2.NetezzaDialect.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -232,9 +258,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_NetezzaDialect_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_NetezzaDialect_descriptor; } @java.lang.Override @@ -253,7 +279,8 @@ public com.google.cloud.bigquery.migration.v2.NetezzaDialect build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2.NetezzaDialect buildPartial() { - com.google.cloud.bigquery.migration.v2.NetezzaDialect result = new com.google.cloud.bigquery.migration.v2.NetezzaDialect(this); + com.google.cloud.bigquery.migration.v2.NetezzaDialect result = + new com.google.cloud.bigquery.migration.v2.NetezzaDialect(this); onBuilt(); return result; } @@ -262,38 +289,39 @@ public com.google.cloud.bigquery.migration.v2.NetezzaDialect buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.NetezzaDialect) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.NetezzaDialect)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2.NetezzaDialect) other); } else { super.mergeFrom(other); return this; @@ -301,7 +329,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.NetezzaDialect other) { - if (other == com.google.cloud.bigquery.migration.v2.NetezzaDialect.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.migration.v2.NetezzaDialect.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -328,12 +357,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -343,9 +373,9 @@ public Builder mergeFrom( } // finally 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); } @@ -355,12 +385,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.NetezzaDialect) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.NetezzaDialect) private static final com.google.cloud.bigquery.migration.v2.NetezzaDialect DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.NetezzaDialect(); } @@ -369,27 +399,27 @@ public static com.google.cloud.bigquery.migration.v2.NetezzaDialect getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetezzaDialect parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetezzaDialect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -404,6 +434,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.NetezzaDialect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NetezzaDialectOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NetezzaDialectOrBuilder.java new file mode 100644 index 0000000..62278fd --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/NetezzaDialectOrBuilder.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/bigquery/migration/v2/translation_config.proto + +package com.google.cloud.bigquery.migration.v2; + +public interface NetezzaDialectOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.NetezzaDialect) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMapping.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMapping.java similarity index 69% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMapping.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMapping.java index 8f947c5..ccfb205 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMapping.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMapping.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * Represents a key-value pair of NameMappingKey to NameMappingValue to
  * represent the mapping of SQL names from the input value to desired output.
@@ -11,51 +28,55 @@
  *
  * Protobuf type {@code google.cloud.bigquery.migration.v2.ObjectNameMapping}
  */
-public final class ObjectNameMapping extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ObjectNameMapping extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.ObjectNameMapping)
     ObjectNameMappingOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ObjectNameMapping.newBuilder() to construct.
   private ObjectNameMapping(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private ObjectNameMapping() {
-  }
+
+  private ObjectNameMapping() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ObjectNameMapping();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.migration.v2.TranslationConfigProto
+        .internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_fieldAccessorTable
+    return com.google.cloud.bigquery.migration.v2.TranslationConfigProto
+        .internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.migration.v2.ObjectNameMapping.class, com.google.cloud.bigquery.migration.v2.ObjectNameMapping.Builder.class);
+            com.google.cloud.bigquery.migration.v2.ObjectNameMapping.class,
+            com.google.cloud.bigquery.migration.v2.ObjectNameMapping.Builder.class);
   }
 
   public static final int SOURCE_FIELD_NUMBER = 1;
   private com.google.cloud.bigquery.migration.v2.NameMappingKey source_;
   /**
+   *
+   *
    * 
    * The name of the object in source that is being mapped.
    * 
* * .google.cloud.bigquery.migration.v2.NameMappingKey source = 1; + * * @return Whether the source field is set. */ @java.lang.Override @@ -63,18 +84,25 @@ public boolean hasSource() { return source_ != null; } /** + * + * *
    * The name of the object in source that is being mapped.
    * 
* * .google.cloud.bigquery.migration.v2.NameMappingKey source = 1; + * * @return The source. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.NameMappingKey getSource() { - return source_ == null ? com.google.cloud.bigquery.migration.v2.NameMappingKey.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.bigquery.migration.v2.NameMappingKey.getDefaultInstance() + : source_; } /** + * + * *
    * The name of the object in source that is being mapped.
    * 
@@ -83,17 +111,22 @@ public com.google.cloud.bigquery.migration.v2.NameMappingKey getSource() { */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.NameMappingKeyOrBuilder getSourceOrBuilder() { - return source_ == null ? com.google.cloud.bigquery.migration.v2.NameMappingKey.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.bigquery.migration.v2.NameMappingKey.getDefaultInstance() + : source_; } public static final int TARGET_FIELD_NUMBER = 2; private com.google.cloud.bigquery.migration.v2.NameMappingValue target_; /** + * + * *
    * The desired target name of the object that is being mapped.
    * 
* * .google.cloud.bigquery.migration.v2.NameMappingValue target = 2; + * * @return Whether the target field is set. */ @java.lang.Override @@ -101,18 +134,25 @@ public boolean hasTarget() { return target_ != null; } /** + * + * *
    * The desired target name of the object that is being mapped.
    * 
* * .google.cloud.bigquery.migration.v2.NameMappingValue target = 2; + * * @return The target. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.NameMappingValue getTarget() { - return target_ == null ? com.google.cloud.bigquery.migration.v2.NameMappingValue.getDefaultInstance() : target_; + return target_ == null + ? com.google.cloud.bigquery.migration.v2.NameMappingValue.getDefaultInstance() + : target_; } /** + * + * *
    * The desired target name of the object that is being mapped.
    * 
@@ -121,10 +161,13 @@ public com.google.cloud.bigquery.migration.v2.NameMappingValue getTarget() { */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.NameMappingValueOrBuilder getTargetOrBuilder() { - return target_ == null ? com.google.cloud.bigquery.migration.v2.NameMappingValue.getDefaultInstance() : target_; + return target_ == null + ? com.google.cloud.bigquery.migration.v2.NameMappingValue.getDefaultInstance() + : target_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -136,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (source_ != null) { output.writeMessage(1, getSource()); } @@ -154,12 +196,10 @@ public int getSerializedSize() { size = 0; if (source_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSource()); } if (target_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTarget()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTarget()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -169,22 +209,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2.ObjectNameMapping)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.ObjectNameMapping other = (com.google.cloud.bigquery.migration.v2.ObjectNameMapping) obj; + com.google.cloud.bigquery.migration.v2.ObjectNameMapping other = + (com.google.cloud.bigquery.migration.v2.ObjectNameMapping) obj; if (hasSource() != other.hasSource()) return false; if (hasSource()) { - if (!getSource() - .equals(other.getSource())) return false; + if (!getSource().equals(other.getSource())) return false; } if (hasTarget() != other.hasTarget()) return false; if (hasTarget()) { - if (!getTarget() - .equals(other.getTarget())) return false; + if (!getTarget().equals(other.getTarget())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -211,96 +250,104 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.ObjectNameMapping parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.ObjectNameMapping parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.ObjectNameMapping parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.ObjectNameMapping parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.ObjectNameMapping parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.ObjectNameMapping parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.ObjectNameMapping parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.ObjectNameMapping parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.ObjectNameMapping parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.ObjectNameMapping parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.ObjectNameMapping parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.ObjectNameMapping parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.ObjectNameMapping parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.ObjectNameMapping parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.ObjectNameMapping prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.ObjectNameMapping prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 key-value pair of NameMappingKey to NameMappingValue to
    * represent the mapping of SQL names from the input value to desired output.
@@ -308,33 +355,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.migration.v2.ObjectNameMapping}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.ObjectNameMapping)
       com.google.cloud.bigquery.migration.v2.ObjectNameMappingOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto
+          .internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_fieldAccessorTable
+      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto
+          .internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.migration.v2.ObjectNameMapping.class, com.google.cloud.bigquery.migration.v2.ObjectNameMapping.Builder.class);
+              com.google.cloud.bigquery.migration.v2.ObjectNameMapping.class,
+              com.google.cloud.bigquery.migration.v2.ObjectNameMapping.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.migration.v2.ObjectNameMapping.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -353,9 +399,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto
+          .internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_descriptor;
     }
 
     @java.lang.Override
@@ -374,8 +420,11 @@ public com.google.cloud.bigquery.migration.v2.ObjectNameMapping build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.migration.v2.ObjectNameMapping buildPartial() {
-      com.google.cloud.bigquery.migration.v2.ObjectNameMapping result = new com.google.cloud.bigquery.migration.v2.ObjectNameMapping(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.migration.v2.ObjectNameMapping result =
+          new com.google.cloud.bigquery.migration.v2.ObjectNameMapping(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -383,14 +432,10 @@ public com.google.cloud.bigquery.migration.v2.ObjectNameMapping buildPartial() {
     private void buildPartial0(com.google.cloud.bigquery.migration.v2.ObjectNameMapping result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.source_ = sourceBuilder_ == null
-            ? source_
-            : sourceBuilder_.build();
+        result.source_ = sourceBuilder_ == null ? source_ : sourceBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.target_ = targetBuilder_ == null
-            ? target_
-            : targetBuilder_.build();
+        result.target_ = targetBuilder_ == null ? target_ : targetBuilder_.build();
       }
     }
 
@@ -398,38 +443,39 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.ObjectNameMapp
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.migration.v2.ObjectNameMapping) {
-        return mergeFrom((com.google.cloud.bigquery.migration.v2.ObjectNameMapping)other);
+        return mergeFrom((com.google.cloud.bigquery.migration.v2.ObjectNameMapping) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -437,7 +483,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.ObjectNameMapping other) {
-      if (other == com.google.cloud.bigquery.migration.v2.ObjectNameMapping.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.migration.v2.ObjectNameMapping.getDefaultInstance())
+        return this;
       if (other.hasSource()) {
         mergeSource(other.getSource());
       }
@@ -470,26 +517,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getSourceFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getTargetFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getSourceFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getTargetFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -499,38 +545,52 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.bigquery.migration.v2.NameMappingKey source_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.migration.v2.NameMappingKey, com.google.cloud.bigquery.migration.v2.NameMappingKey.Builder, com.google.cloud.bigquery.migration.v2.NameMappingKeyOrBuilder> sourceBuilder_;
+            com.google.cloud.bigquery.migration.v2.NameMappingKey,
+            com.google.cloud.bigquery.migration.v2.NameMappingKey.Builder,
+            com.google.cloud.bigquery.migration.v2.NameMappingKeyOrBuilder>
+        sourceBuilder_;
     /**
+     *
+     *
      * 
      * The name of the object in source that is being mapped.
      * 
* * .google.cloud.bigquery.migration.v2.NameMappingKey source = 1; + * * @return Whether the source field is set. */ public boolean hasSource() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The name of the object in source that is being mapped.
      * 
* * .google.cloud.bigquery.migration.v2.NameMappingKey source = 1; + * * @return The source. */ public com.google.cloud.bigquery.migration.v2.NameMappingKey getSource() { if (sourceBuilder_ == null) { - return source_ == null ? com.google.cloud.bigquery.migration.v2.NameMappingKey.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.bigquery.migration.v2.NameMappingKey.getDefaultInstance() + : source_; } else { return sourceBuilder_.getMessage(); } } /** + * + * *
      * The name of the object in source that is being mapped.
      * 
@@ -551,6 +611,8 @@ public Builder setSource(com.google.cloud.bigquery.migration.v2.NameMappingKey v return this; } /** + * + * *
      * The name of the object in source that is being mapped.
      * 
@@ -569,6 +631,8 @@ public Builder setSource( return this; } /** + * + * *
      * The name of the object in source that is being mapped.
      * 
@@ -577,9 +641,10 @@ public Builder setSource( */ public Builder mergeSource(com.google.cloud.bigquery.migration.v2.NameMappingKey value) { if (sourceBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - source_ != null && - source_ != com.google.cloud.bigquery.migration.v2.NameMappingKey.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && source_ != null + && source_ + != com.google.cloud.bigquery.migration.v2.NameMappingKey.getDefaultInstance()) { getSourceBuilder().mergeFrom(value); } else { source_ = value; @@ -592,6 +657,8 @@ public Builder mergeSource(com.google.cloud.bigquery.migration.v2.NameMappingKey return this; } /** + * + * *
      * The name of the object in source that is being mapped.
      * 
@@ -609,6 +676,8 @@ public Builder clearSource() { return this; } /** + * + * *
      * The name of the object in source that is being mapped.
      * 
@@ -621,6 +690,8 @@ public com.google.cloud.bigquery.migration.v2.NameMappingKey.Builder getSourceBu return getSourceFieldBuilder().getBuilder(); } /** + * + * *
      * The name of the object in source that is being mapped.
      * 
@@ -631,11 +702,14 @@ public com.google.cloud.bigquery.migration.v2.NameMappingKeyOrBuilder getSourceO if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { - return source_ == null ? - com.google.cloud.bigquery.migration.v2.NameMappingKey.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.bigquery.migration.v2.NameMappingKey.getDefaultInstance() + : source_; } } /** + * + * *
      * The name of the object in source that is being mapped.
      * 
@@ -643,14 +717,17 @@ public com.google.cloud.bigquery.migration.v2.NameMappingKeyOrBuilder getSourceO * .google.cloud.bigquery.migration.v2.NameMappingKey source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.NameMappingKey, com.google.cloud.bigquery.migration.v2.NameMappingKey.Builder, com.google.cloud.bigquery.migration.v2.NameMappingKeyOrBuilder> + com.google.cloud.bigquery.migration.v2.NameMappingKey, + com.google.cloud.bigquery.migration.v2.NameMappingKey.Builder, + com.google.cloud.bigquery.migration.v2.NameMappingKeyOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { - sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.NameMappingKey, com.google.cloud.bigquery.migration.v2.NameMappingKey.Builder, com.google.cloud.bigquery.migration.v2.NameMappingKeyOrBuilder>( - getSource(), - getParentForChildren(), - isClean()); + sourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.NameMappingKey, + com.google.cloud.bigquery.migration.v2.NameMappingKey.Builder, + com.google.cloud.bigquery.migration.v2.NameMappingKeyOrBuilder>( + getSource(), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; @@ -658,34 +735,47 @@ public com.google.cloud.bigquery.migration.v2.NameMappingKeyOrBuilder getSourceO private com.google.cloud.bigquery.migration.v2.NameMappingValue target_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.NameMappingValue, com.google.cloud.bigquery.migration.v2.NameMappingValue.Builder, com.google.cloud.bigquery.migration.v2.NameMappingValueOrBuilder> targetBuilder_; + com.google.cloud.bigquery.migration.v2.NameMappingValue, + com.google.cloud.bigquery.migration.v2.NameMappingValue.Builder, + com.google.cloud.bigquery.migration.v2.NameMappingValueOrBuilder> + targetBuilder_; /** + * + * *
      * The desired target name of the object that is being mapped.
      * 
* * .google.cloud.bigquery.migration.v2.NameMappingValue target = 2; + * * @return Whether the target field is set. */ public boolean hasTarget() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The desired target name of the object that is being mapped.
      * 
* * .google.cloud.bigquery.migration.v2.NameMappingValue target = 2; + * * @return The target. */ public com.google.cloud.bigquery.migration.v2.NameMappingValue getTarget() { if (targetBuilder_ == null) { - return target_ == null ? com.google.cloud.bigquery.migration.v2.NameMappingValue.getDefaultInstance() : target_; + return target_ == null + ? com.google.cloud.bigquery.migration.v2.NameMappingValue.getDefaultInstance() + : target_; } else { return targetBuilder_.getMessage(); } } /** + * + * *
      * The desired target name of the object that is being mapped.
      * 
@@ -706,6 +796,8 @@ public Builder setTarget(com.google.cloud.bigquery.migration.v2.NameMappingValue return this; } /** + * + * *
      * The desired target name of the object that is being mapped.
      * 
@@ -724,6 +816,8 @@ public Builder setTarget( return this; } /** + * + * *
      * The desired target name of the object that is being mapped.
      * 
@@ -732,9 +826,10 @@ public Builder setTarget( */ public Builder mergeTarget(com.google.cloud.bigquery.migration.v2.NameMappingValue value) { if (targetBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - target_ != null && - target_ != com.google.cloud.bigquery.migration.v2.NameMappingValue.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && target_ != null + && target_ + != com.google.cloud.bigquery.migration.v2.NameMappingValue.getDefaultInstance()) { getTargetBuilder().mergeFrom(value); } else { target_ = value; @@ -747,6 +842,8 @@ public Builder mergeTarget(com.google.cloud.bigquery.migration.v2.NameMappingVal return this; } /** + * + * *
      * The desired target name of the object that is being mapped.
      * 
@@ -764,6 +861,8 @@ public Builder clearTarget() { return this; } /** + * + * *
      * The desired target name of the object that is being mapped.
      * 
@@ -776,6 +875,8 @@ public com.google.cloud.bigquery.migration.v2.NameMappingValue.Builder getTarget return getTargetFieldBuilder().getBuilder(); } /** + * + * *
      * The desired target name of the object that is being mapped.
      * 
@@ -786,11 +887,14 @@ public com.google.cloud.bigquery.migration.v2.NameMappingValueOrBuilder getTarge if (targetBuilder_ != null) { return targetBuilder_.getMessageOrBuilder(); } else { - return target_ == null ? - com.google.cloud.bigquery.migration.v2.NameMappingValue.getDefaultInstance() : target_; + return target_ == null + ? com.google.cloud.bigquery.migration.v2.NameMappingValue.getDefaultInstance() + : target_; } } /** + * + * *
      * The desired target name of the object that is being mapped.
      * 
@@ -798,21 +902,24 @@ public com.google.cloud.bigquery.migration.v2.NameMappingValueOrBuilder getTarge * .google.cloud.bigquery.migration.v2.NameMappingValue target = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.NameMappingValue, com.google.cloud.bigquery.migration.v2.NameMappingValue.Builder, com.google.cloud.bigquery.migration.v2.NameMappingValueOrBuilder> + com.google.cloud.bigquery.migration.v2.NameMappingValue, + com.google.cloud.bigquery.migration.v2.NameMappingValue.Builder, + com.google.cloud.bigquery.migration.v2.NameMappingValueOrBuilder> getTargetFieldBuilder() { if (targetBuilder_ == null) { - targetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.NameMappingValue, com.google.cloud.bigquery.migration.v2.NameMappingValue.Builder, com.google.cloud.bigquery.migration.v2.NameMappingValueOrBuilder>( - getTarget(), - getParentForChildren(), - isClean()); + targetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.NameMappingValue, + com.google.cloud.bigquery.migration.v2.NameMappingValue.Builder, + com.google.cloud.bigquery.migration.v2.NameMappingValueOrBuilder>( + getTarget(), getParentForChildren(), isClean()); target_ = null; } return targetBuilder_; } + @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); } @@ -822,12 +929,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.ObjectNameMapping) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.ObjectNameMapping) private static final com.google.cloud.bigquery.migration.v2.ObjectNameMapping DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.ObjectNameMapping(); } @@ -836,27 +943,27 @@ public static com.google.cloud.bigquery.migration.v2.ObjectNameMapping getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectNameMapping parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectNameMapping parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -871,6 +978,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.ObjectNameMapping getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMappingList.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMappingList.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMappingList.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMappingList.java index d72d52a..406fc6c 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMappingList.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMappingList.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * Represents a map of name mappings using a list of key:value proto messages of
  * existing name to desired output name.
@@ -11,48 +28,53 @@
  *
  * Protobuf type {@code google.cloud.bigquery.migration.v2.ObjectNameMappingList}
  */
-public final class ObjectNameMappingList extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ObjectNameMappingList extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.ObjectNameMappingList)
     ObjectNameMappingListOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ObjectNameMappingList.newBuilder() to construct.
   private ObjectNameMappingList(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ObjectNameMappingList() {
     nameMap_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ObjectNameMappingList();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.migration.v2.TranslationConfigProto
+        .internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_fieldAccessorTable
+    return com.google.cloud.bigquery.migration.v2.TranslationConfigProto
+        .internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.class, com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.Builder.class);
+            com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.class,
+            com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.Builder.class);
   }
 
   public static final int NAME_MAP_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List nameMap_;
   /**
+   *
+   *
    * 
    * The elements of the object name map.
    * 
@@ -64,6 +86,8 @@ public java.util.List return nameMap_; } /** + * + * *
    * The elements of the object name map.
    * 
@@ -71,11 +95,13 @@ public java.util.List * repeated .google.cloud.bigquery.migration.v2.ObjectNameMapping name_map = 1; */ @java.lang.Override - public java.util.List + public java.util.List getNameMapOrBuilderList() { return nameMap_; } /** + * + * *
    * The elements of the object name map.
    * 
@@ -87,6 +113,8 @@ public int getNameMapCount() { return nameMap_.size(); } /** + * + * *
    * The elements of the object name map.
    * 
@@ -98,6 +126,8 @@ public com.google.cloud.bigquery.migration.v2.ObjectNameMapping getNameMap(int i return nameMap_.get(index); } /** + * + * *
    * The elements of the object name map.
    * 
@@ -111,6 +141,7 @@ public com.google.cloud.bigquery.migration.v2.ObjectNameMappingOrBuilder getName } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -122,8 +153,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 < nameMap_.size(); i++) { output.writeMessage(1, nameMap_.get(i)); } @@ -137,8 +167,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < nameMap_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, nameMap_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, nameMap_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -148,15 +177,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2.ObjectNameMappingList)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.ObjectNameMappingList other = (com.google.cloud.bigquery.migration.v2.ObjectNameMappingList) obj; + com.google.cloud.bigquery.migration.v2.ObjectNameMappingList other = + (com.google.cloud.bigquery.migration.v2.ObjectNameMappingList) obj; - if (!getNameMapList() - .equals(other.getNameMapList())) return false; + if (!getNameMapList().equals(other.getNameMapList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -178,96 +207,104 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.ObjectNameMappingList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.ObjectNameMappingList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.ObjectNameMappingList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.ObjectNameMappingList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.ObjectNameMappingList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.ObjectNameMappingList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.ObjectNameMappingList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.ObjectNameMappingList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.ObjectNameMappingList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.ObjectNameMappingList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.ObjectNameMappingList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.ObjectNameMappingList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.ObjectNameMappingList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.ObjectNameMappingList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.ObjectNameMappingList prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.ObjectNameMappingList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 map of name mappings using a list of key:value proto messages of
    * existing name to desired output name.
@@ -275,33 +312,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.migration.v2.ObjectNameMappingList}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.ObjectNameMappingList)
       com.google.cloud.bigquery.migration.v2.ObjectNameMappingListOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto
+          .internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_fieldAccessorTable
+      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto
+          .internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.class, com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.Builder.class);
+              com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.class,
+              com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -317,13 +353,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto
+          .internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.migration.v2.ObjectNameMappingList getDefaultInstanceForType() {
+    public com.google.cloud.bigquery.migration.v2.ObjectNameMappingList
+        getDefaultInstanceForType() {
       return com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.getDefaultInstance();
     }
 
@@ -338,14 +375,18 @@ public com.google.cloud.bigquery.migration.v2.ObjectNameMappingList build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.migration.v2.ObjectNameMappingList buildPartial() {
-      com.google.cloud.bigquery.migration.v2.ObjectNameMappingList result = new com.google.cloud.bigquery.migration.v2.ObjectNameMappingList(this);
+      com.google.cloud.bigquery.migration.v2.ObjectNameMappingList result =
+          new com.google.cloud.bigquery.migration.v2.ObjectNameMappingList(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.bigquery.migration.v2.ObjectNameMappingList result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.bigquery.migration.v2.ObjectNameMappingList result) {
       if (nameMapBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           nameMap_ = java.util.Collections.unmodifiableList(nameMap_);
@@ -357,7 +398,8 @@ private void buildPartialRepeatedFields(com.google.cloud.bigquery.migration.v2.O
       }
     }
 
-    private void buildPartial0(com.google.cloud.bigquery.migration.v2.ObjectNameMappingList result) {
+    private void buildPartial0(
+        com.google.cloud.bigquery.migration.v2.ObjectNameMappingList result) {
       int from_bitField0_ = bitField0_;
     }
 
@@ -365,38 +407,39 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.ObjectNameMapp
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.migration.v2.ObjectNameMappingList) {
-        return mergeFrom((com.google.cloud.bigquery.migration.v2.ObjectNameMappingList)other);
+        return mergeFrom((com.google.cloud.bigquery.migration.v2.ObjectNameMappingList) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -404,7 +447,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.ObjectNameMappingList other) {
-      if (other == com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.getDefaultInstance())
+        return this;
       if (nameMapBuilder_ == null) {
         if (!other.nameMap_.isEmpty()) {
           if (nameMap_.isEmpty()) {
@@ -423,9 +468,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.ObjectNameMappin
             nameMapBuilder_ = null;
             nameMap_ = other.nameMap_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            nameMapBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getNameMapFieldBuilder() : null;
+            nameMapBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getNameMapFieldBuilder()
+                    : null;
           } else {
             nameMapBuilder_.addAllMessages(other.nameMap_);
           }
@@ -457,25 +503,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.bigquery.migration.v2.ObjectNameMapping m =
-                  input.readMessage(
-                      com.google.cloud.bigquery.migration.v2.ObjectNameMapping.parser(),
-                      extensionRegistry);
-              if (nameMapBuilder_ == null) {
-                ensureNameMapIsMutable();
-                nameMap_.add(m);
-              } else {
-                nameMapBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.bigquery.migration.v2.ObjectNameMapping m =
+                    input.readMessage(
+                        com.google.cloud.bigquery.migration.v2.ObjectNameMapping.parser(),
+                        extensionRegistry);
+                if (nameMapBuilder_ == null) {
+                  ensureNameMapIsMutable();
+                  nameMap_.add(m);
+                } else {
+                  nameMapBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -485,28 +533,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List nameMap_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureNameMapIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        nameMap_ = new java.util.ArrayList(nameMap_);
+        nameMap_ =
+            new java.util.ArrayList(
+                nameMap_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.bigquery.migration.v2.ObjectNameMapping, com.google.cloud.bigquery.migration.v2.ObjectNameMapping.Builder, com.google.cloud.bigquery.migration.v2.ObjectNameMappingOrBuilder> nameMapBuilder_;
+            com.google.cloud.bigquery.migration.v2.ObjectNameMapping,
+            com.google.cloud.bigquery.migration.v2.ObjectNameMapping.Builder,
+            com.google.cloud.bigquery.migration.v2.ObjectNameMappingOrBuilder>
+        nameMapBuilder_;
 
     /**
+     *
+     *
      * 
      * The elements of the object name map.
      * 
* * repeated .google.cloud.bigquery.migration.v2.ObjectNameMapping name_map = 1; */ - public java.util.List getNameMapList() { + public java.util.List + getNameMapList() { if (nameMapBuilder_ == null) { return java.util.Collections.unmodifiableList(nameMap_); } else { @@ -514,6 +572,8 @@ public java.util.List } } /** + * + * *
      * The elements of the object name map.
      * 
@@ -528,6 +588,8 @@ public int getNameMapCount() { } } /** + * + * *
      * The elements of the object name map.
      * 
@@ -542,6 +604,8 @@ public com.google.cloud.bigquery.migration.v2.ObjectNameMapping getNameMap(int i } } /** + * + * *
      * The elements of the object name map.
      * 
@@ -563,6 +627,8 @@ public Builder setNameMap( return this; } /** + * + * *
      * The elements of the object name map.
      * 
@@ -570,7 +636,8 @@ public Builder setNameMap( * repeated .google.cloud.bigquery.migration.v2.ObjectNameMapping name_map = 1; */ public Builder setNameMap( - int index, com.google.cloud.bigquery.migration.v2.ObjectNameMapping.Builder builderForValue) { + int index, + com.google.cloud.bigquery.migration.v2.ObjectNameMapping.Builder builderForValue) { if (nameMapBuilder_ == null) { ensureNameMapIsMutable(); nameMap_.set(index, builderForValue.build()); @@ -581,6 +648,8 @@ public Builder setNameMap( return this; } /** + * + * *
      * The elements of the object name map.
      * 
@@ -601,6 +670,8 @@ public Builder addNameMap(com.google.cloud.bigquery.migration.v2.ObjectNameMappi return this; } /** + * + * *
      * The elements of the object name map.
      * 
@@ -622,6 +693,8 @@ public Builder addNameMap( return this; } /** + * + * *
      * The elements of the object name map.
      * 
@@ -640,6 +713,8 @@ public Builder addNameMap( return this; } /** + * + * *
      * The elements of the object name map.
      * 
@@ -647,7 +722,8 @@ public Builder addNameMap( * repeated .google.cloud.bigquery.migration.v2.ObjectNameMapping name_map = 1; */ public Builder addNameMap( - int index, com.google.cloud.bigquery.migration.v2.ObjectNameMapping.Builder builderForValue) { + int index, + com.google.cloud.bigquery.migration.v2.ObjectNameMapping.Builder builderForValue) { if (nameMapBuilder_ == null) { ensureNameMapIsMutable(); nameMap_.add(index, builderForValue.build()); @@ -658,6 +734,8 @@ public Builder addNameMap( return this; } /** + * + * *
      * The elements of the object name map.
      * 
@@ -665,11 +743,11 @@ public Builder addNameMap( * repeated .google.cloud.bigquery.migration.v2.ObjectNameMapping name_map = 1; */ public Builder addAllNameMap( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (nameMapBuilder_ == null) { ensureNameMapIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nameMap_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nameMap_); onChanged(); } else { nameMapBuilder_.addAllMessages(values); @@ -677,6 +755,8 @@ public Builder addAllNameMap( return this; } /** + * + * *
      * The elements of the object name map.
      * 
@@ -694,6 +774,8 @@ public Builder clearNameMap() { return this; } /** + * + * *
      * The elements of the object name map.
      * 
@@ -711,6 +793,8 @@ public Builder removeNameMap(int index) { return this; } /** + * + * *
      * The elements of the object name map.
      * 
@@ -722,6 +806,8 @@ public com.google.cloud.bigquery.migration.v2.ObjectNameMapping.Builder getNameM return getNameMapFieldBuilder().getBuilder(index); } /** + * + * *
      * The elements of the object name map.
      * 
@@ -731,19 +817,23 @@ public com.google.cloud.bigquery.migration.v2.ObjectNameMapping.Builder getNameM public com.google.cloud.bigquery.migration.v2.ObjectNameMappingOrBuilder getNameMapOrBuilder( int index) { if (nameMapBuilder_ == null) { - return nameMap_.get(index); } else { + return nameMap_.get(index); + } else { return nameMapBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The elements of the object name map.
      * 
* * repeated .google.cloud.bigquery.migration.v2.ObjectNameMapping name_map = 1; */ - public java.util.List - getNameMapOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.bigquery.migration.v2.ObjectNameMappingOrBuilder> + getNameMapOrBuilderList() { if (nameMapBuilder_ != null) { return nameMapBuilder_.getMessageOrBuilderList(); } else { @@ -751,6 +841,8 @@ public com.google.cloud.bigquery.migration.v2.ObjectNameMappingOrBuilder getName } } /** + * + * *
      * The elements of the object name map.
      * 
@@ -758,10 +850,13 @@ public com.google.cloud.bigquery.migration.v2.ObjectNameMappingOrBuilder getName * repeated .google.cloud.bigquery.migration.v2.ObjectNameMapping name_map = 1; */ public com.google.cloud.bigquery.migration.v2.ObjectNameMapping.Builder addNameMapBuilder() { - return getNameMapFieldBuilder().addBuilder( - com.google.cloud.bigquery.migration.v2.ObjectNameMapping.getDefaultInstance()); + return getNameMapFieldBuilder() + .addBuilder( + com.google.cloud.bigquery.migration.v2.ObjectNameMapping.getDefaultInstance()); } /** + * + * *
      * The elements of the object name map.
      * 
@@ -770,37 +865,43 @@ public com.google.cloud.bigquery.migration.v2.ObjectNameMapping.Builder addNameM */ public com.google.cloud.bigquery.migration.v2.ObjectNameMapping.Builder addNameMapBuilder( int index) { - return getNameMapFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.migration.v2.ObjectNameMapping.getDefaultInstance()); + return getNameMapFieldBuilder() + .addBuilder( + index, com.google.cloud.bigquery.migration.v2.ObjectNameMapping.getDefaultInstance()); } /** + * + * *
      * The elements of the object name map.
      * 
* * repeated .google.cloud.bigquery.migration.v2.ObjectNameMapping name_map = 1; */ - public java.util.List - getNameMapBuilderList() { + public java.util.List + getNameMapBuilderList() { return getNameMapFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.ObjectNameMapping, com.google.cloud.bigquery.migration.v2.ObjectNameMapping.Builder, com.google.cloud.bigquery.migration.v2.ObjectNameMappingOrBuilder> + com.google.cloud.bigquery.migration.v2.ObjectNameMapping, + com.google.cloud.bigquery.migration.v2.ObjectNameMapping.Builder, + com.google.cloud.bigquery.migration.v2.ObjectNameMappingOrBuilder> getNameMapFieldBuilder() { if (nameMapBuilder_ == null) { - nameMapBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.ObjectNameMapping, com.google.cloud.bigquery.migration.v2.ObjectNameMapping.Builder, com.google.cloud.bigquery.migration.v2.ObjectNameMappingOrBuilder>( - nameMap_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + nameMapBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.ObjectNameMapping, + com.google.cloud.bigquery.migration.v2.ObjectNameMapping.Builder, + com.google.cloud.bigquery.migration.v2.ObjectNameMappingOrBuilder>( + nameMap_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); nameMap_ = null; } return nameMapBuilder_; } + @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); } @@ -810,12 +911,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.ObjectNameMappingList) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.ObjectNameMappingList) - private static final com.google.cloud.bigquery.migration.v2.ObjectNameMappingList DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2.ObjectNameMappingList + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.ObjectNameMappingList(); } @@ -824,27 +926,27 @@ public static com.google.cloud.bigquery.migration.v2.ObjectNameMappingList getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectNameMappingList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectNameMappingList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -859,6 +961,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.ObjectNameMappingList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMappingListOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMappingListOrBuilder.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMappingListOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMappingListOrBuilder.java index f2ae9b8..58a4cbb 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMappingListOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMappingListOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; -public interface ObjectNameMappingListOrBuilder extends +public interface ObjectNameMappingListOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.ObjectNameMappingList) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The elements of the object name map.
    * 
* * repeated .google.cloud.bigquery.migration.v2.ObjectNameMapping name_map = 1; */ - java.util.List - getNameMapList(); + java.util.List getNameMapList(); /** + * + * *
    * The elements of the object name map.
    * 
@@ -25,6 +44,8 @@ public interface ObjectNameMappingListOrBuilder extends */ com.google.cloud.bigquery.migration.v2.ObjectNameMapping getNameMap(int index); /** + * + * *
    * The elements of the object name map.
    * 
@@ -33,21 +54,24 @@ public interface ObjectNameMappingListOrBuilder extends */ int getNameMapCount(); /** + * + * *
    * The elements of the object name map.
    * 
* * repeated .google.cloud.bigquery.migration.v2.ObjectNameMapping name_map = 1; */ - java.util.List + java.util.List getNameMapOrBuilderList(); /** + * + * *
    * The elements of the object name map.
    * 
* * repeated .google.cloud.bigquery.migration.v2.ObjectNameMapping name_map = 1; */ - com.google.cloud.bigquery.migration.v2.ObjectNameMappingOrBuilder getNameMapOrBuilder( - int index); + com.google.cloud.bigquery.migration.v2.ObjectNameMappingOrBuilder getNameMapOrBuilder(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMappingOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMappingOrBuilder.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMappingOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMappingOrBuilder.java index c7dfed0..fed6a25 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMappingOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ObjectNameMappingOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; -public interface ObjectNameMappingOrBuilder extends +public interface ObjectNameMappingOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.ObjectNameMapping) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the object in source that is being mapped.
    * 
* * .google.cloud.bigquery.migration.v2.NameMappingKey source = 1; + * * @return Whether the source field is set. */ boolean hasSource(); /** + * + * *
    * The name of the object in source that is being mapped.
    * 
* * .google.cloud.bigquery.migration.v2.NameMappingKey source = 1; + * * @return The source. */ com.google.cloud.bigquery.migration.v2.NameMappingKey getSource(); /** + * + * *
    * The name of the object in source that is being mapped.
    * 
@@ -35,24 +59,32 @@ public interface ObjectNameMappingOrBuilder extends com.google.cloud.bigquery.migration.v2.NameMappingKeyOrBuilder getSourceOrBuilder(); /** + * + * *
    * The desired target name of the object that is being mapped.
    * 
* * .google.cloud.bigquery.migration.v2.NameMappingValue target = 2; + * * @return Whether the target field is set. */ boolean hasTarget(); /** + * + * *
    * The desired target name of the object that is being mapped.
    * 
* * .google.cloud.bigquery.migration.v2.NameMappingValue target = 2; + * * @return The target. */ com.google.cloud.bigquery.migration.v2.NameMappingValue getTarget(); /** + * + * *
    * The desired target name of the object that is being mapped.
    * 
diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/OracleDialect.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/OracleDialect.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/OracleDialect.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/OracleDialect.java index bc3cdc5..220034b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/OracleDialect.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/OracleDialect.java @@ -1,53 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * The dialect definition for Oracle.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.OracleDialect} */ -public final class OracleDialect extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OracleDialect extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.OracleDialect) OracleDialectOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OracleDialect.newBuilder() to construct. private OracleDialect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OracleDialect() { - } + + private OracleDialect() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OracleDialect(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_OracleDialect_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_OracleDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_OracleDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_OracleDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.OracleDialect.class, com.google.cloud.bigquery.migration.v2.OracleDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.OracleDialect.class, + com.google.cloud.bigquery.migration.v2.OracleDialect.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -59,8 +78,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 { getUnknownFields().writeTo(output); } @@ -78,12 +96,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.bigquery.migration.v2.OracleDialect)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.OracleDialect other = (com.google.cloud.bigquery.migration.v2.OracleDialect) obj; + com.google.cloud.bigquery.migration.v2.OracleDialect other = + (com.google.cloud.bigquery.migration.v2.OracleDialect) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -102,129 +121,135 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.OracleDialect parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.OracleDialect parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.OracleDialect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.OracleDialect parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.OracleDialect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.OracleDialect parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.OracleDialect parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.OracleDialect parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.OracleDialect parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.OracleDialect parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.OracleDialect parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.OracleDialect parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.OracleDialect parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.OracleDialect parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.OracleDialect prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 dialect definition for Oracle.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.OracleDialect} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.OracleDialect) com.google.cloud.bigquery.migration.v2.OracleDialectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_OracleDialect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_OracleDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_OracleDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_OracleDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.OracleDialect.class, com.google.cloud.bigquery.migration.v2.OracleDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.OracleDialect.class, + com.google.cloud.bigquery.migration.v2.OracleDialect.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2.OracleDialect.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -232,9 +257,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_OracleDialect_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_OracleDialect_descriptor; } @java.lang.Override @@ -253,7 +278,8 @@ public com.google.cloud.bigquery.migration.v2.OracleDialect build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2.OracleDialect buildPartial() { - com.google.cloud.bigquery.migration.v2.OracleDialect result = new com.google.cloud.bigquery.migration.v2.OracleDialect(this); + com.google.cloud.bigquery.migration.v2.OracleDialect result = + new com.google.cloud.bigquery.migration.v2.OracleDialect(this); onBuilt(); return result; } @@ -262,38 +288,39 @@ public com.google.cloud.bigquery.migration.v2.OracleDialect buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.OracleDialect) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.OracleDialect)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2.OracleDialect) other); } else { super.mergeFrom(other); return this; @@ -301,7 +328,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.OracleDialect other) { - if (other == com.google.cloud.bigquery.migration.v2.OracleDialect.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.migration.v2.OracleDialect.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -328,12 +356,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -343,9 +372,9 @@ public Builder mergeFrom( } // finally 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); } @@ -355,12 +384,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.OracleDialect) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.OracleDialect) private static final com.google.cloud.bigquery.migration.v2.OracleDialect DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.OracleDialect(); } @@ -369,27 +398,27 @@ public static com.google.cloud.bigquery.migration.v2.OracleDialect getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OracleDialect parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleDialect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -404,6 +433,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.OracleDialect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/OracleDialectOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/OracleDialectOrBuilder.java new file mode 100644 index 0000000..e0a4cac --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/OracleDialectOrBuilder.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/bigquery/migration/v2/translation_config.proto + +package com.google.cloud.bigquery.migration.v2; + +public interface OracleDialectOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.OracleDialect) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/Point.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/Point.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/Point.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/Point.java index 711f2ca..76cd468 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/Point.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/Point.java @@ -1,55 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_metrics.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * A single data point in a time series.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.Point} */ -public final class Point extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Point extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.Point) PointOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Point.newBuilder() to construct. private Point(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Point() { - } + + private Point() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Point(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2_Point_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2_Point_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2_Point_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2_Point_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.Point.class, com.google.cloud.bigquery.migration.v2.Point.Builder.class); + com.google.cloud.bigquery.migration.v2.Point.class, + com.google.cloud.bigquery.migration.v2.Point.Builder.class); } public static final int INTERVAL_FIELD_NUMBER = 1; private com.google.cloud.bigquery.migration.v2.TimeInterval interval_; /** + * + * *
    * The time interval to which the data point applies.  For `GAUGE` metrics,
    * the start time does not need to be supplied, but if it is supplied, it must
@@ -63,6 +83,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.cloud.bigquery.migration.v2.TimeInterval interval = 1; + * * @return Whether the interval field is set. */ @java.lang.Override @@ -70,6 +91,8 @@ public boolean hasInterval() { return interval_ != null; } /** + * + * *
    * The time interval to which the data point applies.  For `GAUGE` metrics,
    * the start time does not need to be supplied, but if it is supplied, it must
@@ -83,13 +106,18 @@ public boolean hasInterval() {
    * 
* * .google.cloud.bigquery.migration.v2.TimeInterval interval = 1; + * * @return The interval. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.TimeInterval getInterval() { - return interval_ == null ? com.google.cloud.bigquery.migration.v2.TimeInterval.getDefaultInstance() : interval_; + return interval_ == null + ? com.google.cloud.bigquery.migration.v2.TimeInterval.getDefaultInstance() + : interval_; } /** + * + * *
    * The time interval to which the data point applies.  For `GAUGE` metrics,
    * the start time does not need to be supplied, but if it is supplied, it must
@@ -106,17 +134,22 @@ public com.google.cloud.bigquery.migration.v2.TimeInterval getInterval() {
    */
   @java.lang.Override
   public com.google.cloud.bigquery.migration.v2.TimeIntervalOrBuilder getIntervalOrBuilder() {
-    return interval_ == null ? com.google.cloud.bigquery.migration.v2.TimeInterval.getDefaultInstance() : interval_;
+    return interval_ == null
+        ? com.google.cloud.bigquery.migration.v2.TimeInterval.getDefaultInstance()
+        : interval_;
   }
 
   public static final int VALUE_FIELD_NUMBER = 2;
   private com.google.cloud.bigquery.migration.v2.TypedValue value_;
   /**
+   *
+   *
    * 
    * The value of the data point.
    * 
* * .google.cloud.bigquery.migration.v2.TypedValue value = 2; + * * @return Whether the value field is set. */ @java.lang.Override @@ -124,18 +157,25 @@ public boolean hasValue() { return value_ != null; } /** + * + * *
    * The value of the data point.
    * 
* * .google.cloud.bigquery.migration.v2.TypedValue value = 2; + * * @return The value. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.TypedValue getValue() { - return value_ == null ? com.google.cloud.bigquery.migration.v2.TypedValue.getDefaultInstance() : value_; + return value_ == null + ? com.google.cloud.bigquery.migration.v2.TypedValue.getDefaultInstance() + : value_; } /** + * + * *
    * The value of the data point.
    * 
@@ -144,10 +184,13 @@ public com.google.cloud.bigquery.migration.v2.TypedValue getValue() { */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.TypedValueOrBuilder getValueOrBuilder() { - return value_ == null ? com.google.cloud.bigquery.migration.v2.TypedValue.getDefaultInstance() : value_; + return value_ == null + ? com.google.cloud.bigquery.migration.v2.TypedValue.getDefaultInstance() + : value_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +202,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 (interval_ != null) { output.writeMessage(1, getInterval()); } @@ -177,12 +219,10 @@ public int getSerializedSize() { size = 0; if (interval_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInterval()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInterval()); } if (value_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getValue()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -192,22 +232,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2.Point)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.Point other = (com.google.cloud.bigquery.migration.v2.Point) obj; + com.google.cloud.bigquery.migration.v2.Point other = + (com.google.cloud.bigquery.migration.v2.Point) obj; if (hasInterval() != other.hasInterval()) return false; if (hasInterval()) { - if (!getInterval() - .equals(other.getInterval())) return false; + if (!getInterval().equals(other.getInterval())) return false; } if (hasValue() != other.hasValue()) return false; if (hasValue()) { - if (!getValue() - .equals(other.getValue())) return false; + if (!getValue().equals(other.getValue())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -233,130 +272,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.migration.v2.Point parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.bigquery.migration.v2.Point parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.Point parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.Point parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.Point parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.Point parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.Point parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.Point 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.bigquery.migration.v2.Point parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.Point parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.Point parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.Point parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.Point parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.Point parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.Point prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 single data point in a time series.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.Point} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.Point) com.google.cloud.bigquery.migration.v2.PointOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2_Point_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2_Point_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2_Point_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2_Point_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.Point.class, com.google.cloud.bigquery.migration.v2.Point.Builder.class); + com.google.cloud.bigquery.migration.v2.Point.class, + com.google.cloud.bigquery.migration.v2.Point.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2.Point.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +420,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2_Point_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2_Point_descriptor; } @java.lang.Override @@ -396,8 +441,11 @@ public com.google.cloud.bigquery.migration.v2.Point build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2.Point buildPartial() { - com.google.cloud.bigquery.migration.v2.Point result = new com.google.cloud.bigquery.migration.v2.Point(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.migration.v2.Point result = + new com.google.cloud.bigquery.migration.v2.Point(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -405,14 +453,10 @@ public com.google.cloud.bigquery.migration.v2.Point buildPartial() { private void buildPartial0(com.google.cloud.bigquery.migration.v2.Point result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.interval_ = intervalBuilder_ == null - ? interval_ - : intervalBuilder_.build(); + result.interval_ = intervalBuilder_ == null ? interval_ : intervalBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.value_ = valueBuilder_ == null - ? value_ - : valueBuilder_.build(); + result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); } } @@ -420,38 +464,39 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.Point result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.Point) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.Point)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2.Point) other); } else { super.mergeFrom(other); return this; @@ -492,26 +537,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getIntervalFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getValueFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getIntervalFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getValueFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -521,12 +565,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.bigquery.migration.v2.TimeInterval interval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.TimeInterval, com.google.cloud.bigquery.migration.v2.TimeInterval.Builder, com.google.cloud.bigquery.migration.v2.TimeIntervalOrBuilder> intervalBuilder_; + com.google.cloud.bigquery.migration.v2.TimeInterval, + com.google.cloud.bigquery.migration.v2.TimeInterval.Builder, + com.google.cloud.bigquery.migration.v2.TimeIntervalOrBuilder> + intervalBuilder_; /** + * + * *
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time does not need to be supplied, but if it is supplied, it must
@@ -540,12 +590,15 @@ public Builder mergeFrom(
      * 
* * .google.cloud.bigquery.migration.v2.TimeInterval interval = 1; + * * @return Whether the interval field is set. */ public boolean hasInterval() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time does not need to be supplied, but if it is supplied, it must
@@ -559,16 +612,21 @@ public boolean hasInterval() {
      * 
* * .google.cloud.bigquery.migration.v2.TimeInterval interval = 1; + * * @return The interval. */ public com.google.cloud.bigquery.migration.v2.TimeInterval getInterval() { if (intervalBuilder_ == null) { - return interval_ == null ? com.google.cloud.bigquery.migration.v2.TimeInterval.getDefaultInstance() : interval_; + return interval_ == null + ? com.google.cloud.bigquery.migration.v2.TimeInterval.getDefaultInstance() + : interval_; } else { return intervalBuilder_.getMessage(); } } /** + * + * *
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time does not need to be supplied, but if it is supplied, it must
@@ -597,6 +655,8 @@ public Builder setInterval(com.google.cloud.bigquery.migration.v2.TimeInterval v
       return this;
     }
     /**
+     *
+     *
      * 
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time does not need to be supplied, but if it is supplied, it must
@@ -623,6 +683,8 @@ public Builder setInterval(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time does not need to be supplied, but if it is supplied, it must
@@ -639,9 +701,10 @@ public Builder setInterval(
      */
     public Builder mergeInterval(com.google.cloud.bigquery.migration.v2.TimeInterval value) {
       if (intervalBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          interval_ != null &&
-          interval_ != com.google.cloud.bigquery.migration.v2.TimeInterval.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && interval_ != null
+            && interval_
+                != com.google.cloud.bigquery.migration.v2.TimeInterval.getDefaultInstance()) {
           getIntervalBuilder().mergeFrom(value);
         } else {
           interval_ = value;
@@ -654,6 +717,8 @@ public Builder mergeInterval(com.google.cloud.bigquery.migration.v2.TimeInterval
       return this;
     }
     /**
+     *
+     *
      * 
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time does not need to be supplied, but if it is supplied, it must
@@ -679,6 +744,8 @@ public Builder clearInterval() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time does not need to be supplied, but if it is supplied, it must
@@ -699,6 +766,8 @@ public com.google.cloud.bigquery.migration.v2.TimeInterval.Builder getIntervalBu
       return getIntervalFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time does not need to be supplied, but if it is supplied, it must
@@ -717,11 +786,14 @@ public com.google.cloud.bigquery.migration.v2.TimeIntervalOrBuilder getIntervalO
       if (intervalBuilder_ != null) {
         return intervalBuilder_.getMessageOrBuilder();
       } else {
-        return interval_ == null ?
-            com.google.cloud.bigquery.migration.v2.TimeInterval.getDefaultInstance() : interval_;
+        return interval_ == null
+            ? com.google.cloud.bigquery.migration.v2.TimeInterval.getDefaultInstance()
+            : interval_;
       }
     }
     /**
+     *
+     *
      * 
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time does not need to be supplied, but if it is supplied, it must
@@ -737,14 +809,17 @@ public com.google.cloud.bigquery.migration.v2.TimeIntervalOrBuilder getIntervalO
      * .google.cloud.bigquery.migration.v2.TimeInterval interval = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.migration.v2.TimeInterval, com.google.cloud.bigquery.migration.v2.TimeInterval.Builder, com.google.cloud.bigquery.migration.v2.TimeIntervalOrBuilder> 
+            com.google.cloud.bigquery.migration.v2.TimeInterval,
+            com.google.cloud.bigquery.migration.v2.TimeInterval.Builder,
+            com.google.cloud.bigquery.migration.v2.TimeIntervalOrBuilder>
         getIntervalFieldBuilder() {
       if (intervalBuilder_ == null) {
-        intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.migration.v2.TimeInterval, com.google.cloud.bigquery.migration.v2.TimeInterval.Builder, com.google.cloud.bigquery.migration.v2.TimeIntervalOrBuilder>(
-                getInterval(),
-                getParentForChildren(),
-                isClean());
+        intervalBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.bigquery.migration.v2.TimeInterval,
+                com.google.cloud.bigquery.migration.v2.TimeInterval.Builder,
+                com.google.cloud.bigquery.migration.v2.TimeIntervalOrBuilder>(
+                getInterval(), getParentForChildren(), isClean());
         interval_ = null;
       }
       return intervalBuilder_;
@@ -752,34 +827,47 @@ public com.google.cloud.bigquery.migration.v2.TimeIntervalOrBuilder getIntervalO
 
     private com.google.cloud.bigquery.migration.v2.TypedValue value_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.migration.v2.TypedValue, com.google.cloud.bigquery.migration.v2.TypedValue.Builder, com.google.cloud.bigquery.migration.v2.TypedValueOrBuilder> valueBuilder_;
+            com.google.cloud.bigquery.migration.v2.TypedValue,
+            com.google.cloud.bigquery.migration.v2.TypedValue.Builder,
+            com.google.cloud.bigquery.migration.v2.TypedValueOrBuilder>
+        valueBuilder_;
     /**
+     *
+     *
      * 
      * The value of the data point.
      * 
* * .google.cloud.bigquery.migration.v2.TypedValue value = 2; + * * @return Whether the value field is set. */ public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The value of the data point.
      * 
* * .google.cloud.bigquery.migration.v2.TypedValue value = 2; + * * @return The value. */ public com.google.cloud.bigquery.migration.v2.TypedValue getValue() { if (valueBuilder_ == null) { - return value_ == null ? com.google.cloud.bigquery.migration.v2.TypedValue.getDefaultInstance() : value_; + return value_ == null + ? com.google.cloud.bigquery.migration.v2.TypedValue.getDefaultInstance() + : value_; } else { return valueBuilder_.getMessage(); } } /** + * + * *
      * The value of the data point.
      * 
@@ -800,6 +888,8 @@ public Builder setValue(com.google.cloud.bigquery.migration.v2.TypedValue value) return this; } /** + * + * *
      * The value of the data point.
      * 
@@ -818,6 +908,8 @@ public Builder setValue( return this; } /** + * + * *
      * The value of the data point.
      * 
@@ -826,9 +918,9 @@ public Builder setValue( */ public Builder mergeValue(com.google.cloud.bigquery.migration.v2.TypedValue value) { if (valueBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - value_ != null && - value_ != com.google.cloud.bigquery.migration.v2.TypedValue.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && value_ != null + && value_ != com.google.cloud.bigquery.migration.v2.TypedValue.getDefaultInstance()) { getValueBuilder().mergeFrom(value); } else { value_ = value; @@ -841,6 +933,8 @@ public Builder mergeValue(com.google.cloud.bigquery.migration.v2.TypedValue valu return this; } /** + * + * *
      * The value of the data point.
      * 
@@ -858,6 +952,8 @@ public Builder clearValue() { return this; } /** + * + * *
      * The value of the data point.
      * 
@@ -870,6 +966,8 @@ public com.google.cloud.bigquery.migration.v2.TypedValue.Builder getValueBuilder return getValueFieldBuilder().getBuilder(); } /** + * + * *
      * The value of the data point.
      * 
@@ -880,11 +978,14 @@ public com.google.cloud.bigquery.migration.v2.TypedValueOrBuilder getValueOrBuil if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { - return value_ == null ? - com.google.cloud.bigquery.migration.v2.TypedValue.getDefaultInstance() : value_; + return value_ == null + ? com.google.cloud.bigquery.migration.v2.TypedValue.getDefaultInstance() + : value_; } } /** + * + * *
      * The value of the data point.
      * 
@@ -892,21 +993,24 @@ public com.google.cloud.bigquery.migration.v2.TypedValueOrBuilder getValueOrBuil * .google.cloud.bigquery.migration.v2.TypedValue value = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.TypedValue, com.google.cloud.bigquery.migration.v2.TypedValue.Builder, com.google.cloud.bigquery.migration.v2.TypedValueOrBuilder> + com.google.cloud.bigquery.migration.v2.TypedValue, + com.google.cloud.bigquery.migration.v2.TypedValue.Builder, + com.google.cloud.bigquery.migration.v2.TypedValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { - valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.TypedValue, com.google.cloud.bigquery.migration.v2.TypedValue.Builder, com.google.cloud.bigquery.migration.v2.TypedValueOrBuilder>( - getValue(), - getParentForChildren(), - isClean()); + valueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.TypedValue, + com.google.cloud.bigquery.migration.v2.TypedValue.Builder, + com.google.cloud.bigquery.migration.v2.TypedValueOrBuilder>( + getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } + @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); } @@ -916,12 +1020,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.Point) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.Point) private static final com.google.cloud.bigquery.migration.v2.Point DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.Point(); } @@ -930,27 +1034,27 @@ public static com.google.cloud.bigquery.migration.v2.Point getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Point parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Point parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -965,6 +1069,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.Point getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PointOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PointOrBuilder.java similarity index 83% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PointOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PointOrBuilder.java index 6f3468f..ac1c1b9 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PointOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PointOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_metrics.proto package com.google.cloud.bigquery.migration.v2; -public interface PointOrBuilder extends +public interface PointOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.Point) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The time interval to which the data point applies.  For `GAUGE` metrics,
    * the start time does not need to be supplied, but if it is supplied, it must
@@ -21,10 +39,13 @@ public interface PointOrBuilder extends
    * 
* * .google.cloud.bigquery.migration.v2.TimeInterval interval = 1; + * * @return Whether the interval field is set. */ boolean hasInterval(); /** + * + * *
    * The time interval to which the data point applies.  For `GAUGE` metrics,
    * the start time does not need to be supplied, but if it is supplied, it must
@@ -38,10 +59,13 @@ public interface PointOrBuilder extends
    * 
* * .google.cloud.bigquery.migration.v2.TimeInterval interval = 1; + * * @return The interval. */ com.google.cloud.bigquery.migration.v2.TimeInterval getInterval(); /** + * + * *
    * The time interval to which the data point applies.  For `GAUGE` metrics,
    * the start time does not need to be supplied, but if it is supplied, it must
@@ -59,24 +83,32 @@ public interface PointOrBuilder extends
   com.google.cloud.bigquery.migration.v2.TimeIntervalOrBuilder getIntervalOrBuilder();
 
   /**
+   *
+   *
    * 
    * The value of the data point.
    * 
* * .google.cloud.bigquery.migration.v2.TypedValue value = 2; + * * @return Whether the value field is set. */ boolean hasValue(); /** + * + * *
    * The value of the data point.
    * 
* * .google.cloud.bigquery.migration.v2.TypedValue value = 2; + * * @return The value. */ com.google.cloud.bigquery.migration.v2.TypedValue getValue(); /** + * + * *
    * The value of the data point.
    * 
diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PostgresqlDialect.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PostgresqlDialect.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PostgresqlDialect.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PostgresqlDialect.java index 848f1c7..af558ff 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PostgresqlDialect.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PostgresqlDialect.java @@ -1,53 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * The dialect definition for Postgresql.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.PostgresqlDialect} */ -public final class PostgresqlDialect extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PostgresqlDialect extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.PostgresqlDialect) PostgresqlDialectOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PostgresqlDialect.newBuilder() to construct. private PostgresqlDialect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PostgresqlDialect() { - } + + private PostgresqlDialect() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PostgresqlDialect(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_PostgresqlDialect_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_PostgresqlDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_PostgresqlDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_PostgresqlDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.PostgresqlDialect.class, com.google.cloud.bigquery.migration.v2.PostgresqlDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.PostgresqlDialect.class, + com.google.cloud.bigquery.migration.v2.PostgresqlDialect.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -59,8 +78,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 { getUnknownFields().writeTo(output); } @@ -78,12 +96,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.bigquery.migration.v2.PostgresqlDialect)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.PostgresqlDialect other = (com.google.cloud.bigquery.migration.v2.PostgresqlDialect) obj; + com.google.cloud.bigquery.migration.v2.PostgresqlDialect other = + (com.google.cloud.bigquery.migration.v2.PostgresqlDialect) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -102,129 +121,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.PostgresqlDialect parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.PostgresqlDialect parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.PostgresqlDialect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.PostgresqlDialect parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.PostgresqlDialect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.PostgresqlDialect parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.PostgresqlDialect parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.PostgresqlDialect parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.PostgresqlDialect parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.PostgresqlDialect parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.PostgresqlDialect parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.PostgresqlDialect parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.PostgresqlDialect parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.PostgresqlDialect parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.PostgresqlDialect prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.PostgresqlDialect prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 dialect definition for Postgresql.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.PostgresqlDialect} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.PostgresqlDialect) com.google.cloud.bigquery.migration.v2.PostgresqlDialectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_PostgresqlDialect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_PostgresqlDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_PostgresqlDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_PostgresqlDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.PostgresqlDialect.class, com.google.cloud.bigquery.migration.v2.PostgresqlDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.PostgresqlDialect.class, + com.google.cloud.bigquery.migration.v2.PostgresqlDialect.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2.PostgresqlDialect.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -232,9 +258,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_PostgresqlDialect_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_PostgresqlDialect_descriptor; } @java.lang.Override @@ -253,7 +279,8 @@ public com.google.cloud.bigquery.migration.v2.PostgresqlDialect build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2.PostgresqlDialect buildPartial() { - com.google.cloud.bigquery.migration.v2.PostgresqlDialect result = new com.google.cloud.bigquery.migration.v2.PostgresqlDialect(this); + com.google.cloud.bigquery.migration.v2.PostgresqlDialect result = + new com.google.cloud.bigquery.migration.v2.PostgresqlDialect(this); onBuilt(); return result; } @@ -262,38 +289,39 @@ public com.google.cloud.bigquery.migration.v2.PostgresqlDialect buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.PostgresqlDialect) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.PostgresqlDialect)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2.PostgresqlDialect) other); } else { super.mergeFrom(other); return this; @@ -301,7 +329,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.PostgresqlDialect other) { - if (other == com.google.cloud.bigquery.migration.v2.PostgresqlDialect.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.migration.v2.PostgresqlDialect.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -328,12 +357,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -343,9 +373,9 @@ public Builder mergeFrom( } // finally 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); } @@ -355,12 +385,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.PostgresqlDialect) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.PostgresqlDialect) private static final com.google.cloud.bigquery.migration.v2.PostgresqlDialect DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.PostgresqlDialect(); } @@ -369,27 +399,27 @@ public static com.google.cloud.bigquery.migration.v2.PostgresqlDialect getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PostgresqlDialect parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgresqlDialect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -404,6 +434,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.PostgresqlDialect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PostgresqlDialectOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PostgresqlDialectOrBuilder.java new file mode 100644 index 0000000..7088835 --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PostgresqlDialectOrBuilder.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/bigquery/migration/v2/translation_config.proto + +package com.google.cloud.bigquery.migration.v2; + +public interface PostgresqlDialectOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.PostgresqlDialect) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PrestoDialect.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PrestoDialect.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PrestoDialect.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PrestoDialect.java index d1bbd5c..53a96f7 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PrestoDialect.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PrestoDialect.java @@ -1,53 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * The dialect definition for Presto.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.PrestoDialect} */ -public final class PrestoDialect extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PrestoDialect extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.PrestoDialect) PrestoDialectOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PrestoDialect.newBuilder() to construct. private PrestoDialect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PrestoDialect() { - } + + private PrestoDialect() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PrestoDialect(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_PrestoDialect_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_PrestoDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_PrestoDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_PrestoDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.PrestoDialect.class, com.google.cloud.bigquery.migration.v2.PrestoDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.PrestoDialect.class, + com.google.cloud.bigquery.migration.v2.PrestoDialect.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -59,8 +78,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 { getUnknownFields().writeTo(output); } @@ -78,12 +96,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.bigquery.migration.v2.PrestoDialect)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.PrestoDialect other = (com.google.cloud.bigquery.migration.v2.PrestoDialect) obj; + com.google.cloud.bigquery.migration.v2.PrestoDialect other = + (com.google.cloud.bigquery.migration.v2.PrestoDialect) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -102,129 +121,135 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.PrestoDialect parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.PrestoDialect parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.PrestoDialect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.PrestoDialect parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.PrestoDialect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.PrestoDialect parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.PrestoDialect parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.PrestoDialect parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.PrestoDialect parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.PrestoDialect parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.PrestoDialect parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.PrestoDialect parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.PrestoDialect parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.PrestoDialect parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.PrestoDialect prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 dialect definition for Presto.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.PrestoDialect} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.PrestoDialect) com.google.cloud.bigquery.migration.v2.PrestoDialectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_PrestoDialect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_PrestoDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_PrestoDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_PrestoDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.PrestoDialect.class, com.google.cloud.bigquery.migration.v2.PrestoDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.PrestoDialect.class, + com.google.cloud.bigquery.migration.v2.PrestoDialect.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2.PrestoDialect.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -232,9 +257,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_PrestoDialect_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_PrestoDialect_descriptor; } @java.lang.Override @@ -253,7 +278,8 @@ public com.google.cloud.bigquery.migration.v2.PrestoDialect build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2.PrestoDialect buildPartial() { - com.google.cloud.bigquery.migration.v2.PrestoDialect result = new com.google.cloud.bigquery.migration.v2.PrestoDialect(this); + com.google.cloud.bigquery.migration.v2.PrestoDialect result = + new com.google.cloud.bigquery.migration.v2.PrestoDialect(this); onBuilt(); return result; } @@ -262,38 +288,39 @@ public com.google.cloud.bigquery.migration.v2.PrestoDialect buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.PrestoDialect) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.PrestoDialect)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2.PrestoDialect) other); } else { super.mergeFrom(other); return this; @@ -301,7 +328,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.PrestoDialect other) { - if (other == com.google.cloud.bigquery.migration.v2.PrestoDialect.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.migration.v2.PrestoDialect.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -328,12 +356,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -343,9 +372,9 @@ public Builder mergeFrom( } // finally 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); } @@ -355,12 +384,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.PrestoDialect) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.PrestoDialect) private static final com.google.cloud.bigquery.migration.v2.PrestoDialect DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.PrestoDialect(); } @@ -369,27 +398,27 @@ public static com.google.cloud.bigquery.migration.v2.PrestoDialect getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrestoDialect parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrestoDialect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -404,6 +433,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.PrestoDialect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PrestoDialectOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PrestoDialectOrBuilder.java new file mode 100644 index 0000000..f0aad24 --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/PrestoDialectOrBuilder.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/bigquery/migration/v2/translation_config.proto + +package com.google.cloud.bigquery.migration.v2; + +public interface PrestoDialectOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.PrestoDialect) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/RedshiftDialect.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/RedshiftDialect.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/RedshiftDialect.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/RedshiftDialect.java index 8379f34..1142948 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/RedshiftDialect.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/RedshiftDialect.java @@ -1,53 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * The dialect definition for Redshift.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.RedshiftDialect} */ -public final class RedshiftDialect extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RedshiftDialect extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.RedshiftDialect) RedshiftDialectOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RedshiftDialect.newBuilder() to construct. private RedshiftDialect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RedshiftDialect() { - } + + private RedshiftDialect() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RedshiftDialect(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_RedshiftDialect_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_RedshiftDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_RedshiftDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_RedshiftDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.RedshiftDialect.class, com.google.cloud.bigquery.migration.v2.RedshiftDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.RedshiftDialect.class, + com.google.cloud.bigquery.migration.v2.RedshiftDialect.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -59,8 +78,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 { getUnknownFields().writeTo(output); } @@ -78,12 +96,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.bigquery.migration.v2.RedshiftDialect)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.RedshiftDialect other = (com.google.cloud.bigquery.migration.v2.RedshiftDialect) obj; + com.google.cloud.bigquery.migration.v2.RedshiftDialect other = + (com.google.cloud.bigquery.migration.v2.RedshiftDialect) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -102,129 +121,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.RedshiftDialect parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.RedshiftDialect parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.RedshiftDialect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.RedshiftDialect parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.RedshiftDialect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.RedshiftDialect parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.RedshiftDialect parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.RedshiftDialect parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.RedshiftDialect parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.RedshiftDialect parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.RedshiftDialect parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.RedshiftDialect parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.RedshiftDialect parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.RedshiftDialect parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.RedshiftDialect prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.RedshiftDialect prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 dialect definition for Redshift.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.RedshiftDialect} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.RedshiftDialect) com.google.cloud.bigquery.migration.v2.RedshiftDialectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_RedshiftDialect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_RedshiftDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_RedshiftDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_RedshiftDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.RedshiftDialect.class, com.google.cloud.bigquery.migration.v2.RedshiftDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.RedshiftDialect.class, + com.google.cloud.bigquery.migration.v2.RedshiftDialect.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2.RedshiftDialect.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -232,9 +258,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_RedshiftDialect_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_RedshiftDialect_descriptor; } @java.lang.Override @@ -253,7 +279,8 @@ public com.google.cloud.bigquery.migration.v2.RedshiftDialect build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2.RedshiftDialect buildPartial() { - com.google.cloud.bigquery.migration.v2.RedshiftDialect result = new com.google.cloud.bigquery.migration.v2.RedshiftDialect(this); + com.google.cloud.bigquery.migration.v2.RedshiftDialect result = + new com.google.cloud.bigquery.migration.v2.RedshiftDialect(this); onBuilt(); return result; } @@ -262,38 +289,39 @@ public com.google.cloud.bigquery.migration.v2.RedshiftDialect buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.RedshiftDialect) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.RedshiftDialect)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2.RedshiftDialect) other); } else { super.mergeFrom(other); return this; @@ -301,7 +329,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.RedshiftDialect other) { - if (other == com.google.cloud.bigquery.migration.v2.RedshiftDialect.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.migration.v2.RedshiftDialect.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -328,12 +357,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -343,9 +373,9 @@ public Builder mergeFrom( } // finally 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); } @@ -355,12 +385,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.RedshiftDialect) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.RedshiftDialect) private static final com.google.cloud.bigquery.migration.v2.RedshiftDialect DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.RedshiftDialect(); } @@ -369,27 +399,27 @@ public static com.google.cloud.bigquery.migration.v2.RedshiftDialect getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RedshiftDialect parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RedshiftDialect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -404,6 +434,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.RedshiftDialect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/RedshiftDialectOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/RedshiftDialectOrBuilder.java new file mode 100644 index 0000000..25b6013 --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/RedshiftDialectOrBuilder.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/bigquery/migration/v2/translation_config.proto + +package com.google.cloud.bigquery.migration.v2; + +public interface RedshiftDialectOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.RedshiftDialect) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ResourceErrorDetail.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ResourceErrorDetail.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ResourceErrorDetail.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ResourceErrorDetail.java index 3c7e3c1..c9ea085 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ResourceErrorDetail.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ResourceErrorDetail.java @@ -1,61 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_error_details.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * Provides details for errors and the corresponding resources.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.ResourceErrorDetail} */ -public final class ResourceErrorDetail extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ResourceErrorDetail extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.ResourceErrorDetail) ResourceErrorDetailOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResourceErrorDetail.newBuilder() to construct. private ResourceErrorDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ResourceErrorDetail() { errorDetails_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResourceErrorDetail(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2_ResourceErrorDetail_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_ResourceErrorDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2_ResourceErrorDetail_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_ResourceErrorDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.class, com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder.class); + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.class, + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder.class); } public static final int RESOURCE_INFO_FIELD_NUMBER = 1; private com.google.rpc.ResourceInfo resourceInfo_; /** + * + * *
    * Required. Information about the resource where the error is located.
    * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resourceInfo field is set. */ @java.lang.Override @@ -63,11 +86,15 @@ public boolean hasResourceInfo() { return resourceInfo_ != null; } /** + * + * *
    * Required. Information about the resource where the error is located.
    * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resourceInfo. */ @java.lang.Override @@ -75,11 +102,14 @@ public com.google.rpc.ResourceInfo getResourceInfo() { return resourceInfo_ == null ? com.google.rpc.ResourceInfo.getDefaultInstance() : resourceInfo_; } /** + * + * *
    * Required. Information about the resource where the error is located.
    * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.rpc.ResourceInfoOrBuilder getResourceInfoOrBuilder() { @@ -87,59 +117,80 @@ public com.google.rpc.ResourceInfoOrBuilder getResourceInfoOrBuilder() { } public static final int ERROR_DETAILS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List errorDetails_; /** + * + * *
    * Required. The error details for the resource.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getErrorDetailsList() { return errorDetails_; } /** + * + * *
    * Required. The error details for the resource.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getErrorDetailsOrBuilderList() { return errorDetails_; } /** + * + * *
    * Required. The error details for the resource.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getErrorDetailsCount() { return errorDetails_.size(); } /** + * + * *
    * Required. The error details for the resource.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.ErrorDetail getErrorDetails(int index) { return errorDetails_.get(index); } /** + * + * *
    * Required. The error details for the resource.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.ErrorDetailOrBuilder getErrorDetailsOrBuilder( @@ -150,6 +201,8 @@ public com.google.cloud.bigquery.migration.v2.ErrorDetailOrBuilder getErrorDetai public static final int ERROR_COUNT_FIELD_NUMBER = 3; private int errorCount_ = 0; /** + * + * *
    * Required. How many errors there are in total for the resource. Truncation can be
    * indicated by having an `error_count` that is higher than the size of
@@ -157,6 +210,7 @@ public com.google.cloud.bigquery.migration.v2.ErrorDetailOrBuilder getErrorDetai
    * 
* * int32 error_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The errorCount. */ @java.lang.Override @@ -165,6 +219,7 @@ public int getErrorCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,8 +231,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 (resourceInfo_ != null) { output.writeMessage(1, getResourceInfo()); } @@ -197,16 +251,13 @@ public int getSerializedSize() { size = 0; if (resourceInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getResourceInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getResourceInfo()); } for (int i = 0; i < errorDetails_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, errorDetails_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, errorDetails_.get(i)); } if (errorCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, errorCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, errorCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -216,22 +267,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2.ResourceErrorDetail)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.ResourceErrorDetail other = (com.google.cloud.bigquery.migration.v2.ResourceErrorDetail) obj; + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail other = + (com.google.cloud.bigquery.migration.v2.ResourceErrorDetail) obj; if (hasResourceInfo() != other.hasResourceInfo()) return false; if (hasResourceInfo()) { - if (!getResourceInfo() - .equals(other.getResourceInfo())) return false; + if (!getResourceInfo().equals(other.getResourceInfo())) return false; } - if (!getErrorDetailsList() - .equals(other.getErrorDetailsList())) return false; - if (getErrorCount() - != other.getErrorCount()) return false; + if (!getErrorDetailsList().equals(other.getErrorDetailsList())) return false; + if (getErrorCount() != other.getErrorCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -259,129 +308,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.ResourceErrorDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.ResourceErrorDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.ResourceErrorDetail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.ResourceErrorDetail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.ResourceErrorDetail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.ResourceErrorDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.ResourceErrorDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.ResourceErrorDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.ResourceErrorDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.ResourceErrorDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.ResourceErrorDetail parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.ResourceErrorDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.ResourceErrorDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.ResourceErrorDetail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.ResourceErrorDetail prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Provides details for errors and the corresponding resources.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.ResourceErrorDetail} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.ResourceErrorDetail) com.google.cloud.bigquery.migration.v2.ResourceErrorDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2_ResourceErrorDetail_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_ResourceErrorDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2_ResourceErrorDetail_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_ResourceErrorDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.class, com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder.class); + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.class, + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -403,9 +459,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2_ResourceErrorDetail_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.MigrationErrorDetailsProto + .internal_static_google_cloud_bigquery_migration_v2_ResourceErrorDetail_descriptor; } @java.lang.Override @@ -424,14 +480,18 @@ public com.google.cloud.bigquery.migration.v2.ResourceErrorDetail build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2.ResourceErrorDetail buildPartial() { - com.google.cloud.bigquery.migration.v2.ResourceErrorDetail result = new com.google.cloud.bigquery.migration.v2.ResourceErrorDetail(this); + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail result = + new com.google.cloud.bigquery.migration.v2.ResourceErrorDetail(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.bigquery.migration.v2.ResourceErrorDetail result) { + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.migration.v2.ResourceErrorDetail result) { if (errorDetailsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { errorDetails_ = java.util.Collections.unmodifiableList(errorDetails_); @@ -446,9 +506,8 @@ private void buildPartialRepeatedFields(com.google.cloud.bigquery.migration.v2.R private void buildPartial0(com.google.cloud.bigquery.migration.v2.ResourceErrorDetail result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.resourceInfo_ = resourceInfoBuilder_ == null - ? resourceInfo_ - : resourceInfoBuilder_.build(); + result.resourceInfo_ = + resourceInfoBuilder_ == null ? resourceInfo_ : resourceInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.errorCount_ = errorCount_; @@ -459,38 +518,39 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.ResourceErrorD public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.ResourceErrorDetail) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.ResourceErrorDetail)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2.ResourceErrorDetail) other); } else { super.mergeFrom(other); return this; @@ -498,7 +558,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.ResourceErrorDetail other) { - if (other == com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.getDefaultInstance()) + return this; if (other.hasResourceInfo()) { mergeResourceInfo(other.getResourceInfo()); } @@ -520,9 +581,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.ResourceErrorDet errorDetailsBuilder_ = null; errorDetails_ = other.errorDetails_; bitField0_ = (bitField0_ & ~0x00000002); - errorDetailsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getErrorDetailsFieldBuilder() : null; + errorDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorDetailsFieldBuilder() + : null; } else { errorDetailsBuilder_.addAllMessages(other.errorDetails_); } @@ -557,37 +619,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getResourceInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.cloud.bigquery.migration.v2.ErrorDetail m = - input.readMessage( - com.google.cloud.bigquery.migration.v2.ErrorDetail.parser(), - extensionRegistry); - if (errorDetailsBuilder_ == null) { - ensureErrorDetailsIsMutable(); - errorDetails_.add(m); - } else { - errorDetailsBuilder_.addMessage(m); - } - break; - } // case 18 - case 24: { - errorCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getResourceInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.bigquery.migration.v2.ErrorDetail m = + input.readMessage( + com.google.cloud.bigquery.migration.v2.ErrorDetail.parser(), + extensionRegistry); + if (errorDetailsBuilder_ == null) { + ensureErrorDetailsIsMutable(); + errorDetails_.add(m); + } else { + errorDetailsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: + { + errorCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -597,43 +661,60 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.rpc.ResourceInfo resourceInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.ResourceInfo, com.google.rpc.ResourceInfo.Builder, com.google.rpc.ResourceInfoOrBuilder> resourceInfoBuilder_; + com.google.rpc.ResourceInfo, + com.google.rpc.ResourceInfo.Builder, + com.google.rpc.ResourceInfoOrBuilder> + resourceInfoBuilder_; /** + * + * *
      * Required. Information about the resource where the error is located.
      * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resourceInfo field is set. */ public boolean hasResourceInfo() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. Information about the resource where the error is located.
      * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resourceInfo. */ public com.google.rpc.ResourceInfo getResourceInfo() { if (resourceInfoBuilder_ == null) { - return resourceInfo_ == null ? com.google.rpc.ResourceInfo.getDefaultInstance() : resourceInfo_; + return resourceInfo_ == null + ? com.google.rpc.ResourceInfo.getDefaultInstance() + : resourceInfo_; } else { return resourceInfoBuilder_.getMessage(); } } /** + * + * *
      * Required. Information about the resource where the error is located.
      * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setResourceInfo(com.google.rpc.ResourceInfo value) { if (resourceInfoBuilder_ == null) { @@ -649,14 +730,16 @@ public Builder setResourceInfo(com.google.rpc.ResourceInfo value) { return this; } /** + * + * *
      * Required. Information about the resource where the error is located.
      * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setResourceInfo( - com.google.rpc.ResourceInfo.Builder builderForValue) { + public Builder setResourceInfo(com.google.rpc.ResourceInfo.Builder builderForValue) { if (resourceInfoBuilder_ == null) { resourceInfo_ = builderForValue.build(); } else { @@ -667,17 +750,20 @@ public Builder setResourceInfo( return this; } /** + * + * *
      * Required. Information about the resource where the error is located.
      * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeResourceInfo(com.google.rpc.ResourceInfo value) { if (resourceInfoBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - resourceInfo_ != null && - resourceInfo_ != com.google.rpc.ResourceInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && resourceInfo_ != null + && resourceInfo_ != com.google.rpc.ResourceInfo.getDefaultInstance()) { getResourceInfoBuilder().mergeFrom(value); } else { resourceInfo_ = value; @@ -690,11 +776,14 @@ public Builder mergeResourceInfo(com.google.rpc.ResourceInfo value) { return this; } /** + * + * *
      * Required. Information about the resource where the error is located.
      * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearResourceInfo() { bitField0_ = (bitField0_ & ~0x00000001); @@ -707,11 +796,14 @@ public Builder clearResourceInfo() { return this; } /** + * + * *
      * Required. Information about the resource where the error is located.
      * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.rpc.ResourceInfo.Builder getResourceInfoBuilder() { bitField0_ |= 0x00000001; @@ -719,61 +811,82 @@ public com.google.rpc.ResourceInfo.Builder getResourceInfoBuilder() { return getResourceInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Information about the resource where the error is located.
      * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.rpc.ResourceInfoOrBuilder getResourceInfoOrBuilder() { if (resourceInfoBuilder_ != null) { return resourceInfoBuilder_.getMessageOrBuilder(); } else { - return resourceInfo_ == null ? - com.google.rpc.ResourceInfo.getDefaultInstance() : resourceInfo_; + return resourceInfo_ == null + ? com.google.rpc.ResourceInfo.getDefaultInstance() + : resourceInfo_; } } /** + * + * *
      * Required. Information about the resource where the error is located.
      * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.ResourceInfo, com.google.rpc.ResourceInfo.Builder, com.google.rpc.ResourceInfoOrBuilder> + com.google.rpc.ResourceInfo, + com.google.rpc.ResourceInfo.Builder, + com.google.rpc.ResourceInfoOrBuilder> getResourceInfoFieldBuilder() { if (resourceInfoBuilder_ == null) { - resourceInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.ResourceInfo, com.google.rpc.ResourceInfo.Builder, com.google.rpc.ResourceInfoOrBuilder>( - getResourceInfo(), - getParentForChildren(), - isClean()); + resourceInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.ResourceInfo, + com.google.rpc.ResourceInfo.Builder, + com.google.rpc.ResourceInfoOrBuilder>( + getResourceInfo(), getParentForChildren(), isClean()); resourceInfo_ = null; } return resourceInfoBuilder_; } private java.util.List errorDetails_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureErrorDetailsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - errorDetails_ = new java.util.ArrayList(errorDetails_); + errorDetails_ = + new java.util.ArrayList( + errorDetails_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.ErrorDetail, com.google.cloud.bigquery.migration.v2.ErrorDetail.Builder, com.google.cloud.bigquery.migration.v2.ErrorDetailOrBuilder> errorDetailsBuilder_; + com.google.cloud.bigquery.migration.v2.ErrorDetail, + com.google.cloud.bigquery.migration.v2.ErrorDetail.Builder, + com.google.cloud.bigquery.migration.v2.ErrorDetailOrBuilder> + errorDetailsBuilder_; /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List getErrorDetailsList() { + public java.util.List + getErrorDetailsList() { if (errorDetailsBuilder_ == null) { return java.util.Collections.unmodifiableList(errorDetails_); } else { @@ -781,11 +894,15 @@ public java.util.List getErr } } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getErrorDetailsCount() { if (errorDetailsBuilder_ == null) { @@ -795,11 +912,15 @@ public int getErrorDetailsCount() { } } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.migration.v2.ErrorDetail getErrorDetails(int index) { if (errorDetailsBuilder_ == null) { @@ -809,11 +930,15 @@ public com.google.cloud.bigquery.migration.v2.ErrorDetail getErrorDetails(int in } } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setErrorDetails( int index, com.google.cloud.bigquery.migration.v2.ErrorDetail value) { @@ -830,11 +955,15 @@ public Builder setErrorDetails( return this; } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setErrorDetails( int index, com.google.cloud.bigquery.migration.v2.ErrorDetail.Builder builderForValue) { @@ -848,11 +977,15 @@ public Builder setErrorDetails( return this; } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addErrorDetails(com.google.cloud.bigquery.migration.v2.ErrorDetail value) { if (errorDetailsBuilder_ == null) { @@ -868,11 +1001,15 @@ public Builder addErrorDetails(com.google.cloud.bigquery.migration.v2.ErrorDetai return this; } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addErrorDetails( int index, com.google.cloud.bigquery.migration.v2.ErrorDetail value) { @@ -889,11 +1026,15 @@ public Builder addErrorDetails( return this; } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addErrorDetails( com.google.cloud.bigquery.migration.v2.ErrorDetail.Builder builderForValue) { @@ -907,11 +1048,15 @@ public Builder addErrorDetails( return this; } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addErrorDetails( int index, com.google.cloud.bigquery.migration.v2.ErrorDetail.Builder builderForValue) { @@ -925,18 +1070,21 @@ public Builder addErrorDetails( return this; } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllErrorDetails( java.lang.Iterable values) { if (errorDetailsBuilder_ == null) { ensureErrorDetailsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, errorDetails_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorDetails_); onChanged(); } else { errorDetailsBuilder_.addAllMessages(values); @@ -944,11 +1092,15 @@ public Builder addAllErrorDetails( return this; } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearErrorDetails() { if (errorDetailsBuilder_ == null) { @@ -961,11 +1113,15 @@ public Builder clearErrorDetails() { return this; } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeErrorDetails(int index) { if (errorDetailsBuilder_ == null) { @@ -978,39 +1134,52 @@ public Builder removeErrorDetails(int index) { return this; } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.migration.v2.ErrorDetail.Builder getErrorDetailsBuilder( int index) { return getErrorDetailsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.migration.v2.ErrorDetailOrBuilder getErrorDetailsOrBuilder( int index) { if (errorDetailsBuilder_ == null) { - return errorDetails_.get(index); } else { + return errorDetails_.get(index); + } else { return errorDetailsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getErrorDetailsOrBuilderList() { + public java.util.List + getErrorDetailsOrBuilderList() { if (errorDetailsBuilder_ != null) { return errorDetailsBuilder_.getMessageOrBuilderList(); } else { @@ -1018,56 +1187,74 @@ public com.google.cloud.bigquery.migration.v2.ErrorDetailOrBuilder getErrorDetai } } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.migration.v2.ErrorDetail.Builder addErrorDetailsBuilder() { - return getErrorDetailsFieldBuilder().addBuilder( - com.google.cloud.bigquery.migration.v2.ErrorDetail.getDefaultInstance()); + return getErrorDetailsFieldBuilder() + .addBuilder(com.google.cloud.bigquery.migration.v2.ErrorDetail.getDefaultInstance()); } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.migration.v2.ErrorDetail.Builder addErrorDetailsBuilder( int index) { - return getErrorDetailsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.migration.v2.ErrorDetail.getDefaultInstance()); + return getErrorDetailsFieldBuilder() + .addBuilder( + index, com.google.cloud.bigquery.migration.v2.ErrorDetail.getDefaultInstance()); } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getErrorDetailsBuilderList() { + public java.util.List + getErrorDetailsBuilderList() { return getErrorDetailsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.ErrorDetail, com.google.cloud.bigquery.migration.v2.ErrorDetail.Builder, com.google.cloud.bigquery.migration.v2.ErrorDetailOrBuilder> + com.google.cloud.bigquery.migration.v2.ErrorDetail, + com.google.cloud.bigquery.migration.v2.ErrorDetail.Builder, + com.google.cloud.bigquery.migration.v2.ErrorDetailOrBuilder> getErrorDetailsFieldBuilder() { if (errorDetailsBuilder_ == null) { - errorDetailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.ErrorDetail, com.google.cloud.bigquery.migration.v2.ErrorDetail.Builder, com.google.cloud.bigquery.migration.v2.ErrorDetailOrBuilder>( - errorDetails_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + errorDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.ErrorDetail, + com.google.cloud.bigquery.migration.v2.ErrorDetail.Builder, + com.google.cloud.bigquery.migration.v2.ErrorDetailOrBuilder>( + errorDetails_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); errorDetails_ = null; } return errorDetailsBuilder_; } - private int errorCount_ ; + private int errorCount_; /** + * + * *
      * Required. How many errors there are in total for the resource. Truncation can be
      * indicated by having an `error_count` that is higher than the size of
@@ -1075,6 +1262,7 @@ public com.google.cloud.bigquery.migration.v2.ErrorDetail.Builder addErrorDetail
      * 
* * int32 error_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The errorCount. */ @java.lang.Override @@ -1082,6 +1270,8 @@ public int getErrorCount() { return errorCount_; } /** + * + * *
      * Required. How many errors there are in total for the resource. Truncation can be
      * indicated by having an `error_count` that is higher than the size of
@@ -1089,17 +1279,20 @@ public int getErrorCount() {
      * 
* * int32 error_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The errorCount to set. * @return This builder for chaining. */ public Builder setErrorCount(int value) { - + errorCount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. How many errors there are in total for the resource. Truncation can be
      * indicated by having an `error_count` that is higher than the size of
@@ -1107,6 +1300,7 @@ public Builder setErrorCount(int value) {
      * 
* * int32 error_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearErrorCount() { @@ -1115,9 +1309,9 @@ public Builder clearErrorCount() { 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); } @@ -1127,12 +1321,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.ResourceErrorDetail) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.ResourceErrorDetail) private static final com.google.cloud.bigquery.migration.v2.ResourceErrorDetail DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.ResourceErrorDetail(); } @@ -1141,27 +1335,27 @@ public static com.google.cloud.bigquery.migration.v2.ResourceErrorDetail getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceErrorDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceErrorDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1176,6 +1370,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.ResourceErrorDetail getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ResourceErrorDetailOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ResourceErrorDetailOrBuilder.java similarity index 56% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ResourceErrorDetailOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ResourceErrorDetailOrBuilder.java index 2945efc..398d807 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ResourceErrorDetailOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/ResourceErrorDetailOrBuilder.java @@ -1,84 +1,131 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_error_details.proto package com.google.cloud.bigquery.migration.v2; -public interface ResourceErrorDetailOrBuilder extends +public interface ResourceErrorDetailOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.ResourceErrorDetail) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Information about the resource where the error is located.
    * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resourceInfo field is set. */ boolean hasResourceInfo(); /** + * + * *
    * Required. Information about the resource where the error is located.
    * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resourceInfo. */ com.google.rpc.ResourceInfo getResourceInfo(); /** + * + * *
    * Required. Information about the resource where the error is located.
    * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.rpc.ResourceInfoOrBuilder getResourceInfoOrBuilder(); /** + * + * *
    * Required. The error details for the resource.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getErrorDetailsList(); + java.util.List getErrorDetailsList(); /** + * + * *
    * Required. The error details for the resource.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.bigquery.migration.v2.ErrorDetail getErrorDetails(int index); /** + * + * *
    * Required. The error details for the resource.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ int getErrorDetailsCount(); /** + * + * *
    * Required. The error details for the resource.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List getErrorDetailsOrBuilderList(); /** + * + * *
    * Required. The error details for the resource.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.bigquery.migration.v2.ErrorDetailOrBuilder getErrorDetailsOrBuilder( - int index); + com.google.cloud.bigquery.migration.v2.ErrorDetailOrBuilder getErrorDetailsOrBuilder(int index); /** + * + * *
    * Required. How many errors there are in total for the resource. Truncation can be
    * indicated by having an `error_count` that is higher than the size of
@@ -86,6 +133,7 @@ com.google.cloud.bigquery.migration.v2.ErrorDetailOrBuilder getErrorDetailsOrBui
    * 
* * int32 error_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The errorCount. */ int getErrorCount(); diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SQLServerDialect.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SQLServerDialect.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SQLServerDialect.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SQLServerDialect.java index 8d497bd..59188a8 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SQLServerDialect.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SQLServerDialect.java @@ -1,53 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * The dialect definition for SQL Server.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.SQLServerDialect} */ -public final class SQLServerDialect extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SQLServerDialect extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.SQLServerDialect) SQLServerDialectOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SQLServerDialect.newBuilder() to construct. private SQLServerDialect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SQLServerDialect() { - } + + private SQLServerDialect() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SQLServerDialect(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.SQLServerDialect.class, com.google.cloud.bigquery.migration.v2.SQLServerDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.SQLServerDialect.class, + com.google.cloud.bigquery.migration.v2.SQLServerDialect.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -59,8 +78,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 { getUnknownFields().writeTo(output); } @@ -78,12 +96,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.bigquery.migration.v2.SQLServerDialect)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.SQLServerDialect other = (com.google.cloud.bigquery.migration.v2.SQLServerDialect) obj; + com.google.cloud.bigquery.migration.v2.SQLServerDialect other = + (com.google.cloud.bigquery.migration.v2.SQLServerDialect) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -102,129 +121,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.SQLServerDialect parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.SQLServerDialect parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.SQLServerDialect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.SQLServerDialect parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.SQLServerDialect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.SQLServerDialect parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.SQLServerDialect parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.SQLServerDialect parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.SQLServerDialect parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.SQLServerDialect parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.SQLServerDialect parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.SQLServerDialect parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.SQLServerDialect parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.SQLServerDialect parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.SQLServerDialect prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.SQLServerDialect prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 dialect definition for SQL Server.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.SQLServerDialect} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.SQLServerDialect) com.google.cloud.bigquery.migration.v2.SQLServerDialectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.SQLServerDialect.class, com.google.cloud.bigquery.migration.v2.SQLServerDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.SQLServerDialect.class, + com.google.cloud.bigquery.migration.v2.SQLServerDialect.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2.SQLServerDialect.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -232,9 +258,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_descriptor; } @java.lang.Override @@ -253,7 +279,8 @@ public com.google.cloud.bigquery.migration.v2.SQLServerDialect build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2.SQLServerDialect buildPartial() { - com.google.cloud.bigquery.migration.v2.SQLServerDialect result = new com.google.cloud.bigquery.migration.v2.SQLServerDialect(this); + com.google.cloud.bigquery.migration.v2.SQLServerDialect result = + new com.google.cloud.bigquery.migration.v2.SQLServerDialect(this); onBuilt(); return result; } @@ -262,38 +289,39 @@ public com.google.cloud.bigquery.migration.v2.SQLServerDialect buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.SQLServerDialect) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.SQLServerDialect)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2.SQLServerDialect) other); } else { super.mergeFrom(other); return this; @@ -301,7 +329,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.SQLServerDialect other) { - if (other == com.google.cloud.bigquery.migration.v2.SQLServerDialect.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.migration.v2.SQLServerDialect.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -328,12 +357,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -343,9 +373,9 @@ public Builder mergeFrom( } // finally 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); } @@ -355,12 +385,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.SQLServerDialect) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.SQLServerDialect) private static final com.google.cloud.bigquery.migration.v2.SQLServerDialect DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.SQLServerDialect(); } @@ -369,27 +399,27 @@ public static com.google.cloud.bigquery.migration.v2.SQLServerDialect getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SQLServerDialect parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SQLServerDialect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -404,6 +434,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.SQLServerDialect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SQLServerDialectOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SQLServerDialectOrBuilder.java new file mode 100644 index 0000000..3e4147e --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SQLServerDialectOrBuilder.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/bigquery/migration/v2/translation_config.proto + +package com.google.cloud.bigquery.migration.v2; + +public interface SQLServerDialectOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.SQLServerDialect) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SnowflakeDialect.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SnowflakeDialect.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SnowflakeDialect.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SnowflakeDialect.java index 114b97c..2b9ba29 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SnowflakeDialect.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SnowflakeDialect.java @@ -1,53 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * The dialect definition for Snowflake.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.SnowflakeDialect} */ -public final class SnowflakeDialect extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SnowflakeDialect extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.SnowflakeDialect) SnowflakeDialectOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SnowflakeDialect.newBuilder() to construct. private SnowflakeDialect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SnowflakeDialect() { - } + + private SnowflakeDialect() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SnowflakeDialect(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_SnowflakeDialect_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SnowflakeDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_SnowflakeDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SnowflakeDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.SnowflakeDialect.class, com.google.cloud.bigquery.migration.v2.SnowflakeDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.SnowflakeDialect.class, + com.google.cloud.bigquery.migration.v2.SnowflakeDialect.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -59,8 +78,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 { getUnknownFields().writeTo(output); } @@ -78,12 +96,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.bigquery.migration.v2.SnowflakeDialect)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.SnowflakeDialect other = (com.google.cloud.bigquery.migration.v2.SnowflakeDialect) obj; + com.google.cloud.bigquery.migration.v2.SnowflakeDialect other = + (com.google.cloud.bigquery.migration.v2.SnowflakeDialect) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -102,129 +121,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.SnowflakeDialect parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.SnowflakeDialect parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.SnowflakeDialect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.SnowflakeDialect parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.SnowflakeDialect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.SnowflakeDialect parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.SnowflakeDialect parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.SnowflakeDialect parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.SnowflakeDialect parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.SnowflakeDialect parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.SnowflakeDialect parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.SnowflakeDialect parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.SnowflakeDialect parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.SnowflakeDialect parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.SnowflakeDialect prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.SnowflakeDialect prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 dialect definition for Snowflake.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.SnowflakeDialect} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.SnowflakeDialect) com.google.cloud.bigquery.migration.v2.SnowflakeDialectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_SnowflakeDialect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SnowflakeDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_SnowflakeDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SnowflakeDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.SnowflakeDialect.class, com.google.cloud.bigquery.migration.v2.SnowflakeDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.SnowflakeDialect.class, + com.google.cloud.bigquery.migration.v2.SnowflakeDialect.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2.SnowflakeDialect.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -232,9 +258,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_SnowflakeDialect_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SnowflakeDialect_descriptor; } @java.lang.Override @@ -253,7 +279,8 @@ public com.google.cloud.bigquery.migration.v2.SnowflakeDialect build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2.SnowflakeDialect buildPartial() { - com.google.cloud.bigquery.migration.v2.SnowflakeDialect result = new com.google.cloud.bigquery.migration.v2.SnowflakeDialect(this); + com.google.cloud.bigquery.migration.v2.SnowflakeDialect result = + new com.google.cloud.bigquery.migration.v2.SnowflakeDialect(this); onBuilt(); return result; } @@ -262,38 +289,39 @@ public com.google.cloud.bigquery.migration.v2.SnowflakeDialect buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.SnowflakeDialect) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.SnowflakeDialect)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2.SnowflakeDialect) other); } else { super.mergeFrom(other); return this; @@ -301,7 +329,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.SnowflakeDialect other) { - if (other == com.google.cloud.bigquery.migration.v2.SnowflakeDialect.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.migration.v2.SnowflakeDialect.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -328,12 +357,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -343,9 +373,9 @@ public Builder mergeFrom( } // finally 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); } @@ -355,12 +385,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.SnowflakeDialect) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.SnowflakeDialect) private static final com.google.cloud.bigquery.migration.v2.SnowflakeDialect DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.SnowflakeDialect(); } @@ -369,27 +399,27 @@ public static com.google.cloud.bigquery.migration.v2.SnowflakeDialect getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SnowflakeDialect parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SnowflakeDialect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -404,6 +434,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.SnowflakeDialect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SnowflakeDialectOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SnowflakeDialectOrBuilder.java new file mode 100644 index 0000000..33e90dd --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SnowflakeDialectOrBuilder.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/bigquery/migration/v2/translation_config.proto + +package com.google.cloud.bigquery.migration.v2; + +public interface SnowflakeDialectOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.SnowflakeDialect) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnv.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnv.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnv.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnv.java index 455cb01..7d49c7c 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnv.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnv.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * Represents the default source environment values for the translation.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.SourceEnv} */ -public final class SourceEnv extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SourceEnv extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.SourceEnv) SourceEnvOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SourceEnv.newBuilder() to construct. private SourceEnv(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SourceEnv() { defaultDatabase_ = ""; schemaSearchPath_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -26,39 +44,44 @@ private SourceEnv() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SourceEnv(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_SourceEnv_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SourceEnv_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_SourceEnv_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SourceEnv_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.SourceEnv.class, com.google.cloud.bigquery.migration.v2.SourceEnv.Builder.class); + com.google.cloud.bigquery.migration.v2.SourceEnv.class, + com.google.cloud.bigquery.migration.v2.SourceEnv.Builder.class); } public static final int DEFAULT_DATABASE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object defaultDatabase_ = ""; /** + * + * *
    * The default database name to fully qualify SQL objects when their database
    * name is missing.
    * 
* * string default_database = 1; + * * @return The defaultDatabase. */ @java.lang.Override @@ -67,30 +90,30 @@ public java.lang.String getDefaultDatabase() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultDatabase_ = s; return s; } } /** + * + * *
    * The default database name to fully qualify SQL objects when their database
    * name is missing.
    * 
* * string default_database = 1; + * * @return The bytes for defaultDatabase. */ @java.lang.Override - public com.google.protobuf.ByteString - getDefaultDatabaseBytes() { + public com.google.protobuf.ByteString getDefaultDatabaseBytes() { java.lang.Object ref = defaultDatabase_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); defaultDatabase_ = b; return b; } else { @@ -99,40 +122,49 @@ public java.lang.String getDefaultDatabase() { } public static final int SCHEMA_SEARCH_PATH_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList schemaSearchPath_; /** + * + * *
    * The schema search path. When SQL objects are missing schema name,
    * translation engine will search through this list to find the value.
    * 
* * repeated string schema_search_path = 2; + * * @return A list containing the schemaSearchPath. */ - public com.google.protobuf.ProtocolStringList - getSchemaSearchPathList() { + public com.google.protobuf.ProtocolStringList getSchemaSearchPathList() { return schemaSearchPath_; } /** + * + * *
    * The schema search path. When SQL objects are missing schema name,
    * translation engine will search through this list to find the value.
    * 
* * repeated string schema_search_path = 2; + * * @return The count of schemaSearchPath. */ public int getSchemaSearchPathCount() { return schemaSearchPath_.size(); } /** + * + * *
    * The schema search path. When SQL objects are missing schema name,
    * translation engine will search through this list to find the value.
    * 
* * repeated string schema_search_path = 2; + * * @param index The index of the element to return. * @return The schemaSearchPath at the given index. */ @@ -140,21 +172,24 @@ public java.lang.String getSchemaSearchPath(int index) { return schemaSearchPath_.get(index); } /** + * + * *
    * The schema search path. When SQL objects are missing schema name,
    * translation engine will search through this list to find the value.
    * 
* * repeated string schema_search_path = 2; + * * @param index The index of the value to return. * @return The bytes of the schemaSearchPath at the given index. */ - public com.google.protobuf.ByteString - getSchemaSearchPathBytes(int index) { + public com.google.protobuf.ByteString getSchemaSearchPathBytes(int index) { return schemaSearchPath_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultDatabase_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, defaultDatabase_); } @@ -202,17 +236,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2.SourceEnv)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.SourceEnv other = (com.google.cloud.bigquery.migration.v2.SourceEnv) obj; + com.google.cloud.bigquery.migration.v2.SourceEnv other = + (com.google.cloud.bigquery.migration.v2.SourceEnv) obj; - if (!getDefaultDatabase() - .equals(other.getDefaultDatabase())) return false; - if (!getSchemaSearchPathList() - .equals(other.getSchemaSearchPathList())) return false; + if (!getDefaultDatabase().equals(other.getDefaultDatabase())) return false; + if (!getSchemaSearchPathList().equals(other.getSchemaSearchPathList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -235,130 +268,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.migration.v2.SourceEnv parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.bigquery.migration.v2.SourceEnv parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.SourceEnv parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.SourceEnv parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.SourceEnv parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.SourceEnv parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.SourceEnv parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.SourceEnv parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.SourceEnv parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.SourceEnv parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.SourceEnv parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.SourceEnv parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.SourceEnv parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.SourceEnv parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.SourceEnv parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.SourceEnv prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 default source environment values for the translation.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.SourceEnv} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.SourceEnv) com.google.cloud.bigquery.migration.v2.SourceEnvOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_SourceEnv_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SourceEnv_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_SourceEnv_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SourceEnv_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.SourceEnv.class, com.google.cloud.bigquery.migration.v2.SourceEnv.Builder.class); + com.google.cloud.bigquery.migration.v2.SourceEnv.class, + com.google.cloud.bigquery.migration.v2.SourceEnv.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2.SourceEnv.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_SourceEnv_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SourceEnv_descriptor; } @java.lang.Override @@ -391,14 +430,18 @@ public com.google.cloud.bigquery.migration.v2.SourceEnv build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2.SourceEnv buildPartial() { - com.google.cloud.bigquery.migration.v2.SourceEnv result = new com.google.cloud.bigquery.migration.v2.SourceEnv(this); + com.google.cloud.bigquery.migration.v2.SourceEnv result = + new com.google.cloud.bigquery.migration.v2.SourceEnv(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.bigquery.migration.v2.SourceEnv result) { + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.migration.v2.SourceEnv result) { if (((bitField0_ & 0x00000002) != 0)) { schemaSearchPath_ = schemaSearchPath_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); @@ -417,38 +460,39 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.SourceEnv resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.SourceEnv) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.SourceEnv)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2.SourceEnv) other); } else { super.mergeFrom(other); return this; @@ -456,7 +500,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.SourceEnv other) { - if (other == com.google.cloud.bigquery.migration.v2.SourceEnv.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.migration.v2.SourceEnv.getDefaultInstance()) + return this; if (!other.getDefaultDatabase().isEmpty()) { defaultDatabase_ = other.defaultDatabase_; bitField0_ |= 0x00000001; @@ -498,23 +543,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - defaultDatabase_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureSchemaSearchPathIsMutable(); - schemaSearchPath_.add(s); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + defaultDatabase_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSchemaSearchPathIsMutable(); + schemaSearchPath_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -524,23 +572,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object defaultDatabase_ = ""; /** + * + * *
      * The default database name to fully qualify SQL objects when their database
      * name is missing.
      * 
* * string default_database = 1; + * * @return The defaultDatabase. */ public java.lang.String getDefaultDatabase() { java.lang.Object ref = defaultDatabase_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultDatabase_ = s; return s; @@ -549,21 +600,22 @@ public java.lang.String getDefaultDatabase() { } } /** + * + * *
      * The default database name to fully qualify SQL objects when their database
      * name is missing.
      * 
* * string default_database = 1; + * * @return The bytes for defaultDatabase. */ - public com.google.protobuf.ByteString - getDefaultDatabaseBytes() { + public com.google.protobuf.ByteString getDefaultDatabaseBytes() { java.lang.Object ref = defaultDatabase_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); defaultDatabase_ = b; return b; } else { @@ -571,30 +623,37 @@ public java.lang.String getDefaultDatabase() { } } /** + * + * *
      * The default database name to fully qualify SQL objects when their database
      * name is missing.
      * 
* * string default_database = 1; + * * @param value The defaultDatabase to set. * @return This builder for chaining. */ - public Builder setDefaultDatabase( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDefaultDatabase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } defaultDatabase_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The default database name to fully qualify SQL objects when their database
      * name is missing.
      * 
* * string default_database = 1; + * * @return This builder for chaining. */ public Builder clearDefaultDatabase() { @@ -604,18 +663,22 @@ public Builder clearDefaultDatabase() { return this; } /** + * + * *
      * The default database name to fully qualify SQL objects when their database
      * name is missing.
      * 
* * string default_database = 1; + * * @param value The bytes for defaultDatabase to set. * @return This builder for chaining. */ - public Builder setDefaultDatabaseBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDefaultDatabaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); defaultDatabase_ = value; bitField0_ |= 0x00000001; @@ -623,45 +686,55 @@ public Builder setDefaultDatabaseBytes( return this; } - private com.google.protobuf.LazyStringList schemaSearchPath_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList schemaSearchPath_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureSchemaSearchPathIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { schemaSearchPath_ = new com.google.protobuf.LazyStringArrayList(schemaSearchPath_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * The schema search path. When SQL objects are missing schema name,
      * translation engine will search through this list to find the value.
      * 
* * repeated string schema_search_path = 2; + * * @return A list containing the schemaSearchPath. */ - public com.google.protobuf.ProtocolStringList - getSchemaSearchPathList() { + public com.google.protobuf.ProtocolStringList getSchemaSearchPathList() { return schemaSearchPath_.getUnmodifiableView(); } /** + * + * *
      * The schema search path. When SQL objects are missing schema name,
      * translation engine will search through this list to find the value.
      * 
* * repeated string schema_search_path = 2; + * * @return The count of schemaSearchPath. */ public int getSchemaSearchPathCount() { return schemaSearchPath_.size(); } /** + * + * *
      * The schema search path. When SQL objects are missing schema name,
      * translation engine will search through this list to find the value.
      * 
* * repeated string schema_search_path = 2; + * * @param index The index of the element to return. * @return The schemaSearchPath at the given index. */ @@ -669,81 +742,95 @@ public java.lang.String getSchemaSearchPath(int index) { return schemaSearchPath_.get(index); } /** + * + * *
      * The schema search path. When SQL objects are missing schema name,
      * translation engine will search through this list to find the value.
      * 
* * repeated string schema_search_path = 2; + * * @param index The index of the value to return. * @return The bytes of the schemaSearchPath at the given index. */ - public com.google.protobuf.ByteString - getSchemaSearchPathBytes(int index) { + public com.google.protobuf.ByteString getSchemaSearchPathBytes(int index) { return schemaSearchPath_.getByteString(index); } /** + * + * *
      * The schema search path. When SQL objects are missing schema name,
      * translation engine will search through this list to find the value.
      * 
* * repeated string schema_search_path = 2; + * * @param index The index to set the value at. * @param value The schemaSearchPath to set. * @return This builder for chaining. */ - public Builder setSchemaSearchPath( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaSearchPath(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSchemaSearchPathIsMutable(); schemaSearchPath_.set(index, value); onChanged(); return this; } /** + * + * *
      * The schema search path. When SQL objects are missing schema name,
      * translation engine will search through this list to find the value.
      * 
* * repeated string schema_search_path = 2; + * * @param value The schemaSearchPath to add. * @return This builder for chaining. */ - public Builder addSchemaSearchPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSchemaSearchPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSchemaSearchPathIsMutable(); schemaSearchPath_.add(value); onChanged(); return this; } /** + * + * *
      * The schema search path. When SQL objects are missing schema name,
      * translation engine will search through this list to find the value.
      * 
* * repeated string schema_search_path = 2; + * * @param values The schemaSearchPath to add. * @return This builder for chaining. */ - public Builder addAllSchemaSearchPath( - java.lang.Iterable values) { + public Builder addAllSchemaSearchPath(java.lang.Iterable values) { ensureSchemaSearchPathIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, schemaSearchPath_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, schemaSearchPath_); onChanged(); return this; } /** + * + * *
      * The schema search path. When SQL objects are missing schema name,
      * translation engine will search through this list to find the value.
      * 
* * repeated string schema_search_path = 2; + * * @return This builder for chaining. */ public Builder clearSchemaSearchPath() { @@ -753,27 +840,31 @@ public Builder clearSchemaSearchPath() { return this; } /** + * + * *
      * The schema search path. When SQL objects are missing schema name,
      * translation engine will search through this list to find the value.
      * 
* * repeated string schema_search_path = 2; + * * @param value The bytes of the schemaSearchPath to add. * @return This builder for chaining. */ - public Builder addSchemaSearchPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSchemaSearchPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureSchemaSearchPathIsMutable(); schemaSearchPath_.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); } @@ -783,12 +874,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.SourceEnv) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.SourceEnv) private static final com.google.cloud.bigquery.migration.v2.SourceEnv DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.SourceEnv(); } @@ -797,27 +888,27 @@ public static com.google.cloud.bigquery.migration.v2.SourceEnv getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SourceEnv parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceEnv parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -832,6 +923,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.SourceEnv getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnvOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnvOrBuilder.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnvOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnvOrBuilder.java index 000d46f..3067621 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnvOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SourceEnvOrBuilder.java @@ -1,76 +1,107 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; -public interface SourceEnvOrBuilder extends +public interface SourceEnvOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.SourceEnv) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The default database name to fully qualify SQL objects when their database
    * name is missing.
    * 
* * string default_database = 1; + * * @return The defaultDatabase. */ java.lang.String getDefaultDatabase(); /** + * + * *
    * The default database name to fully qualify SQL objects when their database
    * name is missing.
    * 
* * string default_database = 1; + * * @return The bytes for defaultDatabase. */ - com.google.protobuf.ByteString - getDefaultDatabaseBytes(); + com.google.protobuf.ByteString getDefaultDatabaseBytes(); /** + * + * *
    * The schema search path. When SQL objects are missing schema name,
    * translation engine will search through this list to find the value.
    * 
* * repeated string schema_search_path = 2; + * * @return A list containing the schemaSearchPath. */ - java.util.List - getSchemaSearchPathList(); + java.util.List getSchemaSearchPathList(); /** + * + * *
    * The schema search path. When SQL objects are missing schema name,
    * translation engine will search through this list to find the value.
    * 
* * repeated string schema_search_path = 2; + * * @return The count of schemaSearchPath. */ int getSchemaSearchPathCount(); /** + * + * *
    * The schema search path. When SQL objects are missing schema name,
    * translation engine will search through this list to find the value.
    * 
* * repeated string schema_search_path = 2; + * * @param index The index of the element to return. * @return The schemaSearchPath at the given index. */ java.lang.String getSchemaSearchPath(int index); /** + * + * *
    * The schema search path. When SQL objects are missing schema name,
    * translation engine will search through this list to find the value.
    * 
* * repeated string schema_search_path = 2; + * * @param index The index of the value to return. * @return The bytes of the schemaSearchPath at the given index. */ - com.google.protobuf.ByteString - getSchemaSearchPathBytes(int index); + com.google.protobuf.ByteString getSchemaSearchPathBytes(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SparkSQLDialect.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SparkSQLDialect.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SparkSQLDialect.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SparkSQLDialect.java index b9999b0..c1f40ce 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SparkSQLDialect.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SparkSQLDialect.java @@ -1,53 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * The dialect definition for SparkSQL.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.SparkSQLDialect} */ -public final class SparkSQLDialect extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SparkSQLDialect extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.SparkSQLDialect) SparkSQLDialectOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SparkSQLDialect.newBuilder() to construct. private SparkSQLDialect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SparkSQLDialect() { - } + + private SparkSQLDialect() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SparkSQLDialect(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_SparkSQLDialect_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SparkSQLDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_SparkSQLDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SparkSQLDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.SparkSQLDialect.class, com.google.cloud.bigquery.migration.v2.SparkSQLDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.SparkSQLDialect.class, + com.google.cloud.bigquery.migration.v2.SparkSQLDialect.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -59,8 +78,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 { getUnknownFields().writeTo(output); } @@ -78,12 +96,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.bigquery.migration.v2.SparkSQLDialect)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.SparkSQLDialect other = (com.google.cloud.bigquery.migration.v2.SparkSQLDialect) obj; + com.google.cloud.bigquery.migration.v2.SparkSQLDialect other = + (com.google.cloud.bigquery.migration.v2.SparkSQLDialect) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -102,129 +121,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.SparkSQLDialect parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.SparkSQLDialect parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.SparkSQLDialect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.SparkSQLDialect parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.SparkSQLDialect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.SparkSQLDialect parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.SparkSQLDialect parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.SparkSQLDialect parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.SparkSQLDialect parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.SparkSQLDialect parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.SparkSQLDialect parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.SparkSQLDialect parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.SparkSQLDialect parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.SparkSQLDialect parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.SparkSQLDialect prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.SparkSQLDialect prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 dialect definition for SparkSQL.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.SparkSQLDialect} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.SparkSQLDialect) com.google.cloud.bigquery.migration.v2.SparkSQLDialectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_SparkSQLDialect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SparkSQLDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_SparkSQLDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SparkSQLDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.SparkSQLDialect.class, com.google.cloud.bigquery.migration.v2.SparkSQLDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.SparkSQLDialect.class, + com.google.cloud.bigquery.migration.v2.SparkSQLDialect.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2.SparkSQLDialect.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -232,9 +258,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_SparkSQLDialect_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_SparkSQLDialect_descriptor; } @java.lang.Override @@ -253,7 +279,8 @@ public com.google.cloud.bigquery.migration.v2.SparkSQLDialect build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2.SparkSQLDialect buildPartial() { - com.google.cloud.bigquery.migration.v2.SparkSQLDialect result = new com.google.cloud.bigquery.migration.v2.SparkSQLDialect(this); + com.google.cloud.bigquery.migration.v2.SparkSQLDialect result = + new com.google.cloud.bigquery.migration.v2.SparkSQLDialect(this); onBuilt(); return result; } @@ -262,38 +289,39 @@ public com.google.cloud.bigquery.migration.v2.SparkSQLDialect buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.SparkSQLDialect) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.SparkSQLDialect)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2.SparkSQLDialect) other); } else { super.mergeFrom(other); return this; @@ -301,7 +329,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.SparkSQLDialect other) { - if (other == com.google.cloud.bigquery.migration.v2.SparkSQLDialect.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.migration.v2.SparkSQLDialect.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -328,12 +357,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -343,9 +373,9 @@ public Builder mergeFrom( } // finally 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); } @@ -355,12 +385,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.SparkSQLDialect) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.SparkSQLDialect) private static final com.google.cloud.bigquery.migration.v2.SparkSQLDialect DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.SparkSQLDialect(); } @@ -369,27 +399,27 @@ public static com.google.cloud.bigquery.migration.v2.SparkSQLDialect getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkSQLDialect parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkSQLDialect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -404,6 +434,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.SparkSQLDialect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SparkSQLDialectOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SparkSQLDialectOrBuilder.java new file mode 100644 index 0000000..c514a14 --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/SparkSQLDialectOrBuilder.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/bigquery/migration/v2/translation_config.proto + +package com.google.cloud.bigquery.migration.v2; + +public interface SparkSQLDialectOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.SparkSQLDialect) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/StartMigrationWorkflowRequest.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/StartMigrationWorkflowRequest.java similarity index 59% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/StartMigrationWorkflowRequest.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/StartMigrationWorkflowRequest.java index 6d54237..f5988f7 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/StartMigrationWorkflowRequest.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/StartMigrationWorkflowRequest.java @@ -1,63 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_service.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * A request to start a previously created migration workflow.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest} */ -public final class StartMigrationWorkflowRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartMigrationWorkflowRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest) StartMigrationWorkflowRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartMigrationWorkflowRequest.newBuilder() to construct. private StartMigrationWorkflowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StartMigrationWorkflowRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartMigrationWorkflowRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_StartMigrationWorkflowRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_StartMigrationWorkflowRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_StartMigrationWorkflowRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_StartMigrationWorkflowRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest.class, com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest.Builder.class); + com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest.class, + com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The unique identifier for the migration workflow.
    * Example: `projects/123/locations/us/workflows/1234`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,30 +91,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The unique identifier for the migration workflow.
    * Example: `projects/123/locations/us/workflows/1234`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,6 +125,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +137,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -134,15 +161,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest other = (com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest) obj; + com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest other = + (com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,129 +189,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A request to start a previously created migration workflow.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest) com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_StartMigrationWorkflowRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_StartMigrationWorkflowRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_StartMigrationWorkflowRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_StartMigrationWorkflowRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest.class, com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest.Builder.class); + com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest.class, + com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -294,14 +330,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2_StartMigrationWorkflowRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2_StartMigrationWorkflowRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest.getDefaultInstance(); + public com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest + .getDefaultInstance(); } @java.lang.Override @@ -315,13 +353,17 @@ public com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest buil @java.lang.Override public com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest buildPartial() { - com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest result = new com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest result = + new com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -332,46 +374,51 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.StartMigration public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest)other); + return mergeFrom( + (com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest other) { - if (other == com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest other) { + if (other + == com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -403,17 +450,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,23 +472,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -448,21 +502,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -470,30 +527,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -503,27 +571,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -533,41 +607,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest) - private static final com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest(); } - public static com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartMigrationWorkflowRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartMigrationWorkflowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -579,9 +655,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/StartMigrationWorkflowRequestOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/StartMigrationWorkflowRequestOrBuilder.java new file mode 100644 index 0000000..c308258 --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/StartMigrationWorkflowRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/migration_service.proto + +package com.google.cloud.bigquery.migration.v2; + +public interface StartMigrationWorkflowRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The unique identifier for the migration workflow.
+   * Example: `projects/123/locations/us/workflows/1234`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The unique identifier for the migration workflow.
+   * Example: `projects/123/locations/us/workflows/1234`
+   * 
+ * + * + * 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/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TeradataDialect.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TeradataDialect.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TeradataDialect.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TeradataDialect.java index c4e3961..f2a58a0 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TeradataDialect.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TeradataDialect.java @@ -1,63 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * The dialect definition for Teradata.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.TeradataDialect} */ -public final class TeradataDialect extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TeradataDialect extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.TeradataDialect) TeradataDialectOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TeradataDialect.newBuilder() to construct. private TeradataDialect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TeradataDialect() { mode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TeradataDialect(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_TeradataDialect_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_TeradataDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_TeradataDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_TeradataDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.TeradataDialect.class, com.google.cloud.bigquery.migration.v2.TeradataDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.TeradataDialect.class, + com.google.cloud.bigquery.migration.v2.TeradataDialect.Builder.class); } /** + * + * *
    * The sub-dialect options for Teradata.
    * 
* * Protobuf enum {@code google.cloud.bigquery.migration.v2.TeradataDialect.Mode} */ - public enum Mode - implements com.google.protobuf.ProtocolMessageEnum { + public enum Mode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified mode.
      * 
@@ -66,6 +88,8 @@ public enum Mode */ MODE_UNSPECIFIED(0), /** + * + * *
      * Teradata SQL mode.
      * 
@@ -74,6 +98,8 @@ public enum Mode */ SQL(1), /** + * + * *
      * BTEQ mode (which includes SQL).
      * 
@@ -85,6 +111,8 @@ public enum Mode ; /** + * + * *
      * Unspecified mode.
      * 
@@ -93,6 +121,8 @@ public enum Mode */ public static final int MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Teradata SQL mode.
      * 
@@ -101,6 +131,8 @@ public enum Mode */ public static final int SQL_VALUE = 1; /** + * + * *
      * BTEQ mode (which includes SQL).
      * 
@@ -109,7 +141,6 @@ public enum Mode */ public static final int BTEQ_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -134,49 +165,51 @@ public static Mode valueOf(int value) { */ public static Mode forNumber(int value) { switch (value) { - case 0: return MODE_UNSPECIFIED; - case 1: return SQL; - case 2: return BTEQ; - default: return null; + case 0: + return MODE_UNSPECIFIED; + case 1: + return SQL; + case 2: + return BTEQ; + 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< - Mode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Mode findValueByNumber(int number) { - return Mode.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 Mode findValueByNumber(int number) { + return Mode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TeradataDialect.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TeradataDialect.getDescriptor() + .getEnumTypes() + .get(0); } private static final Mode[] VALUES = values(); - public static Mode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Mode 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; @@ -196,30 +229,42 @@ private Mode(int value) { public static final int MODE_FIELD_NUMBER = 1; private int mode_ = 0; /** + * + * *
    * Which Teradata sub-dialect mode the user specifies.
    * 
* * .google.cloud.bigquery.migration.v2.TeradataDialect.Mode mode = 1; + * * @return The enum numeric value on the wire for mode. */ - @java.lang.Override public int getModeValue() { + @java.lang.Override + public int getModeValue() { return mode_; } /** + * + * *
    * Which Teradata sub-dialect mode the user specifies.
    * 
* * .google.cloud.bigquery.migration.v2.TeradataDialect.Mode mode = 1; + * * @return The mode. */ - @java.lang.Override public com.google.cloud.bigquery.migration.v2.TeradataDialect.Mode getMode() { - com.google.cloud.bigquery.migration.v2.TeradataDialect.Mode result = com.google.cloud.bigquery.migration.v2.TeradataDialect.Mode.forNumber(mode_); - return result == null ? com.google.cloud.bigquery.migration.v2.TeradataDialect.Mode.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.migration.v2.TeradataDialect.Mode getMode() { + com.google.cloud.bigquery.migration.v2.TeradataDialect.Mode result = + com.google.cloud.bigquery.migration.v2.TeradataDialect.Mode.forNumber(mode_); + return result == null + ? com.google.cloud.bigquery.migration.v2.TeradataDialect.Mode.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,9 +276,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (mode_ != com.google.cloud.bigquery.migration.v2.TeradataDialect.Mode.MODE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (mode_ + != com.google.cloud.bigquery.migration.v2.TeradataDialect.Mode.MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, mode_); } getUnknownFields().writeTo(output); @@ -245,9 +291,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (mode_ != com.google.cloud.bigquery.migration.v2.TeradataDialect.Mode.MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, mode_); + if (mode_ + != com.google.cloud.bigquery.migration.v2.TeradataDialect.Mode.MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -257,12 +304,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.bigquery.migration.v2.TeradataDialect)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.TeradataDialect other = (com.google.cloud.bigquery.migration.v2.TeradataDialect) obj; + com.google.cloud.bigquery.migration.v2.TeradataDialect other = + (com.google.cloud.bigquery.migration.v2.TeradataDialect) obj; if (mode_ != other.mode_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -284,129 +332,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.TeradataDialect parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.TeradataDialect parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.TeradataDialect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.TeradataDialect parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.TeradataDialect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.TeradataDialect parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.TeradataDialect parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.TeradataDialect parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.TeradataDialect parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.TeradataDialect parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.TeradataDialect parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.TeradataDialect parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.TeradataDialect parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.TeradataDialect parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.TeradataDialect prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.TeradataDialect prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 dialect definition for Teradata.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.TeradataDialect} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.TeradataDialect) com.google.cloud.bigquery.migration.v2.TeradataDialectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_TeradataDialect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_TeradataDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_TeradataDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_TeradataDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.TeradataDialect.class, com.google.cloud.bigquery.migration.v2.TeradataDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.TeradataDialect.class, + com.google.cloud.bigquery.migration.v2.TeradataDialect.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2.TeradataDialect.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -416,9 +471,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_TeradataDialect_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_TeradataDialect_descriptor; } @java.lang.Override @@ -437,8 +492,11 @@ public com.google.cloud.bigquery.migration.v2.TeradataDialect build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2.TeradataDialect buildPartial() { - com.google.cloud.bigquery.migration.v2.TeradataDialect result = new com.google.cloud.bigquery.migration.v2.TeradataDialect(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.migration.v2.TeradataDialect result = + new com.google.cloud.bigquery.migration.v2.TeradataDialect(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -454,38 +512,39 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.TeradataDialec public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.TeradataDialect) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.TeradataDialect)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2.TeradataDialect) other); } else { super.mergeFrom(other); return this; @@ -493,7 +552,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.TeradataDialect other) { - if (other == com.google.cloud.bigquery.migration.v2.TeradataDialect.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.migration.v2.TeradataDialect.getDefaultInstance()) + return this; if (other.mode_ != 0) { setModeValue(other.getModeValue()); } @@ -523,17 +583,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - mode_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + mode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -543,26 +605,34 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int mode_ = 0; /** + * + * *
      * Which Teradata sub-dialect mode the user specifies.
      * 
* * .google.cloud.bigquery.migration.v2.TeradataDialect.Mode mode = 1; + * * @return The enum numeric value on the wire for mode. */ - @java.lang.Override public int getModeValue() { + @java.lang.Override + public int getModeValue() { return mode_; } /** + * + * *
      * Which Teradata sub-dialect mode the user specifies.
      * 
* * .google.cloud.bigquery.migration.v2.TeradataDialect.Mode mode = 1; + * * @param value The enum numeric value on the wire for mode to set. * @return This builder for chaining. */ @@ -573,24 +643,33 @@ public Builder setModeValue(int value) { return this; } /** + * + * *
      * Which Teradata sub-dialect mode the user specifies.
      * 
* * .google.cloud.bigquery.migration.v2.TeradataDialect.Mode mode = 1; + * * @return The mode. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.TeradataDialect.Mode getMode() { - com.google.cloud.bigquery.migration.v2.TeradataDialect.Mode result = com.google.cloud.bigquery.migration.v2.TeradataDialect.Mode.forNumber(mode_); - return result == null ? com.google.cloud.bigquery.migration.v2.TeradataDialect.Mode.UNRECOGNIZED : result; + com.google.cloud.bigquery.migration.v2.TeradataDialect.Mode result = + com.google.cloud.bigquery.migration.v2.TeradataDialect.Mode.forNumber(mode_); + return result == null + ? com.google.cloud.bigquery.migration.v2.TeradataDialect.Mode.UNRECOGNIZED + : result; } /** + * + * *
      * Which Teradata sub-dialect mode the user specifies.
      * 
* * .google.cloud.bigquery.migration.v2.TeradataDialect.Mode mode = 1; + * * @param value The mode to set. * @return This builder for chaining. */ @@ -604,11 +683,14 @@ public Builder setMode(com.google.cloud.bigquery.migration.v2.TeradataDialect.Mo return this; } /** + * + * *
      * Which Teradata sub-dialect mode the user specifies.
      * 
* * .google.cloud.bigquery.migration.v2.TeradataDialect.Mode mode = 1; + * * @return This builder for chaining. */ public Builder clearMode() { @@ -617,9 +699,9 @@ public Builder clearMode() { 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); } @@ -629,12 +711,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.TeradataDialect) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.TeradataDialect) private static final com.google.cloud.bigquery.migration.v2.TeradataDialect DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.TeradataDialect(); } @@ -643,27 +725,27 @@ public static com.google.cloud.bigquery.migration.v2.TeradataDialect getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TeradataDialect parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TeradataDialect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -678,6 +760,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.TeradataDialect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TeradataDialectOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TeradataDialectOrBuilder.java similarity index 56% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TeradataDialectOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TeradataDialectOrBuilder.java index 27bfd7d..bf63208 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TeradataDialectOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TeradataDialectOrBuilder.java @@ -1,27 +1,49 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; -public interface TeradataDialectOrBuilder extends +public interface TeradataDialectOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.TeradataDialect) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Which Teradata sub-dialect mode the user specifies.
    * 
* * .google.cloud.bigquery.migration.v2.TeradataDialect.Mode mode = 1; + * * @return The enum numeric value on the wire for mode. */ int getModeValue(); /** + * + * *
    * Which Teradata sub-dialect mode the user specifies.
    * 
* * .google.cloud.bigquery.migration.v2.TeradataDialect.Mode mode = 1; + * * @return The mode. */ com.google.cloud.bigquery.migration.v2.TeradataDialect.Mode getMode(); diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TimeInterval.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TimeInterval.java similarity index 69% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TimeInterval.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TimeInterval.java index e253dfc..6629858 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TimeInterval.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TimeInterval.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_metrics.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * A time interval extending just after a start time through an end time.
  * If the start time is the same as the end time, then the interval
@@ -12,53 +29,58 @@
  *
  * Protobuf type {@code google.cloud.bigquery.migration.v2.TimeInterval}
  */
-public final class TimeInterval extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TimeInterval extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.TimeInterval)
     TimeIntervalOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TimeInterval.newBuilder() to construct.
   private TimeInterval(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private TimeInterval() {
-  }
+
+  private TimeInterval() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TimeInterval();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2_TimeInterval_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto
+        .internal_static_google_cloud_bigquery_migration_v2_TimeInterval_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2_TimeInterval_fieldAccessorTable
+    return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto
+        .internal_static_google_cloud_bigquery_migration_v2_TimeInterval_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.migration.v2.TimeInterval.class, com.google.cloud.bigquery.migration.v2.TimeInterval.Builder.class);
+            com.google.cloud.bigquery.migration.v2.TimeInterval.class,
+            com.google.cloud.bigquery.migration.v2.TimeInterval.Builder.class);
   }
 
   public static final int START_TIME_FIELD_NUMBER = 1;
   private com.google.protobuf.Timestamp startTime_;
   /**
+   *
+   *
    * 
    * Optional. The beginning of the time interval.  The default value
    * for the start time is the end time. The start time must not be
    * later than the end time.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -66,13 +88,17 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Optional. The beginning of the time interval.  The default value
    * for the start time is the end time. The start time must not be
    * later than the end time.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The startTime. */ @java.lang.Override @@ -80,13 +106,16 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Optional. The beginning of the time interval.  The default value
    * for the start time is the end time. The start time must not be
    * later than the end time.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -96,11 +125,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Required. The end of the time interval.
    * 
* * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -108,11 +140,14 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Required. The end of the time interval.
    * 
* * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The endTime. */ @java.lang.Override @@ -120,6 +155,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Required. The end of the time interval.
    * 
@@ -132,6 +169,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -143,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } @@ -161,12 +198,10 @@ public int getSerializedSize() { size = 0; if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -176,22 +211,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2.TimeInterval)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.TimeInterval other = (com.google.cloud.bigquery.migration.v2.TimeInterval) obj; + com.google.cloud.bigquery.migration.v2.TimeInterval other = + (com.google.cloud.bigquery.migration.v2.TimeInterval) obj; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -218,96 +252,103 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.TimeInterval parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.TimeInterval parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.TimeInterval parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.TimeInterval parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.TimeInterval parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.TimeInterval parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.TimeInterval parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.TimeInterval parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.TimeInterval parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.TimeInterval parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.TimeInterval parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.TimeInterval parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.TimeInterval parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.TimeInterval parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.TimeInterval prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 time interval extending just after a start time through an end time.
    * If the start time is the same as the end time, then the interval
@@ -316,33 +357,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.migration.v2.TimeInterval}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.TimeInterval)
       com.google.cloud.bigquery.migration.v2.TimeIntervalOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2_TimeInterval_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto
+          .internal_static_google_cloud_bigquery_migration_v2_TimeInterval_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2_TimeInterval_fieldAccessorTable
+      return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto
+          .internal_static_google_cloud_bigquery_migration_v2_TimeInterval_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.migration.v2.TimeInterval.class, com.google.cloud.bigquery.migration.v2.TimeInterval.Builder.class);
+              com.google.cloud.bigquery.migration.v2.TimeInterval.class,
+              com.google.cloud.bigquery.migration.v2.TimeInterval.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.migration.v2.TimeInterval.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -361,9 +401,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2_TimeInterval_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto
+          .internal_static_google_cloud_bigquery_migration_v2_TimeInterval_descriptor;
     }
 
     @java.lang.Override
@@ -382,8 +422,11 @@ public com.google.cloud.bigquery.migration.v2.TimeInterval build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.migration.v2.TimeInterval buildPartial() {
-      com.google.cloud.bigquery.migration.v2.TimeInterval result = new com.google.cloud.bigquery.migration.v2.TimeInterval(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.migration.v2.TimeInterval result =
+          new com.google.cloud.bigquery.migration.v2.TimeInterval(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -391,14 +434,10 @@ public com.google.cloud.bigquery.migration.v2.TimeInterval buildPartial() {
     private void buildPartial0(com.google.cloud.bigquery.migration.v2.TimeInterval result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.startTime_ = startTimeBuilder_ == null
-            ? startTime_
-            : startTimeBuilder_.build();
+        result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null
-            ? endTime_
-            : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
       }
     }
 
@@ -406,38 +445,39 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.TimeInterval r
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.migration.v2.TimeInterval) {
-        return mergeFrom((com.google.cloud.bigquery.migration.v2.TimeInterval)other);
+        return mergeFrom((com.google.cloud.bigquery.migration.v2.TimeInterval) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -445,7 +485,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.TimeInterval other) {
-      if (other == com.google.cloud.bigquery.migration.v2.TimeInterval.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.migration.v2.TimeInterval.getDefaultInstance())
+        return this;
       if (other.hasStartTime()) {
         mergeStartTime(other.getStartTime());
       }
@@ -478,26 +519,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getStartTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -507,32 +547,44 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.Timestamp startTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        startTimeBuilder_;
     /**
+     *
+     *
      * 
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
      * later than the end time.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
      * later than the end time.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -543,13 +595,16 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
      * later than the end time.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -565,16 +620,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
      * later than the end time.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -585,19 +642,22 @@ public Builder setStartTime( return this; } /** + * + * *
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
      * later than the end time.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - startTime_ != null && - startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -610,13 +670,16 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
      * later than the end time.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -629,13 +692,16 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
      * later than the end time.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { bitField0_ |= 0x00000001; @@ -643,40 +709,48 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
      * later than the end time.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
      * later than the end time.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -684,24 +758,35 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Required. The end of the time interval.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The end of the time interval.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -712,11 +797,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Required. The end of the time interval.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -732,14 +820,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Required. The end of the time interval.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -750,17 +840,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Required. The end of the time interval.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -773,11 +866,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Required. The end of the time interval.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -790,11 +886,14 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Required. The end of the time interval.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -802,43 +901,51 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The end of the time interval.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Required. The end of the time interval.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> 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); } @@ -848,12 +955,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.TimeInterval) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.TimeInterval) private static final com.google.cloud.bigquery.migration.v2.TimeInterval DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.TimeInterval(); } @@ -862,27 +969,27 @@ public static com.google.cloud.bigquery.migration.v2.TimeInterval getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeInterval parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeInterval parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -897,6 +1004,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.TimeInterval getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TimeIntervalOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TimeIntervalOrBuilder.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TimeIntervalOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TimeIntervalOrBuilder.java index 737ce43..2b110bf 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TimeIntervalOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TimeIntervalOrBuilder.java @@ -1,64 +1,99 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_metrics.proto package com.google.cloud.bigquery.migration.v2; -public interface TimeIntervalOrBuilder extends +public interface TimeIntervalOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.TimeInterval) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The beginning of the time interval.  The default value
    * for the start time is the end time. The start time must not be
    * later than the end time.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Optional. The beginning of the time interval.  The default value
    * for the start time is the end time. The start time must not be
    * later than the end time.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Optional. The beginning of the time interval.  The default value
    * for the start time is the end time. The start time must not be
    * later than the end time.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * Required. The end of the time interval.
    * 
* * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Required. The end of the time interval.
    * 
* * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Required. The end of the time interval.
    * 
diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TimeSeries.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TimeSeries.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TimeSeries.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TimeSeries.java index 0cfbcd7..cc820a6 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TimeSeries.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TimeSeries.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_metrics.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * The metrics object for a SubTask.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.TimeSeries} */ -public final class TimeSeries extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TimeSeries extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.TimeSeries) TimeSeriesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TimeSeries.newBuilder() to construct. private TimeSeries(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TimeSeries() { metric_ = ""; valueType_ = 0; @@ -28,39 +46,44 @@ private TimeSeries() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TimeSeries(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2_TimeSeries_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2_TimeSeries_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2_TimeSeries_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2_TimeSeries_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.TimeSeries.class, com.google.cloud.bigquery.migration.v2.TimeSeries.Builder.class); + com.google.cloud.bigquery.migration.v2.TimeSeries.class, + com.google.cloud.bigquery.migration.v2.TimeSeries.Builder.class); } public static final int METRIC_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object metric_ = ""; /** + * + * *
    * Required. The name of the metric.
    * If the metric is not known by the service yet, it will be auto-created.
    * 
* * string metric = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The metric. */ @java.lang.Override @@ -69,30 +92,30 @@ public java.lang.String getMetric() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metric_ = s; return s; } } /** + * + * *
    * Required. The name of the metric.
    * If the metric is not known by the service yet, it will be auto-created.
    * 
* * string metric = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for metric. */ @java.lang.Override - public com.google.protobuf.ByteString - getMetricBytes() { + public com.google.protobuf.ByteString getMetricBytes() { java.lang.Object ref = metric_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); metric_ = b; return b; } else { @@ -103,32 +126,47 @@ public java.lang.String getMetric() { public static final int VALUE_TYPE_FIELD_NUMBER = 2; private int valueType_ = 0; /** + * + * *
    * Required. The value type of the time series.
    * 
* - * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for valueType. */ - @java.lang.Override public int getValueTypeValue() { + @java.lang.Override + public int getValueTypeValue() { return valueType_; } /** + * + * *
    * Required. The value type of the time series.
    * 
* - * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The valueType. */ - @java.lang.Override public com.google.api.MetricDescriptor.ValueType getValueType() { - com.google.api.MetricDescriptor.ValueType result = com.google.api.MetricDescriptor.ValueType.forNumber(valueType_); + @java.lang.Override + public com.google.api.MetricDescriptor.ValueType getValueType() { + com.google.api.MetricDescriptor.ValueType result = + com.google.api.MetricDescriptor.ValueType.forNumber(valueType_); return result == null ? com.google.api.MetricDescriptor.ValueType.UNRECOGNIZED : result; } public static final int METRIC_KIND_FIELD_NUMBER = 3; private int metricKind_ = 0; /** + * + * *
    * Optional. The metric kind of the time series.
    * If present, it must be the same as the metric kind of the associated
@@ -137,13 +175,19 @@ public java.lang.String getMetric() {
    * either `GAUGE` (the default) or `CUMULATIVE`.
    * 
* - * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for metricKind. */ - @java.lang.Override public int getMetricKindValue() { + @java.lang.Override + public int getMetricKindValue() { return metricKind_; } /** + * + * *
    * Optional. The metric kind of the time series.
    * If present, it must be the same as the metric kind of the associated
@@ -152,18 +196,26 @@ public java.lang.String getMetric() {
    * either `GAUGE` (the default) or `CUMULATIVE`.
    * 
* - * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The metricKind. */ - @java.lang.Override public com.google.api.MetricDescriptor.MetricKind getMetricKind() { - com.google.api.MetricDescriptor.MetricKind result = com.google.api.MetricDescriptor.MetricKind.forNumber(metricKind_); + @java.lang.Override + public com.google.api.MetricDescriptor.MetricKind getMetricKind() { + com.google.api.MetricDescriptor.MetricKind result = + com.google.api.MetricDescriptor.MetricKind.forNumber(metricKind_); return result == null ? com.google.api.MetricDescriptor.MetricKind.UNRECOGNIZED : result; } public static final int POINTS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private java.util.List points_; /** + * + * *
    * Required. The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -174,13 +226,17 @@ public java.lang.String getMetric() {
    * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getPointsList() { return points_; } /** + * + * *
    * Required. The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -191,14 +247,18 @@ public java.util.List getPointsLis
    * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getPointsOrBuilderList() { return points_; } /** + * + * *
    * Required. The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -209,13 +269,17 @@ public java.util.List getPointsLis
    * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getPointsCount() { return points_.size(); } /** + * + * *
    * Required. The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -226,13 +290,17 @@ public int getPointsCount() {
    * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.Point getPoints(int index) { return points_.get(index); } /** + * + * *
    * Required. The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -243,15 +311,17 @@ public com.google.cloud.bigquery.migration.v2.Point getPoints(int index) {
    * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.PointOrBuilder getPointsOrBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2.PointOrBuilder getPointsOrBuilder(int index) { return points_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,15 +333,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metric_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metric_); } - if (valueType_ != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { + if (valueType_ + != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, valueType_); } - if (metricKind_ != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { + if (metricKind_ + != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { output.writeEnum(3, metricKind_); } for (int i = 0; i < points_.size(); i++) { @@ -289,17 +360,16 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metric_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metric_); } - if (valueType_ != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, valueType_); + if (valueType_ + != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, valueType_); } - if (metricKind_ != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, metricKind_); + if (metricKind_ + != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, metricKind_); } for (int i = 0; i < points_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, points_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, points_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -309,19 +379,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2.TimeSeries)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.TimeSeries other = (com.google.cloud.bigquery.migration.v2.TimeSeries) obj; + com.google.cloud.bigquery.migration.v2.TimeSeries other = + (com.google.cloud.bigquery.migration.v2.TimeSeries) obj; - if (!getMetric() - .equals(other.getMetric())) return false; + if (!getMetric().equals(other.getMetric())) return false; if (valueType_ != other.valueType_) return false; if (metricKind_ != other.metricKind_) return false; - if (!getPointsList() - .equals(other.getPointsList())) return false; + if (!getPointsList().equals(other.getPointsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -349,129 +418,135 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.TimeSeries parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.TimeSeries parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.TimeSeries parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.TimeSeries parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.TimeSeries parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.TimeSeries parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.TimeSeries parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.TimeSeries parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.TimeSeries parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.TimeSeries parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.TimeSeries parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.TimeSeries parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.TimeSeries parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.TimeSeries parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.TimeSeries prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 metrics object for a SubTask.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.TimeSeries} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.TimeSeries) com.google.cloud.bigquery.migration.v2.TimeSeriesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2_TimeSeries_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2_TimeSeries_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2_TimeSeries_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2_TimeSeries_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.TimeSeries.class, com.google.cloud.bigquery.migration.v2.TimeSeries.Builder.class); + com.google.cloud.bigquery.migration.v2.TimeSeries.class, + com.google.cloud.bigquery.migration.v2.TimeSeries.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2.TimeSeries.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -490,9 +565,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2_TimeSeries_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2_TimeSeries_descriptor; } @java.lang.Override @@ -511,14 +586,18 @@ public com.google.cloud.bigquery.migration.v2.TimeSeries build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2.TimeSeries buildPartial() { - com.google.cloud.bigquery.migration.v2.TimeSeries result = new com.google.cloud.bigquery.migration.v2.TimeSeries(this); + com.google.cloud.bigquery.migration.v2.TimeSeries result = + new com.google.cloud.bigquery.migration.v2.TimeSeries(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.bigquery.migration.v2.TimeSeries result) { + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.migration.v2.TimeSeries result) { if (pointsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { points_ = java.util.Collections.unmodifiableList(points_); @@ -547,38 +626,39 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.TimeSeries res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.TimeSeries) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.TimeSeries)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2.TimeSeries) other); } else { super.mergeFrom(other); return this; @@ -586,7 +666,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.TimeSeries other) { - if (other == com.google.cloud.bigquery.migration.v2.TimeSeries.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.migration.v2.TimeSeries.getDefaultInstance()) + return this; if (!other.getMetric().isEmpty()) { metric_ = other.metric_; bitField0_ |= 0x00000001; @@ -616,9 +697,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.TimeSeries other pointsBuilder_ = null; points_ = other.points_; bitField0_ = (bitField0_ & ~0x00000008); - pointsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPointsFieldBuilder() : null; + pointsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPointsFieldBuilder() + : null; } else { pointsBuilder_.addAllMessages(other.points_); } @@ -650,40 +732,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - metric_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - valueType_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - metricKind_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - com.google.cloud.bigquery.migration.v2.Point m = - input.readMessage( - com.google.cloud.bigquery.migration.v2.Point.parser(), - extensionRegistry); - if (pointsBuilder_ == null) { - ensurePointsIsMutable(); - points_.add(m); - } else { - pointsBuilder_.addMessage(m); - } - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + metric_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + valueType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + metricKind_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + com.google.cloud.bigquery.migration.v2.Point m = + input.readMessage( + com.google.cloud.bigquery.migration.v2.Point.parser(), extensionRegistry); + if (pointsBuilder_ == null) { + ensurePointsIsMutable(); + points_.add(m); + } else { + pointsBuilder_.addMessage(m); + } + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -693,23 +779,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object metric_ = ""; /** + * + * *
      * Required. The name of the metric.
      * If the metric is not known by the service yet, it will be auto-created.
      * 
* * string metric = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The metric. */ public java.lang.String getMetric() { java.lang.Object ref = metric_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metric_ = s; return s; @@ -718,21 +807,22 @@ public java.lang.String getMetric() { } } /** + * + * *
      * Required. The name of the metric.
      * If the metric is not known by the service yet, it will be auto-created.
      * 
* * string metric = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for metric. */ - public com.google.protobuf.ByteString - getMetricBytes() { + public com.google.protobuf.ByteString getMetricBytes() { java.lang.Object ref = metric_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); metric_ = b; return b; } else { @@ -740,30 +830,37 @@ public java.lang.String getMetric() { } } /** + * + * *
      * Required. The name of the metric.
      * If the metric is not known by the service yet, it will be auto-created.
      * 
* * string metric = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The metric to set. * @return This builder for chaining. */ - public Builder setMetric( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMetric(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } metric_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the metric.
      * If the metric is not known by the service yet, it will be auto-created.
      * 
* * string metric = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMetric() { @@ -773,18 +870,22 @@ public Builder clearMetric() { return this; } /** + * + * *
      * Required. The name of the metric.
      * If the metric is not known by the service yet, it will be auto-created.
      * 
* * string metric = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for metric to set. * @return This builder for chaining. */ - public Builder setMetricBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMetricBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); metric_ = value; bitField0_ |= 0x00000001; @@ -794,22 +895,33 @@ public Builder setMetricBytes( private int valueType_ = 0; /** + * + * *
      * Required. The value type of the time series.
      * 
* - * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for valueType. */ - @java.lang.Override public int getValueTypeValue() { + @java.lang.Override + public int getValueTypeValue() { return valueType_; } /** + * + * *
      * Required. The value type of the time series.
      * 
* - * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for valueType to set. * @return This builder for chaining. */ @@ -820,24 +932,35 @@ public Builder setValueTypeValue(int value) { return this; } /** + * + * *
      * Required. The value type of the time series.
      * 
* - * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The valueType. */ @java.lang.Override public com.google.api.MetricDescriptor.ValueType getValueType() { - com.google.api.MetricDescriptor.ValueType result = com.google.api.MetricDescriptor.ValueType.forNumber(valueType_); + com.google.api.MetricDescriptor.ValueType result = + com.google.api.MetricDescriptor.ValueType.forNumber(valueType_); return result == null ? com.google.api.MetricDescriptor.ValueType.UNRECOGNIZED : result; } /** + * + * *
      * Required. The value type of the time series.
      * 
* - * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The valueType to set. * @return This builder for chaining. */ @@ -851,11 +974,16 @@ public Builder setValueType(com.google.api.MetricDescriptor.ValueType value) { return this; } /** + * + * *
      * Required. The value type of the time series.
      * 
* - * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearValueType() { @@ -867,6 +995,8 @@ public Builder clearValueType() { private int metricKind_ = 0; /** + * + * *
      * Optional. The metric kind of the time series.
      * If present, it must be the same as the metric kind of the associated
@@ -875,13 +1005,19 @@ public Builder clearValueType() {
      * either `GAUGE` (the default) or `CUMULATIVE`.
      * 
* - * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for metricKind. */ - @java.lang.Override public int getMetricKindValue() { + @java.lang.Override + public int getMetricKindValue() { return metricKind_; } /** + * + * *
      * Optional. The metric kind of the time series.
      * If present, it must be the same as the metric kind of the associated
@@ -890,7 +1026,10 @@ public Builder clearValueType() {
      * either `GAUGE` (the default) or `CUMULATIVE`.
      * 
* - * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for metricKind to set. * @return This builder for chaining. */ @@ -901,6 +1040,8 @@ public Builder setMetricKindValue(int value) { return this; } /** + * + * *
      * Optional. The metric kind of the time series.
      * If present, it must be the same as the metric kind of the associated
@@ -909,15 +1050,21 @@ public Builder setMetricKindValue(int value) {
      * either `GAUGE` (the default) or `CUMULATIVE`.
      * 
* - * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The metricKind. */ @java.lang.Override public com.google.api.MetricDescriptor.MetricKind getMetricKind() { - com.google.api.MetricDescriptor.MetricKind result = com.google.api.MetricDescriptor.MetricKind.forNumber(metricKind_); + com.google.api.MetricDescriptor.MetricKind result = + com.google.api.MetricDescriptor.MetricKind.forNumber(metricKind_); return result == null ? com.google.api.MetricDescriptor.MetricKind.UNRECOGNIZED : result; } /** + * + * *
      * Optional. The metric kind of the time series.
      * If present, it must be the same as the metric kind of the associated
@@ -926,7 +1073,10 @@ public com.google.api.MetricDescriptor.MetricKind getMetricKind() {
      * either `GAUGE` (the default) or `CUMULATIVE`.
      * 
* - * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The metricKind to set. * @return This builder for chaining. */ @@ -940,6 +1090,8 @@ public Builder setMetricKind(com.google.api.MetricDescriptor.MetricKind value) { return this; } /** + * + * *
      * Optional. The metric kind of the time series.
      * If present, it must be the same as the metric kind of the associated
@@ -948,7 +1100,10 @@ public Builder setMetricKind(com.google.api.MetricDescriptor.MetricKind value) {
      * either `GAUGE` (the default) or `CUMULATIVE`.
      * 
* - * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearMetricKind() { @@ -959,18 +1114,24 @@ public Builder clearMetricKind() { } private java.util.List points_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePointsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { points_ = new java.util.ArrayList(points_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.Point, com.google.cloud.bigquery.migration.v2.Point.Builder, com.google.cloud.bigquery.migration.v2.PointOrBuilder> pointsBuilder_; + com.google.cloud.bigquery.migration.v2.Point, + com.google.cloud.bigquery.migration.v2.Point.Builder, + com.google.cloud.bigquery.migration.v2.PointOrBuilder> + pointsBuilder_; /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -981,7 +1142,9 @@ private void ensurePointsIsMutable() {
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getPointsList() { if (pointsBuilder_ == null) { @@ -991,6 +1154,8 @@ public java.util.List getPointsLis } } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1001,7 +1166,9 @@ public java.util.List getPointsLis
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getPointsCount() { if (pointsBuilder_ == null) { @@ -1011,6 +1178,8 @@ public int getPointsCount() { } } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1021,7 +1190,9 @@ public int getPointsCount() {
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.migration.v2.Point getPoints(int index) { if (pointsBuilder_ == null) { @@ -1031,6 +1202,8 @@ public com.google.cloud.bigquery.migration.v2.Point getPoints(int index) { } } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1041,10 +1214,11 @@ public com.google.cloud.bigquery.migration.v2.Point getPoints(int index) {
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setPoints( - int index, com.google.cloud.bigquery.migration.v2.Point value) { + public Builder setPoints(int index, com.google.cloud.bigquery.migration.v2.Point value) { if (pointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1058,6 +1232,8 @@ public Builder setPoints( return this; } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1068,7 +1244,9 @@ public Builder setPoints(
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPoints( int index, com.google.cloud.bigquery.migration.v2.Point.Builder builderForValue) { @@ -1082,6 +1260,8 @@ public Builder setPoints( return this; } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1092,7 +1272,9 @@ public Builder setPoints(
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addPoints(com.google.cloud.bigquery.migration.v2.Point value) { if (pointsBuilder_ == null) { @@ -1108,6 +1290,8 @@ public Builder addPoints(com.google.cloud.bigquery.migration.v2.Point value) { return this; } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1118,10 +1302,11 @@ public Builder addPoints(com.google.cloud.bigquery.migration.v2.Point value) {
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addPoints( - int index, com.google.cloud.bigquery.migration.v2.Point value) { + public Builder addPoints(int index, com.google.cloud.bigquery.migration.v2.Point value) { if (pointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1135,6 +1320,8 @@ public Builder addPoints( return this; } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1145,10 +1332,11 @@ public Builder addPoints(
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addPoints( - com.google.cloud.bigquery.migration.v2.Point.Builder builderForValue) { + public Builder addPoints(com.google.cloud.bigquery.migration.v2.Point.Builder builderForValue) { if (pointsBuilder_ == null) { ensurePointsIsMutable(); points_.add(builderForValue.build()); @@ -1159,6 +1347,8 @@ public Builder addPoints( return this; } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1169,7 +1359,9 @@ public Builder addPoints(
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addPoints( int index, com.google.cloud.bigquery.migration.v2.Point.Builder builderForValue) { @@ -1183,6 +1375,8 @@ public Builder addPoints( return this; } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1193,14 +1387,15 @@ public Builder addPoints(
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllPoints( java.lang.Iterable values) { if (pointsBuilder_ == null) { ensurePointsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, points_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, points_); onChanged(); } else { pointsBuilder_.addAllMessages(values); @@ -1208,6 +1403,8 @@ public Builder addAllPoints( return this; } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1218,7 +1415,9 @@ public Builder addAllPoints(
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPoints() { if (pointsBuilder_ == null) { @@ -1231,6 +1430,8 @@ public Builder clearPoints() { return this; } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1241,7 +1442,9 @@ public Builder clearPoints() {
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removePoints(int index) { if (pointsBuilder_ == null) { @@ -1254,6 +1457,8 @@ public Builder removePoints(int index) { return this; } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1264,13 +1469,16 @@ public Builder removePoints(int index) {
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.migration.v2.Point.Builder getPointsBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2.Point.Builder getPointsBuilder(int index) { return getPointsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1281,16 +1489,20 @@ public com.google.cloud.bigquery.migration.v2.Point.Builder getPointsBuilder(
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.migration.v2.PointOrBuilder getPointsOrBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2.PointOrBuilder getPointsOrBuilder(int index) { if (pointsBuilder_ == null) { - return points_.get(index); } else { + return points_.get(index); + } else { return pointsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1301,10 +1513,12 @@ public com.google.cloud.bigquery.migration.v2.PointOrBuilder getPointsOrBuilder(
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getPointsOrBuilderList() { + public java.util.List + getPointsOrBuilderList() { if (pointsBuilder_ != null) { return pointsBuilder_.getMessageOrBuilderList(); } else { @@ -1312,6 +1526,8 @@ public com.google.cloud.bigquery.migration.v2.PointOrBuilder getPointsOrBuilder( } } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1322,13 +1538,17 @@ public com.google.cloud.bigquery.migration.v2.PointOrBuilder getPointsOrBuilder(
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.migration.v2.Point.Builder addPointsBuilder() { - return getPointsFieldBuilder().addBuilder( - com.google.cloud.bigquery.migration.v2.Point.getDefaultInstance()); + return getPointsFieldBuilder() + .addBuilder(com.google.cloud.bigquery.migration.v2.Point.getDefaultInstance()); } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1339,14 +1559,17 @@ public com.google.cloud.bigquery.migration.v2.Point.Builder addPointsBuilder() {
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.migration.v2.Point.Builder addPointsBuilder( - int index) { - return getPointsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.migration.v2.Point.getDefaultInstance()); + public com.google.cloud.bigquery.migration.v2.Point.Builder addPointsBuilder(int index) { + return getPointsFieldBuilder() + .addBuilder(index, com.google.cloud.bigquery.migration.v2.Point.getDefaultInstance()); } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1357,29 +1580,34 @@ public com.google.cloud.bigquery.migration.v2.Point.Builder addPointsBuilder(
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getPointsBuilderList() { + public java.util.List + getPointsBuilderList() { return getPointsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.Point, com.google.cloud.bigquery.migration.v2.Point.Builder, com.google.cloud.bigquery.migration.v2.PointOrBuilder> + com.google.cloud.bigquery.migration.v2.Point, + com.google.cloud.bigquery.migration.v2.Point.Builder, + com.google.cloud.bigquery.migration.v2.PointOrBuilder> getPointsFieldBuilder() { if (pointsBuilder_ == null) { - pointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.Point, com.google.cloud.bigquery.migration.v2.Point.Builder, com.google.cloud.bigquery.migration.v2.PointOrBuilder>( - points_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); + pointsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.Point, + com.google.cloud.bigquery.migration.v2.Point.Builder, + com.google.cloud.bigquery.migration.v2.PointOrBuilder>( + points_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); points_ = null; } return pointsBuilder_; } + @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 +1617,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.TimeSeries) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.TimeSeries) private static final com.google.cloud.bigquery.migration.v2.TimeSeries DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.TimeSeries(); } @@ -1403,27 +1631,27 @@ public static com.google.cloud.bigquery.migration.v2.TimeSeries getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeSeries parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeSeries parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1438,6 +1666,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.TimeSeries getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TimeSeriesOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TimeSeriesOrBuilder.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TimeSeriesOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TimeSeriesOrBuilder.java index f0f3d45..984b161 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TimeSeriesOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TimeSeriesOrBuilder.java @@ -1,54 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_metrics.proto package com.google.cloud.bigquery.migration.v2; -public interface TimeSeriesOrBuilder extends +public interface TimeSeriesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.TimeSeries) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the metric.
    * If the metric is not known by the service yet, it will be auto-created.
    * 
* * string metric = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The metric. */ java.lang.String getMetric(); /** + * + * *
    * Required. The name of the metric.
    * If the metric is not known by the service yet, it will be auto-created.
    * 
* * string metric = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for metric. */ - com.google.protobuf.ByteString - getMetricBytes(); + com.google.protobuf.ByteString getMetricBytes(); /** + * + * *
    * Required. The value type of the time series.
    * 
* - * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for valueType. */ int getValueTypeValue(); /** + * + * *
    * Required. The value type of the time series.
    * 
* - * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The valueType. */ com.google.api.MetricDescriptor.ValueType getValueType(); /** + * + * *
    * Optional. The metric kind of the time series.
    * If present, it must be the same as the metric kind of the associated
@@ -57,11 +90,16 @@ public interface TimeSeriesOrBuilder extends
    * either `GAUGE` (the default) or `CUMULATIVE`.
    * 
* - * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for metricKind. */ int getMetricKindValue(); /** + * + * *
    * Optional. The metric kind of the time series.
    * If present, it must be the same as the metric kind of the associated
@@ -70,12 +108,17 @@ public interface TimeSeriesOrBuilder extends
    * either `GAUGE` (the default) or `CUMULATIVE`.
    * 
* - * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The metricKind. */ com.google.api.MetricDescriptor.MetricKind getMetricKind(); /** + * + * *
    * Required. The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -86,11 +129,14 @@ public interface TimeSeriesOrBuilder extends
    * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getPointsList(); + java.util.List getPointsList(); /** + * + * *
    * Required. The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -101,10 +147,14 @@ public interface TimeSeriesOrBuilder extends
    * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.bigquery.migration.v2.Point getPoints(int index); /** + * + * *
    * Required. The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -115,10 +165,14 @@ public interface TimeSeriesOrBuilder extends
    * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ int getPointsCount(); /** + * + * *
    * Required. The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -129,11 +183,15 @@ public interface TimeSeriesOrBuilder extends
    * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List getPointsOrBuilderList(); /** + * + * *
    * Required. The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -144,8 +202,9 @@ public interface TimeSeriesOrBuilder extends
    * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
    * 
* - * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.bigquery.migration.v2.PointOrBuilder getPointsOrBuilder( - int index); + com.google.cloud.bigquery.migration.v2.PointOrBuilder getPointsOrBuilder(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigDetails.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigDetails.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigDetails.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigDetails.java index 94fd4b7..98d31ae 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigDetails.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigDetails.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * The translation config to capture necessary settings for a translation task
  * and subtask.
@@ -11,51 +28,55 @@
  *
  * Protobuf type {@code google.cloud.bigquery.migration.v2.TranslationConfigDetails}
  */
-public final class TranslationConfigDetails extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TranslationConfigDetails extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.TranslationConfigDetails)
     TranslationConfigDetailsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TranslationConfigDetails.newBuilder() to construct.
   private TranslationConfigDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private TranslationConfigDetails() {
-  }
+
+  private TranslationConfigDetails() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TranslationConfigDetails();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_TranslationConfigDetails_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.migration.v2.TranslationConfigProto
+        .internal_static_google_cloud_bigquery_migration_v2_TranslationConfigDetails_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_TranslationConfigDetails_fieldAccessorTable
+    return com.google.cloud.bigquery.migration.v2.TranslationConfigProto
+        .internal_static_google_cloud_bigquery_migration_v2_TranslationConfigDetails_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.class, com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.Builder.class);
+            com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.class,
+            com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.Builder.class);
   }
 
   private int sourceLocationCase_ = 0;
   private java.lang.Object sourceLocation_;
+
   public enum SourceLocationCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GCS_SOURCE_PATH(1),
     SOURCELOCATION_NOT_SET(0);
     private final int value;
+
     private SourceLocationCase(int value) {
       this.value = value;
     }
@@ -71,30 +92,35 @@ public static SourceLocationCase valueOf(int value) {
 
     public static SourceLocationCase forNumber(int value) {
       switch (value) {
-        case 1: return GCS_SOURCE_PATH;
-        case 0: return SOURCELOCATION_NOT_SET;
-        default: return null;
+        case 1:
+          return GCS_SOURCE_PATH;
+        case 0:
+          return SOURCELOCATION_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public SourceLocationCase
-  getSourceLocationCase() {
-    return SourceLocationCase.forNumber(
-        sourceLocationCase_);
+  public SourceLocationCase getSourceLocationCase() {
+    return SourceLocationCase.forNumber(sourceLocationCase_);
   }
 
   private int targetLocationCase_ = 0;
   private java.lang.Object targetLocation_;
+
   public enum TargetLocationCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GCS_TARGET_PATH(2),
     TARGETLOCATION_NOT_SET(0);
     private final int value;
+
     private TargetLocationCase(int value) {
       this.value = value;
     }
@@ -110,30 +136,35 @@ public static TargetLocationCase valueOf(int value) {
 
     public static TargetLocationCase forNumber(int value) {
       switch (value) {
-        case 2: return GCS_TARGET_PATH;
-        case 0: return TARGETLOCATION_NOT_SET;
-        default: return null;
+        case 2:
+          return GCS_TARGET_PATH;
+        case 0:
+          return TARGETLOCATION_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public TargetLocationCase
-  getTargetLocationCase() {
-    return TargetLocationCase.forNumber(
-        targetLocationCase_);
+  public TargetLocationCase getTargetLocationCase() {
+    return TargetLocationCase.forNumber(targetLocationCase_);
   }
 
   private int outputNameMappingCase_ = 0;
   private java.lang.Object outputNameMapping_;
+
   public enum OutputNameMappingCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     NAME_MAPPING_LIST(5),
     OUTPUTNAMEMAPPING_NOT_SET(0);
     private final int value;
+
     private OutputNameMappingCase(int value) {
       this.value = value;
     }
@@ -149,40 +180,48 @@ public static OutputNameMappingCase valueOf(int value) {
 
     public static OutputNameMappingCase forNumber(int value) {
       switch (value) {
-        case 5: return NAME_MAPPING_LIST;
-        case 0: return OUTPUTNAMEMAPPING_NOT_SET;
-        default: return null;
+        case 5:
+          return NAME_MAPPING_LIST;
+        case 0:
+          return OUTPUTNAMEMAPPING_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public OutputNameMappingCase
-  getOutputNameMappingCase() {
-    return OutputNameMappingCase.forNumber(
-        outputNameMappingCase_);
+  public OutputNameMappingCase getOutputNameMappingCase() {
+    return OutputNameMappingCase.forNumber(outputNameMappingCase_);
   }
 
   public static final int GCS_SOURCE_PATH_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * The Cloud Storage path for a directory of files to translate in a task.
    * 
* * string gcs_source_path = 1; + * * @return Whether the gcsSourcePath field is set. */ public boolean hasGcsSourcePath() { return sourceLocationCase_ == 1; } /** + * + * *
    * The Cloud Storage path for a directory of files to translate in a task.
    * 
* * string gcs_source_path = 1; + * * @return The gcsSourcePath. */ public java.lang.String getGcsSourcePath() { @@ -193,8 +232,7 @@ public java.lang.String getGcsSourcePath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceLocationCase_ == 1) { sourceLocation_ = s; @@ -203,23 +241,24 @@ public java.lang.String getGcsSourcePath() { } } /** + * + * *
    * The Cloud Storage path for a directory of files to translate in a task.
    * 
* * string gcs_source_path = 1; + * * @return The bytes for gcsSourcePath. */ - public com.google.protobuf.ByteString - getGcsSourcePathBytes() { + public com.google.protobuf.ByteString getGcsSourcePathBytes() { java.lang.Object ref = ""; if (sourceLocationCase_ == 1) { ref = sourceLocation_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (sourceLocationCase_ == 1) { sourceLocation_ = b; } @@ -231,22 +270,28 @@ public java.lang.String getGcsSourcePath() { public static final int GCS_TARGET_PATH_FIELD_NUMBER = 2; /** + * + * *
    * The Cloud Storage path to write back the corresponding input files to.
    * 
* * string gcs_target_path = 2; + * * @return Whether the gcsTargetPath field is set. */ public boolean hasGcsTargetPath() { return targetLocationCase_ == 2; } /** + * + * *
    * The Cloud Storage path to write back the corresponding input files to.
    * 
* * string gcs_target_path = 2; + * * @return The gcsTargetPath. */ public java.lang.String getGcsTargetPath() { @@ -257,8 +302,7 @@ public java.lang.String getGcsTargetPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (targetLocationCase_ == 2) { targetLocation_ = s; @@ -267,23 +311,24 @@ public java.lang.String getGcsTargetPath() { } } /** + * + * *
    * The Cloud Storage path to write back the corresponding input files to.
    * 
* * string gcs_target_path = 2; + * * @return The bytes for gcsTargetPath. */ - public com.google.protobuf.ByteString - getGcsTargetPathBytes() { + public com.google.protobuf.ByteString getGcsTargetPathBytes() { java.lang.Object ref = ""; if (targetLocationCase_ == 2) { ref = targetLocation_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (targetLocationCase_ == 2) { targetLocation_ = b; } @@ -296,11 +341,14 @@ public java.lang.String getGcsTargetPath() { public static final int SOURCE_DIALECT_FIELD_NUMBER = 3; private com.google.cloud.bigquery.migration.v2.Dialect sourceDialect_; /** + * + * *
    * The dialect of the input files.
    * 
* * .google.cloud.bigquery.migration.v2.Dialect source_dialect = 3; + * * @return Whether the sourceDialect field is set. */ @java.lang.Override @@ -308,18 +356,25 @@ public boolean hasSourceDialect() { return sourceDialect_ != null; } /** + * + * *
    * The dialect of the input files.
    * 
* * .google.cloud.bigquery.migration.v2.Dialect source_dialect = 3; + * * @return The sourceDialect. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.Dialect getSourceDialect() { - return sourceDialect_ == null ? com.google.cloud.bigquery.migration.v2.Dialect.getDefaultInstance() : sourceDialect_; + return sourceDialect_ == null + ? com.google.cloud.bigquery.migration.v2.Dialect.getDefaultInstance() + : sourceDialect_; } /** + * + * *
    * The dialect of the input files.
    * 
@@ -328,17 +383,22 @@ public com.google.cloud.bigquery.migration.v2.Dialect getSourceDialect() { */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.DialectOrBuilder getSourceDialectOrBuilder() { - return sourceDialect_ == null ? com.google.cloud.bigquery.migration.v2.Dialect.getDefaultInstance() : sourceDialect_; + return sourceDialect_ == null + ? com.google.cloud.bigquery.migration.v2.Dialect.getDefaultInstance() + : sourceDialect_; } public static final int TARGET_DIALECT_FIELD_NUMBER = 4; private com.google.cloud.bigquery.migration.v2.Dialect targetDialect_; /** + * + * *
    * The target dialect for the engine to translate the input to.
    * 
* * .google.cloud.bigquery.migration.v2.Dialect target_dialect = 4; + * * @return Whether the targetDialect field is set. */ @java.lang.Override @@ -346,18 +406,25 @@ public boolean hasTargetDialect() { return targetDialect_ != null; } /** + * + * *
    * The target dialect for the engine to translate the input to.
    * 
* * .google.cloud.bigquery.migration.v2.Dialect target_dialect = 4; + * * @return The targetDialect. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.Dialect getTargetDialect() { - return targetDialect_ == null ? com.google.cloud.bigquery.migration.v2.Dialect.getDefaultInstance() : targetDialect_; + return targetDialect_ == null + ? com.google.cloud.bigquery.migration.v2.Dialect.getDefaultInstance() + : targetDialect_; } /** + * + * *
    * The target dialect for the engine to translate the input to.
    * 
@@ -366,16 +433,21 @@ public com.google.cloud.bigquery.migration.v2.Dialect getTargetDialect() { */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.DialectOrBuilder getTargetDialectOrBuilder() { - return targetDialect_ == null ? com.google.cloud.bigquery.migration.v2.Dialect.getDefaultInstance() : targetDialect_; + return targetDialect_ == null + ? com.google.cloud.bigquery.migration.v2.Dialect.getDefaultInstance() + : targetDialect_; } public static final int NAME_MAPPING_LIST_FIELD_NUMBER = 5; /** + * + * *
    * The mapping of objects to their desired output names in list form.
    * 
* * .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5; + * * @return Whether the nameMappingList field is set. */ @java.lang.Override @@ -383,21 +455,26 @@ public boolean hasNameMappingList() { return outputNameMappingCase_ == 5; } /** + * + * *
    * The mapping of objects to their desired output names in list form.
    * 
* * .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5; + * * @return The nameMappingList. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.ObjectNameMappingList getNameMappingList() { if (outputNameMappingCase_ == 5) { - return (com.google.cloud.bigquery.migration.v2.ObjectNameMappingList) outputNameMapping_; + return (com.google.cloud.bigquery.migration.v2.ObjectNameMappingList) outputNameMapping_; } return com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.getDefaultInstance(); } /** + * + * *
    * The mapping of objects to their desired output names in list form.
    * 
@@ -405,9 +482,10 @@ public com.google.cloud.bigquery.migration.v2.ObjectNameMappingList getNameMappi * .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.ObjectNameMappingListOrBuilder getNameMappingListOrBuilder() { + public com.google.cloud.bigquery.migration.v2.ObjectNameMappingListOrBuilder + getNameMappingListOrBuilder() { if (outputNameMappingCase_ == 5) { - return (com.google.cloud.bigquery.migration.v2.ObjectNameMappingList) outputNameMapping_; + return (com.google.cloud.bigquery.migration.v2.ObjectNameMappingList) outputNameMapping_; } return com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.getDefaultInstance(); } @@ -415,11 +493,14 @@ public com.google.cloud.bigquery.migration.v2.ObjectNameMappingListOrBuilder get public static final int SOURCE_ENV_FIELD_NUMBER = 6; private com.google.cloud.bigquery.migration.v2.SourceEnv sourceEnv_; /** + * + * *
    * The default source environment values for the translation.
    * 
* * .google.cloud.bigquery.migration.v2.SourceEnv source_env = 6; + * * @return Whether the sourceEnv field is set. */ @java.lang.Override @@ -427,18 +508,25 @@ public boolean hasSourceEnv() { return sourceEnv_ != null; } /** + * + * *
    * The default source environment values for the translation.
    * 
* * .google.cloud.bigquery.migration.v2.SourceEnv source_env = 6; + * * @return The sourceEnv. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.SourceEnv getSourceEnv() { - return sourceEnv_ == null ? com.google.cloud.bigquery.migration.v2.SourceEnv.getDefaultInstance() : sourceEnv_; + return sourceEnv_ == null + ? com.google.cloud.bigquery.migration.v2.SourceEnv.getDefaultInstance() + : sourceEnv_; } /** + * + * *
    * The default source environment values for the translation.
    * 
@@ -447,10 +535,13 @@ public com.google.cloud.bigquery.migration.v2.SourceEnv getSourceEnv() { */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.SourceEnvOrBuilder getSourceEnvOrBuilder() { - return sourceEnv_ == null ? com.google.cloud.bigquery.migration.v2.SourceEnv.getDefaultInstance() : sourceEnv_; + return sourceEnv_ == null + ? com.google.cloud.bigquery.migration.v2.SourceEnv.getDefaultInstance() + : sourceEnv_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -462,8 +553,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 (sourceLocationCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceLocation_); } @@ -477,7 +567,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(4, getTargetDialect()); } if (outputNameMappingCase_ == 5) { - output.writeMessage(5, (com.google.cloud.bigquery.migration.v2.ObjectNameMappingList) outputNameMapping_); + output.writeMessage( + 5, (com.google.cloud.bigquery.migration.v2.ObjectNameMappingList) outputNameMapping_); } if (sourceEnv_ != null) { output.writeMessage(6, getSourceEnv()); @@ -498,20 +589,18 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, targetLocation_); } if (sourceDialect_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSourceDialect()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSourceDialect()); } if (targetDialect_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getTargetDialect()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTargetDialect()); } if (outputNameMappingCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.cloud.bigquery.migration.v2.ObjectNameMappingList) outputNameMapping_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.bigquery.migration.v2.ObjectNameMappingList) outputNameMapping_); } if (sourceEnv_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getSourceEnv()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSourceEnv()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -521,33 +610,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2.TranslationConfigDetails)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.TranslationConfigDetails other = (com.google.cloud.bigquery.migration.v2.TranslationConfigDetails) obj; + com.google.cloud.bigquery.migration.v2.TranslationConfigDetails other = + (com.google.cloud.bigquery.migration.v2.TranslationConfigDetails) obj; if (hasSourceDialect() != other.hasSourceDialect()) return false; if (hasSourceDialect()) { - if (!getSourceDialect() - .equals(other.getSourceDialect())) return false; + if (!getSourceDialect().equals(other.getSourceDialect())) return false; } if (hasTargetDialect() != other.hasTargetDialect()) return false; if (hasTargetDialect()) { - if (!getTargetDialect() - .equals(other.getTargetDialect())) return false; + if (!getTargetDialect().equals(other.getTargetDialect())) return false; } if (hasSourceEnv() != other.hasSourceEnv()) return false; if (hasSourceEnv()) { - if (!getSourceEnv() - .equals(other.getSourceEnv())) return false; + if (!getSourceEnv().equals(other.getSourceEnv())) return false; } if (!getSourceLocationCase().equals(other.getSourceLocationCase())) return false; switch (sourceLocationCase_) { case 1: - if (!getGcsSourcePath() - .equals(other.getGcsSourcePath())) return false; + if (!getGcsSourcePath().equals(other.getGcsSourcePath())) return false; break; case 0: default: @@ -555,8 +641,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTargetLocationCase().equals(other.getTargetLocationCase())) return false; switch (targetLocationCase_) { case 2: - if (!getGcsTargetPath() - .equals(other.getGcsTargetPath())) return false; + if (!getGcsTargetPath().equals(other.getGcsTargetPath())) return false; break; case 0: default: @@ -564,8 +649,7 @@ public boolean equals(final java.lang.Object obj) { if (!getOutputNameMappingCase().equals(other.getOutputNameMappingCase())) return false; switch (outputNameMappingCase_) { case 5: - if (!getNameMappingList() - .equals(other.getNameMappingList())) return false; + if (!getNameMappingList().equals(other.getNameMappingList())) return false; break; case 0: default: @@ -623,96 +707,104 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.TranslationConfigDetails parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.TranslationConfigDetails parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.TranslationConfigDetails parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.TranslationConfigDetails parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.TranslationConfigDetails parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2.TranslationConfigDetails parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.TranslationConfigDetails parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.TranslationConfigDetails parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.TranslationConfigDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.TranslationConfigDetails parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.TranslationConfigDetails parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.TranslationConfigDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.TranslationConfigDetails parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.TranslationConfigDetails parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.TranslationConfigDetails parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.TranslationConfigDetails prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.TranslationConfigDetails prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 translation config to capture necessary settings for a translation task
    * and subtask.
@@ -720,33 +812,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.migration.v2.TranslationConfigDetails}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.TranslationConfigDetails)
       com.google.cloud.bigquery.migration.v2.TranslationConfigDetailsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_TranslationConfigDetails_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto
+          .internal_static_google_cloud_bigquery_migration_v2_TranslationConfigDetails_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_TranslationConfigDetails_fieldAccessorTable
+      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto
+          .internal_static_google_cloud_bigquery_migration_v2_TranslationConfigDetails_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.class, com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.Builder.class);
+              com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.class,
+              com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -779,13 +870,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_TranslationConfigDetails_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.migration.v2.TranslationConfigProto
+          .internal_static_google_cloud_bigquery_migration_v2_TranslationConfigDetails_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.migration.v2.TranslationConfigDetails getDefaultInstanceForType() {
+    public com.google.cloud.bigquery.migration.v2.TranslationConfigDetails
+        getDefaultInstanceForType() {
       return com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.getDefaultInstance();
     }
 
@@ -800,41 +892,41 @@ public com.google.cloud.bigquery.migration.v2.TranslationConfigDetails build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.migration.v2.TranslationConfigDetails buildPartial() {
-      com.google.cloud.bigquery.migration.v2.TranslationConfigDetails result = new com.google.cloud.bigquery.migration.v2.TranslationConfigDetails(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.migration.v2.TranslationConfigDetails result =
+          new com.google.cloud.bigquery.migration.v2.TranslationConfigDetails(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.bigquery.migration.v2.TranslationConfigDetails result) {
+    private void buildPartial0(
+        com.google.cloud.bigquery.migration.v2.TranslationConfigDetails result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.sourceDialect_ = sourceDialectBuilder_ == null
-            ? sourceDialect_
-            : sourceDialectBuilder_.build();
+        result.sourceDialect_ =
+            sourceDialectBuilder_ == null ? sourceDialect_ : sourceDialectBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.targetDialect_ = targetDialectBuilder_ == null
-            ? targetDialect_
-            : targetDialectBuilder_.build();
+        result.targetDialect_ =
+            targetDialectBuilder_ == null ? targetDialect_ : targetDialectBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.sourceEnv_ = sourceEnvBuilder_ == null
-            ? sourceEnv_
-            : sourceEnvBuilder_.build();
+        result.sourceEnv_ = sourceEnvBuilder_ == null ? sourceEnv_ : sourceEnvBuilder_.build();
       }
     }
 
-    private void buildPartialOneofs(com.google.cloud.bigquery.migration.v2.TranslationConfigDetails result) {
+    private void buildPartialOneofs(
+        com.google.cloud.bigquery.migration.v2.TranslationConfigDetails result) {
       result.sourceLocationCase_ = sourceLocationCase_;
       result.sourceLocation_ = this.sourceLocation_;
       result.targetLocationCase_ = targetLocationCase_;
       result.targetLocation_ = this.targetLocation_;
       result.outputNameMappingCase_ = outputNameMappingCase_;
       result.outputNameMapping_ = this.outputNameMapping_;
-      if (outputNameMappingCase_ == 5 &&
-          nameMappingListBuilder_ != null) {
+      if (outputNameMappingCase_ == 5 && nameMappingListBuilder_ != null) {
         result.outputNameMapping_ = nameMappingListBuilder_.build();
       }
     }
@@ -843,46 +935,50 @@ private void buildPartialOneofs(com.google.cloud.bigquery.migration.v2.Translati
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.migration.v2.TranslationConfigDetails) {
-        return mergeFrom((com.google.cloud.bigquery.migration.v2.TranslationConfigDetails)other);
+        return mergeFrom((com.google.cloud.bigquery.migration.v2.TranslationConfigDetails) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.TranslationConfigDetails other) {
-      if (other == com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.bigquery.migration.v2.TranslationConfigDetails other) {
+      if (other
+          == com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.getDefaultInstance())
+        return this;
       if (other.hasSourceDialect()) {
         mergeSourceDialect(other.getSourceDialect());
       }
@@ -893,35 +989,41 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.TranslationConfi
         mergeSourceEnv(other.getSourceEnv());
       }
       switch (other.getSourceLocationCase()) {
-        case GCS_SOURCE_PATH: {
-          sourceLocationCase_ = 1;
-          sourceLocation_ = other.sourceLocation_;
-          onChanged();
-          break;
-        }
-        case SOURCELOCATION_NOT_SET: {
-          break;
-        }
+        case GCS_SOURCE_PATH:
+          {
+            sourceLocationCase_ = 1;
+            sourceLocation_ = other.sourceLocation_;
+            onChanged();
+            break;
+          }
+        case SOURCELOCATION_NOT_SET:
+          {
+            break;
+          }
       }
       switch (other.getTargetLocationCase()) {
-        case GCS_TARGET_PATH: {
-          targetLocationCase_ = 2;
-          targetLocation_ = other.targetLocation_;
-          onChanged();
-          break;
-        }
-        case TARGETLOCATION_NOT_SET: {
-          break;
-        }
+        case GCS_TARGET_PATH:
+          {
+            targetLocationCase_ = 2;
+            targetLocation_ = other.targetLocation_;
+            onChanged();
+            break;
+          }
+        case TARGETLOCATION_NOT_SET:
+          {
+            break;
+          }
       }
       switch (other.getOutputNameMappingCase()) {
-        case NAME_MAPPING_LIST: {
-          mergeNameMappingList(other.getNameMappingList());
-          break;
-        }
-        case OUTPUTNAMEMAPPING_NOT_SET: {
-          break;
-        }
+        case NAME_MAPPING_LIST:
+          {
+            mergeNameMappingList(other.getNameMappingList());
+            break;
+          }
+        case OUTPUTNAMEMAPPING_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -949,52 +1051,51 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              sourceLocationCase_ = 1;
-              sourceLocation_ = s;
-              break;
-            } // case 10
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              targetLocationCase_ = 2;
-              targetLocation_ = s;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getSourceDialectFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getTargetDialectFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getNameMappingListFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              outputNameMappingCase_ = 5;
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getSourceEnvFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                sourceLocationCase_ = 1;
+                sourceLocation_ = s;
+                break;
+              } // case 10
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                targetLocationCase_ = 2;
+                targetLocation_ = s;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getSourceDialectFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getTargetDialectFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getNameMappingListFieldBuilder().getBuilder(), extensionRegistry);
+                outputNameMappingCase_ = 5;
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getSourceEnvFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1004,12 +1105,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int sourceLocationCase_ = 0;
     private java.lang.Object sourceLocation_;
-    public SourceLocationCase
-        getSourceLocationCase() {
-      return SourceLocationCase.forNumber(
-          sourceLocationCase_);
+
+    public SourceLocationCase getSourceLocationCase() {
+      return SourceLocationCase.forNumber(sourceLocationCase_);
     }
 
     public Builder clearSourceLocation() {
@@ -1021,10 +1122,9 @@ public Builder clearSourceLocation() {
 
     private int targetLocationCase_ = 0;
     private java.lang.Object targetLocation_;
-    public TargetLocationCase
-        getTargetLocationCase() {
-      return TargetLocationCase.forNumber(
-          targetLocationCase_);
+
+    public TargetLocationCase getTargetLocationCase() {
+      return TargetLocationCase.forNumber(targetLocationCase_);
     }
 
     public Builder clearTargetLocation() {
@@ -1036,10 +1136,9 @@ public Builder clearTargetLocation() {
 
     private int outputNameMappingCase_ = 0;
     private java.lang.Object outputNameMapping_;
-    public OutputNameMappingCase
-        getOutputNameMappingCase() {
-      return OutputNameMappingCase.forNumber(
-          outputNameMappingCase_);
+
+    public OutputNameMappingCase getOutputNameMappingCase() {
+      return OutputNameMappingCase.forNumber(outputNameMappingCase_);
     }
 
     public Builder clearOutputNameMapping() {
@@ -1052,11 +1151,14 @@ public Builder clearOutputNameMapping() {
     private int bitField0_;
 
     /**
+     *
+     *
      * 
      * The Cloud Storage path for a directory of files to translate in a task.
      * 
* * string gcs_source_path = 1; + * * @return Whether the gcsSourcePath field is set. */ @java.lang.Override @@ -1064,11 +1166,14 @@ public boolean hasGcsSourcePath() { return sourceLocationCase_ == 1; } /** + * + * *
      * The Cloud Storage path for a directory of files to translate in a task.
      * 
* * string gcs_source_path = 1; + * * @return The gcsSourcePath. */ @java.lang.Override @@ -1078,8 +1183,7 @@ public java.lang.String getGcsSourcePath() { ref = sourceLocation_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceLocationCase_ == 1) { sourceLocation_ = s; @@ -1090,24 +1194,25 @@ public java.lang.String getGcsSourcePath() { } } /** + * + * *
      * The Cloud Storage path for a directory of files to translate in a task.
      * 
* * string gcs_source_path = 1; + * * @return The bytes for gcsSourcePath. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcsSourcePathBytes() { + public com.google.protobuf.ByteString getGcsSourcePathBytes() { java.lang.Object ref = ""; if (sourceLocationCase_ == 1) { ref = sourceLocation_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (sourceLocationCase_ == 1) { sourceLocation_ = b; } @@ -1117,28 +1222,35 @@ public java.lang.String getGcsSourcePath() { } } /** + * + * *
      * The Cloud Storage path for a directory of files to translate in a task.
      * 
* * string gcs_source_path = 1; + * * @param value The gcsSourcePath to set. * @return This builder for chaining. */ - public Builder setGcsSourcePath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGcsSourcePath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceLocationCase_ = 1; sourceLocation_ = value; onChanged(); return this; } /** + * + * *
      * The Cloud Storage path for a directory of files to translate in a task.
      * 
* * string gcs_source_path = 1; + * * @return This builder for chaining. */ public Builder clearGcsSourcePath() { @@ -1150,17 +1262,21 @@ public Builder clearGcsSourcePath() { return this; } /** + * + * *
      * The Cloud Storage path for a directory of files to translate in a task.
      * 
* * string gcs_source_path = 1; + * * @param value The bytes for gcsSourcePath to set. * @return This builder for chaining. */ - public Builder setGcsSourcePathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGcsSourcePathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceLocationCase_ = 1; sourceLocation_ = value; @@ -1169,11 +1285,14 @@ public Builder setGcsSourcePathBytes( } /** + * + * *
      * The Cloud Storage path to write back the corresponding input files to.
      * 
* * string gcs_target_path = 2; + * * @return Whether the gcsTargetPath field is set. */ @java.lang.Override @@ -1181,11 +1300,14 @@ public boolean hasGcsTargetPath() { return targetLocationCase_ == 2; } /** + * + * *
      * The Cloud Storage path to write back the corresponding input files to.
      * 
* * string gcs_target_path = 2; + * * @return The gcsTargetPath. */ @java.lang.Override @@ -1195,8 +1317,7 @@ public java.lang.String getGcsTargetPath() { ref = targetLocation_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (targetLocationCase_ == 2) { targetLocation_ = s; @@ -1207,24 +1328,25 @@ public java.lang.String getGcsTargetPath() { } } /** + * + * *
      * The Cloud Storage path to write back the corresponding input files to.
      * 
* * string gcs_target_path = 2; + * * @return The bytes for gcsTargetPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcsTargetPathBytes() { + public com.google.protobuf.ByteString getGcsTargetPathBytes() { java.lang.Object ref = ""; if (targetLocationCase_ == 2) { ref = targetLocation_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (targetLocationCase_ == 2) { targetLocation_ = b; } @@ -1234,28 +1356,35 @@ public java.lang.String getGcsTargetPath() { } } /** + * + * *
      * The Cloud Storage path to write back the corresponding input files to.
      * 
* * string gcs_target_path = 2; + * * @param value The gcsTargetPath to set. * @return This builder for chaining. */ - public Builder setGcsTargetPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGcsTargetPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } targetLocationCase_ = 2; targetLocation_ = value; onChanged(); return this; } /** + * + * *
      * The Cloud Storage path to write back the corresponding input files to.
      * 
* * string gcs_target_path = 2; + * * @return This builder for chaining. */ public Builder clearGcsTargetPath() { @@ -1267,17 +1396,21 @@ public Builder clearGcsTargetPath() { return this; } /** + * + * *
      * The Cloud Storage path to write back the corresponding input files to.
      * 
* * string gcs_target_path = 2; + * * @param value The bytes for gcsTargetPath to set. * @return This builder for chaining. */ - public Builder setGcsTargetPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGcsTargetPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); targetLocationCase_ = 2; targetLocation_ = value; @@ -1287,34 +1420,47 @@ public Builder setGcsTargetPathBytes( private com.google.cloud.bigquery.migration.v2.Dialect sourceDialect_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.Dialect, com.google.cloud.bigquery.migration.v2.Dialect.Builder, com.google.cloud.bigquery.migration.v2.DialectOrBuilder> sourceDialectBuilder_; + com.google.cloud.bigquery.migration.v2.Dialect, + com.google.cloud.bigquery.migration.v2.Dialect.Builder, + com.google.cloud.bigquery.migration.v2.DialectOrBuilder> + sourceDialectBuilder_; /** + * + * *
      * The dialect of the input files.
      * 
* * .google.cloud.bigquery.migration.v2.Dialect source_dialect = 3; + * * @return Whether the sourceDialect field is set. */ public boolean hasSourceDialect() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The dialect of the input files.
      * 
* * .google.cloud.bigquery.migration.v2.Dialect source_dialect = 3; + * * @return The sourceDialect. */ public com.google.cloud.bigquery.migration.v2.Dialect getSourceDialect() { if (sourceDialectBuilder_ == null) { - return sourceDialect_ == null ? com.google.cloud.bigquery.migration.v2.Dialect.getDefaultInstance() : sourceDialect_; + return sourceDialect_ == null + ? com.google.cloud.bigquery.migration.v2.Dialect.getDefaultInstance() + : sourceDialect_; } else { return sourceDialectBuilder_.getMessage(); } } /** + * + * *
      * The dialect of the input files.
      * 
@@ -1335,6 +1481,8 @@ public Builder setSourceDialect(com.google.cloud.bigquery.migration.v2.Dialect v return this; } /** + * + * *
      * The dialect of the input files.
      * 
@@ -1353,6 +1501,8 @@ public Builder setSourceDialect( return this; } /** + * + * *
      * The dialect of the input files.
      * 
@@ -1361,9 +1511,10 @@ public Builder setSourceDialect( */ public Builder mergeSourceDialect(com.google.cloud.bigquery.migration.v2.Dialect value) { if (sourceDialectBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - sourceDialect_ != null && - sourceDialect_ != com.google.cloud.bigquery.migration.v2.Dialect.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && sourceDialect_ != null + && sourceDialect_ + != com.google.cloud.bigquery.migration.v2.Dialect.getDefaultInstance()) { getSourceDialectBuilder().mergeFrom(value); } else { sourceDialect_ = value; @@ -1376,6 +1527,8 @@ public Builder mergeSourceDialect(com.google.cloud.bigquery.migration.v2.Dialect return this; } /** + * + * *
      * The dialect of the input files.
      * 
@@ -1393,6 +1546,8 @@ public Builder clearSourceDialect() { return this; } /** + * + * *
      * The dialect of the input files.
      * 
@@ -1405,6 +1560,8 @@ public com.google.cloud.bigquery.migration.v2.Dialect.Builder getSourceDialectBu return getSourceDialectFieldBuilder().getBuilder(); } /** + * + * *
      * The dialect of the input files.
      * 
@@ -1415,11 +1572,14 @@ public com.google.cloud.bigquery.migration.v2.DialectOrBuilder getSourceDialectO if (sourceDialectBuilder_ != null) { return sourceDialectBuilder_.getMessageOrBuilder(); } else { - return sourceDialect_ == null ? - com.google.cloud.bigquery.migration.v2.Dialect.getDefaultInstance() : sourceDialect_; + return sourceDialect_ == null + ? com.google.cloud.bigquery.migration.v2.Dialect.getDefaultInstance() + : sourceDialect_; } } /** + * + * *
      * The dialect of the input files.
      * 
@@ -1427,14 +1587,17 @@ public com.google.cloud.bigquery.migration.v2.DialectOrBuilder getSourceDialectO * .google.cloud.bigquery.migration.v2.Dialect source_dialect = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.Dialect, com.google.cloud.bigquery.migration.v2.Dialect.Builder, com.google.cloud.bigquery.migration.v2.DialectOrBuilder> + com.google.cloud.bigquery.migration.v2.Dialect, + com.google.cloud.bigquery.migration.v2.Dialect.Builder, + com.google.cloud.bigquery.migration.v2.DialectOrBuilder> getSourceDialectFieldBuilder() { if (sourceDialectBuilder_ == null) { - sourceDialectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.Dialect, com.google.cloud.bigquery.migration.v2.Dialect.Builder, com.google.cloud.bigquery.migration.v2.DialectOrBuilder>( - getSourceDialect(), - getParentForChildren(), - isClean()); + sourceDialectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.Dialect, + com.google.cloud.bigquery.migration.v2.Dialect.Builder, + com.google.cloud.bigquery.migration.v2.DialectOrBuilder>( + getSourceDialect(), getParentForChildren(), isClean()); sourceDialect_ = null; } return sourceDialectBuilder_; @@ -1442,34 +1605,47 @@ public com.google.cloud.bigquery.migration.v2.DialectOrBuilder getSourceDialectO private com.google.cloud.bigquery.migration.v2.Dialect targetDialect_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.Dialect, com.google.cloud.bigquery.migration.v2.Dialect.Builder, com.google.cloud.bigquery.migration.v2.DialectOrBuilder> targetDialectBuilder_; + com.google.cloud.bigquery.migration.v2.Dialect, + com.google.cloud.bigquery.migration.v2.Dialect.Builder, + com.google.cloud.bigquery.migration.v2.DialectOrBuilder> + targetDialectBuilder_; /** + * + * *
      * The target dialect for the engine to translate the input to.
      * 
* * .google.cloud.bigquery.migration.v2.Dialect target_dialect = 4; + * * @return Whether the targetDialect field is set. */ public boolean hasTargetDialect() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The target dialect for the engine to translate the input to.
      * 
* * .google.cloud.bigquery.migration.v2.Dialect target_dialect = 4; + * * @return The targetDialect. */ public com.google.cloud.bigquery.migration.v2.Dialect getTargetDialect() { if (targetDialectBuilder_ == null) { - return targetDialect_ == null ? com.google.cloud.bigquery.migration.v2.Dialect.getDefaultInstance() : targetDialect_; + return targetDialect_ == null + ? com.google.cloud.bigquery.migration.v2.Dialect.getDefaultInstance() + : targetDialect_; } else { return targetDialectBuilder_.getMessage(); } } /** + * + * *
      * The target dialect for the engine to translate the input to.
      * 
@@ -1490,6 +1666,8 @@ public Builder setTargetDialect(com.google.cloud.bigquery.migration.v2.Dialect v return this; } /** + * + * *
      * The target dialect for the engine to translate the input to.
      * 
@@ -1508,6 +1686,8 @@ public Builder setTargetDialect( return this; } /** + * + * *
      * The target dialect for the engine to translate the input to.
      * 
@@ -1516,9 +1696,10 @@ public Builder setTargetDialect( */ public Builder mergeTargetDialect(com.google.cloud.bigquery.migration.v2.Dialect value) { if (targetDialectBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - targetDialect_ != null && - targetDialect_ != com.google.cloud.bigquery.migration.v2.Dialect.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && targetDialect_ != null + && targetDialect_ + != com.google.cloud.bigquery.migration.v2.Dialect.getDefaultInstance()) { getTargetDialectBuilder().mergeFrom(value); } else { targetDialect_ = value; @@ -1531,6 +1712,8 @@ public Builder mergeTargetDialect(com.google.cloud.bigquery.migration.v2.Dialect return this; } /** + * + * *
      * The target dialect for the engine to translate the input to.
      * 
@@ -1548,6 +1731,8 @@ public Builder clearTargetDialect() { return this; } /** + * + * *
      * The target dialect for the engine to translate the input to.
      * 
@@ -1560,6 +1745,8 @@ public com.google.cloud.bigquery.migration.v2.Dialect.Builder getTargetDialectBu return getTargetDialectFieldBuilder().getBuilder(); } /** + * + * *
      * The target dialect for the engine to translate the input to.
      * 
@@ -1570,11 +1757,14 @@ public com.google.cloud.bigquery.migration.v2.DialectOrBuilder getTargetDialectO if (targetDialectBuilder_ != null) { return targetDialectBuilder_.getMessageOrBuilder(); } else { - return targetDialect_ == null ? - com.google.cloud.bigquery.migration.v2.Dialect.getDefaultInstance() : targetDialect_; + return targetDialect_ == null + ? com.google.cloud.bigquery.migration.v2.Dialect.getDefaultInstance() + : targetDialect_; } } /** + * + * *
      * The target dialect for the engine to translate the input to.
      * 
@@ -1582,27 +1772,36 @@ public com.google.cloud.bigquery.migration.v2.DialectOrBuilder getTargetDialectO * .google.cloud.bigquery.migration.v2.Dialect target_dialect = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.Dialect, com.google.cloud.bigquery.migration.v2.Dialect.Builder, com.google.cloud.bigquery.migration.v2.DialectOrBuilder> + com.google.cloud.bigquery.migration.v2.Dialect, + com.google.cloud.bigquery.migration.v2.Dialect.Builder, + com.google.cloud.bigquery.migration.v2.DialectOrBuilder> getTargetDialectFieldBuilder() { if (targetDialectBuilder_ == null) { - targetDialectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.Dialect, com.google.cloud.bigquery.migration.v2.Dialect.Builder, com.google.cloud.bigquery.migration.v2.DialectOrBuilder>( - getTargetDialect(), - getParentForChildren(), - isClean()); + targetDialectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.Dialect, + com.google.cloud.bigquery.migration.v2.Dialect.Builder, + com.google.cloud.bigquery.migration.v2.DialectOrBuilder>( + getTargetDialect(), getParentForChildren(), isClean()); targetDialect_ = null; } return targetDialectBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.ObjectNameMappingList, com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.Builder, com.google.cloud.bigquery.migration.v2.ObjectNameMappingListOrBuilder> nameMappingListBuilder_; + com.google.cloud.bigquery.migration.v2.ObjectNameMappingList, + com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.Builder, + com.google.cloud.bigquery.migration.v2.ObjectNameMappingListOrBuilder> + nameMappingListBuilder_; /** + * + * *
      * The mapping of objects to their desired output names in list form.
      * 
* * .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5; + * * @return Whether the nameMappingList field is set. */ @java.lang.Override @@ -1610,11 +1809,14 @@ public boolean hasNameMappingList() { return outputNameMappingCase_ == 5; } /** + * + * *
      * The mapping of objects to their desired output names in list form.
      * 
* * .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5; + * * @return The nameMappingList. */ @java.lang.Override @@ -1632,13 +1834,16 @@ public com.google.cloud.bigquery.migration.v2.ObjectNameMappingList getNameMappi } } /** + * + * *
      * The mapping of objects to their desired output names in list form.
      * 
* * .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5; */ - public Builder setNameMappingList(com.google.cloud.bigquery.migration.v2.ObjectNameMappingList value) { + public Builder setNameMappingList( + com.google.cloud.bigquery.migration.v2.ObjectNameMappingList value) { if (nameMappingListBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1652,6 +1857,8 @@ public Builder setNameMappingList(com.google.cloud.bigquery.migration.v2.ObjectN return this; } /** + * + * *
      * The mapping of objects to their desired output names in list form.
      * 
@@ -1670,18 +1877,27 @@ public Builder setNameMappingList( return this; } /** + * + * *
      * The mapping of objects to their desired output names in list form.
      * 
* * .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5; */ - public Builder mergeNameMappingList(com.google.cloud.bigquery.migration.v2.ObjectNameMappingList value) { + public Builder mergeNameMappingList( + com.google.cloud.bigquery.migration.v2.ObjectNameMappingList value) { if (nameMappingListBuilder_ == null) { - if (outputNameMappingCase_ == 5 && - outputNameMapping_ != com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.getDefaultInstance()) { - outputNameMapping_ = com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.newBuilder((com.google.cloud.bigquery.migration.v2.ObjectNameMappingList) outputNameMapping_) - .mergeFrom(value).buildPartial(); + if (outputNameMappingCase_ == 5 + && outputNameMapping_ + != com.google.cloud.bigquery.migration.v2.ObjectNameMappingList + .getDefaultInstance()) { + outputNameMapping_ = + com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.newBuilder( + (com.google.cloud.bigquery.migration.v2.ObjectNameMappingList) + outputNameMapping_) + .mergeFrom(value) + .buildPartial(); } else { outputNameMapping_ = value; } @@ -1697,6 +1913,8 @@ public Builder mergeNameMappingList(com.google.cloud.bigquery.migration.v2.Objec return this; } /** + * + * *
      * The mapping of objects to their desired output names in list form.
      * 
@@ -1720,16 +1938,21 @@ public Builder clearNameMappingList() { return this; } /** + * + * *
      * The mapping of objects to their desired output names in list form.
      * 
* * .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5; */ - public com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.Builder getNameMappingListBuilder() { + public com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.Builder + getNameMappingListBuilder() { return getNameMappingListFieldBuilder().getBuilder(); } /** + * + * *
      * The mapping of objects to their desired output names in list form.
      * 
@@ -1737,7 +1960,8 @@ public com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.Builder getN * .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2.ObjectNameMappingListOrBuilder getNameMappingListOrBuilder() { + public com.google.cloud.bigquery.migration.v2.ObjectNameMappingListOrBuilder + getNameMappingListOrBuilder() { if ((outputNameMappingCase_ == 5) && (nameMappingListBuilder_ != null)) { return nameMappingListBuilder_.getMessageOrBuilder(); } else { @@ -1748,6 +1972,8 @@ public com.google.cloud.bigquery.migration.v2.ObjectNameMappingListOrBuilder get } } /** + * + * *
      * The mapping of objects to their desired output names in list form.
      * 
@@ -1755,14 +1981,20 @@ public com.google.cloud.bigquery.migration.v2.ObjectNameMappingListOrBuilder get * .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.ObjectNameMappingList, com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.Builder, com.google.cloud.bigquery.migration.v2.ObjectNameMappingListOrBuilder> + com.google.cloud.bigquery.migration.v2.ObjectNameMappingList, + com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.Builder, + com.google.cloud.bigquery.migration.v2.ObjectNameMappingListOrBuilder> getNameMappingListFieldBuilder() { if (nameMappingListBuilder_ == null) { if (!(outputNameMappingCase_ == 5)) { - outputNameMapping_ = com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.getDefaultInstance(); + outputNameMapping_ = + com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.getDefaultInstance(); } - nameMappingListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.ObjectNameMappingList, com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.Builder, com.google.cloud.bigquery.migration.v2.ObjectNameMappingListOrBuilder>( + nameMappingListBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.ObjectNameMappingList, + com.google.cloud.bigquery.migration.v2.ObjectNameMappingList.Builder, + com.google.cloud.bigquery.migration.v2.ObjectNameMappingListOrBuilder>( (com.google.cloud.bigquery.migration.v2.ObjectNameMappingList) outputNameMapping_, getParentForChildren(), isClean()); @@ -1775,34 +2007,47 @@ public com.google.cloud.bigquery.migration.v2.ObjectNameMappingListOrBuilder get private com.google.cloud.bigquery.migration.v2.SourceEnv sourceEnv_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.SourceEnv, com.google.cloud.bigquery.migration.v2.SourceEnv.Builder, com.google.cloud.bigquery.migration.v2.SourceEnvOrBuilder> sourceEnvBuilder_; + com.google.cloud.bigquery.migration.v2.SourceEnv, + com.google.cloud.bigquery.migration.v2.SourceEnv.Builder, + com.google.cloud.bigquery.migration.v2.SourceEnvOrBuilder> + sourceEnvBuilder_; /** + * + * *
      * The default source environment values for the translation.
      * 
* * .google.cloud.bigquery.migration.v2.SourceEnv source_env = 6; + * * @return Whether the sourceEnv field is set. */ public boolean hasSourceEnv() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * The default source environment values for the translation.
      * 
* * .google.cloud.bigquery.migration.v2.SourceEnv source_env = 6; + * * @return The sourceEnv. */ public com.google.cloud.bigquery.migration.v2.SourceEnv getSourceEnv() { if (sourceEnvBuilder_ == null) { - return sourceEnv_ == null ? com.google.cloud.bigquery.migration.v2.SourceEnv.getDefaultInstance() : sourceEnv_; + return sourceEnv_ == null + ? com.google.cloud.bigquery.migration.v2.SourceEnv.getDefaultInstance() + : sourceEnv_; } else { return sourceEnvBuilder_.getMessage(); } } /** + * + * *
      * The default source environment values for the translation.
      * 
@@ -1823,6 +2068,8 @@ public Builder setSourceEnv(com.google.cloud.bigquery.migration.v2.SourceEnv val return this; } /** + * + * *
      * The default source environment values for the translation.
      * 
@@ -1841,6 +2088,8 @@ public Builder setSourceEnv( return this; } /** + * + * *
      * The default source environment values for the translation.
      * 
@@ -1849,9 +2098,10 @@ public Builder setSourceEnv( */ public Builder mergeSourceEnv(com.google.cloud.bigquery.migration.v2.SourceEnv value) { if (sourceEnvBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - sourceEnv_ != null && - sourceEnv_ != com.google.cloud.bigquery.migration.v2.SourceEnv.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && sourceEnv_ != null + && sourceEnv_ + != com.google.cloud.bigquery.migration.v2.SourceEnv.getDefaultInstance()) { getSourceEnvBuilder().mergeFrom(value); } else { sourceEnv_ = value; @@ -1864,6 +2114,8 @@ public Builder mergeSourceEnv(com.google.cloud.bigquery.migration.v2.SourceEnv v return this; } /** + * + * *
      * The default source environment values for the translation.
      * 
@@ -1881,6 +2133,8 @@ public Builder clearSourceEnv() { return this; } /** + * + * *
      * The default source environment values for the translation.
      * 
@@ -1893,6 +2147,8 @@ public com.google.cloud.bigquery.migration.v2.SourceEnv.Builder getSourceEnvBuil return getSourceEnvFieldBuilder().getBuilder(); } /** + * + * *
      * The default source environment values for the translation.
      * 
@@ -1903,11 +2159,14 @@ public com.google.cloud.bigquery.migration.v2.SourceEnvOrBuilder getSourceEnvOrB if (sourceEnvBuilder_ != null) { return sourceEnvBuilder_.getMessageOrBuilder(); } else { - return sourceEnv_ == null ? - com.google.cloud.bigquery.migration.v2.SourceEnv.getDefaultInstance() : sourceEnv_; + return sourceEnv_ == null + ? com.google.cloud.bigquery.migration.v2.SourceEnv.getDefaultInstance() + : sourceEnv_; } } /** + * + * *
      * The default source environment values for the translation.
      * 
@@ -1915,21 +2174,24 @@ public com.google.cloud.bigquery.migration.v2.SourceEnvOrBuilder getSourceEnvOrB * .google.cloud.bigquery.migration.v2.SourceEnv source_env = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.SourceEnv, com.google.cloud.bigquery.migration.v2.SourceEnv.Builder, com.google.cloud.bigquery.migration.v2.SourceEnvOrBuilder> + com.google.cloud.bigquery.migration.v2.SourceEnv, + com.google.cloud.bigquery.migration.v2.SourceEnv.Builder, + com.google.cloud.bigquery.migration.v2.SourceEnvOrBuilder> getSourceEnvFieldBuilder() { if (sourceEnvBuilder_ == null) { - sourceEnvBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2.SourceEnv, com.google.cloud.bigquery.migration.v2.SourceEnv.Builder, com.google.cloud.bigquery.migration.v2.SourceEnvOrBuilder>( - getSourceEnv(), - getParentForChildren(), - isClean()); + sourceEnvBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2.SourceEnv, + com.google.cloud.bigquery.migration.v2.SourceEnv.Builder, + com.google.cloud.bigquery.migration.v2.SourceEnvOrBuilder>( + getSourceEnv(), getParentForChildren(), isClean()); sourceEnv_ = null; } return sourceEnvBuilder_; } + @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); } @@ -1939,41 +2201,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.TranslationConfigDetails) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.TranslationConfigDetails) - private static final com.google.cloud.bigquery.migration.v2.TranslationConfigDetails DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2.TranslationConfigDetails + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.TranslationConfigDetails(); } - public static com.google.cloud.bigquery.migration.v2.TranslationConfigDetails getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2.TranslationConfigDetails + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslationConfigDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslationConfigDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1985,9 +2249,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.migration.v2.TranslationConfigDetails getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2.TranslationConfigDetails + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigDetailsOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigDetailsOrBuilder.java similarity index 80% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigDetailsOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigDetailsOrBuilder.java index 06d295c..762e04c 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigDetailsOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigDetailsOrBuilder.java @@ -1,89 +1,129 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; -public interface TranslationConfigDetailsOrBuilder extends +public interface TranslationConfigDetailsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.TranslationConfigDetails) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Cloud Storage path for a directory of files to translate in a task.
    * 
* * string gcs_source_path = 1; + * * @return Whether the gcsSourcePath field is set. */ boolean hasGcsSourcePath(); /** + * + * *
    * The Cloud Storage path for a directory of files to translate in a task.
    * 
* * string gcs_source_path = 1; + * * @return The gcsSourcePath. */ java.lang.String getGcsSourcePath(); /** + * + * *
    * The Cloud Storage path for a directory of files to translate in a task.
    * 
* * string gcs_source_path = 1; + * * @return The bytes for gcsSourcePath. */ - com.google.protobuf.ByteString - getGcsSourcePathBytes(); + com.google.protobuf.ByteString getGcsSourcePathBytes(); /** + * + * *
    * The Cloud Storage path to write back the corresponding input files to.
    * 
* * string gcs_target_path = 2; + * * @return Whether the gcsTargetPath field is set. */ boolean hasGcsTargetPath(); /** + * + * *
    * The Cloud Storage path to write back the corresponding input files to.
    * 
* * string gcs_target_path = 2; + * * @return The gcsTargetPath. */ java.lang.String getGcsTargetPath(); /** + * + * *
    * The Cloud Storage path to write back the corresponding input files to.
    * 
* * string gcs_target_path = 2; + * * @return The bytes for gcsTargetPath. */ - com.google.protobuf.ByteString - getGcsTargetPathBytes(); + com.google.protobuf.ByteString getGcsTargetPathBytes(); /** + * + * *
    * The dialect of the input files.
    * 
* * .google.cloud.bigquery.migration.v2.Dialect source_dialect = 3; + * * @return Whether the sourceDialect field is set. */ boolean hasSourceDialect(); /** + * + * *
    * The dialect of the input files.
    * 
* * .google.cloud.bigquery.migration.v2.Dialect source_dialect = 3; + * * @return The sourceDialect. */ com.google.cloud.bigquery.migration.v2.Dialect getSourceDialect(); /** + * + * *
    * The dialect of the input files.
    * 
@@ -93,24 +133,32 @@ public interface TranslationConfigDetailsOrBuilder extends com.google.cloud.bigquery.migration.v2.DialectOrBuilder getSourceDialectOrBuilder(); /** + * + * *
    * The target dialect for the engine to translate the input to.
    * 
* * .google.cloud.bigquery.migration.v2.Dialect target_dialect = 4; + * * @return Whether the targetDialect field is set. */ boolean hasTargetDialect(); /** + * + * *
    * The target dialect for the engine to translate the input to.
    * 
* * .google.cloud.bigquery.migration.v2.Dialect target_dialect = 4; + * * @return The targetDialect. */ com.google.cloud.bigquery.migration.v2.Dialect getTargetDialect(); /** + * + * *
    * The target dialect for the engine to translate the input to.
    * 
@@ -120,51 +168,68 @@ public interface TranslationConfigDetailsOrBuilder extends com.google.cloud.bigquery.migration.v2.DialectOrBuilder getTargetDialectOrBuilder(); /** + * + * *
    * The mapping of objects to their desired output names in list form.
    * 
* * .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5; + * * @return Whether the nameMappingList field is set. */ boolean hasNameMappingList(); /** + * + * *
    * The mapping of objects to their desired output names in list form.
    * 
* * .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5; + * * @return The nameMappingList. */ com.google.cloud.bigquery.migration.v2.ObjectNameMappingList getNameMappingList(); /** + * + * *
    * The mapping of objects to their desired output names in list form.
    * 
* * .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5; */ - com.google.cloud.bigquery.migration.v2.ObjectNameMappingListOrBuilder getNameMappingListOrBuilder(); + com.google.cloud.bigquery.migration.v2.ObjectNameMappingListOrBuilder + getNameMappingListOrBuilder(); /** + * + * *
    * The default source environment values for the translation.
    * 
* * .google.cloud.bigquery.migration.v2.SourceEnv source_env = 6; + * * @return Whether the sourceEnv field is set. */ boolean hasSourceEnv(); /** + * + * *
    * The default source environment values for the translation.
    * 
* * .google.cloud.bigquery.migration.v2.SourceEnv source_env = 6; + * * @return The sourceEnv. */ com.google.cloud.bigquery.migration.v2.SourceEnv getSourceEnv(); /** + * + * *
    * The default source environment values for the translation.
    * 
@@ -173,9 +238,12 @@ public interface TranslationConfigDetailsOrBuilder extends */ com.google.cloud.bigquery.migration.v2.SourceEnvOrBuilder getSourceEnvOrBuilder(); - public com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.SourceLocationCase getSourceLocationCase(); + public com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.SourceLocationCase + getSourceLocationCase(); - public com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.TargetLocationCase getTargetLocationCase(); + public com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.TargetLocationCase + getTargetLocationCase(); - public com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.OutputNameMappingCase getOutputNameMappingCase(); + public com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.OutputNameMappingCase + getOutputNameMappingCase(); } diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigProto.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigProto.java new file mode 100644 index 0000000..4d11dfd --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TranslationConfigProto.java @@ -0,0 +1,370 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2/translation_config.proto + +package com.google.cloud.bigquery.migration.v2; + +public final class TranslationConfigProto { + private TranslationConfigProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_TranslationConfigDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_TranslationConfigDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_Dialect_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_Dialect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_BigQueryDialect_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_BigQueryDialect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_HiveQLDialect_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_HiveQLDialect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_RedshiftDialect_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_RedshiftDialect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_TeradataDialect_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_TeradataDialect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_OracleDialect_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_OracleDialect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_SparkSQLDialect_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_SparkSQLDialect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_SnowflakeDialect_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_SnowflakeDialect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_NetezzaDialect_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_NetezzaDialect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_AzureSynapseDialect_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_AzureSynapseDialect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_VerticaDialect_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_VerticaDialect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_PostgresqlDialect_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_PostgresqlDialect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_PrestoDialect_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_PrestoDialect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_MySQLDialect_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_MySQLDialect_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2_SourceEnv_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2_SourceEnv_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/bigquery/migration/v2/tra" + + "nslation_config.proto\022\"google.cloud.bigq" + + "uery.migration.v2\"\262\003\n\030TranslationConfigD" + + "etails\022\031\n\017gcs_source_path\030\001 \001(\tH\000\022\031\n\017gcs" + + "_target_path\030\002 \001(\tH\001\022C\n\016source_dialect\030\003" + + " \001(\0132+.google.cloud.bigquery.migration.v" + + "2.Dialect\022C\n\016target_dialect\030\004 \001(\0132+.goog" + + "le.cloud.bigquery.migration.v2.Dialect\022V" + + "\n\021name_mapping_list\030\005 \001(\01329.google.cloud" + + ".bigquery.migration.v2.ObjectNameMapping" + + "ListH\002\022A\n\nsource_env\030\006 \001(\0132-.google.clou" + + "d.bigquery.migration.v2.SourceEnvB\021\n\017sou" + + "rce_locationB\021\n\017target_locationB\025\n\023outpu" + + "t_name_mapping\"\204\t\n\007Dialect\022O\n\020bigquery_d" + + "ialect\030\001 \001(\01323.google.cloud.bigquery.mig" + + "ration.v2.BigQueryDialectH\000\022K\n\016hiveql_di" + + "alect\030\002 \001(\01321.google.cloud.bigquery.migr" + + "ation.v2.HiveQLDialectH\000\022O\n\020redshift_dia" + + "lect\030\003 \001(\01323.google.cloud.bigquery.migra" + + "tion.v2.RedshiftDialectH\000\022O\n\020teradata_di" + + "alect\030\004 \001(\01323.google.cloud.bigquery.migr" + + "ation.v2.TeradataDialectH\000\022K\n\016oracle_dia" + + "lect\030\005 \001(\01321.google.cloud.bigquery.migra" + + "tion.v2.OracleDialectH\000\022O\n\020sparksql_dial" + + "ect\030\006 \001(\01323.google.cloud.bigquery.migrat" + + "ion.v2.SparkSQLDialectH\000\022Q\n\021snowflake_di" + + "alect\030\007 \001(\01324.google.cloud.bigquery.migr" + + "ation.v2.SnowflakeDialectH\000\022M\n\017netezza_d" + + "ialect\030\010 \001(\01322.google.cloud.bigquery.mig" + + "ration.v2.NetezzaDialectH\000\022X\n\025azure_syna" + + "pse_dialect\030\t \001(\01327.google.cloud.bigquer" + + "y.migration.v2.AzureSynapseDialectH\000\022M\n\017" + + "vertica_dialect\030\n \001(\01322.google.cloud.big" + + "query.migration.v2.VerticaDialectH\000\022R\n\022s" + + "ql_server_dialect\030\013 \001(\01324.google.cloud.b" + + "igquery.migration.v2.SQLServerDialectH\000\022" + + "S\n\022postgresql_dialect\030\014 \001(\01325.google.clo" + + "ud.bigquery.migration.v2.PostgresqlDiale" + + "ctH\000\022K\n\016presto_dialect\030\r \001(\01321.google.cl" + + "oud.bigquery.migration.v2.PrestoDialectH" + + "\000\022I\n\rmysql_dialect\030\016 \001(\01320.google.cloud." + + "bigquery.migration.v2.MySQLDialectH\000B\017\n\r" + + "dialect_value\"\021\n\017BigQueryDialect\"\017\n\rHive" + + "QLDialect\"\021\n\017RedshiftDialect\"\212\001\n\017Teradat" + + "aDialect\022F\n\004mode\030\001 \001(\01628.google.cloud.bi" + + "gquery.migration.v2.TeradataDialect.Mode" + + "\"/\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\007\n\003SQL\020\001\022" + + "\010\n\004BTEQ\020\002\"\017\n\rOracleDialect\"\021\n\017SparkSQLDi" + + "alect\"\022\n\020SnowflakeDialect\"\020\n\016NetezzaDial" + + "ect\"\025\n\023AzureSynapseDialect\"\020\n\016VerticaDia" + + "lect\"\022\n\020SQLServerDialect\"\023\n\021PostgresqlDi" + + "alect\"\017\n\rPrestoDialect\"\016\n\014MySQLDialect\"`" + + "\n\025ObjectNameMappingList\022G\n\010name_map\030\001 \003(" + + "\01325.google.cloud.bigquery.migration.v2.O" + + "bjectNameMapping\"\235\001\n\021ObjectNameMapping\022B" + + "\n\006source\030\001 \001(\01322.google.cloud.bigquery.m" + + "igration.v2.NameMappingKey\022D\n\006target\030\002 \001" + + "(\01324.google.cloud.bigquery.migration.v2." + + "NameMappingValue\"\253\002\n\016NameMappingKey\022E\n\004t" + + "ype\030\001 \001(\01627.google.cloud.bigquery.migrat" + + "ion.v2.NameMappingKey.Type\022\020\n\010database\030\002" + + " \001(\t\022\016\n\006schema\030\003 \001(\t\022\020\n\010relation\030\004 \001(\t\022\021" + + "\n\tattribute\030\005 \001(\t\"\212\001\n\004Type\022\024\n\020TYPE_UNSPE" + + "CIFIED\020\000\022\014\n\010DATABASE\020\001\022\n\n\006SCHEMA\020\002\022\014\n\010RE" + + "LATION\020\003\022\r\n\tATTRIBUTE\020\004\022\022\n\016RELATION_ALIA" + + "S\020\005\022\023\n\017ATTRIBUTE_ALIAS\020\006\022\014\n\010FUNCTION\020\007\"Y" + + "\n\020NameMappingValue\022\020\n\010database\030\001 \001(\t\022\016\n\006" + + "schema\030\002 \001(\t\022\020\n\010relation\030\003 \001(\t\022\021\n\tattrib" + + "ute\030\004 \001(\t\"A\n\tSourceEnv\022\030\n\020default_databa" + + "se\030\001 \001(\t\022\032\n\022schema_search_path\030\002 \003(\tB\322\001\n" + + "&com.google.cloud.bigquery.migration.v2B" + + "\026TranslationConfigProtoP\001ZDcloud.google." + + "com/go/bigquery/migration/apiv2/migratio" + + "npb;migrationpb\252\002\"Google.Cloud.BigQuery." + + "Migration.V2\312\002\"Google\\Cloud\\BigQuery\\Mig" + + "ration\\V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_bigquery_migration_v2_TranslationConfigDetails_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_migration_v2_TranslationConfigDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_TranslationConfigDetails_descriptor, + new java.lang.String[] { + "GcsSourcePath", + "GcsTargetPath", + "SourceDialect", + "TargetDialect", + "NameMappingList", + "SourceEnv", + "SourceLocation", + "TargetLocation", + "OutputNameMapping", + }); + internal_static_google_cloud_bigquery_migration_v2_Dialect_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_migration_v2_Dialect_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_Dialect_descriptor, + new java.lang.String[] { + "BigqueryDialect", + "HiveqlDialect", + "RedshiftDialect", + "TeradataDialect", + "OracleDialect", + "SparksqlDialect", + "SnowflakeDialect", + "NetezzaDialect", + "AzureSynapseDialect", + "VerticaDialect", + "SqlServerDialect", + "PostgresqlDialect", + "PrestoDialect", + "MysqlDialect", + "DialectValue", + }); + internal_static_google_cloud_bigquery_migration_v2_BigQueryDialect_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_migration_v2_BigQueryDialect_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_BigQueryDialect_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_bigquery_migration_v2_HiveQLDialect_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_bigquery_migration_v2_HiveQLDialect_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_HiveQLDialect_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_bigquery_migration_v2_RedshiftDialect_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_bigquery_migration_v2_RedshiftDialect_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_RedshiftDialect_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_bigquery_migration_v2_TeradataDialect_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_bigquery_migration_v2_TeradataDialect_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_TeradataDialect_descriptor, + new java.lang.String[] { + "Mode", + }); + internal_static_google_cloud_bigquery_migration_v2_OracleDialect_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_bigquery_migration_v2_OracleDialect_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_OracleDialect_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_bigquery_migration_v2_SparkSQLDialect_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_bigquery_migration_v2_SparkSQLDialect_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_SparkSQLDialect_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_bigquery_migration_v2_SnowflakeDialect_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_bigquery_migration_v2_SnowflakeDialect_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_SnowflakeDialect_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_bigquery_migration_v2_NetezzaDialect_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_bigquery_migration_v2_NetezzaDialect_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_NetezzaDialect_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_bigquery_migration_v2_AzureSynapseDialect_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_bigquery_migration_v2_AzureSynapseDialect_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_AzureSynapseDialect_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_bigquery_migration_v2_VerticaDialect_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_bigquery_migration_v2_VerticaDialect_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_VerticaDialect_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_SQLServerDialect_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_bigquery_migration_v2_PostgresqlDialect_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_bigquery_migration_v2_PostgresqlDialect_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_PostgresqlDialect_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_bigquery_migration_v2_PrestoDialect_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_bigquery_migration_v2_PrestoDialect_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_PrestoDialect_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_bigquery_migration_v2_MySQLDialect_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_bigquery_migration_v2_MySQLDialect_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_MySQLDialect_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_ObjectNameMappingList_descriptor, + new java.lang.String[] { + "NameMap", + }); + internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_descriptor, + new java.lang.String[] { + "Source", "Target", + }); + internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_NameMappingKey_descriptor, + new java.lang.String[] { + "Type", "Database", "Schema", "Relation", "Attribute", + }); + internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_NameMappingValue_descriptor, + new java.lang.String[] { + "Database", "Schema", "Relation", "Attribute", + }); + internal_static_google_cloud_bigquery_migration_v2_SourceEnv_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_bigquery_migration_v2_SourceEnv_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2_SourceEnv_descriptor, + new java.lang.String[] { + "DefaultDatabase", "SchemaSearchPath", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TypedValue.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TypedValue.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TypedValue.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TypedValue.java index 0d77547..4beaa48 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TypedValue.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TypedValue.java @@ -1,56 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_metrics.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * A single strongly-typed value.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.TypedValue} */ -public final class TypedValue extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TypedValue extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.TypedValue) TypedValueOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TypedValue.newBuilder() to construct. private TypedValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TypedValue() { - } + + private TypedValue() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TypedValue(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2_TypedValue_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2_TypedValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2_TypedValue_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2_TypedValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.TypedValue.class, com.google.cloud.bigquery.migration.v2.TypedValue.Builder.class); + com.google.cloud.bigquery.migration.v2.TypedValue.class, + com.google.cloud.bigquery.migration.v2.TypedValue.Builder.class); } private int valueCase_ = 0; private java.lang.Object value_; + public enum ValueCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BOOL_VALUE(1), INT64_VALUE(2), @@ -59,6 +79,7 @@ public enum ValueCase DISTRIBUTION_VALUE(5), VALUE_NOT_SET(0); private final int value; + private ValueCase(int value) { this.value = value; } @@ -74,33 +95,42 @@ public static ValueCase valueOf(int value) { public static ValueCase forNumber(int value) { switch (value) { - case 1: return BOOL_VALUE; - case 2: return INT64_VALUE; - case 3: return DOUBLE_VALUE; - case 4: return STRING_VALUE; - case 5: return DISTRIBUTION_VALUE; - case 0: return VALUE_NOT_SET; - default: return null; + case 1: + return BOOL_VALUE; + case 2: + return INT64_VALUE; + case 3: + return DOUBLE_VALUE; + case 4: + return STRING_VALUE; + case 5: + return DISTRIBUTION_VALUE; + case 0: + return VALUE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); } public static final int BOOL_VALUE_FIELD_NUMBER = 1; /** + * + * *
    * A Boolean value: `true` or `false`.
    * 
* * bool bool_value = 1; + * * @return Whether the boolValue field is set. */ @java.lang.Override @@ -108,11 +138,14 @@ public boolean hasBoolValue() { return valueCase_ == 1; } /** + * + * *
    * A Boolean value: `true` or `false`.
    * 
* * bool bool_value = 1; + * * @return The boolValue. */ @java.lang.Override @@ -125,11 +158,14 @@ public boolean getBoolValue() { public static final int INT64_VALUE_FIELD_NUMBER = 2; /** + * + * *
    * A 64-bit integer. Its range is approximately `+/-9.2x10^18`.
    * 
* * int64 int64_value = 2; + * * @return Whether the int64Value field is set. */ @java.lang.Override @@ -137,11 +173,14 @@ public boolean hasInt64Value() { return valueCase_ == 2; } /** + * + * *
    * A 64-bit integer. Its range is approximately `+/-9.2x10^18`.
    * 
* * int64 int64_value = 2; + * * @return The int64Value. */ @java.lang.Override @@ -154,6 +193,8 @@ public long getInt64Value() { public static final int DOUBLE_VALUE_FIELD_NUMBER = 3; /** + * + * *
    * A 64-bit double-precision floating-point number. Its magnitude
    * is approximately `+/-10^(+/-300)` and it has 16 significant digits of
@@ -161,6 +202,7 @@ public long getInt64Value() {
    * 
* * double double_value = 3; + * * @return Whether the doubleValue field is set. */ @java.lang.Override @@ -168,6 +210,8 @@ public boolean hasDoubleValue() { return valueCase_ == 3; } /** + * + * *
    * A 64-bit double-precision floating-point number. Its magnitude
    * is approximately `+/-10^(+/-300)` and it has 16 significant digits of
@@ -175,6 +219,7 @@ public boolean hasDoubleValue() {
    * 
* * double double_value = 3; + * * @return The doubleValue. */ @java.lang.Override @@ -187,22 +232,28 @@ public double getDoubleValue() { public static final int STRING_VALUE_FIELD_NUMBER = 4; /** + * + * *
    * A variable-length string value.
    * 
* * string string_value = 4; + * * @return Whether the stringValue field is set. */ public boolean hasStringValue() { return valueCase_ == 4; } /** + * + * *
    * A variable-length string value.
    * 
* * string string_value = 4; + * * @return The stringValue. */ public java.lang.String getStringValue() { @@ -213,8 +264,7 @@ public java.lang.String getStringValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 4) { value_ = s; @@ -223,23 +273,24 @@ public java.lang.String getStringValue() { } } /** + * + * *
    * A variable-length string value.
    * 
* * string string_value = 4; + * * @return The bytes for stringValue. */ - public com.google.protobuf.ByteString - getStringValueBytes() { + public com.google.protobuf.ByteString getStringValueBytes() { java.lang.Object ref = ""; if (valueCase_ == 4) { 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); if (valueCase_ == 4) { value_ = b; } @@ -251,11 +302,14 @@ public java.lang.String getStringValue() { public static final int DISTRIBUTION_VALUE_FIELD_NUMBER = 5; /** + * + * *
    * A distribution value.
    * 
* * .google.api.Distribution distribution_value = 5; + * * @return Whether the distributionValue field is set. */ @java.lang.Override @@ -263,21 +317,26 @@ public boolean hasDistributionValue() { return valueCase_ == 5; } /** + * + * *
    * A distribution value.
    * 
* * .google.api.Distribution distribution_value = 5; + * * @return The distributionValue. */ @java.lang.Override public com.google.api.Distribution getDistributionValue() { if (valueCase_ == 5) { - return (com.google.api.Distribution) value_; + return (com.google.api.Distribution) value_; } return com.google.api.Distribution.getDefaultInstance(); } /** + * + * *
    * A distribution value.
    * 
@@ -287,12 +346,13 @@ public com.google.api.Distribution getDistributionValue() { @java.lang.Override public com.google.api.DistributionOrBuilder getDistributionValueOrBuilder() { if (valueCase_ == 5) { - return (com.google.api.Distribution) value_; + return (com.google.api.Distribution) value_; } return com.google.api.Distribution.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -304,19 +364,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (valueCase_ == 1) { - output.writeBool( - 1, (boolean)((java.lang.Boolean) value_)); + output.writeBool(1, (boolean) ((java.lang.Boolean) value_)); } if (valueCase_ == 2) { - output.writeInt64( - 2, (long)((java.lang.Long) value_)); + output.writeInt64(2, (long) ((java.lang.Long) value_)); } if (valueCase_ == 3) { - output.writeDouble( - 3, (double)((java.lang.Double) value_)); + output.writeDouble(3, (double) ((java.lang.Double) value_)); } if (valueCase_ == 4) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, value_); @@ -334,26 +390,27 @@ public int getSerializedSize() { size = 0; if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 1, (boolean)((java.lang.Boolean) value_)); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 1, (boolean) ((java.lang.Boolean) value_)); } if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size( - 2, (long)((java.lang.Long) value_)); + size += + com.google.protobuf.CodedOutputStream.computeInt64Size( + 2, (long) ((java.lang.Long) value_)); } if (valueCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize( - 3, (double)((java.lang.Double) value_)); + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 3, (double) ((java.lang.Double) value_)); } if (valueCase_ == 4) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, value_); } if (valueCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.api.Distribution) value_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.api.Distribution) value_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -363,35 +420,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2.TypedValue)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.TypedValue other = (com.google.cloud.bigquery.migration.v2.TypedValue) obj; + com.google.cloud.bigquery.migration.v2.TypedValue other = + (com.google.cloud.bigquery.migration.v2.TypedValue) obj; if (!getValueCase().equals(other.getValueCase())) return false; switch (valueCase_) { case 1: - if (getBoolValue() - != other.getBoolValue()) return false; + if (getBoolValue() != other.getBoolValue()) return false; break; case 2: - if (getInt64Value() - != other.getInt64Value()) return false; + if (getInt64Value() != other.getInt64Value()) return false; break; case 3: if (java.lang.Double.doubleToLongBits(getDoubleValue()) - != java.lang.Double.doubleToLongBits( - other.getDoubleValue())) return false; + != java.lang.Double.doubleToLongBits(other.getDoubleValue())) return false; break; case 4: - if (!getStringValue() - .equals(other.getStringValue())) return false; + if (!getStringValue().equals(other.getStringValue())) return false; break; case 5: - if (!getDistributionValue() - .equals(other.getDistributionValue())) return false; + if (!getDistributionValue().equals(other.getDistributionValue())) return false; break; case 0: default: @@ -410,18 +463,18 @@ public int hashCode() { switch (valueCase_) { case 1: hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBoolValue()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBoolValue()); break; case 2: hash = (37 * hash) + INT64_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getInt64Value()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getInt64Value()); break; case 3: hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getDoubleValue())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDoubleValue())); break; case 4: hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; @@ -440,129 +493,135 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.TypedValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.TypedValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.TypedValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.TypedValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.TypedValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.TypedValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.TypedValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.TypedValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.TypedValue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.TypedValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.TypedValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.TypedValue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.TypedValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.TypedValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.TypedValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 single strongly-typed value.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.TypedValue} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.TypedValue) com.google.cloud.bigquery.migration.v2.TypedValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2_TypedValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2_TypedValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2_TypedValue_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2_TypedValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.TypedValue.class, com.google.cloud.bigquery.migration.v2.TypedValue.Builder.class); + com.google.cloud.bigquery.migration.v2.TypedValue.class, + com.google.cloud.bigquery.migration.v2.TypedValue.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2.TypedValue.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -576,9 +635,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2_TypedValue_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2_TypedValue_descriptor; } @java.lang.Override @@ -597,8 +656,11 @@ public com.google.cloud.bigquery.migration.v2.TypedValue build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2.TypedValue buildPartial() { - com.google.cloud.bigquery.migration.v2.TypedValue result = new com.google.cloud.bigquery.migration.v2.TypedValue(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.migration.v2.TypedValue result = + new com.google.cloud.bigquery.migration.v2.TypedValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -611,8 +673,7 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2.TypedValue res private void buildPartialOneofs(com.google.cloud.bigquery.migration.v2.TypedValue result) { result.valueCase_ = valueCase_; result.value_ = this.value_; - if (valueCase_ == 5 && - distributionValueBuilder_ != null) { + if (valueCase_ == 5 && distributionValueBuilder_ != null) { result.value_ = distributionValueBuilder_.build(); } } @@ -621,38 +682,39 @@ private void buildPartialOneofs(com.google.cloud.bigquery.migration.v2.TypedValu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.TypedValue) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.TypedValue)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2.TypedValue) other); } else { super.mergeFrom(other); return this; @@ -660,33 +722,40 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.TypedValue other) { - if (other == com.google.cloud.bigquery.migration.v2.TypedValue.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.migration.v2.TypedValue.getDefaultInstance()) + return this; switch (other.getValueCase()) { - case BOOL_VALUE: { - setBoolValue(other.getBoolValue()); - break; - } - case INT64_VALUE: { - setInt64Value(other.getInt64Value()); - break; - } - case DOUBLE_VALUE: { - setDoubleValue(other.getDoubleValue()); - break; - } - case STRING_VALUE: { - valueCase_ = 4; - value_ = other.value_; - onChanged(); - break; - } - case DISTRIBUTION_VALUE: { - mergeDistributionValue(other.getDistributionValue()); - break; - } - case VALUE_NOT_SET: { - break; - } + case BOOL_VALUE: + { + setBoolValue(other.getBoolValue()); + break; + } + case INT64_VALUE: + { + setInt64Value(other.getInt64Value()); + break; + } + case DOUBLE_VALUE: + { + setDoubleValue(other.getDoubleValue()); + break; + } + case STRING_VALUE: + { + valueCase_ = 4; + value_ = other.value_; + onChanged(); + break; + } + case DISTRIBUTION_VALUE: + { + mergeDistributionValue(other.getDistributionValue()); + break; + } + case VALUE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -714,40 +783,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - value_ = input.readBool(); - valueCase_ = 1; - break; - } // case 8 - case 16: { - value_ = input.readInt64(); - valueCase_ = 2; - break; - } // case 16 - case 25: { - value_ = input.readDouble(); - valueCase_ = 3; - break; - } // case 25 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - valueCase_ = 4; - value_ = s; - break; - } // case 34 - case 42: { - input.readMessage( - getDistributionValueFieldBuilder().getBuilder(), - extensionRegistry); - valueCase_ = 5; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + value_ = input.readBool(); + valueCase_ = 1; + break; + } // case 8 + case 16: + { + value_ = input.readInt64(); + valueCase_ = 2; + break; + } // case 16 + case 25: + { + value_ = input.readDouble(); + valueCase_ = 3; + break; + } // case 25 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + valueCase_ = 4; + value_ = s; + break; + } // case 34 + case 42: + { + input.readMessage( + getDistributionValueFieldBuilder().getBuilder(), extensionRegistry); + valueCase_ = 5; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -757,12 +831,12 @@ public Builder mergeFrom( } // finally return this; } + private int valueCase_ = 0; private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); } public Builder clearValue() { @@ -775,22 +849,28 @@ public Builder clearValue() { private int bitField0_; /** + * + * *
      * A Boolean value: `true` or `false`.
      * 
* * bool bool_value = 1; + * * @return Whether the boolValue field is set. */ public boolean hasBoolValue() { return valueCase_ == 1; } /** + * + * *
      * A Boolean value: `true` or `false`.
      * 
* * bool bool_value = 1; + * * @return The boolValue. */ public boolean getBoolValue() { @@ -800,27 +880,33 @@ public boolean getBoolValue() { return false; } /** + * + * *
      * A Boolean value: `true` or `false`.
      * 
* * bool bool_value = 1; + * * @param value The boolValue to set. * @return This builder for chaining. */ public Builder setBoolValue(boolean value) { - + valueCase_ = 1; value_ = value; onChanged(); return this; } /** + * + * *
      * A Boolean value: `true` or `false`.
      * 
* * bool bool_value = 1; + * * @return This builder for chaining. */ public Builder clearBoolValue() { @@ -833,22 +919,28 @@ public Builder clearBoolValue() { } /** + * + * *
      * A 64-bit integer. Its range is approximately `+/-9.2x10^18`.
      * 
* * int64 int64_value = 2; + * * @return Whether the int64Value field is set. */ public boolean hasInt64Value() { return valueCase_ == 2; } /** + * + * *
      * A 64-bit integer. Its range is approximately `+/-9.2x10^18`.
      * 
* * int64 int64_value = 2; + * * @return The int64Value. */ public long getInt64Value() { @@ -858,27 +950,33 @@ public long getInt64Value() { return 0L; } /** + * + * *
      * A 64-bit integer. Its range is approximately `+/-9.2x10^18`.
      * 
* * int64 int64_value = 2; + * * @param value The int64Value to set. * @return This builder for chaining. */ public Builder setInt64Value(long value) { - + valueCase_ = 2; value_ = value; onChanged(); return this; } /** + * + * *
      * A 64-bit integer. Its range is approximately `+/-9.2x10^18`.
      * 
* * int64 int64_value = 2; + * * @return This builder for chaining. */ public Builder clearInt64Value() { @@ -891,6 +989,8 @@ public Builder clearInt64Value() { } /** + * + * *
      * A 64-bit double-precision floating-point number. Its magnitude
      * is approximately `+/-10^(+/-300)` and it has 16 significant digits of
@@ -898,12 +998,15 @@ public Builder clearInt64Value() {
      * 
* * double double_value = 3; + * * @return Whether the doubleValue field is set. */ public boolean hasDoubleValue() { return valueCase_ == 3; } /** + * + * *
      * A 64-bit double-precision floating-point number. Its magnitude
      * is approximately `+/-10^(+/-300)` and it has 16 significant digits of
@@ -911,6 +1014,7 @@ public boolean hasDoubleValue() {
      * 
* * double double_value = 3; + * * @return The doubleValue. */ public double getDoubleValue() { @@ -920,6 +1024,8 @@ public double getDoubleValue() { return 0D; } /** + * + * *
      * A 64-bit double-precision floating-point number. Its magnitude
      * is approximately `+/-10^(+/-300)` and it has 16 significant digits of
@@ -927,17 +1033,20 @@ public double getDoubleValue() {
      * 
* * double double_value = 3; + * * @param value The doubleValue to set. * @return This builder for chaining. */ public Builder setDoubleValue(double value) { - + valueCase_ = 3; value_ = value; onChanged(); return this; } /** + * + * *
      * A 64-bit double-precision floating-point number. Its magnitude
      * is approximately `+/-10^(+/-300)` and it has 16 significant digits of
@@ -945,6 +1054,7 @@ public Builder setDoubleValue(double value) {
      * 
* * double double_value = 3; + * * @return This builder for chaining. */ public Builder clearDoubleValue() { @@ -957,11 +1067,14 @@ public Builder clearDoubleValue() { } /** + * + * *
      * A variable-length string value.
      * 
* * string string_value = 4; + * * @return Whether the stringValue field is set. */ @java.lang.Override @@ -969,11 +1082,14 @@ public boolean hasStringValue() { return valueCase_ == 4; } /** + * + * *
      * A variable-length string value.
      * 
* * string string_value = 4; + * * @return The stringValue. */ @java.lang.Override @@ -983,8 +1099,7 @@ public java.lang.String getStringValue() { 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(); if (valueCase_ == 4) { value_ = s; @@ -995,24 +1110,25 @@ public java.lang.String getStringValue() { } } /** + * + * *
      * A variable-length string value.
      * 
* * string string_value = 4; + * * @return The bytes for stringValue. */ @java.lang.Override - public com.google.protobuf.ByteString - getStringValueBytes() { + public com.google.protobuf.ByteString getStringValueBytes() { java.lang.Object ref = ""; if (valueCase_ == 4) { 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); if (valueCase_ == 4) { value_ = b; } @@ -1022,28 +1138,35 @@ public java.lang.String getStringValue() { } } /** + * + * *
      * A variable-length string value.
      * 
* * string string_value = 4; + * * @param value The stringValue to set. * @return This builder for chaining. */ - public Builder setStringValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStringValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } valueCase_ = 4; value_ = value; onChanged(); return this; } /** + * + * *
      * A variable-length string value.
      * 
* * string string_value = 4; + * * @return This builder for chaining. */ public Builder clearStringValue() { @@ -1055,17 +1178,21 @@ public Builder clearStringValue() { return this; } /** + * + * *
      * A variable-length string value.
      * 
* * string string_value = 4; + * * @param value The bytes for stringValue to set. * @return This builder for chaining. */ - public Builder setStringValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStringValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); valueCase_ = 4; value_ = value; @@ -1074,13 +1201,19 @@ public Builder setStringValueBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.Distribution, com.google.api.Distribution.Builder, com.google.api.DistributionOrBuilder> distributionValueBuilder_; + com.google.api.Distribution, + com.google.api.Distribution.Builder, + com.google.api.DistributionOrBuilder> + distributionValueBuilder_; /** + * + * *
      * A distribution value.
      * 
* * .google.api.Distribution distribution_value = 5; + * * @return Whether the distributionValue field is set. */ @java.lang.Override @@ -1088,11 +1221,14 @@ public boolean hasDistributionValue() { return valueCase_ == 5; } /** + * + * *
      * A distribution value.
      * 
* * .google.api.Distribution distribution_value = 5; + * * @return The distributionValue. */ @java.lang.Override @@ -1110,6 +1246,8 @@ public com.google.api.Distribution getDistributionValue() { } } /** + * + * *
      * A distribution value.
      * 
@@ -1130,14 +1268,15 @@ public Builder setDistributionValue(com.google.api.Distribution value) { return this; } /** + * + * *
      * A distribution value.
      * 
* * .google.api.Distribution distribution_value = 5; */ - public Builder setDistributionValue( - com.google.api.Distribution.Builder builderForValue) { + public Builder setDistributionValue(com.google.api.Distribution.Builder builderForValue) { if (distributionValueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); @@ -1148,6 +1287,8 @@ public Builder setDistributionValue( return this; } /** + * + * *
      * A distribution value.
      * 
@@ -1156,10 +1297,11 @@ public Builder setDistributionValue( */ public Builder mergeDistributionValue(com.google.api.Distribution value) { if (distributionValueBuilder_ == null) { - if (valueCase_ == 5 && - value_ != com.google.api.Distribution.getDefaultInstance()) { - value_ = com.google.api.Distribution.newBuilder((com.google.api.Distribution) value_) - .mergeFrom(value).buildPartial(); + if (valueCase_ == 5 && value_ != com.google.api.Distribution.getDefaultInstance()) { + value_ = + com.google.api.Distribution.newBuilder((com.google.api.Distribution) value_) + .mergeFrom(value) + .buildPartial(); } else { value_ = value; } @@ -1175,6 +1317,8 @@ public Builder mergeDistributionValue(com.google.api.Distribution value) { return this; } /** + * + * *
      * A distribution value.
      * 
@@ -1198,6 +1342,8 @@ public Builder clearDistributionValue() { return this; } /** + * + * *
      * A distribution value.
      * 
@@ -1208,6 +1354,8 @@ public com.google.api.Distribution.Builder getDistributionValueBuilder() { return getDistributionValueFieldBuilder().getBuilder(); } /** + * + * *
      * A distribution value.
      * 
@@ -1226,6 +1374,8 @@ public com.google.api.DistributionOrBuilder getDistributionValueOrBuilder() { } } /** + * + * *
      * A distribution value.
      * 
@@ -1233,26 +1383,29 @@ public com.google.api.DistributionOrBuilder getDistributionValueOrBuilder() { * .google.api.Distribution distribution_value = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.Distribution, com.google.api.Distribution.Builder, com.google.api.DistributionOrBuilder> + com.google.api.Distribution, + com.google.api.Distribution.Builder, + com.google.api.DistributionOrBuilder> getDistributionValueFieldBuilder() { if (distributionValueBuilder_ == null) { if (!(valueCase_ == 5)) { value_ = com.google.api.Distribution.getDefaultInstance(); } - distributionValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.api.Distribution, com.google.api.Distribution.Builder, com.google.api.DistributionOrBuilder>( - (com.google.api.Distribution) value_, - getParentForChildren(), - isClean()); + distributionValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.Distribution, + com.google.api.Distribution.Builder, + com.google.api.DistributionOrBuilder>( + (com.google.api.Distribution) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 5; onChanged(); return distributionValueBuilder_; } + @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); } @@ -1262,12 +1415,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.TypedValue) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.TypedValue) private static final com.google.cloud.bigquery.migration.v2.TypedValue DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.TypedValue(); } @@ -1276,27 +1429,27 @@ public static com.google.cloud.bigquery.migration.v2.TypedValue getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TypedValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TypedValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1311,6 +1464,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.TypedValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TypedValueOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TypedValueOrBuilder.java similarity index 77% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TypedValueOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TypedValueOrBuilder.java index fd25249..e1df035 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TypedValueOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TypedValueOrBuilder.java @@ -1,51 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/migration_metrics.proto package com.google.cloud.bigquery.migration.v2; -public interface TypedValueOrBuilder extends +public interface TypedValueOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.TypedValue) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A Boolean value: `true` or `false`.
    * 
* * bool bool_value = 1; + * * @return Whether the boolValue field is set. */ boolean hasBoolValue(); /** + * + * *
    * A Boolean value: `true` or `false`.
    * 
* * bool bool_value = 1; + * * @return The boolValue. */ boolean getBoolValue(); /** + * + * *
    * A 64-bit integer. Its range is approximately `+/-9.2x10^18`.
    * 
* * int64 int64_value = 2; + * * @return Whether the int64Value field is set. */ boolean hasInt64Value(); /** + * + * *
    * A 64-bit integer. Its range is approximately `+/-9.2x10^18`.
    * 
* * int64 int64_value = 2; + * * @return The int64Value. */ long getInt64Value(); /** + * + * *
    * A 64-bit double-precision floating-point number. Its magnitude
    * is approximately `+/-10^(+/-300)` and it has 16 significant digits of
@@ -53,10 +83,13 @@ public interface TypedValueOrBuilder extends
    * 
* * double double_value = 3; + * * @return Whether the doubleValue field is set. */ boolean hasDoubleValue(); /** + * + * *
    * A 64-bit double-precision floating-point number. Its magnitude
    * is approximately `+/-10^(+/-300)` and it has 16 significant digits of
@@ -64,58 +97,75 @@ public interface TypedValueOrBuilder extends
    * 
* * double double_value = 3; + * * @return The doubleValue. */ double getDoubleValue(); /** + * + * *
    * A variable-length string value.
    * 
* * string string_value = 4; + * * @return Whether the stringValue field is set. */ boolean hasStringValue(); /** + * + * *
    * A variable-length string value.
    * 
* * string string_value = 4; + * * @return The stringValue. */ java.lang.String getStringValue(); /** + * + * *
    * A variable-length string value.
    * 
* * string string_value = 4; + * * @return The bytes for stringValue. */ - com.google.protobuf.ByteString - getStringValueBytes(); + com.google.protobuf.ByteString getStringValueBytes(); /** + * + * *
    * A distribution value.
    * 
* * .google.api.Distribution distribution_value = 5; + * * @return Whether the distributionValue field is set. */ boolean hasDistributionValue(); /** + * + * *
    * A distribution value.
    * 
* * .google.api.Distribution distribution_value = 5; + * * @return The distributionValue. */ com.google.api.Distribution getDistributionValue(); /** + * + * *
    * A distribution value.
    * 
diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/VerticaDialect.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/VerticaDialect.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/VerticaDialect.java rename to proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/VerticaDialect.java index 2039811..fd99503 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/VerticaDialect.java +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/VerticaDialect.java @@ -1,53 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2/translation_config.proto package com.google.cloud.bigquery.migration.v2; /** + * + * *
  * The dialect definition for Vertica.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.VerticaDialect} */ -public final class VerticaDialect extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VerticaDialect extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.VerticaDialect) VerticaDialectOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VerticaDialect.newBuilder() to construct. private VerticaDialect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VerticaDialect() { - } + + private VerticaDialect() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VerticaDialect(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_VerticaDialect_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_VerticaDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_VerticaDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_VerticaDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.VerticaDialect.class, com.google.cloud.bigquery.migration.v2.VerticaDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.VerticaDialect.class, + com.google.cloud.bigquery.migration.v2.VerticaDialect.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -59,8 +78,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 { getUnknownFields().writeTo(output); } @@ -78,12 +96,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.bigquery.migration.v2.VerticaDialect)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2.VerticaDialect other = (com.google.cloud.bigquery.migration.v2.VerticaDialect) obj; + com.google.cloud.bigquery.migration.v2.VerticaDialect other = + (com.google.cloud.bigquery.migration.v2.VerticaDialect) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -102,129 +121,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2.VerticaDialect parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.VerticaDialect parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.VerticaDialect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.VerticaDialect parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.VerticaDialect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2.VerticaDialect parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.VerticaDialect parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.VerticaDialect parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.VerticaDialect parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2.VerticaDialect parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2.VerticaDialect parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.VerticaDialect parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2.VerticaDialect parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2.VerticaDialect parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.VerticaDialect prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2.VerticaDialect prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 dialect definition for Vertica.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.VerticaDialect} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.VerticaDialect) com.google.cloud.bigquery.migration.v2.VerticaDialectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_VerticaDialect_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_VerticaDialect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_VerticaDialect_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_VerticaDialect_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2.VerticaDialect.class, com.google.cloud.bigquery.migration.v2.VerticaDialect.Builder.class); + com.google.cloud.bigquery.migration.v2.VerticaDialect.class, + com.google.cloud.bigquery.migration.v2.VerticaDialect.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2.VerticaDialect.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -232,9 +258,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2.TranslationConfigProto.internal_static_google_cloud_bigquery_migration_v2_VerticaDialect_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2.TranslationConfigProto + .internal_static_google_cloud_bigquery_migration_v2_VerticaDialect_descriptor; } @java.lang.Override @@ -253,7 +279,8 @@ public com.google.cloud.bigquery.migration.v2.VerticaDialect build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2.VerticaDialect buildPartial() { - com.google.cloud.bigquery.migration.v2.VerticaDialect result = new com.google.cloud.bigquery.migration.v2.VerticaDialect(this); + com.google.cloud.bigquery.migration.v2.VerticaDialect result = + new com.google.cloud.bigquery.migration.v2.VerticaDialect(this); onBuilt(); return result; } @@ -262,38 +289,39 @@ public com.google.cloud.bigquery.migration.v2.VerticaDialect buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.VerticaDialect) { - return mergeFrom((com.google.cloud.bigquery.migration.v2.VerticaDialect)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2.VerticaDialect) other); } else { super.mergeFrom(other); return this; @@ -301,7 +329,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.VerticaDialect other) { - if (other == com.google.cloud.bigquery.migration.v2.VerticaDialect.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.migration.v2.VerticaDialect.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -328,12 +357,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -343,9 +373,9 @@ public Builder mergeFrom( } // finally 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); } @@ -355,12 +385,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.VerticaDialect) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.VerticaDialect) private static final com.google.cloud.bigquery.migration.v2.VerticaDialect DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.VerticaDialect(); } @@ -369,27 +399,27 @@ public static com.google.cloud.bigquery.migration.v2.VerticaDialect getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VerticaDialect parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerticaDialect parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -404,6 +434,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2.VerticaDialect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/VerticaDialectOrBuilder.java b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/VerticaDialectOrBuilder.java new file mode 100644 index 0000000..803bc0f --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/VerticaDialectOrBuilder.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/bigquery/migration/v2/translation_config.proto + +package com.google.cloud.bigquery.migration.v2; + +public interface VerticaDialectOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.VerticaDialect) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_entities.proto b/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_entities.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_entities.proto rename to proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_entities.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_error_details.proto b/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_error_details.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_error_details.proto rename to proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_error_details.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_metrics.proto b/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_metrics.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_metrics.proto rename to proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_metrics.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_service.proto b/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_service.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_service.proto rename to proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_service.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_config.proto b/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_config.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_config.proto rename to proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/translation_config.proto diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentOrchestrationResultDetails.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentOrchestrationResultDetails.java similarity index 54% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentOrchestrationResultDetails.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentOrchestrationResultDetails.java index 0061168..51a62a0 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentOrchestrationResultDetails.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentOrchestrationResultDetails.java @@ -1,62 +1,89 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/assessment_task.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * Details for an assessment task orchestration result.
  * 
* - * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails} + * Protobuf type {@code + * google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails} */ -public final class AssessmentOrchestrationResultDetails extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AssessmentOrchestrationResultDetails + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails) AssessmentOrchestrationResultDetailsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AssessmentOrchestrationResultDetails.newBuilder() to construct. - private AssessmentOrchestrationResultDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AssessmentOrchestrationResultDetails( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AssessmentOrchestrationResultDetails() { outputTablesSchemaVersion_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AssessmentOrchestrationResultDetails(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentOrchestrationResultDetails_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentOrchestrationResultDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentOrchestrationResultDetails_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentOrchestrationResultDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails.class, com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails.class, + com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails.Builder + .class); } public static final int OUTPUT_TABLES_SCHEMA_VERSION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object outputTablesSchemaVersion_ = ""; /** + * + * *
    * Optional. The version used for the output table schemas.
    * 
* * string output_tables_schema_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The outputTablesSchemaVersion. */ @java.lang.Override @@ -65,29 +92,29 @@ public java.lang.String getOutputTablesSchemaVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputTablesSchemaVersion_ = s; return s; } } /** + * + * *
    * Optional. The version used for the output table schemas.
    * 
* * string output_tables_schema_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for outputTablesSchemaVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getOutputTablesSchemaVersionBytes() { + public com.google.protobuf.ByteString getOutputTablesSchemaVersionBytes() { java.lang.Object ref = outputTablesSchemaVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputTablesSchemaVersion_ = b; return b; } else { @@ -96,6 +123,7 @@ public java.lang.String getOutputTablesSchemaVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputTablesSchemaVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputTablesSchemaVersion_); } @@ -122,7 +149,8 @@ public int getSerializedSize() { size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputTablesSchemaVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputTablesSchemaVersion_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputTablesSchemaVersion_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -132,15 +160,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails)) { + if (!(obj + instanceof + com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails other = (com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails) obj; + com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails other = + (com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails) obj; - if (!getOutputTablesSchemaVersion() - .equals(other.getOutputTablesSchemaVersion())) return false; + if (!getOutputTablesSchemaVersion().equals(other.getOutputTablesSchemaVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,130 +189,147 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Details for an assessment task orchestration result.
    * 
* - * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails} + * Protobuf type {@code + * google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails) com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentOrchestrationResultDetails_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentOrchestrationResultDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentOrchestrationResultDetails_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentOrchestrationResultDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails.class, com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + .class, + com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + .Builder.class); } - // Construct using com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,19 +339,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentOrchestrationResultDetails_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentOrchestrationResultDetails_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails getDefaultInstanceForType() { - return com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails.getDefaultInstance(); + public com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails build() { - com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails result = buildPartial(); + public com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + build() { + com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -312,14 +363,20 @@ public com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResult } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails buildPartial() { - com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails result = new com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + buildPartial() { + com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails result = + new com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails result) { + private void buildPartial0( + com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.outputTablesSchemaVersion_ = outputTablesSchemaVersion_; @@ -330,46 +387,54 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.Assessmen public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails) { - return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails)other); + if (other + instanceof + com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails) { + return mergeFrom( + (com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails other) { - if (other == com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails other) { + if (other + == com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + .getDefaultInstance()) return this; if (!other.getOutputTablesSchemaVersion().isEmpty()) { outputTablesSchemaVersion_ = other.outputTablesSchemaVersion_; bitField0_ |= 0x00000001; @@ -401,17 +466,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - outputTablesSchemaVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + outputTablesSchemaVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,22 +488,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object outputTablesSchemaVersion_ = ""; /** + * + * *
      * Optional. The version used for the output table schemas.
      * 
* - * string output_tables_schema_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string output_tables_schema_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The outputTablesSchemaVersion. */ public java.lang.String getOutputTablesSchemaVersion() { java.lang.Object ref = outputTablesSchemaVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputTablesSchemaVersion_ = s; return s; @@ -445,20 +516,22 @@ public java.lang.String getOutputTablesSchemaVersion() { } } /** + * + * *
      * Optional. The version used for the output table schemas.
      * 
* - * string output_tables_schema_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string output_tables_schema_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bytes for outputTablesSchemaVersion. */ - public com.google.protobuf.ByteString - getOutputTablesSchemaVersionBytes() { + public com.google.protobuf.ByteString getOutputTablesSchemaVersionBytes() { java.lang.Object ref = outputTablesSchemaVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputTablesSchemaVersion_ = b; return b; } else { @@ -466,28 +539,37 @@ public java.lang.String getOutputTablesSchemaVersion() { } } /** + * + * *
      * Optional. The version used for the output table schemas.
      * 
* - * string output_tables_schema_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string output_tables_schema_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The outputTablesSchemaVersion to set. * @return This builder for chaining. */ - public Builder setOutputTablesSchemaVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOutputTablesSchemaVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } outputTablesSchemaVersion_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. The version used for the output table schemas.
      * 
* - * string output_tables_schema_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string output_tables_schema_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearOutputTablesSchemaVersion() { @@ -497,26 +579,31 @@ public Builder clearOutputTablesSchemaVersion() { return this; } /** + * + * *
      * Optional. The version used for the output table schemas.
      * 
* - * string output_tables_schema_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string output_tables_schema_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes for outputTablesSchemaVersion to set. * @return This builder for chaining. */ - public Builder setOutputTablesSchemaVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOutputTablesSchemaVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); outputTablesSchemaVersion_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,41 +613,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails) - private static final com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2alpha + .AssessmentOrchestrationResultDetails + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails(); } - public static com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AssessmentOrchestrationResultDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssessmentOrchestrationResultDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -572,9 +663,8 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentOrchestrationResultDetailsOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentOrchestrationResultDetailsOrBuilder.java similarity index 54% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentOrchestrationResultDetailsOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentOrchestrationResultDetailsOrBuilder.java index 8746bb7..eabde20 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentOrchestrationResultDetailsOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentOrchestrationResultDetailsOrBuilder.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/bigquery/migration/v2alpha/assessment_task.proto package com.google.cloud.bigquery.migration.v2alpha; -public interface AssessmentOrchestrationResultDetailsOrBuilder extends +public interface AssessmentOrchestrationResultDetailsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The version used for the output table schemas.
    * 
* * string output_tables_schema_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The outputTablesSchemaVersion. */ java.lang.String getOutputTablesSchemaVersion(); /** + * + * *
    * Optional. The version used for the output table schemas.
    * 
* * string output_tables_schema_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for outputTablesSchemaVersion. */ - com.google.protobuf.ByteString - getOutputTablesSchemaVersionBytes(); + com.google.protobuf.ByteString getOutputTablesSchemaVersionBytes(); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentTaskDetails.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentTaskDetails.java similarity index 70% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentTaskDetails.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentTaskDetails.java index 5e0152d..bf24f52 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentTaskDetails.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentTaskDetails.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/assessment_task.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * Assessment task config.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails} */ -public final class AssessmentTaskDetails extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AssessmentTaskDetails extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails) AssessmentTaskDetailsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AssessmentTaskDetails.newBuilder() to construct. private AssessmentTaskDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AssessmentTaskDetails() { inputPath_ = ""; outputDataset_ = ""; @@ -28,38 +46,43 @@ private AssessmentTaskDetails() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AssessmentTaskDetails(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentTaskDetails_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentTaskDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentTaskDetails_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentTaskDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.class, com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.class, + com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.Builder.class); } public static final int INPUT_PATH_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object inputPath_ = ""; /** + * + * *
    * Required. The Cloud Storage path for assessment input files.
    * 
* * string input_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The inputPath. */ @java.lang.Override @@ -68,29 +91,29 @@ public java.lang.String getInputPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputPath_ = s; return s; } } /** + * + * *
    * Required. The Cloud Storage path for assessment input files.
    * 
* * string input_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for inputPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getInputPathBytes() { + public com.google.protobuf.ByteString getInputPathBytes() { java.lang.Object ref = inputPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputPath_ = b; return b; } else { @@ -99,14 +122,18 @@ public java.lang.String getInputPath() { } public static final int OUTPUT_DATASET_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object outputDataset_ = ""; /** + * + * *
    * Required. The BigQuery dataset for output.
    * 
* * string output_dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The outputDataset. */ @java.lang.Override @@ -115,29 +142,29 @@ public java.lang.String getOutputDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputDataset_ = s; return s; } } /** + * + * *
    * Required. The BigQuery dataset for output.
    * 
* * string output_dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for outputDataset. */ @java.lang.Override - public com.google.protobuf.ByteString - getOutputDatasetBytes() { + public com.google.protobuf.ByteString getOutputDatasetBytes() { java.lang.Object ref = outputDataset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputDataset_ = b; return b; } else { @@ -146,15 +173,19 @@ public java.lang.String getOutputDataset() { } public static final int QUERYLOGS_PATH_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object querylogsPath_ = ""; /** + * + * *
    * Optional. An optional Cloud Storage path to write the query logs (which is
    * then used as an input path on the translation task)
    * 
* * string querylogs_path = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The querylogsPath. */ @java.lang.Override @@ -163,30 +194,30 @@ public java.lang.String getQuerylogsPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); querylogsPath_ = s; return s; } } /** + * + * *
    * Optional. An optional Cloud Storage path to write the query logs (which is
    * then used as an input path on the translation task)
    * 
* * string querylogs_path = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for querylogsPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getQuerylogsPathBytes() { + public com.google.protobuf.ByteString getQuerylogsPathBytes() { java.lang.Object ref = querylogsPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); querylogsPath_ = b; return b; } else { @@ -195,15 +226,19 @@ public java.lang.String getQuerylogsPath() { } public static final int DATA_SOURCE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object dataSource_ = ""; /** + * + * *
    * Required. The data source or data warehouse type (eg: TERADATA/REDSHIFT)
    * from which the input data is extracted.
    * 
* * string data_source = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The dataSource. */ @java.lang.Override @@ -212,30 +247,30 @@ public java.lang.String getDataSource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataSource_ = s; return s; } } /** + * + * *
    * Required. The data source or data warehouse type (eg: TERADATA/REDSHIFT)
    * from which the input data is extracted.
    * 
* * string data_source = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for dataSource. */ @java.lang.Override - public com.google.protobuf.ByteString - getDataSourceBytes() { + public com.google.protobuf.ByteString getDataSourceBytes() { java.lang.Object ref = dataSource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataSource_ = b; return b; } else { @@ -244,6 +279,7 @@ public java.lang.String getDataSource() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,8 +291,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputPath_); } @@ -298,21 +333,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails other = (com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails) obj; - - if (!getInputPath() - .equals(other.getInputPath())) return false; - if (!getOutputDataset() - .equals(other.getOutputDataset())) return false; - if (!getQuerylogsPath() - .equals(other.getQuerylogsPath())) return false; - if (!getDataSource() - .equals(other.getDataSource())) return false; + com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails other = + (com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails) obj; + + if (!getInputPath().equals(other.getInputPath())) return false; + if (!getOutputDataset().equals(other.getOutputDataset())) return false; + if (!getQuerylogsPath().equals(other.getQuerylogsPath())) return false; + if (!getDataSource().equals(other.getDataSource())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -338,129 +370,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Assessment task config.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails) com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentTaskDetails_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentTaskDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentTaskDetails_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentTaskDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.class, com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.class, + com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.Builder.class); } - // Construct using com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -473,13 +514,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentTaskDetails_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentTaskDetails_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails + getDefaultInstanceForType() { return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.getDefaultInstance(); } @@ -494,13 +536,17 @@ public com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails build() @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails buildPartial() { - com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails result = new com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails result = + new com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails result) { + private void buildPartial0( + com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.inputPath_ = inputPath_; @@ -520,46 +566,50 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.Assessmen public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails) { - return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails other) { - if (other == com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails other) { + if (other + == com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.getDefaultInstance()) + return this; if (!other.getInputPath().isEmpty()) { inputPath_ = other.inputPath_; bitField0_ |= 0x00000001; @@ -606,32 +656,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - inputPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - outputDataset_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - querylogsPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - dataSource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + inputPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + outputDataset_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + querylogsPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + dataSource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -641,22 +696,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object inputPath_ = ""; /** + * + * *
      * Required. The Cloud Storage path for assessment input files.
      * 
* * string input_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The inputPath. */ public java.lang.String getInputPath() { java.lang.Object ref = inputPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputPath_ = s; return s; @@ -665,20 +723,21 @@ public java.lang.String getInputPath() { } } /** + * + * *
      * Required. The Cloud Storage path for assessment input files.
      * 
* * string input_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for inputPath. */ - public com.google.protobuf.ByteString - getInputPathBytes() { + public com.google.protobuf.ByteString getInputPathBytes() { java.lang.Object ref = inputPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputPath_ = b; return b; } else { @@ -686,28 +745,35 @@ public java.lang.String getInputPath() { } } /** + * + * *
      * Required. The Cloud Storage path for assessment input files.
      * 
* * string input_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The inputPath to set. * @return This builder for chaining. */ - public Builder setInputPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInputPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } inputPath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The Cloud Storage path for assessment input files.
      * 
* * string input_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearInputPath() { @@ -717,17 +783,21 @@ public Builder clearInputPath() { return this; } /** + * + * *
      * Required. The Cloud Storage path for assessment input files.
      * 
* * string input_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for inputPath to set. * @return This builder for chaining. */ - public Builder setInputPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInputPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); inputPath_ = value; bitField0_ |= 0x00000001; @@ -737,18 +807,20 @@ public Builder setInputPathBytes( private java.lang.Object outputDataset_ = ""; /** + * + * *
      * Required. The BigQuery dataset for output.
      * 
* * string output_dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The outputDataset. */ public java.lang.String getOutputDataset() { java.lang.Object ref = outputDataset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputDataset_ = s; return s; @@ -757,20 +829,21 @@ public java.lang.String getOutputDataset() { } } /** + * + * *
      * Required. The BigQuery dataset for output.
      * 
* * string output_dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for outputDataset. */ - public com.google.protobuf.ByteString - getOutputDatasetBytes() { + public com.google.protobuf.ByteString getOutputDatasetBytes() { java.lang.Object ref = outputDataset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputDataset_ = b; return b; } else { @@ -778,28 +851,35 @@ public java.lang.String getOutputDataset() { } } /** + * + * *
      * Required. The BigQuery dataset for output.
      * 
* * string output_dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The outputDataset to set. * @return This builder for chaining. */ - public Builder setOutputDataset( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOutputDataset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } outputDataset_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The BigQuery dataset for output.
      * 
* * string output_dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearOutputDataset() { @@ -809,17 +889,21 @@ public Builder clearOutputDataset() { return this; } /** + * + * *
      * Required. The BigQuery dataset for output.
      * 
* * string output_dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for outputDataset to set. * @return This builder for chaining. */ - public Builder setOutputDatasetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOutputDatasetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); outputDataset_ = value; bitField0_ |= 0x00000002; @@ -829,19 +913,21 @@ public Builder setOutputDatasetBytes( private java.lang.Object querylogsPath_ = ""; /** + * + * *
      * Optional. An optional Cloud Storage path to write the query logs (which is
      * then used as an input path on the translation task)
      * 
* * string querylogs_path = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The querylogsPath. */ public java.lang.String getQuerylogsPath() { java.lang.Object ref = querylogsPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); querylogsPath_ = s; return s; @@ -850,21 +936,22 @@ public java.lang.String getQuerylogsPath() { } } /** + * + * *
      * Optional. An optional Cloud Storage path to write the query logs (which is
      * then used as an input path on the translation task)
      * 
* * string querylogs_path = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for querylogsPath. */ - public com.google.protobuf.ByteString - getQuerylogsPathBytes() { + public com.google.protobuf.ByteString getQuerylogsPathBytes() { java.lang.Object ref = querylogsPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); querylogsPath_ = b; return b; } else { @@ -872,30 +959,37 @@ public java.lang.String getQuerylogsPath() { } } /** + * + * *
      * Optional. An optional Cloud Storage path to write the query logs (which is
      * then used as an input path on the translation task)
      * 
* * string querylogs_path = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The querylogsPath to set. * @return This builder for chaining. */ - public Builder setQuerylogsPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setQuerylogsPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } querylogsPath_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. An optional Cloud Storage path to write the query logs (which is
      * then used as an input path on the translation task)
      * 
* * string querylogs_path = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearQuerylogsPath() { @@ -905,18 +999,22 @@ public Builder clearQuerylogsPath() { return this; } /** + * + * *
      * Optional. An optional Cloud Storage path to write the query logs (which is
      * then used as an input path on the translation task)
      * 
* * string querylogs_path = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for querylogsPath to set. * @return This builder for chaining. */ - public Builder setQuerylogsPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setQuerylogsPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); querylogsPath_ = value; bitField0_ |= 0x00000004; @@ -926,19 +1024,21 @@ public Builder setQuerylogsPathBytes( private java.lang.Object dataSource_ = ""; /** + * + * *
      * Required. The data source or data warehouse type (eg: TERADATA/REDSHIFT)
      * from which the input data is extracted.
      * 
* * string data_source = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The dataSource. */ public java.lang.String getDataSource() { java.lang.Object ref = dataSource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataSource_ = s; return s; @@ -947,21 +1047,22 @@ public java.lang.String getDataSource() { } } /** + * + * *
      * Required. The data source or data warehouse type (eg: TERADATA/REDSHIFT)
      * from which the input data is extracted.
      * 
* * string data_source = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for dataSource. */ - public com.google.protobuf.ByteString - getDataSourceBytes() { + public com.google.protobuf.ByteString getDataSourceBytes() { java.lang.Object ref = dataSource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataSource_ = b; return b; } else { @@ -969,30 +1070,37 @@ public java.lang.String getDataSource() { } } /** + * + * *
      * Required. The data source or data warehouse type (eg: TERADATA/REDSHIFT)
      * from which the input data is extracted.
      * 
* * string data_source = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The dataSource to set. * @return This builder for chaining. */ - public Builder setDataSource( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDataSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } dataSource_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Required. The data source or data warehouse type (eg: TERADATA/REDSHIFT)
      * from which the input data is extracted.
      * 
* * string data_source = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDataSource() { @@ -1002,27 +1110,31 @@ public Builder clearDataSource() { return this; } /** + * + * *
      * Required. The data source or data warehouse type (eg: TERADATA/REDSHIFT)
      * from which the input data is extracted.
      * 
* * string data_source = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for dataSource to set. * @return This builder for chaining. */ - public Builder setDataSourceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDataSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); dataSource_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1032,41 +1144,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails) - private static final com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails(); } - public static com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AssessmentTaskDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssessmentTaskDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1078,9 +1192,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentTaskDetailsOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentTaskDetailsOrBuilder.java similarity index 71% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentTaskDetailsOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentTaskDetailsOrBuilder.java index 7be117b..94cbf10 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentTaskDetailsOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentTaskDetailsOrBuilder.java @@ -1,93 +1,129 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/assessment_task.proto package com.google.cloud.bigquery.migration.v2alpha; -public interface AssessmentTaskDetailsOrBuilder extends +public interface AssessmentTaskDetailsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Cloud Storage path for assessment input files.
    * 
* * string input_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The inputPath. */ java.lang.String getInputPath(); /** + * + * *
    * Required. The Cloud Storage path for assessment input files.
    * 
* * string input_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for inputPath. */ - com.google.protobuf.ByteString - getInputPathBytes(); + com.google.protobuf.ByteString getInputPathBytes(); /** + * + * *
    * Required. The BigQuery dataset for output.
    * 
* * string output_dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The outputDataset. */ java.lang.String getOutputDataset(); /** + * + * *
    * Required. The BigQuery dataset for output.
    * 
* * string output_dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for outputDataset. */ - com.google.protobuf.ByteString - getOutputDatasetBytes(); + com.google.protobuf.ByteString getOutputDatasetBytes(); /** + * + * *
    * Optional. An optional Cloud Storage path to write the query logs (which is
    * then used as an input path on the translation task)
    * 
* * string querylogs_path = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The querylogsPath. */ java.lang.String getQuerylogsPath(); /** + * + * *
    * Optional. An optional Cloud Storage path to write the query logs (which is
    * then used as an input path on the translation task)
    * 
* * string querylogs_path = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for querylogsPath. */ - com.google.protobuf.ByteString - getQuerylogsPathBytes(); + com.google.protobuf.ByteString getQuerylogsPathBytes(); /** + * + * *
    * Required. The data source or data warehouse type (eg: TERADATA/REDSHIFT)
    * from which the input data is extracted.
    * 
* * string data_source = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The dataSource. */ java.lang.String getDataSource(); /** + * + * *
    * Required. The data source or data warehouse type (eg: TERADATA/REDSHIFT)
    * from which the input data is extracted.
    * 
* * string data_source = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for dataSource. */ - com.google.protobuf.ByteString - getDataSourceBytes(); + com.google.protobuf.ByteString getDataSourceBytes(); } diff --git a/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentTaskProto.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentTaskProto.java new file mode 100644 index 0000000..c6759fd --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/AssessmentTaskProto.java @@ -0,0 +1,94 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2alpha/assessment_task.proto + +package com.google.cloud.bigquery.migration.v2alpha; + +public final class AssessmentTaskProto { + private AssessmentTaskProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentTaskDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentTaskDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentOrchestrationResultDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentOrchestrationResultDetails_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/bigquery/migration/v2alph" + + "a/assessment_task.proto\022\'google.cloud.bi" + + "gquery.migration.v2alpha\032\037google/api/fie" + + "ld_behavior.proto\"\204\001\n\025AssessmentTaskDeta" + + "ils\022\027\n\ninput_path\030\001 \001(\tB\003\340A\002\022\033\n\016output_d" + + "ataset\030\002 \001(\tB\003\340A\002\022\033\n\016querylogs_path\030\003 \001(" + + "\tB\003\340A\001\022\030\n\013data_source\030\004 \001(\tB\003\340A\002\"Q\n$Asse" + + "ssmentOrchestrationResultDetails\022)\n\034outp" + + "ut_tables_schema_version\030\001 \001(\tB\003\340A\001B\343\001\n+" + + "com.google.cloud.bigquery.migration.v2al" + + "phaB\023AssessmentTaskProtoP\001ZIcloud.google" + + ".com/go/bigquery/migration/apiv2alpha/mi" + + "grationpb;migrationpb\252\002\'Google.Cloud.Big" + + "Query.Migration.V2Alpha\312\002\'Google\\Cloud\\B" + + "igQuery\\Migration\\V2alphab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentTaskDetails_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentTaskDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentTaskDetails_descriptor, + new java.lang.String[] { + "InputPath", "OutputDataset", "QuerylogsPath", "DataSource", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentOrchestrationResultDetails_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentOrchestrationResultDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_AssessmentOrchestrationResultDetails_descriptor, + new java.lang.String[] { + "OutputTablesSchemaVersion", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/BteqOptions.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/BteqOptions.java similarity index 67% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/BteqOptions.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/BteqOptions.java index e1b09a9..d5df852 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/BteqOptions.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/BteqOptions.java @@ -1,74 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/translation_task.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * BTEQ translation task related settings.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.BteqOptions} */ -public final class BteqOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BteqOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.BteqOptions) BteqOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BteqOptions.newBuilder() to construct. private BteqOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BteqOptions() { defaultPathUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BteqOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_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 3: return internalGetFileReplacementMap(); 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.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.BteqOptions.class, com.google.cloud.bigquery.migration.v2alpha.BteqOptions.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.BteqOptions.class, + com.google.cloud.bigquery.migration.v2alpha.BteqOptions.Builder.class); } public static final int PROJECT_DATASET_FIELD_NUMBER = 1; private com.google.cloud.bigquery.migration.v2alpha.DatasetReference projectDataset_; /** + * + * *
    * Specifies the project and dataset in BigQuery that will be used for
    * external table creation during the translation.
    * 
* * .google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1; + * * @return Whether the projectDataset field is set. */ @java.lang.Override @@ -76,19 +97,26 @@ public boolean hasProjectDataset() { return projectDataset_ != null; } /** + * + * *
    * Specifies the project and dataset in BigQuery that will be used for
    * external table creation during the translation.
    * 
* * .google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1; + * * @return The projectDataset. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.DatasetReference getProjectDataset() { - return projectDataset_ == null ? com.google.cloud.bigquery.migration.v2alpha.DatasetReference.getDefaultInstance() : projectDataset_; + return projectDataset_ == null + ? com.google.cloud.bigquery.migration.v2alpha.DatasetReference.getDefaultInstance() + : projectDataset_; } /** + * + * *
    * Specifies the project and dataset in BigQuery that will be used for
    * external table creation during the translation.
@@ -97,20 +125,27 @@ public com.google.cloud.bigquery.migration.v2alpha.DatasetReference getProjectDa
    * .google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1;
    */
   @java.lang.Override
-  public com.google.cloud.bigquery.migration.v2alpha.DatasetReferenceOrBuilder getProjectDatasetOrBuilder() {
-    return projectDataset_ == null ? com.google.cloud.bigquery.migration.v2alpha.DatasetReference.getDefaultInstance() : projectDataset_;
+  public com.google.cloud.bigquery.migration.v2alpha.DatasetReferenceOrBuilder
+      getProjectDatasetOrBuilder() {
+    return projectDataset_ == null
+        ? com.google.cloud.bigquery.migration.v2alpha.DatasetReference.getDefaultInstance()
+        : projectDataset_;
   }
 
   public static final int DEFAULT_PATH_URI_FIELD_NUMBER = 2;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object defaultPathUri_ = "";
   /**
+   *
+   *
    * 
    * The Cloud Storage location to be used as the default path for files that
    * are not otherwise specified in the file replacement map.
    * 
* * string default_path_uri = 2; + * * @return The defaultPathUri. */ @java.lang.Override @@ -119,30 +154,30 @@ public java.lang.String getDefaultPathUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultPathUri_ = s; return s; } } /** + * + * *
    * The Cloud Storage location to be used as the default path for files that
    * are not otherwise specified in the file replacement map.
    * 
* * string default_path_uri = 2; + * * @return The bytes for defaultPathUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getDefaultPathUriBytes() { + public com.google.protobuf.ByteString getDefaultPathUriBytes() { java.lang.Object ref = defaultPathUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); defaultPathUri_ = b; return b; } else { @@ -151,32 +186,36 @@ public java.lang.String getDefaultPathUri() { } public static final int FILE_REPLACEMENT_MAP_FIELD_NUMBER = 3; + private static final class FileReplacementMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_FileReplacementMapEntry_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.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_FileReplacementMapEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> fileReplacementMap_; + private com.google.protobuf.MapField fileReplacementMap_; + private com.google.protobuf.MapField - internalGetFileReplacementMap() { + internalGetFileReplacementMap() { if (fileReplacementMap_ == null) { return com.google.protobuf.MapField.emptyMapField( FileReplacementMapDefaultEntryHolder.defaultEntry); } return fileReplacementMap_; } + public int getFileReplacementMapCount() { return internalGetFileReplacementMap().getMap().size(); } /** + * + * *
    * Maps the local paths that are used in BTEQ scripts (the keys) to the paths
    * in Cloud Storage that should be used in their stead in the translation (the
@@ -186,20 +225,21 @@ public int getFileReplacementMapCount() {
    * map<string, string> file_replacement_map = 3;
    */
   @java.lang.Override
-  public boolean containsFileReplacementMap(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsFileReplacementMap(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetFileReplacementMap().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getFileReplacementMapMap()} instead.
-   */
+  /** Use {@link #getFileReplacementMapMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getFileReplacementMap() {
     return getFileReplacementMapMap();
   }
   /**
+   *
+   *
    * 
    * Maps the local paths that are used in BTEQ scripts (the keys) to the paths
    * in Cloud Storage that should be used in their stead in the translation (the
@@ -213,6 +253,8 @@ public java.util.Map getFileReplacementMapMa
     return internalGetFileReplacementMap().getMap();
   }
   /**
+   *
+   *
    * 
    * Maps the local paths that are used in BTEQ scripts (the keys) to the paths
    * in Cloud Storage that should be used in their stead in the translation (the
@@ -222,17 +264,20 @@ public java.util.Map getFileReplacementMapMa
    * map<string, string> file_replacement_map = 3;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getFileReplacementMapOrDefault(
+  public /* nullable */ java.lang.String getFileReplacementMapOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetFileReplacementMap().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Maps the local paths that are used in BTEQ scripts (the keys) to the paths
    * in Cloud Storage that should be used in their stead in the translation (the
@@ -242,9 +287,10 @@ java.lang.String getFileReplacementMapOrDefault(
    * map<string, string> file_replacement_map = 3;
    */
   @java.lang.Override
-  public java.lang.String getFileReplacementMapOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public java.lang.String getFileReplacementMapOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetFileReplacementMap().getMap();
     if (!map.containsKey(key)) {
@@ -254,6 +300,7 @@ public java.lang.String getFileReplacementMapOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -265,16 +312,14 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (projectDataset_ != null) {
       output.writeMessage(1, getProjectDataset());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultPathUri_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, defaultPathUri_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
         output,
         internalGetFileReplacementMap(),
         FileReplacementMapDefaultEntryHolder.defaultEntry,
@@ -289,21 +334,20 @@ public int getSerializedSize() {
 
     size = 0;
     if (projectDataset_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getProjectDataset());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProjectDataset());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultPathUri_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, defaultPathUri_);
     }
-    for (java.util.Map.Entry entry
-         : internalGetFileReplacementMap().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      fileReplacementMap__ = FileReplacementMapDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(3, fileReplacementMap__);
+    for (java.util.Map.Entry entry :
+        internalGetFileReplacementMap().getMap().entrySet()) {
+      com.google.protobuf.MapEntry fileReplacementMap__ =
+          FileReplacementMapDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, fileReplacementMap__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -313,22 +357,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.BteqOptions)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.migration.v2alpha.BteqOptions other = (com.google.cloud.bigquery.migration.v2alpha.BteqOptions) obj;
+    com.google.cloud.bigquery.migration.v2alpha.BteqOptions other =
+        (com.google.cloud.bigquery.migration.v2alpha.BteqOptions) obj;
 
     if (hasProjectDataset() != other.hasProjectDataset()) return false;
     if (hasProjectDataset()) {
-      if (!getProjectDataset()
-          .equals(other.getProjectDataset())) return false;
+      if (!getProjectDataset().equals(other.getProjectDataset())) return false;
     }
-    if (!getDefaultPathUri()
-        .equals(other.getDefaultPathUri())) return false;
-    if (!internalGetFileReplacementMap().equals(
-        other.internalGetFileReplacementMap())) return false;
+    if (!getDefaultPathUri().equals(other.getDefaultPathUri())) return false;
+    if (!internalGetFileReplacementMap().equals(other.internalGetFileReplacementMap()))
+      return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -356,151 +399,156 @@ public int hashCode() {
   }
 
   public static com.google.cloud.bigquery.migration.v2alpha.BteqOptions parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.migration.v2alpha.BteqOptions parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.bigquery.migration.v2alpha.BteqOptions parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.migration.v2alpha.BteqOptions parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.bigquery.migration.v2alpha.BteqOptions parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.migration.v2alpha.BteqOptions parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.bigquery.migration.v2alpha.BteqOptions parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.migration.v2alpha.BteqOptions parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.migration.v2alpha.BteqOptions parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.bigquery.migration.v2alpha.BteqOptions parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.migration.v2alpha.BteqOptions parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.migration.v2alpha.BteqOptions parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.bigquery.migration.v2alpha.BteqOptions parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.migration.v2alpha.BteqOptions parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.BteqOptions prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.bigquery.migration.v2alpha.BteqOptions prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder 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;
   }
   /**
+   *
+   *
    * 
    * BTEQ translation task related settings.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.BteqOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.BteqOptions) com.google.cloud.bigquery.migration.v2alpha.BteqOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetFileReplacementMap(); 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 3: return internalGetMutableFileReplacementMap(); 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.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.BteqOptions.class, com.google.cloud.bigquery.migration.v2alpha.BteqOptions.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.BteqOptions.class, + com.google.cloud.bigquery.migration.v2alpha.BteqOptions.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2alpha.BteqOptions.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -516,9 +564,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_descriptor; } @java.lang.Override @@ -537,8 +585,11 @@ public com.google.cloud.bigquery.migration.v2alpha.BteqOptions build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.BteqOptions buildPartial() { - com.google.cloud.bigquery.migration.v2alpha.BteqOptions result = new com.google.cloud.bigquery.migration.v2alpha.BteqOptions(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.migration.v2alpha.BteqOptions result = + new com.google.cloud.bigquery.migration.v2alpha.BteqOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -546,9 +597,8 @@ public com.google.cloud.bigquery.migration.v2alpha.BteqOptions buildPartial() { private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.BteqOptions result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectDataset_ = projectDatasetBuilder_ == null - ? projectDataset_ - : projectDatasetBuilder_.build(); + result.projectDataset_ = + projectDatasetBuilder_ == null ? projectDataset_ : projectDatasetBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.defaultPathUri_ = defaultPathUri_; @@ -563,38 +613,39 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.BteqOptio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2alpha.BteqOptions) { - return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.BteqOptions)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.BteqOptions) other); } else { super.mergeFrom(other); return this; @@ -602,7 +653,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.BteqOptions other) { - if (other == com.google.cloud.bigquery.migration.v2alpha.BteqOptions.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.migration.v2alpha.BteqOptions.getDefaultInstance()) + return this; if (other.hasProjectDataset()) { mergeProjectDataset(other.getProjectDataset()); } @@ -611,8 +663,7 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.BteqOptions bitField0_ |= 0x00000002; onChanged(); } - internalGetMutableFileReplacementMap().mergeFrom( - other.internalGetFileReplacementMap()); + internalGetMutableFileReplacementMap().mergeFrom(other.internalGetFileReplacementMap()); bitField0_ |= 0x00000004; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -640,33 +691,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getProjectDatasetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - defaultPathUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - com.google.protobuf.MapEntry - fileReplacementMap__ = input.readMessage( - FileReplacementMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableFileReplacementMap().getMutableMap().put( - fileReplacementMap__.getKey(), fileReplacementMap__.getValue()); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getProjectDatasetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + defaultPathUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry + fileReplacementMap__ = + input.readMessage( + FileReplacementMapDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableFileReplacementMap() + .getMutableMap() + .put(fileReplacementMap__.getKey(), fileReplacementMap__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -676,40 +732,54 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.bigquery.migration.v2alpha.DatasetReference projectDataset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.DatasetReference, com.google.cloud.bigquery.migration.v2alpha.DatasetReference.Builder, com.google.cloud.bigquery.migration.v2alpha.DatasetReferenceOrBuilder> projectDatasetBuilder_; + com.google.cloud.bigquery.migration.v2alpha.DatasetReference, + com.google.cloud.bigquery.migration.v2alpha.DatasetReference.Builder, + com.google.cloud.bigquery.migration.v2alpha.DatasetReferenceOrBuilder> + projectDatasetBuilder_; /** + * + * *
      * Specifies the project and dataset in BigQuery that will be used for
      * external table creation during the translation.
      * 
* * .google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1; + * * @return Whether the projectDataset field is set. */ public boolean hasProjectDataset() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Specifies the project and dataset in BigQuery that will be used for
      * external table creation during the translation.
      * 
* * .google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1; + * * @return The projectDataset. */ public com.google.cloud.bigquery.migration.v2alpha.DatasetReference getProjectDataset() { if (projectDatasetBuilder_ == null) { - return projectDataset_ == null ? com.google.cloud.bigquery.migration.v2alpha.DatasetReference.getDefaultInstance() : projectDataset_; + return projectDataset_ == null + ? com.google.cloud.bigquery.migration.v2alpha.DatasetReference.getDefaultInstance() + : projectDataset_; } else { return projectDatasetBuilder_.getMessage(); } } /** + * + * *
      * Specifies the project and dataset in BigQuery that will be used for
      * external table creation during the translation.
@@ -717,7 +787,8 @@ public com.google.cloud.bigquery.migration.v2alpha.DatasetReference getProjectDa
      *
      * .google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1;
      */
-    public Builder setProjectDataset(com.google.cloud.bigquery.migration.v2alpha.DatasetReference value) {
+    public Builder setProjectDataset(
+        com.google.cloud.bigquery.migration.v2alpha.DatasetReference value) {
       if (projectDatasetBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -731,6 +802,8 @@ public Builder setProjectDataset(com.google.cloud.bigquery.migration.v2alpha.Dat
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies the project and dataset in BigQuery that will be used for
      * external table creation during the translation.
@@ -750,6 +823,8 @@ public Builder setProjectDataset(
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies the project and dataset in BigQuery that will be used for
      * external table creation during the translation.
@@ -757,11 +832,14 @@ public Builder setProjectDataset(
      *
      * .google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1;
      */
-    public Builder mergeProjectDataset(com.google.cloud.bigquery.migration.v2alpha.DatasetReference value) {
+    public Builder mergeProjectDataset(
+        com.google.cloud.bigquery.migration.v2alpha.DatasetReference value) {
       if (projectDatasetBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          projectDataset_ != null &&
-          projectDataset_ != com.google.cloud.bigquery.migration.v2alpha.DatasetReference.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && projectDataset_ != null
+            && projectDataset_
+                != com.google.cloud.bigquery.migration.v2alpha.DatasetReference
+                    .getDefaultInstance()) {
           getProjectDatasetBuilder().mergeFrom(value);
         } else {
           projectDataset_ = value;
@@ -774,6 +852,8 @@ public Builder mergeProjectDataset(com.google.cloud.bigquery.migration.v2alpha.D
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies the project and dataset in BigQuery that will be used for
      * external table creation during the translation.
@@ -792,6 +872,8 @@ public Builder clearProjectDataset() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies the project and dataset in BigQuery that will be used for
      * external table creation during the translation.
@@ -799,12 +881,15 @@ public Builder clearProjectDataset() {
      *
      * .google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1;
      */
-    public com.google.cloud.bigquery.migration.v2alpha.DatasetReference.Builder getProjectDatasetBuilder() {
+    public com.google.cloud.bigquery.migration.v2alpha.DatasetReference.Builder
+        getProjectDatasetBuilder() {
       bitField0_ |= 0x00000001;
       onChanged();
       return getProjectDatasetFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Specifies the project and dataset in BigQuery that will be used for
      * external table creation during the translation.
@@ -812,15 +897,19 @@ public com.google.cloud.bigquery.migration.v2alpha.DatasetReference.Builder getP
      *
      * .google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1;
      */
-    public com.google.cloud.bigquery.migration.v2alpha.DatasetReferenceOrBuilder getProjectDatasetOrBuilder() {
+    public com.google.cloud.bigquery.migration.v2alpha.DatasetReferenceOrBuilder
+        getProjectDatasetOrBuilder() {
       if (projectDatasetBuilder_ != null) {
         return projectDatasetBuilder_.getMessageOrBuilder();
       } else {
-        return projectDataset_ == null ?
-            com.google.cloud.bigquery.migration.v2alpha.DatasetReference.getDefaultInstance() : projectDataset_;
+        return projectDataset_ == null
+            ? com.google.cloud.bigquery.migration.v2alpha.DatasetReference.getDefaultInstance()
+            : projectDataset_;
       }
     }
     /**
+     *
+     *
      * 
      * Specifies the project and dataset in BigQuery that will be used for
      * external table creation during the translation.
@@ -829,14 +918,17 @@ public com.google.cloud.bigquery.migration.v2alpha.DatasetReferenceOrBuilder get
      * .google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.migration.v2alpha.DatasetReference, com.google.cloud.bigquery.migration.v2alpha.DatasetReference.Builder, com.google.cloud.bigquery.migration.v2alpha.DatasetReferenceOrBuilder> 
+            com.google.cloud.bigquery.migration.v2alpha.DatasetReference,
+            com.google.cloud.bigquery.migration.v2alpha.DatasetReference.Builder,
+            com.google.cloud.bigquery.migration.v2alpha.DatasetReferenceOrBuilder>
         getProjectDatasetFieldBuilder() {
       if (projectDatasetBuilder_ == null) {
-        projectDatasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.migration.v2alpha.DatasetReference, com.google.cloud.bigquery.migration.v2alpha.DatasetReference.Builder, com.google.cloud.bigquery.migration.v2alpha.DatasetReferenceOrBuilder>(
-                getProjectDataset(),
-                getParentForChildren(),
-                isClean());
+        projectDatasetBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.bigquery.migration.v2alpha.DatasetReference,
+                com.google.cloud.bigquery.migration.v2alpha.DatasetReference.Builder,
+                com.google.cloud.bigquery.migration.v2alpha.DatasetReferenceOrBuilder>(
+                getProjectDataset(), getParentForChildren(), isClean());
         projectDataset_ = null;
       }
       return projectDatasetBuilder_;
@@ -844,19 +936,21 @@ public com.google.cloud.bigquery.migration.v2alpha.DatasetReferenceOrBuilder get
 
     private java.lang.Object defaultPathUri_ = "";
     /**
+     *
+     *
      * 
      * The Cloud Storage location to be used as the default path for files that
      * are not otherwise specified in the file replacement map.
      * 
* * string default_path_uri = 2; + * * @return The defaultPathUri. */ public java.lang.String getDefaultPathUri() { java.lang.Object ref = defaultPathUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultPathUri_ = s; return s; @@ -865,21 +959,22 @@ public java.lang.String getDefaultPathUri() { } } /** + * + * *
      * The Cloud Storage location to be used as the default path for files that
      * are not otherwise specified in the file replacement map.
      * 
* * string default_path_uri = 2; + * * @return The bytes for defaultPathUri. */ - public com.google.protobuf.ByteString - getDefaultPathUriBytes() { + public com.google.protobuf.ByteString getDefaultPathUriBytes() { java.lang.Object ref = defaultPathUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); defaultPathUri_ = b; return b; } else { @@ -887,30 +982,37 @@ public java.lang.String getDefaultPathUri() { } } /** + * + * *
      * The Cloud Storage location to be used as the default path for files that
      * are not otherwise specified in the file replacement map.
      * 
* * string default_path_uri = 2; + * * @param value The defaultPathUri to set. * @return This builder for chaining. */ - public Builder setDefaultPathUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDefaultPathUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } defaultPathUri_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The Cloud Storage location to be used as the default path for files that
      * are not otherwise specified in the file replacement map.
      * 
* * string default_path_uri = 2; + * * @return This builder for chaining. */ public Builder clearDefaultPathUri() { @@ -920,18 +1022,22 @@ public Builder clearDefaultPathUri() { return this; } /** + * + * *
      * The Cloud Storage location to be used as the default path for files that
      * are not otherwise specified in the file replacement map.
      * 
* * string default_path_uri = 2; + * * @param value The bytes for defaultPathUri to set. * @return This builder for chaining. */ - public Builder setDefaultPathUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDefaultPathUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); defaultPathUri_ = value; bitField0_ |= 0x00000002; @@ -939,8 +1045,8 @@ public Builder setDefaultPathUriBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> fileReplacementMap_; + private com.google.protobuf.MapField fileReplacementMap_; + private com.google.protobuf.MapField internalGetFileReplacementMap() { if (fileReplacementMap_ == null) { @@ -949,11 +1055,13 @@ public Builder setDefaultPathUriBytes( } return fileReplacementMap_; } + private com.google.protobuf.MapField internalGetMutableFileReplacementMap() { if (fileReplacementMap_ == null) { - fileReplacementMap_ = com.google.protobuf.MapField.newMapField( - FileReplacementMapDefaultEntryHolder.defaultEntry); + fileReplacementMap_ = + com.google.protobuf.MapField.newMapField( + FileReplacementMapDefaultEntryHolder.defaultEntry); } if (!fileReplacementMap_.isMutable()) { fileReplacementMap_ = fileReplacementMap_.copy(); @@ -962,10 +1070,13 @@ public Builder setDefaultPathUriBytes( onChanged(); return fileReplacementMap_; } + public int getFileReplacementMapCount() { return internalGetFileReplacementMap().getMap().size(); } /** + * + * *
      * Maps the local paths that are used in BTEQ scripts (the keys) to the paths
      * in Cloud Storage that should be used in their stead in the translation (the
@@ -975,20 +1086,21 @@ public int getFileReplacementMapCount() {
      * map<string, string> file_replacement_map = 3;
      */
     @java.lang.Override
-    public boolean containsFileReplacementMap(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsFileReplacementMap(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetFileReplacementMap().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getFileReplacementMapMap()} instead.
-     */
+    /** Use {@link #getFileReplacementMapMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getFileReplacementMap() {
       return getFileReplacementMapMap();
     }
     /**
+     *
+     *
      * 
      * Maps the local paths that are used in BTEQ scripts (the keys) to the paths
      * in Cloud Storage that should be used in their stead in the translation (the
@@ -1002,6 +1114,8 @@ public java.util.Map getFileReplacementMapMa
       return internalGetFileReplacementMap().getMap();
     }
     /**
+     *
+     *
      * 
      * Maps the local paths that are used in BTEQ scripts (the keys) to the paths
      * in Cloud Storage that should be used in their stead in the translation (the
@@ -1011,17 +1125,20 @@ public java.util.Map getFileReplacementMapMa
      * map<string, string> file_replacement_map = 3;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getFileReplacementMapOrDefault(
+    public /* nullable */ java.lang.String getFileReplacementMapOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetFileReplacementMap().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Maps the local paths that are used in BTEQ scripts (the keys) to the paths
      * in Cloud Storage that should be used in their stead in the translation (the
@@ -1031,9 +1148,10 @@ java.lang.String getFileReplacementMapOrDefault(
      * map<string, string> file_replacement_map = 3;
      */
     @java.lang.Override
-    public java.lang.String getFileReplacementMapOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public java.lang.String getFileReplacementMapOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetFileReplacementMap().getMap();
       if (!map.containsKey(key)) {
@@ -1041,13 +1159,15 @@ public java.lang.String getFileReplacementMapOrThrow(
       }
       return map.get(key);
     }
+
     public Builder clearFileReplacementMap() {
       bitField0_ = (bitField0_ & ~0x00000004);
-      internalGetMutableFileReplacementMap().getMutableMap()
-          .clear();
+      internalGetMutableFileReplacementMap().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Maps the local paths that are used in BTEQ scripts (the keys) to the paths
      * in Cloud Storage that should be used in their stead in the translation (the
@@ -1056,23 +1176,22 @@ public Builder clearFileReplacementMap() {
      *
      * map<string, string> file_replacement_map = 3;
      */
-    public Builder removeFileReplacementMap(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableFileReplacementMap().getMutableMap()
-          .remove(key);
+    public Builder removeFileReplacementMap(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableFileReplacementMap().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableFileReplacementMap() {
+    public java.util.Map getMutableFileReplacementMap() {
       bitField0_ |= 0x00000004;
       return internalGetMutableFileReplacementMap().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Maps the local paths that are used in BTEQ scripts (the keys) to the paths
      * in Cloud Storage that should be used in their stead in the translation (the
@@ -1081,17 +1200,20 @@ public Builder removeFileReplacementMap(
      *
      * map<string, string> file_replacement_map = 3;
      */
-    public Builder putFileReplacementMap(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableFileReplacementMap().getMutableMap()
-          .put(key, value);
+    public Builder putFileReplacementMap(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableFileReplacementMap().getMutableMap().put(key, value);
       bitField0_ |= 0x00000004;
       return this;
     }
     /**
+     *
+     *
      * 
      * Maps the local paths that are used in BTEQ scripts (the keys) to the paths
      * in Cloud Storage that should be used in their stead in the translation (the
@@ -1102,14 +1224,13 @@ public Builder putFileReplacementMap(
      */
     public Builder putAllFileReplacementMap(
         java.util.Map values) {
-      internalGetMutableFileReplacementMap().getMutableMap()
-          .putAll(values);
+      internalGetMutableFileReplacementMap().getMutableMap().putAll(values);
       bitField0_ |= 0x00000004;
       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);
     }
 
@@ -1119,12 +1240,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.BteqOptions)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.BteqOptions)
   private static final com.google.cloud.bigquery.migration.v2alpha.BteqOptions DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.BteqOptions();
   }
@@ -1133,27 +1254,27 @@ public static com.google.cloud.bigquery.migration.v2alpha.BteqOptions getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BteqOptions parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BteqOptions parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1168,6 +1289,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.bigquery.migration.v2alpha.BteqOptions getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/BteqOptionsOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/BteqOptionsOrBuilder.java
similarity index 72%
rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/BteqOptionsOrBuilder.java
rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/BteqOptionsOrBuilder.java
index 063e6d9..d5da9f7 100644
--- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/BteqOptionsOrBuilder.java
+++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/BteqOptionsOrBuilder.java
@@ -1,33 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/migration/v2alpha/translation_task.proto
 
 package com.google.cloud.bigquery.migration.v2alpha;
 
-public interface BteqOptionsOrBuilder extends
+public interface BteqOptionsOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.BteqOptions)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Specifies the project and dataset in BigQuery that will be used for
    * external table creation during the translation.
    * 
* * .google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1; + * * @return Whether the projectDataset field is set. */ boolean hasProjectDataset(); /** + * + * *
    * Specifies the project and dataset in BigQuery that will be used for
    * external table creation during the translation.
    * 
* * .google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1; + * * @return The projectDataset. */ com.google.cloud.bigquery.migration.v2alpha.DatasetReference getProjectDataset(); /** + * + * *
    * Specifies the project and dataset in BigQuery that will be used for
    * external table creation during the translation.
@@ -35,31 +59,39 @@ public interface BteqOptionsOrBuilder extends
    *
    * .google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1;
    */
-  com.google.cloud.bigquery.migration.v2alpha.DatasetReferenceOrBuilder getProjectDatasetOrBuilder();
+  com.google.cloud.bigquery.migration.v2alpha.DatasetReferenceOrBuilder
+      getProjectDatasetOrBuilder();
 
   /**
+   *
+   *
    * 
    * The Cloud Storage location to be used as the default path for files that
    * are not otherwise specified in the file replacement map.
    * 
* * string default_path_uri = 2; + * * @return The defaultPathUri. */ java.lang.String getDefaultPathUri(); /** + * + * *
    * The Cloud Storage location to be used as the default path for files that
    * are not otherwise specified in the file replacement map.
    * 
* * string default_path_uri = 2; + * * @return The bytes for defaultPathUri. */ - com.google.protobuf.ByteString - getDefaultPathUriBytes(); + com.google.protobuf.ByteString getDefaultPathUriBytes(); /** + * + * *
    * Maps the local paths that are used in BTEQ scripts (the keys) to the paths
    * in Cloud Storage that should be used in their stead in the translation (the
@@ -70,6 +102,8 @@ public interface BteqOptionsOrBuilder extends
    */
   int getFileReplacementMapCount();
   /**
+   *
+   *
    * 
    * Maps the local paths that are used in BTEQ scripts (the keys) to the paths
    * in Cloud Storage that should be used in their stead in the translation (the
@@ -78,15 +112,13 @@ public interface BteqOptionsOrBuilder extends
    *
    * map<string, string> file_replacement_map = 3;
    */
-  boolean containsFileReplacementMap(
-      java.lang.String key);
-  /**
-   * Use {@link #getFileReplacementMapMap()} instead.
-   */
+  boolean containsFileReplacementMap(java.lang.String key);
+  /** Use {@link #getFileReplacementMapMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getFileReplacementMap();
+  java.util.Map getFileReplacementMap();
   /**
+   *
+   *
    * 
    * Maps the local paths that are used in BTEQ scripts (the keys) to the paths
    * in Cloud Storage that should be used in their stead in the translation (the
@@ -95,9 +127,10 @@ boolean containsFileReplacementMap(
    *
    * map<string, string> file_replacement_map = 3;
    */
-  java.util.Map
-  getFileReplacementMapMap();
+  java.util.Map getFileReplacementMapMap();
   /**
+   *
+   *
    * 
    * Maps the local paths that are used in BTEQ scripts (the keys) to the paths
    * in Cloud Storage that should be used in their stead in the translation (the
@@ -107,11 +140,13 @@ boolean containsFileReplacementMap(
    * map<string, string> file_replacement_map = 3;
    */
   /* nullable */
-java.lang.String getFileReplacementMapOrDefault(
+  java.lang.String getFileReplacementMapOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Maps the local paths that are used in BTEQ scripts (the keys) to the paths
    * in Cloud Storage that should be used in their stead in the translation (the
@@ -120,6 +155,5 @@ java.lang.String getFileReplacementMapOrDefault(
    *
    * map<string, string> file_replacement_map = 3;
    */
-  java.lang.String getFileReplacementMapOrThrow(
-      java.lang.String key);
+  java.lang.String getFileReplacementMapOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/CreateMigrationWorkflowRequest.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/CreateMigrationWorkflowRequest.java
similarity index 53%
rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/CreateMigrationWorkflowRequest.java
rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/CreateMigrationWorkflowRequest.java
index ef28972..9307bb7 100644
--- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/CreateMigrationWorkflowRequest.java
+++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/CreateMigrationWorkflowRequest.java
@@ -1,63 +1,90 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/migration/v2alpha/migration_service.proto
 
 package com.google.cloud.bigquery.migration.v2alpha;
 
 /**
+ *
+ *
  * 
  * Request to create a migration workflow resource.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest} */ -public final class CreateMigrationWorkflowRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateMigrationWorkflowRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest) CreateMigrationWorkflowRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateMigrationWorkflowRequest.newBuilder() to construct. - private CreateMigrationWorkflowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateMigrationWorkflowRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateMigrationWorkflowRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateMigrationWorkflowRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_CreateMigrationWorkflowRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_CreateMigrationWorkflowRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_CreateMigrationWorkflowRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_CreateMigrationWorkflowRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest.class, com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest.class, + com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest.Builder + .class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The name of the project to which this migration workflow belongs.
    * Example: `projects/foo/locations/bar`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -66,30 +93,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The name of the project to which this migration workflow belongs.
    * Example: `projects/foo/locations/bar`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -100,11 +129,16 @@ public java.lang.String getParent() { public static final int MIGRATION_WORKFLOW_FIELD_NUMBER = 2; private com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migrationWorkflow_; /** + * + * *
    * Required. The migration workflow to create.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the migrationWorkflow field is set. */ @java.lang.Override @@ -112,30 +146,45 @@ public boolean hasMigrationWorkflow() { return migrationWorkflow_ != null; } /** + * + * *
    * Required. The migration workflow to create.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The migrationWorkflow. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow getMigrationWorkflow() { - return migrationWorkflow_ == null ? com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.getDefaultInstance() : migrationWorkflow_; + return migrationWorkflow_ == null + ? com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.getDefaultInstance() + : migrationWorkflow_; } /** + * + * *
    * Required. The migration workflow to create.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder getMigrationWorkflowOrBuilder() { - return migrationWorkflow_ == null ? com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.getDefaultInstance() : migrationWorkflow_; + public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder + getMigrationWorkflowOrBuilder() { + return migrationWorkflow_ == null + ? com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.getDefaultInstance() + : migrationWorkflow_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,8 +196,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -168,8 +216,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (migrationWorkflow_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMigrationWorkflow()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMigrationWorkflow()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -179,19 +226,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest)) { + if (!(obj + instanceof com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest other = (com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest) obj; + com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest other = + (com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasMigrationWorkflow() != other.hasMigrationWorkflow()) return false; if (hasMigrationWorkflow()) { - if (!getMigrationWorkflow() - .equals(other.getMigrationWorkflow())) return false; + if (!getMigrationWorkflow().equals(other.getMigrationWorkflow())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -215,130 +262,145 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request to create a migration workflow resource.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest) com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_CreateMigrationWorkflowRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_CreateMigrationWorkflowRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_CreateMigrationWorkflowRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_CreateMigrationWorkflowRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest.class, com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest.class, + com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest.Builder + .class); } - // Construct using com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -353,19 +415,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_CreateMigrationWorkflowRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_CreateMigrationWorkflowRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest.getDefaultInstance(); + public com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest build() { - com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest result = buildPartial(); + com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -373,22 +438,28 @@ public com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowReques } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest buildPartial() { - com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest result = new com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest + buildPartial() { + com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest result = + new com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.migrationWorkflow_ = migrationWorkflowBuilder_ == null - ? migrationWorkflow_ - : migrationWorkflowBuilder_.build(); + result.migrationWorkflow_ = + migrationWorkflowBuilder_ == null + ? migrationWorkflow_ + : migrationWorkflowBuilder_.build(); } } @@ -396,46 +467,52 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.CreateMig public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest) { - return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest)other); + if (other + instanceof com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest) { + return mergeFrom( + (com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest other) { - if (other == com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest other) { + if (other + == com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -470,24 +547,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getMigrationWorkflowFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getMigrationWorkflowFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -497,23 +576,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the project to which this migration workflow belongs.
      * Example: `projects/foo/locations/bar`
      * 
* - * string 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; @@ -522,21 +606,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project to which this migration workflow belongs.
      * Example: `projects/foo/locations/bar`
      * 
* - * string 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 { @@ -544,30 +631,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project to which this migration workflow belongs.
      * Example: `projects/foo/locations/bar`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the project to which this migration workflow belongs.
      * Example: `projects/foo/locations/bar`
      * 
* - * string 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() { @@ -577,18 +675,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The name of the project to which this migration workflow belongs.
      * Example: `projects/foo/locations/bar`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -598,41 +702,61 @@ public Builder setParentBytes( private com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migrationWorkflow_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow, com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder, com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder> migrationWorkflowBuilder_; + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow, + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder, + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder> + migrationWorkflowBuilder_; /** + * + * *
      * Required. The migration workflow to create.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the migrationWorkflow field is set. */ public boolean hasMigrationWorkflow() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The migration workflow to create.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The migrationWorkflow. */ public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow getMigrationWorkflow() { if (migrationWorkflowBuilder_ == null) { - return migrationWorkflow_ == null ? com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.getDefaultInstance() : migrationWorkflow_; + return migrationWorkflow_ == null + ? com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.getDefaultInstance() + : migrationWorkflow_; } else { return migrationWorkflowBuilder_.getMessage(); } } /** + * + * *
      * Required. The migration workflow to create.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setMigrationWorkflow(com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow value) { + public Builder setMigrationWorkflow( + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow value) { if (migrationWorkflowBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -646,11 +770,15 @@ public Builder setMigrationWorkflow(com.google.cloud.bigquery.migration.v2alpha. return this; } /** + * + * *
      * Required. The migration workflow to create.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMigrationWorkflow( com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder builderForValue) { @@ -664,17 +792,24 @@ public Builder setMigrationWorkflow( return this; } /** + * + * *
      * Required. The migration workflow to create.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeMigrationWorkflow(com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow value) { + public Builder mergeMigrationWorkflow( + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow value) { if (migrationWorkflowBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - migrationWorkflow_ != null && - migrationWorkflow_ != com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && migrationWorkflow_ != null + && migrationWorkflow_ + != com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow + .getDefaultInstance()) { getMigrationWorkflowBuilder().mergeFrom(value); } else { migrationWorkflow_ = value; @@ -687,11 +822,15 @@ public Builder mergeMigrationWorkflow(com.google.cloud.bigquery.migration.v2alph return this; } /** + * + * *
      * Required. The migration workflow to create.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearMigrationWorkflow() { bitField0_ = (bitField0_ & ~0x00000002); @@ -704,55 +843,73 @@ public Builder clearMigrationWorkflow() { return this; } /** + * + * *
      * Required. The migration workflow to create.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder getMigrationWorkflowBuilder() { + public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder + getMigrationWorkflowBuilder() { bitField0_ |= 0x00000002; onChanged(); return getMigrationWorkflowFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The migration workflow to create.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder getMigrationWorkflowOrBuilder() { + public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder + getMigrationWorkflowOrBuilder() { if (migrationWorkflowBuilder_ != null) { return migrationWorkflowBuilder_.getMessageOrBuilder(); } else { - return migrationWorkflow_ == null ? - com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.getDefaultInstance() : migrationWorkflow_; + return migrationWorkflow_ == null + ? com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.getDefaultInstance() + : migrationWorkflow_; } } /** + * + * *
      * Required. The migration workflow to create.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow, com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder, com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder> + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow, + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder, + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder> getMigrationWorkflowFieldBuilder() { if (migrationWorkflowBuilder_ == null) { - migrationWorkflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow, com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder, com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder>( - getMigrationWorkflow(), - getParentForChildren(), - isClean()); + migrationWorkflowBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow, + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder, + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder>( + getMigrationWorkflow(), getParentForChildren(), isClean()); migrationWorkflow_ = null; } return migrationWorkflowBuilder_; } + @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); } @@ -762,41 +919,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest) - private static final com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest(); } - public static com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateMigrationWorkflowRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMigrationWorkflowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -808,9 +968,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/CreateMigrationWorkflowRequestOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/CreateMigrationWorkflowRequestOrBuilder.java new file mode 100644 index 0000000..fff1ec9 --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/CreateMigrationWorkflowRequestOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2alpha/migration_service.proto + +package com.google.cloud.bigquery.migration.v2alpha; + +public interface CreateMigrationWorkflowRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.CreateMigrationWorkflowRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the project to which this migration workflow belongs.
+   * Example: `projects/foo/locations/bar`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the project to which this migration workflow belongs.
+   * Example: `projects/foo/locations/bar`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The migration workflow to create.
+   * 
+ * + * + * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the migrationWorkflow field is set. + */ + boolean hasMigrationWorkflow(); + /** + * + * + *
+   * Required. The migration workflow to create.
+   * 
+ * + * + * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The migrationWorkflow. + */ + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow getMigrationWorkflow(); + /** + * + * + *
+   * Required. The migration workflow to create.
+   * 
+ * + * + * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder + getMigrationWorkflowOrBuilder(); +} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DatasetReference.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DatasetReference.java similarity index 68% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DatasetReference.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DatasetReference.java index fc6a9f8..c31fa07 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DatasetReference.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DatasetReference.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/translation_task.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * Reference to a BigQuery dataset.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.DatasetReference} */ -public final class DatasetReference extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DatasetReference extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.DatasetReference) DatasetReferenceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DatasetReference.newBuilder() to construct. private DatasetReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DatasetReference() { datasetId_ = ""; projectId_ = ""; @@ -26,33 +44,37 @@ private DatasetReference() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DatasetReference(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_DatasetReference_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_DatasetReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_DatasetReference_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_DatasetReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.DatasetReference.class, com.google.cloud.bigquery.migration.v2alpha.DatasetReference.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.DatasetReference.class, + com.google.cloud.bigquery.migration.v2alpha.DatasetReference.Builder.class); } public static final int DATASET_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object datasetId_ = ""; /** + * + * *
    * A unique ID for this dataset, without the project name. The ID
    * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
@@ -60,6 +82,7 @@ protected java.lang.Object newInstance(
    * 
* * string dataset_id = 1; + * * @return The datasetId. */ @java.lang.Override @@ -68,14 +91,15 @@ public java.lang.String getDatasetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetId_ = s; return s; } } /** + * + * *
    * A unique ID for this dataset, without the project name. The ID
    * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
@@ -83,16 +107,15 @@ public java.lang.String getDatasetId() {
    * 
* * string dataset_id = 1; + * * @return The bytes for datasetId. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatasetIdBytes() { + public com.google.protobuf.ByteString getDatasetIdBytes() { java.lang.Object ref = datasetId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); datasetId_ = b; return b; } else { @@ -101,14 +124,18 @@ public java.lang.String getDatasetId() { } public static final int PROJECT_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** + * + * *
    * The ID of the project containing this dataset.
    * 
* * string project_id = 2; + * * @return The projectId. */ @java.lang.Override @@ -117,29 +144,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * The ID of the project containing this dataset.
    * 
* * string project_id = 2; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -148,6 +175,7 @@ public java.lang.String getProjectId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +187,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, datasetId_); } @@ -190,17 +217,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.DatasetReference)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.DatasetReference other = (com.google.cloud.bigquery.migration.v2alpha.DatasetReference) obj; + com.google.cloud.bigquery.migration.v2alpha.DatasetReference other = + (com.google.cloud.bigquery.migration.v2alpha.DatasetReference) obj; - if (!getDatasetId() - .equals(other.getDatasetId())) return false; - if (!getProjectId() - .equals(other.getProjectId())) return false; + if (!getDatasetId().equals(other.getDatasetId())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -222,129 +248,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.DatasetReference parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.DatasetReference parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.DatasetReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.DatasetReference parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.DatasetReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.DatasetReference parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.DatasetReference parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.DatasetReference parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.DatasetReference parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.DatasetReference parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.DatasetReference parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.DatasetReference parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.DatasetReference parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.DatasetReference parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.DatasetReference prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.DatasetReference prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Reference to a BigQuery dataset.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.DatasetReference} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.DatasetReference) com.google.cloud.bigquery.migration.v2alpha.DatasetReferenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_DatasetReference_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_DatasetReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_DatasetReference_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_DatasetReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.DatasetReference.class, com.google.cloud.bigquery.migration.v2alpha.DatasetReference.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.DatasetReference.class, + com.google.cloud.bigquery.migration.v2alpha.DatasetReference.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2alpha.DatasetReference.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -355,13 +388,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_DatasetReference_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_DatasetReference_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.DatasetReference getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2alpha.DatasetReference + getDefaultInstanceForType() { return com.google.cloud.bigquery.migration.v2alpha.DatasetReference.getDefaultInstance(); } @@ -376,13 +410,17 @@ public com.google.cloud.bigquery.migration.v2alpha.DatasetReference build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.DatasetReference buildPartial() { - com.google.cloud.bigquery.migration.v2alpha.DatasetReference result = new com.google.cloud.bigquery.migration.v2alpha.DatasetReference(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.migration.v2alpha.DatasetReference result = + new com.google.cloud.bigquery.migration.v2alpha.DatasetReference(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.DatasetReference result) { + private void buildPartial0( + com.google.cloud.bigquery.migration.v2alpha.DatasetReference result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.datasetId_ = datasetId_; @@ -396,38 +434,39 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.DatasetRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2alpha.DatasetReference) { - return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.DatasetReference)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.DatasetReference) other); } else { super.mergeFrom(other); return this; @@ -435,7 +474,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.DatasetReference other) { - if (other == com.google.cloud.bigquery.migration.v2alpha.DatasetReference.getDefaultInstance()) return this; + if (other + == com.google.cloud.bigquery.migration.v2alpha.DatasetReference.getDefaultInstance()) + return this; if (!other.getDatasetId().isEmpty()) { datasetId_ = other.datasetId_; bitField0_ |= 0x00000001; @@ -472,22 +513,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - datasetId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + datasetId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -497,10 +541,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object datasetId_ = ""; /** + * + * *
      * A unique ID for this dataset, without the project name. The ID
      * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
@@ -508,13 +555,13 @@ public Builder mergeFrom(
      * 
* * string dataset_id = 1; + * * @return The datasetId. */ public java.lang.String getDatasetId() { java.lang.Object ref = datasetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetId_ = s; return s; @@ -523,6 +570,8 @@ public java.lang.String getDatasetId() { } } /** + * + * *
      * A unique ID for this dataset, without the project name. The ID
      * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
@@ -530,15 +579,14 @@ public java.lang.String getDatasetId() {
      * 
* * string dataset_id = 1; + * * @return The bytes for datasetId. */ - public com.google.protobuf.ByteString - getDatasetIdBytes() { + public com.google.protobuf.ByteString getDatasetIdBytes() { java.lang.Object ref = datasetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); datasetId_ = b; return b; } else { @@ -546,6 +594,8 @@ public java.lang.String getDatasetId() { } } /** + * + * *
      * A unique ID for this dataset, without the project name. The ID
      * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
@@ -553,18 +603,22 @@ public java.lang.String getDatasetId() {
      * 
* * string dataset_id = 1; + * * @param value The datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatasetId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } datasetId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * A unique ID for this dataset, without the project name. The ID
      * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
@@ -572,6 +626,7 @@ public Builder setDatasetId(
      * 
* * string dataset_id = 1; + * * @return This builder for chaining. */ public Builder clearDatasetId() { @@ -581,6 +636,8 @@ public Builder clearDatasetId() { return this; } /** + * + * *
      * A unique ID for this dataset, without the project name. The ID
      * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
@@ -588,12 +645,14 @@ public Builder clearDatasetId() {
      * 
* * string dataset_id = 1; + * * @param value The bytes for datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); datasetId_ = value; bitField0_ |= 0x00000001; @@ -603,18 +662,20 @@ public Builder setDatasetIdBytes( private java.lang.Object projectId_ = ""; /** + * + * *
      * The ID of the project containing this dataset.
      * 
* * string project_id = 2; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -623,20 +684,21 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * The ID of the project containing this dataset.
      * 
* * string project_id = 2; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -644,28 +706,35 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * The ID of the project containing this dataset.
      * 
* * string project_id = 2; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } projectId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The ID of the project containing this dataset.
      * 
* * string project_id = 2; + * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -675,26 +744,30 @@ public Builder clearProjectId() { return this; } /** + * + * *
      * The ID of the project containing this dataset.
      * 
* * string project_id = 2; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -704,12 +777,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.DatasetReference) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.DatasetReference) - private static final com.google.cloud.bigquery.migration.v2alpha.DatasetReference DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2alpha.DatasetReference + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.DatasetReference(); } @@ -718,27 +792,27 @@ public static com.google.cloud.bigquery.migration.v2alpha.DatasetReference getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DatasetReference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatasetReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -753,6 +827,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2alpha.DatasetReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DatasetReferenceOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DatasetReferenceOrBuilder.java similarity index 62% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DatasetReferenceOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DatasetReferenceOrBuilder.java index 18692d6..8b7ef59 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DatasetReferenceOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DatasetReferenceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/translation_task.proto package com.google.cloud.bigquery.migration.v2alpha; -public interface DatasetReferenceOrBuilder extends +public interface DatasetReferenceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.DatasetReference) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A unique ID for this dataset, without the project name. The ID
    * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
@@ -15,10 +33,13 @@ public interface DatasetReferenceOrBuilder extends
    * 
* * string dataset_id = 1; + * * @return The datasetId. */ java.lang.String getDatasetId(); /** + * + * *
    * A unique ID for this dataset, without the project name. The ID
    * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
@@ -26,28 +47,33 @@ public interface DatasetReferenceOrBuilder extends
    * 
* * string dataset_id = 1; + * * @return The bytes for datasetId. */ - com.google.protobuf.ByteString - getDatasetIdBytes(); + com.google.protobuf.ByteString getDatasetIdBytes(); /** + * + * *
    * The ID of the project containing this dataset.
    * 
* * string project_id = 2; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * The ID of the project containing this dataset.
    * 
* * string project_id = 2; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DeleteMigrationWorkflowRequest.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DeleteMigrationWorkflowRequest.java similarity index 52% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DeleteMigrationWorkflowRequest.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DeleteMigrationWorkflowRequest.java index 00f8bc1..4ac8733 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DeleteMigrationWorkflowRequest.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DeleteMigrationWorkflowRequest.java @@ -1,63 +1,90 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_service.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * A request to delete a previously created migration workflow.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest} */ -public final class DeleteMigrationWorkflowRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteMigrationWorkflowRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest) DeleteMigrationWorkflowRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteMigrationWorkflowRequest.newBuilder() to construct. - private DeleteMigrationWorkflowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteMigrationWorkflowRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteMigrationWorkflowRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteMigrationWorkflowRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_DeleteMigrationWorkflowRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_DeleteMigrationWorkflowRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_DeleteMigrationWorkflowRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_DeleteMigrationWorkflowRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest.class, com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest.class, + com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest.Builder + .class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The unique identifier for the migration workflow.
    * Example: `projects/123/locations/us/workflows/1234`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,30 +93,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The unique identifier for the migration workflow.
    * Example: `projects/123/locations/us/workflows/1234`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,6 +127,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +139,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -134,15 +163,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest)) { + if (!(obj + instanceof com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest other = (com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest) obj; + com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest other = + (com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,130 +191,145 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A request to delete a previously created migration workflow.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest) com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_DeleteMigrationWorkflowRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_DeleteMigrationWorkflowRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_DeleteMigrationWorkflowRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_DeleteMigrationWorkflowRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest.class, com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest.class, + com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest.Builder + .class); } - // Construct using com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -294,19 +339,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_DeleteMigrationWorkflowRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_DeleteMigrationWorkflowRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest.getDefaultInstance(); + public com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest build() { - com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest result = buildPartial(); + com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -314,14 +362,19 @@ public com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowReques } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest buildPartial() { - com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest result = new com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest + buildPartial() { + com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest result = + new com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -332,46 +385,52 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.DeleteMig public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest) { - return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest)other); + if (other + instanceof com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest) { + return mergeFrom( + (com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest other) { - if (other == com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest other) { + if (other + == com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -403,17 +462,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,23 +484,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -448,21 +514,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -470,30 +539,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -503,27 +583,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -533,41 +619,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest) - private static final com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest(); } - public static com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteMigrationWorkflowRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMigrationWorkflowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -579,9 +668,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DeleteMigrationWorkflowRequestOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DeleteMigrationWorkflowRequestOrBuilder.java new file mode 100644 index 0000000..2e7153d --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/DeleteMigrationWorkflowRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2alpha/migration_service.proto + +package com.google.cloud.bigquery.migration.v2alpha; + +public interface DeleteMigrationWorkflowRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.DeleteMigrationWorkflowRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The unique identifier for the migration workflow.
+   * Example: `projects/123/locations/us/workflows/1234`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The unique identifier for the migration workflow.
+   * Example: `projects/123/locations/us/workflows/1234`
+   * 
+ * + * + * 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/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorDetail.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorDetail.java similarity index 65% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorDetail.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorDetail.java index 56394aa..92ca0fb 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorDetail.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorDetail.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_error_details.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * Provides details for errors, e.g. issues that where encountered when
  * processing a subtask.
@@ -11,51 +28,57 @@
  *
  * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.ErrorDetail}
  */
-public final class ErrorDetail extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ErrorDetail extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.ErrorDetail)
     ErrorDetailOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ErrorDetail.newBuilder() to construct.
   private ErrorDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private ErrorDetail() {
-  }
+
+  private ErrorDetail() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ErrorDetail();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2alpha_ErrorDetail_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto
+        .internal_static_google_cloud_bigquery_migration_v2alpha_ErrorDetail_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2alpha_ErrorDetail_fieldAccessorTable
+    return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto
+        .internal_static_google_cloud_bigquery_migration_v2alpha_ErrorDetail_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.class, com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.Builder.class);
+            com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.class,
+            com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.Builder.class);
   }
 
   public static final int LOCATION_FIELD_NUMBER = 1;
   private com.google.cloud.bigquery.migration.v2alpha.ErrorLocation location_;
   /**
+   *
+   *
    * 
    * Optional. The exact location within the resource (if applicable).
    * 
* - * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the location field is set. */ @java.lang.Override @@ -63,37 +86,53 @@ public boolean hasLocation() { return location_ != null; } /** + * + * *
    * Optional. The exact location within the resource (if applicable).
    * 
* - * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The location. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.ErrorLocation getLocation() { - return location_ == null ? com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.getDefaultInstance() : location_; + return location_ == null + ? com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.getDefaultInstance() + : location_; } /** + * + * *
    * Optional. The exact location within the resource (if applicable).
    * 
* - * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.ErrorLocationOrBuilder getLocationOrBuilder() { - return location_ == null ? com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.getDefaultInstance() : location_; + return location_ == null + ? com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.getDefaultInstance() + : location_; } public static final int ERROR_INFO_FIELD_NUMBER = 2; private com.google.rpc.ErrorInfo errorInfo_; /** + * + * *
    * Required. Describes the cause of the error with structured detail.
    * 
* * .google.rpc.ErrorInfo error_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the errorInfo field is set. */ @java.lang.Override @@ -101,11 +140,14 @@ public boolean hasErrorInfo() { return errorInfo_ != null; } /** + * + * *
    * Required. Describes the cause of the error with structured detail.
    * 
* * .google.rpc.ErrorInfo error_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The errorInfo. */ @java.lang.Override @@ -113,6 +155,8 @@ public com.google.rpc.ErrorInfo getErrorInfo() { return errorInfo_ == null ? com.google.rpc.ErrorInfo.getDefaultInstance() : errorInfo_; } /** + * + * *
    * Required. Describes the cause of the error with structured detail.
    * 
@@ -125,6 +169,7 @@ public com.google.rpc.ErrorInfoOrBuilder getErrorInfoOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -136,8 +181,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 (location_ != null) { output.writeMessage(1, getLocation()); } @@ -154,12 +198,10 @@ public int getSerializedSize() { size = 0; if (location_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getLocation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLocation()); } if (errorInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getErrorInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getErrorInfo()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -169,22 +211,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.ErrorDetail)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.ErrorDetail other = (com.google.cloud.bigquery.migration.v2alpha.ErrorDetail) obj; + com.google.cloud.bigquery.migration.v2alpha.ErrorDetail other = + (com.google.cloud.bigquery.migration.v2alpha.ErrorDetail) obj; if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { - if (!getLocation() - .equals(other.getLocation())) return false; + if (!getLocation().equals(other.getLocation())) return false; } if (hasErrorInfo() != other.hasErrorInfo()) return false; if (hasErrorInfo()) { - if (!getErrorInfo() - .equals(other.getErrorInfo())) return false; + if (!getErrorInfo().equals(other.getErrorInfo())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -211,96 +252,104 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.ErrorDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.ErrorDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.ErrorDetail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.ErrorDetail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.ErrorDetail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.ErrorDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.ErrorDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.ErrorDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.ErrorDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.ErrorDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.ErrorDetail parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.ErrorDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.ErrorDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.ErrorDetail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.ErrorDetail prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.ErrorDetail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Provides details for errors, e.g. issues that where encountered when
    * processing a subtask.
@@ -308,33 +357,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.ErrorDetail}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.ErrorDetail)
       com.google.cloud.bigquery.migration.v2alpha.ErrorDetailOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2alpha_ErrorDetail_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto
+          .internal_static_google_cloud_bigquery_migration_v2alpha_ErrorDetail_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2alpha_ErrorDetail_fieldAccessorTable
+      return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto
+          .internal_static_google_cloud_bigquery_migration_v2alpha_ErrorDetail_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.class, com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.Builder.class);
+              com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.class,
+              com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -353,9 +401,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2alpha_ErrorDetail_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto
+          .internal_static_google_cloud_bigquery_migration_v2alpha_ErrorDetail_descriptor;
     }
 
     @java.lang.Override
@@ -374,8 +422,11 @@ public com.google.cloud.bigquery.migration.v2alpha.ErrorDetail build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.migration.v2alpha.ErrorDetail buildPartial() {
-      com.google.cloud.bigquery.migration.v2alpha.ErrorDetail result = new com.google.cloud.bigquery.migration.v2alpha.ErrorDetail(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.migration.v2alpha.ErrorDetail result =
+          new com.google.cloud.bigquery.migration.v2alpha.ErrorDetail(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -383,14 +434,10 @@ public com.google.cloud.bigquery.migration.v2alpha.ErrorDetail buildPartial() {
     private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.ErrorDetail result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.location_ = locationBuilder_ == null
-            ? location_
-            : locationBuilder_.build();
+        result.location_ = locationBuilder_ == null ? location_ : locationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.errorInfo_ = errorInfoBuilder_ == null
-            ? errorInfo_
-            : errorInfoBuilder_.build();
+        result.errorInfo_ = errorInfoBuilder_ == null ? errorInfo_ : errorInfoBuilder_.build();
       }
     }
 
@@ -398,38 +445,39 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.ErrorDeta
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.migration.v2alpha.ErrorDetail) {
-        return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.ErrorDetail)other);
+        return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.ErrorDetail) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -437,7 +485,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.ErrorDetail other) {
-      if (other == com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.getDefaultInstance())
+        return this;
       if (other.hasLocation()) {
         mergeLocation(other.getLocation());
       }
@@ -470,26 +519,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getLocationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getErrorInfoFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getLocationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getErrorInfoFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -499,43 +547,63 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.bigquery.migration.v2alpha.ErrorLocation location_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.migration.v2alpha.ErrorLocation, com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.Builder, com.google.cloud.bigquery.migration.v2alpha.ErrorLocationOrBuilder> locationBuilder_;
+            com.google.cloud.bigquery.migration.v2alpha.ErrorLocation,
+            com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.Builder,
+            com.google.cloud.bigquery.migration.v2alpha.ErrorLocationOrBuilder>
+        locationBuilder_;
     /**
+     *
+     *
      * 
      * Optional. The exact location within the resource (if applicable).
      * 
* - * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the location field is set. */ public boolean hasLocation() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. The exact location within the resource (if applicable).
      * 
* - * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The location. */ public com.google.cloud.bigquery.migration.v2alpha.ErrorLocation getLocation() { if (locationBuilder_ == null) { - return location_ == null ? com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.getDefaultInstance() : location_; + return location_ == null + ? com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.getDefaultInstance() + : location_; } else { return locationBuilder_.getMessage(); } } /** + * + * *
      * Optional. The exact location within the resource (if applicable).
      * 
* - * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setLocation(com.google.cloud.bigquery.migration.v2alpha.ErrorLocation value) { if (locationBuilder_ == null) { @@ -551,11 +619,15 @@ public Builder setLocation(com.google.cloud.bigquery.migration.v2alpha.ErrorLoca return this; } /** + * + * *
      * Optional. The exact location within the resource (if applicable).
      * 
* - * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setLocation( com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.Builder builderForValue) { @@ -569,17 +641,22 @@ public Builder setLocation( return this; } /** + * + * *
      * Optional. The exact location within the resource (if applicable).
      * 
* - * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeLocation(com.google.cloud.bigquery.migration.v2alpha.ErrorLocation value) { if (locationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - location_ != null && - location_ != com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && location_ != null + && location_ + != com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; @@ -592,11 +669,15 @@ public Builder mergeLocation(com.google.cloud.bigquery.migration.v2alpha.ErrorLo return this; } /** + * + * *
      * Optional. The exact location within the resource (if applicable).
      * 
* - * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000001); @@ -609,11 +690,15 @@ public Builder clearLocation() { return this; } /** + * + * *
      * Optional. The exact location within the resource (if applicable).
      * 
* - * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.Builder getLocationBuilder() { bitField0_ |= 0x00000001; @@ -621,36 +706,49 @@ public com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.Builder getLoca return getLocationFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The exact location within the resource (if applicable).
      * 
* - * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.bigquery.migration.v2alpha.ErrorLocationOrBuilder getLocationOrBuilder() { + public com.google.cloud.bigquery.migration.v2alpha.ErrorLocationOrBuilder + getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { - return location_ == null ? - com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.getDefaultInstance() : location_; + return location_ == null + ? com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.getDefaultInstance() + : location_; } } /** + * + * *
      * Optional. The exact location within the resource (if applicable).
      * 
* - * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.ErrorLocation, com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.Builder, com.google.cloud.bigquery.migration.v2alpha.ErrorLocationOrBuilder> + com.google.cloud.bigquery.migration.v2alpha.ErrorLocation, + com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.Builder, + com.google.cloud.bigquery.migration.v2alpha.ErrorLocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { - locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.ErrorLocation, com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.Builder, com.google.cloud.bigquery.migration.v2alpha.ErrorLocationOrBuilder>( - getLocation(), - getParentForChildren(), - isClean()); + locationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2alpha.ErrorLocation, + com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.Builder, + com.google.cloud.bigquery.migration.v2alpha.ErrorLocationOrBuilder>( + getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; @@ -658,24 +756,33 @@ public com.google.cloud.bigquery.migration.v2alpha.ErrorLocationOrBuilder getLoc private com.google.rpc.ErrorInfo errorInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.ErrorInfo, com.google.rpc.ErrorInfo.Builder, com.google.rpc.ErrorInfoOrBuilder> errorInfoBuilder_; + com.google.rpc.ErrorInfo, + com.google.rpc.ErrorInfo.Builder, + com.google.rpc.ErrorInfoOrBuilder> + errorInfoBuilder_; /** + * + * *
      * Required. Describes the cause of the error with structured detail.
      * 
* * .google.rpc.ErrorInfo error_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the errorInfo field is set. */ public boolean hasErrorInfo() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Describes the cause of the error with structured detail.
      * 
* * .google.rpc.ErrorInfo error_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The errorInfo. */ public com.google.rpc.ErrorInfo getErrorInfo() { @@ -686,6 +793,8 @@ public com.google.rpc.ErrorInfo getErrorInfo() { } } /** + * + * *
      * Required. Describes the cause of the error with structured detail.
      * 
@@ -706,14 +815,15 @@ public Builder setErrorInfo(com.google.rpc.ErrorInfo value) { return this; } /** + * + * *
      * Required. Describes the cause of the error with structured detail.
      * 
* * .google.rpc.ErrorInfo error_info = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setErrorInfo( - com.google.rpc.ErrorInfo.Builder builderForValue) { + public Builder setErrorInfo(com.google.rpc.ErrorInfo.Builder builderForValue) { if (errorInfoBuilder_ == null) { errorInfo_ = builderForValue.build(); } else { @@ -724,6 +834,8 @@ public Builder setErrorInfo( return this; } /** + * + * *
      * Required. Describes the cause of the error with structured detail.
      * 
@@ -732,9 +844,9 @@ public Builder setErrorInfo( */ public Builder mergeErrorInfo(com.google.rpc.ErrorInfo value) { if (errorInfoBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - errorInfo_ != null && - errorInfo_ != com.google.rpc.ErrorInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && errorInfo_ != null + && errorInfo_ != com.google.rpc.ErrorInfo.getDefaultInstance()) { getErrorInfoBuilder().mergeFrom(value); } else { errorInfo_ = value; @@ -747,6 +859,8 @@ public Builder mergeErrorInfo(com.google.rpc.ErrorInfo value) { return this; } /** + * + * *
      * Required. Describes the cause of the error with structured detail.
      * 
@@ -764,6 +878,8 @@ public Builder clearErrorInfo() { return this; } /** + * + * *
      * Required. Describes the cause of the error with structured detail.
      * 
@@ -776,6 +892,8 @@ public com.google.rpc.ErrorInfo.Builder getErrorInfoBuilder() { return getErrorInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Describes the cause of the error with structured detail.
      * 
@@ -786,11 +904,12 @@ public com.google.rpc.ErrorInfoOrBuilder getErrorInfoOrBuilder() { if (errorInfoBuilder_ != null) { return errorInfoBuilder_.getMessageOrBuilder(); } else { - return errorInfo_ == null ? - com.google.rpc.ErrorInfo.getDefaultInstance() : errorInfo_; + return errorInfo_ == null ? com.google.rpc.ErrorInfo.getDefaultInstance() : errorInfo_; } } /** + * + * *
      * Required. Describes the cause of the error with structured detail.
      * 
@@ -798,21 +917,24 @@ public com.google.rpc.ErrorInfoOrBuilder getErrorInfoOrBuilder() { * .google.rpc.ErrorInfo error_info = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.ErrorInfo, com.google.rpc.ErrorInfo.Builder, com.google.rpc.ErrorInfoOrBuilder> + com.google.rpc.ErrorInfo, + com.google.rpc.ErrorInfo.Builder, + com.google.rpc.ErrorInfoOrBuilder> getErrorInfoFieldBuilder() { if (errorInfoBuilder_ == null) { - errorInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.ErrorInfo, com.google.rpc.ErrorInfo.Builder, com.google.rpc.ErrorInfoOrBuilder>( - getErrorInfo(), - getParentForChildren(), - isClean()); + errorInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.ErrorInfo, + com.google.rpc.ErrorInfo.Builder, + com.google.rpc.ErrorInfoOrBuilder>( + getErrorInfo(), getParentForChildren(), isClean()); errorInfo_ = null; } return errorInfoBuilder_; } + @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); } @@ -822,12 +944,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.ErrorDetail) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.ErrorDetail) private static final com.google.cloud.bigquery.migration.v2alpha.ErrorDetail DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.ErrorDetail(); } @@ -836,27 +958,27 @@ public static com.google.cloud.bigquery.migration.v2alpha.ErrorDetail getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ErrorDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -871,6 +993,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2alpha.ErrorDetail getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorDetailOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorDetailOrBuilder.java similarity index 60% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorDetailOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorDetailOrBuilder.java index 0a04e4f..1173012 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorDetailOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorDetailOrBuilder.java @@ -1,58 +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/bigquery/migration/v2alpha/migration_error_details.proto package com.google.cloud.bigquery.migration.v2alpha; -public interface ErrorDetailOrBuilder extends +public interface ErrorDetailOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.ErrorDetail) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The exact location within the resource (if applicable).
    * 
* - * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the location field is set. */ boolean hasLocation(); /** + * + * *
    * Optional. The exact location within the resource (if applicable).
    * 
* - * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The location. */ com.google.cloud.bigquery.migration.v2alpha.ErrorLocation getLocation(); /** + * + * *
    * Optional. The exact location within the resource (if applicable).
    * 
* - * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.migration.v2alpha.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.bigquery.migration.v2alpha.ErrorLocationOrBuilder getLocationOrBuilder(); /** + * + * *
    * Required. Describes the cause of the error with structured detail.
    * 
* * .google.rpc.ErrorInfo error_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the errorInfo field is set. */ boolean hasErrorInfo(); /** + * + * *
    * Required. Describes the cause of the error with structured detail.
    * 
* * .google.rpc.ErrorInfo error_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The errorInfo. */ com.google.rpc.ErrorInfo getErrorInfo(); /** + * + * *
    * Required. Describes the cause of the error with structured detail.
    * 
diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorLocation.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorLocation.java similarity index 68% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorLocation.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorLocation.java index e5fbc5d..785020e 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorLocation.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorLocation.java @@ -1,61 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_error_details.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * Holds information about where the error is located.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.ErrorLocation} */ -public final class ErrorLocation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ErrorLocation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.ErrorLocation) ErrorLocationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ErrorLocation.newBuilder() to construct. private ErrorLocation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ErrorLocation() { - } + + private ErrorLocation() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ErrorLocation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2alpha_ErrorLocation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ErrorLocation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2alpha_ErrorLocation_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ErrorLocation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.class, com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.class, + com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.Builder.class); } public static final int LINE_FIELD_NUMBER = 1; private int line_ = 0; /** + * + * *
    * Optional. If applicable, denotes the line where the error occurred. A zero value
    * means that there is no line information.
    * 
* * int32 line = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The line. */ @java.lang.Override @@ -66,12 +87,15 @@ public int getLine() { public static final int COLUMN_FIELD_NUMBER = 2; private int column_ = 0; /** + * + * *
    * Optional. If applicable, denotes the column where the error occurred. A zero value
    * means that there is no columns information.
    * 
* * int32 column = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The column. */ @java.lang.Override @@ -80,6 +104,7 @@ public int getColumn() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -91,8 +116,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 (line_ != 0) { output.writeInt32(1, line_); } @@ -109,12 +133,10 @@ public int getSerializedSize() { size = 0; if (line_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, line_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, line_); } if (column_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, column_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, column_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -124,17 +146,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.ErrorLocation)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.ErrorLocation other = (com.google.cloud.bigquery.migration.v2alpha.ErrorLocation) obj; + com.google.cloud.bigquery.migration.v2alpha.ErrorLocation other = + (com.google.cloud.bigquery.migration.v2alpha.ErrorLocation) obj; - if (getLine() - != other.getLine()) return false; - if (getColumn() - != other.getColumn()) return false; + if (getLine() != other.getLine()) return false; + if (getColumn() != other.getColumn()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -156,129 +177,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.ErrorLocation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.ErrorLocation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.ErrorLocation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.ErrorLocation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.ErrorLocation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.ErrorLocation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.ErrorLocation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.ErrorLocation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.ErrorLocation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.ErrorLocation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.ErrorLocation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.ErrorLocation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.ErrorLocation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.ErrorLocation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.ErrorLocation prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.ErrorLocation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Holds information about where the error is located.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.ErrorLocation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.ErrorLocation) com.google.cloud.bigquery.migration.v2alpha.ErrorLocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2alpha_ErrorLocation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ErrorLocation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2alpha_ErrorLocation_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ErrorLocation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.class, com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.class, + com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,9 +317,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2alpha_ErrorLocation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ErrorLocation_descriptor; } @java.lang.Override @@ -310,8 +338,11 @@ public com.google.cloud.bigquery.migration.v2alpha.ErrorLocation build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.ErrorLocation buildPartial() { - com.google.cloud.bigquery.migration.v2alpha.ErrorLocation result = new com.google.cloud.bigquery.migration.v2alpha.ErrorLocation(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.migration.v2alpha.ErrorLocation result = + new com.google.cloud.bigquery.migration.v2alpha.ErrorLocation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +361,39 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.ErrorLoca public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2alpha.ErrorLocation) { - return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.ErrorLocation)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.ErrorLocation) other); } else { super.mergeFrom(other); return this; @@ -369,7 +401,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.ErrorLocation other) { - if (other == com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.migration.v2alpha.ErrorLocation.getDefaultInstance()) + return this; if (other.getLine() != 0) { setLine(other.getLine()); } @@ -402,22 +435,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - line_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - column_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + line_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + column_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -427,16 +463,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private int line_ ; + private int line_; /** + * + * *
      * Optional. If applicable, denotes the line where the error occurred. A zero value
      * means that there is no line information.
      * 
* * int32 line = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The line. */ @java.lang.Override @@ -444,29 +484,35 @@ public int getLine() { return line_; } /** + * + * *
      * Optional. If applicable, denotes the line where the error occurred. A zero value
      * means that there is no line information.
      * 
* * int32 line = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The line to set. * @return This builder for chaining. */ public Builder setLine(int value) { - + line_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. If applicable, denotes the line where the error occurred. A zero value
      * means that there is no line information.
      * 
* * int32 line = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearLine() { @@ -476,14 +522,17 @@ public Builder clearLine() { return this; } - private int column_ ; + private int column_; /** + * + * *
      * Optional. If applicable, denotes the column where the error occurred. A zero value
      * means that there is no columns information.
      * 
* * int32 column = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The column. */ @java.lang.Override @@ -491,29 +540,35 @@ public int getColumn() { return column_; } /** + * + * *
      * Optional. If applicable, denotes the column where the error occurred. A zero value
      * means that there is no columns information.
      * 
* * int32 column = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The column to set. * @return This builder for chaining. */ public Builder setColumn(int value) { - + column_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. If applicable, denotes the column where the error occurred. A zero value
      * means that there is no columns information.
      * 
* * int32 column = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearColumn() { @@ -522,9 +577,9 @@ public Builder clearColumn() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -534,12 +589,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.ErrorLocation) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.ErrorLocation) private static final com.google.cloud.bigquery.migration.v2alpha.ErrorLocation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.ErrorLocation(); } @@ -548,27 +603,27 @@ public static com.google.cloud.bigquery.migration.v2alpha.ErrorLocation getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ErrorLocation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorLocation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -583,6 +638,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2alpha.ErrorLocation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorLocationOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorLocationOrBuilder.java similarity index 58% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorLocationOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorLocationOrBuilder.java index 67746da..ed2cd6a 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorLocationOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ErrorLocationOrBuilder.java @@ -1,30 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_error_details.proto package com.google.cloud.bigquery.migration.v2alpha; -public interface ErrorLocationOrBuilder extends +public interface ErrorLocationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.ErrorLocation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. If applicable, denotes the line where the error occurred. A zero value
    * means that there is no line information.
    * 
* * int32 line = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The line. */ int getLine(); /** + * + * *
    * Optional. If applicable, denotes the column where the error occurred. A zero value
    * means that there is no columns information.
    * 
* * int32 column = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The column. */ int getColumn(); diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/Filter.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/Filter.java similarity index 68% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/Filter.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/Filter.java index f8ffc63..2380a50 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/Filter.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/Filter.java @@ -1,85 +1,113 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/translation_task.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * The filter applied to fields of translation details.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.Filter} */ -public final class Filter extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Filter extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.Filter) FilterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Filter.newBuilder() to construct. private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Filter() { inputFileExclusionPrefixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Filter(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_Filter_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_Filter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_Filter_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.Filter.class, com.google.cloud.bigquery.migration.v2alpha.Filter.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.Filter.class, + com.google.cloud.bigquery.migration.v2alpha.Filter.Builder.class); } public static final int INPUT_FILE_EXCLUSION_PREFIXES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList inputFileExclusionPrefixes_; /** + * + * *
    * The list of prefixes used to exclude processing for input files.
    * 
* * repeated string input_file_exclusion_prefixes = 1; + * * @return A list containing the inputFileExclusionPrefixes. */ - public com.google.protobuf.ProtocolStringList - getInputFileExclusionPrefixesList() { + public com.google.protobuf.ProtocolStringList getInputFileExclusionPrefixesList() { return inputFileExclusionPrefixes_; } /** + * + * *
    * The list of prefixes used to exclude processing for input files.
    * 
* * repeated string input_file_exclusion_prefixes = 1; + * * @return The count of inputFileExclusionPrefixes. */ public int getInputFileExclusionPrefixesCount() { return inputFileExclusionPrefixes_.size(); } /** + * + * *
    * The list of prefixes used to exclude processing for input files.
    * 
* * repeated string input_file_exclusion_prefixes = 1; + * * @param index The index of the element to return. * @return The inputFileExclusionPrefixes at the given index. */ @@ -87,20 +115,23 @@ public java.lang.String getInputFileExclusionPrefixes(int index) { return inputFileExclusionPrefixes_.get(index); } /** + * + * *
    * The list of prefixes used to exclude processing for input files.
    * 
* * repeated string input_file_exclusion_prefixes = 1; + * * @param index The index of the value to return. * @return The bytes of the inputFileExclusionPrefixes at the given index. */ - public com.google.protobuf.ByteString - getInputFileExclusionPrefixesBytes(int index) { + public com.google.protobuf.ByteString getInputFileExclusionPrefixesBytes(int index) { return inputFileExclusionPrefixes_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -112,10 +143,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < inputFileExclusionPrefixes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputFileExclusionPrefixes_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 1, inputFileExclusionPrefixes_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -142,15 +173,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.Filter)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.Filter other = (com.google.cloud.bigquery.migration.v2alpha.Filter) obj; + com.google.cloud.bigquery.migration.v2alpha.Filter other = + (com.google.cloud.bigquery.migration.v2alpha.Filter) obj; - if (!getInputFileExclusionPrefixesList() - .equals(other.getInputFileExclusionPrefixesList())) return false; + if (!getInputFileExclusionPrefixesList().equals(other.getInputFileExclusionPrefixesList())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -172,129 +204,135 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.Filter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.Filter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.Filter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.Filter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.Filter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.Filter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.Filter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.Filter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.Filter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.Filter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.Filter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.Filter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.Filter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.Filter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.Filter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 filter applied to fields of translation details.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.Filter} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.Filter) com.google.cloud.bigquery.migration.v2alpha.FilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_Filter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_Filter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_Filter_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.Filter.class, com.google.cloud.bigquery.migration.v2alpha.Filter.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.Filter.class, + com.google.cloud.bigquery.migration.v2alpha.Filter.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2alpha.Filter.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -305,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_Filter_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_Filter_descriptor; } @java.lang.Override @@ -326,14 +364,18 @@ public com.google.cloud.bigquery.migration.v2alpha.Filter build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.Filter buildPartial() { - com.google.cloud.bigquery.migration.v2alpha.Filter result = new com.google.cloud.bigquery.migration.v2alpha.Filter(this); + com.google.cloud.bigquery.migration.v2alpha.Filter result = + new com.google.cloud.bigquery.migration.v2alpha.Filter(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.bigquery.migration.v2alpha.Filter result) { + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.migration.v2alpha.Filter result) { if (((bitField0_ & 0x00000001) != 0)) { inputFileExclusionPrefixes_ = inputFileExclusionPrefixes_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -349,38 +391,39 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.Filter re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2alpha.Filter) { - return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.Filter)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.Filter) other); } else { super.mergeFrom(other); return this; @@ -388,7 +431,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.Filter other) { - if (other == com.google.cloud.bigquery.migration.v2alpha.Filter.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.migration.v2alpha.Filter.getDefaultInstance()) + return this; if (!other.inputFileExclusionPrefixes_.isEmpty()) { if (inputFileExclusionPrefixes_.isEmpty()) { inputFileExclusionPrefixes_ = other.inputFileExclusionPrefixes_; @@ -425,18 +469,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureInputFileExclusionPrefixesIsMutable(); - inputFileExclusionPrefixes_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInputFileExclusionPrefixesIsMutable(); + inputFileExclusionPrefixes_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -446,44 +492,56 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList inputFileExclusionPrefixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList inputFileExclusionPrefixes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureInputFileExclusionPrefixesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - inputFileExclusionPrefixes_ = new com.google.protobuf.LazyStringArrayList(inputFileExclusionPrefixes_); + inputFileExclusionPrefixes_ = + new com.google.protobuf.LazyStringArrayList(inputFileExclusionPrefixes_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * The list of prefixes used to exclude processing for input files.
      * 
* * repeated string input_file_exclusion_prefixes = 1; + * * @return A list containing the inputFileExclusionPrefixes. */ - public com.google.protobuf.ProtocolStringList - getInputFileExclusionPrefixesList() { + public com.google.protobuf.ProtocolStringList getInputFileExclusionPrefixesList() { return inputFileExclusionPrefixes_.getUnmodifiableView(); } /** + * + * *
      * The list of prefixes used to exclude processing for input files.
      * 
* * repeated string input_file_exclusion_prefixes = 1; + * * @return The count of inputFileExclusionPrefixes. */ public int getInputFileExclusionPrefixesCount() { return inputFileExclusionPrefixes_.size(); } /** + * + * *
      * The list of prefixes used to exclude processing for input files.
      * 
* * repeated string input_file_exclusion_prefixes = 1; + * * @param index The index of the element to return. * @return The inputFileExclusionPrefixes at the given index. */ @@ -491,76 +549,90 @@ public java.lang.String getInputFileExclusionPrefixes(int index) { return inputFileExclusionPrefixes_.get(index); } /** + * + * *
      * The list of prefixes used to exclude processing for input files.
      * 
* * repeated string input_file_exclusion_prefixes = 1; + * * @param index The index of the value to return. * @return The bytes of the inputFileExclusionPrefixes at the given index. */ - public com.google.protobuf.ByteString - getInputFileExclusionPrefixesBytes(int index) { + public com.google.protobuf.ByteString getInputFileExclusionPrefixesBytes(int index) { return inputFileExclusionPrefixes_.getByteString(index); } /** + * + * *
      * The list of prefixes used to exclude processing for input files.
      * 
* * repeated string input_file_exclusion_prefixes = 1; + * * @param index The index to set the value at. * @param value The inputFileExclusionPrefixes to set. * @return This builder for chaining. */ - public Builder setInputFileExclusionPrefixes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInputFileExclusionPrefixes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureInputFileExclusionPrefixesIsMutable(); inputFileExclusionPrefixes_.set(index, value); onChanged(); return this; } /** + * + * *
      * The list of prefixes used to exclude processing for input files.
      * 
* * repeated string input_file_exclusion_prefixes = 1; + * * @param value The inputFileExclusionPrefixes to add. * @return This builder for chaining. */ - public Builder addInputFileExclusionPrefixes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addInputFileExclusionPrefixes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureInputFileExclusionPrefixesIsMutable(); inputFileExclusionPrefixes_.add(value); onChanged(); return this; } /** + * + * *
      * The list of prefixes used to exclude processing for input files.
      * 
* * repeated string input_file_exclusion_prefixes = 1; + * * @param values The inputFileExclusionPrefixes to add. * @return This builder for chaining. */ - public Builder addAllInputFileExclusionPrefixes( - java.lang.Iterable values) { + public Builder addAllInputFileExclusionPrefixes(java.lang.Iterable values) { ensureInputFileExclusionPrefixesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, inputFileExclusionPrefixes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputFileExclusionPrefixes_); onChanged(); return this; } /** + * + * *
      * The list of prefixes used to exclude processing for input files.
      * 
* * repeated string input_file_exclusion_prefixes = 1; + * * @return This builder for chaining. */ public Builder clearInputFileExclusionPrefixes() { @@ -570,26 +642,30 @@ public Builder clearInputFileExclusionPrefixes() { return this; } /** + * + * *
      * The list of prefixes used to exclude processing for input files.
      * 
* * repeated string input_file_exclusion_prefixes = 1; + * * @param value The bytes of the inputFileExclusionPrefixes to add. * @return This builder for chaining. */ - public Builder addInputFileExclusionPrefixesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addInputFileExclusionPrefixesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureInputFileExclusionPrefixesIsMutable(); inputFileExclusionPrefixes_.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); } @@ -599,12 +675,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.Filter) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.Filter) private static final com.google.cloud.bigquery.migration.v2alpha.Filter DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.Filter(); } @@ -613,27 +689,27 @@ public static com.google.cloud.bigquery.migration.v2alpha.Filter getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Filter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Filter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -648,6 +724,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2alpha.Filter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/FilterOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/FilterOrBuilder.java similarity index 64% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/FilterOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/FilterOrBuilder.java index e541138..d0448af 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/FilterOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/FilterOrBuilder.java @@ -1,50 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/translation_task.proto package com.google.cloud.bigquery.migration.v2alpha; -public interface FilterOrBuilder extends +public interface FilterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.Filter) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of prefixes used to exclude processing for input files.
    * 
* * repeated string input_file_exclusion_prefixes = 1; + * * @return A list containing the inputFileExclusionPrefixes. */ - java.util.List - getInputFileExclusionPrefixesList(); + java.util.List getInputFileExclusionPrefixesList(); /** + * + * *
    * The list of prefixes used to exclude processing for input files.
    * 
* * repeated string input_file_exclusion_prefixes = 1; + * * @return The count of inputFileExclusionPrefixes. */ int getInputFileExclusionPrefixesCount(); /** + * + * *
    * The list of prefixes used to exclude processing for input files.
    * 
* * repeated string input_file_exclusion_prefixes = 1; + * * @param index The index of the element to return. * @return The inputFileExclusionPrefixes at the given index. */ java.lang.String getInputFileExclusionPrefixes(int index); /** + * + * *
    * The list of prefixes used to exclude processing for input files.
    * 
* * repeated string input_file_exclusion_prefixes = 1; + * * @param index The index of the value to return. * @return The bytes of the inputFileExclusionPrefixes at the given index. */ - com.google.protobuf.ByteString - getInputFileExclusionPrefixesBytes(int index); + com.google.protobuf.ByteString getInputFileExclusionPrefixesBytes(int index); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationSubtaskRequest.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationSubtaskRequest.java similarity index 62% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationSubtaskRequest.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationSubtaskRequest.java index 69adf53..00b9283 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationSubtaskRequest.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationSubtaskRequest.java @@ -1,63 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_service.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * A request to get a previously created migration subtasks.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest} */ -public final class GetMigrationSubtaskRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetMigrationSubtaskRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest) GetMigrationSubtaskRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetMigrationSubtaskRequest.newBuilder() to construct. private GetMigrationSubtaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetMigrationSubtaskRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetMigrationSubtaskRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationSubtaskRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationSubtaskRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationSubtaskRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationSubtaskRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest.class, com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest.class, + com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The unique identifier for the migration subtask.
    * Example: `projects/123/locations/us/workflows/1234/subtasks/543`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,30 +91,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The unique identifier for the migration subtask.
    * Example: `projects/123/locations/us/workflows/1234/subtasks/543`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -100,11 +127,15 @@ public java.lang.String getName() { public static final int READ_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask readMask_; /** + * + * *
    * Optional. The list of fields to be retrieved.
    * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readMask field is set. */ @java.lang.Override @@ -112,11 +143,15 @@ public boolean hasReadMask() { return readMask_ != null; } /** + * + * *
    * Optional. The list of fields to be retrieved.
    * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readMask. */ @java.lang.Override @@ -124,11 +159,14 @@ public com.google.protobuf.FieldMask getReadMask() { return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } /** + * + * *
    * Optional. The list of fields to be retrieved.
    * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { @@ -136,6 +174,7 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,8 +186,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -168,8 +206,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (readMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReadMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -179,19 +216,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest other = (com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest) obj; + com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest other = + (com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasReadMask() != other.hasReadMask()) return false; if (hasReadMask()) { - if (!getReadMask() - .equals(other.getReadMask())) return false; + if (!getReadMask().equals(other.getReadMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -216,129 +252,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A request to get a previously created migration subtasks.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest) com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationSubtaskRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationSubtaskRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationSubtaskRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationSubtaskRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest.class, com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest.class, + com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -353,19 +398,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationSubtaskRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationSubtaskRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest.getDefaultInstance(); + public com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest build() { - com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest result = buildPartial(); + com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -374,21 +422,23 @@ public com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest bu @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest buildPartial() { - com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest result = new com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest result = + new com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.readMask_ = readMaskBuilder_ == null - ? readMask_ - : readMaskBuilder_.build(); + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); } } @@ -396,46 +446,51 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.GetMigrat public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest) { - return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest)other); + return mergeFrom( + (com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest other) { - if (other == com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest other) { + if (other + == com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -470,24 +525,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getReadMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -497,23 +553,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The unique identifier for the migration subtask.
      * Example: `projects/123/locations/us/workflows/1234/subtasks/543`
      * 
* - * string 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; @@ -522,21 +583,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The unique identifier for the migration subtask.
      * Example: `projects/123/locations/us/workflows/1234/subtasks/543`
      * 
* - * string 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 { @@ -544,30 +608,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The unique identifier for the migration subtask.
      * Example: `projects/123/locations/us/workflows/1234/subtasks/543`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The unique identifier for the migration subtask.
      * Example: `projects/123/locations/us/workflows/1234/subtasks/543`
      * 
* - * string 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() { @@ -577,18 +652,24 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The unique identifier for the migration subtask.
      * Example: `projects/123/locations/us/workflows/1234/subtasks/543`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -598,24 +679,35 @@ public Builder setNameBytes( private com.google.protobuf.FieldMask readMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> readMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + readMaskBuilder_; /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readMask field is set. */ public boolean hasReadMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -626,11 +718,14 @@ public com.google.protobuf.FieldMask getReadMask() { } } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { @@ -646,14 +741,16 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setReadMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); } else { @@ -664,17 +761,20 @@ public Builder setReadMask( return this; } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - readMask_ != null && - readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; @@ -687,11 +787,14 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearReadMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -704,11 +807,14 @@ public Builder clearReadMask() { return this; } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { bitField0_ |= 0x00000002; @@ -716,43 +822,51 @@ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { return getReadMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { if (readMaskBuilder_ != null) { return readMaskBuilder_.getMessageOrBuilder(); } else { - return readMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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> getReadMaskFieldBuilder() { if (readMaskBuilder_ == null) { - readMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getReadMask(), - getParentForChildren(), - isClean()); + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); readMask_ = null; } return readMaskBuilder_; } + @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); } @@ -762,41 +876,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest) - private static final com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest(); } - public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetMigrationSubtaskRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMigrationSubtaskRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -808,9 +924,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationSubtaskRequestOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationSubtaskRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationSubtaskRequestOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationSubtaskRequestOrBuilder.java index f7eda40..0d21a98 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationSubtaskRequestOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationSubtaskRequestOrBuilder.java @@ -1,58 +1,94 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_service.proto package com.google.cloud.bigquery.migration.v2alpha; -public interface GetMigrationSubtaskRequestOrBuilder extends +public interface GetMigrationSubtaskRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.GetMigrationSubtaskRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The unique identifier for the migration subtask.
    * Example: `projects/123/locations/us/workflows/1234/subtasks/543`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The unique identifier for the migration subtask.
    * Example: `projects/123/locations/us/workflows/1234/subtasks/543`
    * 
* - * string 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(); /** + * + * *
    * Optional. The list of fields to be retrieved.
    * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readMask field is set. */ boolean hasReadMask(); /** + * + * *
    * Optional. The list of fields to be retrieved.
    * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readMask. */ com.google.protobuf.FieldMask getReadMask(); /** + * + * *
    * Optional. The list of fields to be retrieved.
    * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationWorkflowRequest.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationWorkflowRequest.java similarity index 62% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationWorkflowRequest.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationWorkflowRequest.java index d9d84dc..f216f66 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationWorkflowRequest.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationWorkflowRequest.java @@ -1,63 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_service.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * A request to get a previously created migration workflow.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest} */ -public final class GetMigrationWorkflowRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetMigrationWorkflowRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest) GetMigrationWorkflowRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetMigrationWorkflowRequest.newBuilder() to construct. private GetMigrationWorkflowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetMigrationWorkflowRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetMigrationWorkflowRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationWorkflowRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationWorkflowRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationWorkflowRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationWorkflowRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest.class, com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest.class, + com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The unique identifier for the migration workflow.
    * Example: `projects/123/locations/us/workflows/1234`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,30 +91,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The unique identifier for the migration workflow.
    * Example: `projects/123/locations/us/workflows/1234`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -100,11 +127,14 @@ public java.lang.String getName() { public static final int READ_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask readMask_; /** + * + * *
    * The list of fields to be retrieved.
    * 
* * .google.protobuf.FieldMask read_mask = 2; + * * @return Whether the readMask field is set. */ @java.lang.Override @@ -112,11 +142,14 @@ public boolean hasReadMask() { return readMask_ != null; } /** + * + * *
    * The list of fields to be retrieved.
    * 
* * .google.protobuf.FieldMask read_mask = 2; + * * @return The readMask. */ @java.lang.Override @@ -124,6 +157,8 @@ public com.google.protobuf.FieldMask getReadMask() { return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } /** + * + * *
    * The list of fields to be retrieved.
    * 
@@ -136,6 +171,7 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -168,8 +203,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (readMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReadMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -179,19 +213,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest other = (com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest) obj; + com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest other = + (com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasReadMask() != other.hasReadMask()) return false; if (hasReadMask()) { - if (!getReadMask() - .equals(other.getReadMask())) return false; + if (!getReadMask().equals(other.getReadMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -216,129 +249,139 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A request to get a previously created migration workflow.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest) com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationWorkflowRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationWorkflowRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationWorkflowRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationWorkflowRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest.class, com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest.class, + com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest.Builder + .class); } - // Construct using com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -353,19 +396,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationWorkflowRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationWorkflowRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest.getDefaultInstance(); + public com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest build() { - com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest result = buildPartial(); + com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -374,21 +420,23 @@ public com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest b @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest buildPartial() { - com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest result = new com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest result = + new com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.readMask_ = readMaskBuilder_ == null - ? readMask_ - : readMaskBuilder_.build(); + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); } } @@ -396,46 +444,52 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.GetMigrat public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest) { - return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest)other); + if (other + instanceof com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest) { + return mergeFrom( + (com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest other) { - if (other == com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest other) { + if (other + == com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -470,24 +524,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getReadMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -497,23 +552,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string 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; @@ -522,21 +582,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string 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 { @@ -544,30 +607,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string 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() { @@ -577,18 +651,24 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -598,24 +678,33 @@ public Builder setNameBytes( private com.google.protobuf.FieldMask readMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> readMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + readMaskBuilder_; /** + * + * *
      * The list of fields to be retrieved.
      * 
* * .google.protobuf.FieldMask read_mask = 2; + * * @return Whether the readMask field is set. */ public boolean hasReadMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The list of fields to be retrieved.
      * 
* * .google.protobuf.FieldMask read_mask = 2; + * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -626,6 +715,8 @@ public com.google.protobuf.FieldMask getReadMask() { } } /** + * + * *
      * The list of fields to be retrieved.
      * 
@@ -646,14 +737,15 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be retrieved.
      * 
* * .google.protobuf.FieldMask read_mask = 2; */ - public Builder setReadMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); } else { @@ -664,6 +756,8 @@ public Builder setReadMask( return this; } /** + * + * *
      * The list of fields to be retrieved.
      * 
@@ -672,9 +766,9 @@ public Builder setReadMask( */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - readMask_ != null && - readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; @@ -687,6 +781,8 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be retrieved.
      * 
@@ -704,6 +800,8 @@ public Builder clearReadMask() { return this; } /** + * + * *
      * The list of fields to be retrieved.
      * 
@@ -716,6 +814,8 @@ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { return getReadMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The list of fields to be retrieved.
      * 
@@ -726,11 +826,12 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { if (readMaskBuilder_ != null) { return readMaskBuilder_.getMessageOrBuilder(); } else { - return readMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } } /** + * + * *
      * The list of fields to be retrieved.
      * 
@@ -738,21 +839,24 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { * .google.protobuf.FieldMask read_mask = 2; */ 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> getReadMaskFieldBuilder() { if (readMaskBuilder_ == null) { - readMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getReadMask(), - getParentForChildren(), - isClean()); + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); readMask_ = null; } return readMaskBuilder_; } + @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); } @@ -762,41 +866,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest) - private static final com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest(); } - public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetMigrationWorkflowRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMigrationWorkflowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -808,9 +915,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationWorkflowRequestOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationWorkflowRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationWorkflowRequestOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationWorkflowRequestOrBuilder.java index 4856afd..d512a7d 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationWorkflowRequestOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/GetMigrationWorkflowRequestOrBuilder.java @@ -1,53 +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/bigquery/migration/v2alpha/migration_service.proto package com.google.cloud.bigquery.migration.v2alpha; -public interface GetMigrationWorkflowRequestOrBuilder extends +public interface GetMigrationWorkflowRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.GetMigrationWorkflowRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The unique identifier for the migration workflow.
    * Example: `projects/123/locations/us/workflows/1234`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The unique identifier for the migration workflow.
    * Example: `projects/123/locations/us/workflows/1234`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The list of fields to be retrieved.
    * 
* * .google.protobuf.FieldMask read_mask = 2; + * * @return Whether the readMask field is set. */ boolean hasReadMask(); /** + * + * *
    * The list of fields to be retrieved.
    * 
* * .google.protobuf.FieldMask read_mask = 2; + * * @return The readMask. */ com.google.protobuf.FieldMask getReadMask(); /** + * + * *
    * The list of fields to be retrieved.
    * 
diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/IdentifierSettings.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/IdentifierSettings.java similarity index 60% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/IdentifierSettings.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/IdentifierSettings.java index 21f3d87..ffcebca 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/IdentifierSettings.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/IdentifierSettings.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/translation_task.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * Settings related to SQL identifiers.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.IdentifierSettings} */ -public final class IdentifierSettings extends - com.google.protobuf.GeneratedMessageV3 implements +public final class IdentifierSettings extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.IdentifierSettings) IdentifierSettingsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IdentifierSettings.newBuilder() to construct. private IdentifierSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private IdentifierSettings() { outputIdentifierCase_ = 0; identifierRewriteMode_ = 0; @@ -26,39 +44,43 @@ private IdentifierSettings() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IdentifierSettings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_IdentifierSettings_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_IdentifierSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_IdentifierSettings_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_IdentifierSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.class, com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.class, + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.Builder.class); } /** + * + * *
    * The identifier case type.
    * 
* * Protobuf enum {@code google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase} */ - public enum IdentifierCase - implements com.google.protobuf.ProtocolMessageEnum { + public enum IdentifierCase implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The identifier case is not specified.
      * 
@@ -67,6 +89,8 @@ public enum IdentifierCase */ IDENTIFIER_CASE_UNSPECIFIED(0), /** + * + * *
      * Identifiers' cases will be kept as the original cases.
      * 
@@ -75,6 +99,8 @@ public enum IdentifierCase */ ORIGINAL(1), /** + * + * *
      * Identifiers will be in upper cases.
      * 
@@ -83,6 +109,8 @@ public enum IdentifierCase */ UPPER(2), /** + * + * *
      * Identifiers will be in lower cases.
      * 
@@ -94,6 +122,8 @@ public enum IdentifierCase ; /** + * + * *
      * The identifier case is not specified.
      * 
@@ -102,6 +132,8 @@ public enum IdentifierCase */ public static final int IDENTIFIER_CASE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Identifiers' cases will be kept as the original cases.
      * 
@@ -110,6 +142,8 @@ public enum IdentifierCase */ public static final int ORIGINAL_VALUE = 1; /** + * + * *
      * Identifiers will be in upper cases.
      * 
@@ -118,6 +152,8 @@ public enum IdentifierCase */ public static final int UPPER_VALUE = 2; /** + * + * *
      * Identifiers will be in lower cases.
      * 
@@ -126,7 +162,6 @@ public enum IdentifierCase */ public static final int LOWER_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -151,50 +186,53 @@ public static IdentifierCase valueOf(int value) { */ public static IdentifierCase forNumber(int value) { switch (value) { - case 0: return IDENTIFIER_CASE_UNSPECIFIED; - case 1: return ORIGINAL; - case 2: return UPPER; - case 3: return LOWER; - default: return null; + case 0: + return IDENTIFIER_CASE_UNSPECIFIED; + case 1: + return ORIGINAL; + case 2: + return UPPER; + case 3: + return LOWER; + 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< - IdentifierCase> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public IdentifierCase findValueByNumber(int number) { - return IdentifierCase.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 IdentifierCase findValueByNumber(int number) { + return IdentifierCase.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.getDescriptor() + .getEnumTypes() + .get(0); } private static final IdentifierCase[] VALUES = values(); - public static IdentifierCase valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static IdentifierCase 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; @@ -212,15 +250,19 @@ private IdentifierCase(int value) { } /** + * + * *
    * The SQL identifier rewrite mode.
    * 
* - * Protobuf enum {@code google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode} + * Protobuf enum {@code + * google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode} */ - public enum IdentifierRewriteMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum IdentifierRewriteMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * SQL Identifier rewrite mode is unspecified.
      * 
@@ -229,6 +271,8 @@ public enum IdentifierRewriteMode */ IDENTIFIER_REWRITE_MODE_UNSPECIFIED(0), /** + * + * *
      * SQL identifiers won't be rewrite.
      * 
@@ -237,6 +281,8 @@ public enum IdentifierRewriteMode */ NONE(1), /** + * + * *
      * All SQL identifiers will be rewrite.
      * 
@@ -248,6 +294,8 @@ public enum IdentifierRewriteMode ; /** + * + * *
      * SQL Identifier rewrite mode is unspecified.
      * 
@@ -256,6 +304,8 @@ public enum IdentifierRewriteMode */ public static final int IDENTIFIER_REWRITE_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * SQL identifiers won't be rewrite.
      * 
@@ -264,6 +314,8 @@ public enum IdentifierRewriteMode */ public static final int NONE_VALUE = 1; /** + * + * *
      * All SQL identifiers will be rewrite.
      * 
@@ -272,7 +324,6 @@ public enum IdentifierRewriteMode */ public static final int REWRITE_ALL_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -297,10 +348,14 @@ public static IdentifierRewriteMode valueOf(int value) { */ public static IdentifierRewriteMode forNumber(int value) { switch (value) { - case 0: return IDENTIFIER_REWRITE_MODE_UNSPECIFIED; - case 1: return NONE; - case 2: return REWRITE_ALL; - default: return null; + case 0: + return IDENTIFIER_REWRITE_MODE_UNSPECIFIED; + case 1: + return NONE; + case 2: + return REWRITE_ALL; + default: + return null; } } @@ -308,29 +363,31 @@ public static IdentifierRewriteMode forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - IdentifierRewriteMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public IdentifierRewriteMode findValueByNumber(int number) { - return IdentifierRewriteMode.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 IdentifierRewriteMode findValueByNumber(int number) { + return IdentifierRewriteMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.getDescriptor() + .getEnumTypes() + .get(1); } private static final IdentifierRewriteMode[] VALUES = values(); @@ -338,8 +395,7 @@ public IdentifierRewriteMode findValueByNumber(int number) { public static IdentifierRewriteMode 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; @@ -359,56 +415,92 @@ private IdentifierRewriteMode(int value) { public static final int OUTPUT_IDENTIFIER_CASE_FIELD_NUMBER = 1; private int outputIdentifierCase_ = 0; /** + * + * *
    * The setting to control output queries' identifier case.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase output_identifier_case = 1; + * + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase output_identifier_case = 1; + * + * * @return The enum numeric value on the wire for outputIdentifierCase. */ - @java.lang.Override public int getOutputIdentifierCaseValue() { + @java.lang.Override + public int getOutputIdentifierCaseValue() { return outputIdentifierCase_; } /** + * + * *
    * The setting to control output queries' identifier case.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase output_identifier_case = 1; + * + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase output_identifier_case = 1; + * + * * @return The outputIdentifierCase. */ - @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase getOutputIdentifierCase() { - com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase result = com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase.forNumber(outputIdentifierCase_); - return result == null ? com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase + getOutputIdentifierCase() { + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase result = + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase.forNumber( + outputIdentifierCase_); + return result == null + ? com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase.UNRECOGNIZED + : result; } public static final int IDENTIFIER_REWRITE_MODE_FIELD_NUMBER = 2; private int identifierRewriteMode_ = 0; /** + * + * *
    * Specifies the rewrite mode for SQL identifiers.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode identifier_rewrite_mode = 2; + * + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode identifier_rewrite_mode = 2; + * + * * @return The enum numeric value on the wire for identifierRewriteMode. */ - @java.lang.Override public int getIdentifierRewriteModeValue() { + @java.lang.Override + public int getIdentifierRewriteModeValue() { return identifierRewriteMode_; } /** + * + * *
    * Specifies the rewrite mode for SQL identifiers.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode identifier_rewrite_mode = 2; + * + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode identifier_rewrite_mode = 2; + * + * * @return The identifierRewriteMode. */ - @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode getIdentifierRewriteMode() { - com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode result = com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode.forNumber(identifierRewriteMode_); - return result == null ? com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode + getIdentifierRewriteMode() { + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode result = + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode + .forNumber(identifierRewriteMode_); + return result == null + ? com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode + .UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -420,12 +512,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (outputIdentifierCase_ != com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase.IDENTIFIER_CASE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (outputIdentifierCase_ + != com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase + .IDENTIFIER_CASE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, outputIdentifierCase_); } - if (identifierRewriteMode_ != com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode.IDENTIFIER_REWRITE_MODE_UNSPECIFIED.getNumber()) { + if (identifierRewriteMode_ + != com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode + .IDENTIFIER_REWRITE_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, identifierRewriteMode_); } getUnknownFields().writeTo(output); @@ -437,13 +534,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (outputIdentifierCase_ != com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase.IDENTIFIER_CASE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, outputIdentifierCase_); + if (outputIdentifierCase_ + != com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase + .IDENTIFIER_CASE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, outputIdentifierCase_); } - if (identifierRewriteMode_ != com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode.IDENTIFIER_REWRITE_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, identifierRewriteMode_); + if (identifierRewriteMode_ + != com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode + .IDENTIFIER_REWRITE_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, identifierRewriteMode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -453,12 +554,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.bigquery.migration.v2alpha.IdentifierSettings)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings other = (com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings) obj; + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings other = + (com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings) obj; if (outputIdentifierCase_ != other.outputIdentifierCase_) return false; if (identifierRewriteMode_ != other.identifierRewriteMode_) return false; @@ -483,129 +585,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 related to SQL identifiers.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.IdentifierSettings} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.IdentifierSettings) com.google.cloud.bigquery.migration.v2alpha.IdentifierSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_IdentifierSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_IdentifierSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_IdentifierSettings_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_IdentifierSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.class, com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.class, + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -616,13 +725,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_IdentifierSettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_IdentifierSettings_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings + getDefaultInstanceForType() { return com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.getDefaultInstance(); } @@ -637,13 +747,17 @@ public com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings buildPartial() { - com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings result = new com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings result = + new com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings result) { + private void buildPartial0( + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.outputIdentifierCase_ = outputIdentifierCase_; @@ -657,38 +771,39 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.Identifie public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings) { - return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings) other); } else { super.mergeFrom(other); return this; @@ -696,7 +811,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings other) { - if (other == com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.getDefaultInstance()) return this; + if (other + == com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.getDefaultInstance()) + return this; if (other.outputIdentifierCase_ != 0) { setOutputIdentifierCaseValue(other.getOutputIdentifierCaseValue()); } @@ -729,22 +846,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - outputIdentifierCase_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - identifierRewriteMode_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + outputIdentifierCase_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + identifierRewriteMode_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -754,26 +874,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int outputIdentifierCase_ = 0; /** + * + * *
      * The setting to control output queries' identifier case.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase output_identifier_case = 1; + * + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase output_identifier_case = 1; + * + * * @return The enum numeric value on the wire for outputIdentifierCase. */ - @java.lang.Override public int getOutputIdentifierCaseValue() { + @java.lang.Override + public int getOutputIdentifierCaseValue() { return outputIdentifierCase_; } /** + * + * *
      * The setting to control output queries' identifier case.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase output_identifier_case = 1; + * + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase output_identifier_case = 1; + * + * * @param value The enum numeric value on the wire for outputIdentifierCase to set. * @return This builder for chaining. */ @@ -784,28 +916,45 @@ public Builder setOutputIdentifierCaseValue(int value) { return this; } /** + * + * *
      * The setting to control output queries' identifier case.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase output_identifier_case = 1; + * + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase output_identifier_case = 1; + * + * * @return The outputIdentifierCase. */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase getOutputIdentifierCase() { - com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase result = com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase.forNumber(outputIdentifierCase_); - return result == null ? com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase.UNRECOGNIZED : result; + public com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase + getOutputIdentifierCase() { + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase result = + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase.forNumber( + outputIdentifierCase_); + return result == null + ? com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase + .UNRECOGNIZED + : result; } /** + * + * *
      * The setting to control output queries' identifier case.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase output_identifier_case = 1; + * + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase output_identifier_case = 1; + * + * * @param value The outputIdentifierCase to set. * @return This builder for chaining. */ - public Builder setOutputIdentifierCase(com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase value) { + public Builder setOutputIdentifierCase( + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase value) { if (value == null) { throw new NullPointerException(); } @@ -815,11 +964,16 @@ public Builder setOutputIdentifierCase(com.google.cloud.bigquery.migration.v2alp return this; } /** + * + * *
      * The setting to control output queries' identifier case.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase output_identifier_case = 1; + * + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase output_identifier_case = 1; + * + * * @return This builder for chaining. */ public Builder clearOutputIdentifierCase() { @@ -831,22 +985,33 @@ public Builder clearOutputIdentifierCase() { private int identifierRewriteMode_ = 0; /** + * + * *
      * Specifies the rewrite mode for SQL identifiers.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode identifier_rewrite_mode = 2; + * + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode identifier_rewrite_mode = 2; + * + * * @return The enum numeric value on the wire for identifierRewriteMode. */ - @java.lang.Override public int getIdentifierRewriteModeValue() { + @java.lang.Override + public int getIdentifierRewriteModeValue() { return identifierRewriteMode_; } /** + * + * *
      * Specifies the rewrite mode for SQL identifiers.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode identifier_rewrite_mode = 2; + * + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode identifier_rewrite_mode = 2; + * + * * @param value The enum numeric value on the wire for identifierRewriteMode to set. * @return This builder for chaining. */ @@ -857,28 +1022,46 @@ public Builder setIdentifierRewriteModeValue(int value) { return this; } /** + * + * *
      * Specifies the rewrite mode for SQL identifiers.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode identifier_rewrite_mode = 2; + * + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode identifier_rewrite_mode = 2; + * + * * @return The identifierRewriteMode. */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode getIdentifierRewriteMode() { - com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode result = com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode.forNumber(identifierRewriteMode_); - return result == null ? com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode.UNRECOGNIZED : result; + public com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode + getIdentifierRewriteMode() { + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode result = + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode + .forNumber(identifierRewriteMode_); + return result == null + ? com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode + .UNRECOGNIZED + : result; } /** + * + * *
      * Specifies the rewrite mode for SQL identifiers.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode identifier_rewrite_mode = 2; + * + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode identifier_rewrite_mode = 2; + * + * * @param value The identifierRewriteMode to set. * @return This builder for chaining. */ - public Builder setIdentifierRewriteMode(com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode value) { + public Builder setIdentifierRewriteMode( + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode + value) { if (value == null) { throw new NullPointerException(); } @@ -888,11 +1071,16 @@ public Builder setIdentifierRewriteMode(com.google.cloud.bigquery.migration.v2al return this; } /** + * + * *
      * Specifies the rewrite mode for SQL identifiers.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode identifier_rewrite_mode = 2; + * + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode identifier_rewrite_mode = 2; + * + * * @return This builder for chaining. */ public Builder clearIdentifierRewriteMode() { @@ -901,9 +1089,9 @@ public Builder clearIdentifierRewriteMode() { 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); } @@ -913,41 +1101,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.IdentifierSettings) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.IdentifierSettings) - private static final com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings(); } - public static com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IdentifierSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IdentifierSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -959,9 +1149,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/IdentifierSettingsOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/IdentifierSettingsOrBuilder.java new file mode 100644 index 0000000..b80922b --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/IdentifierSettingsOrBuilder.java @@ -0,0 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2alpha/translation_task.proto + +package com.google.cloud.bigquery.migration.v2alpha; + +public interface IdentifierSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.IdentifierSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The setting to control output queries' identifier case.
+   * 
+ * + * + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase output_identifier_case = 1; + * + * + * @return The enum numeric value on the wire for outputIdentifierCase. + */ + int getOutputIdentifierCaseValue(); + /** + * + * + *
+   * The setting to control output queries' identifier case.
+   * 
+ * + * + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase output_identifier_case = 1; + * + * + * @return The outputIdentifierCase. + */ + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierCase + getOutputIdentifierCase(); + + /** + * + * + *
+   * Specifies the rewrite mode for SQL identifiers.
+   * 
+ * + * + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode identifier_rewrite_mode = 2; + * + * + * @return The enum numeric value on the wire for identifierRewriteMode. + */ + int getIdentifierRewriteModeValue(); + /** + * + * + *
+   * Specifies the rewrite mode for SQL identifiers.
+   * 
+ * + * + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode identifier_rewrite_mode = 2; + * + * + * @return The identifierRewriteMode. + */ + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.IdentifierRewriteMode + getIdentifierRewriteMode(); +} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksRequest.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksRequest.java similarity index 68% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksRequest.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksRequest.java index d281fb1..68b8e65 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksRequest.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_service.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * A request to list previously created migration subtasks.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest} */ -public final class ListMigrationSubtasksRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListMigrationSubtasksRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest) ListMigrationSubtasksRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListMigrationSubtasksRequest.newBuilder() to construct. private ListMigrationSubtasksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListMigrationSubtasksRequest() { parent_ = ""; pageToken_ = ""; @@ -27,39 +45,46 @@ private ListMigrationSubtasksRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListMigrationSubtasksRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest.class, com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest.class, + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The migration task of the subtasks to list.
    * Example: `projects/123/locations/us/workflows/1234`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -68,30 +93,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The migration task of the subtasks to list.
    * Example: `projects/123/locations/us/workflows/1234`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -102,11 +129,15 @@ public java.lang.String getParent() { public static final int READ_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask readMask_; /** + * + * *
    * Optional. The list of fields to be retrieved.
    * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readMask field is set. */ @java.lang.Override @@ -114,11 +145,15 @@ public boolean hasReadMask() { return readMask_ != null; } /** + * + * *
    * Optional. The list of fields to be retrieved.
    * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readMask. */ @java.lang.Override @@ -126,11 +161,14 @@ public com.google.protobuf.FieldMask getReadMask() { return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } /** + * + * *
    * Optional. The list of fields to be retrieved.
    * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { @@ -140,12 +178,15 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of migration tasks to return. The service may return
    * fewer than this number.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -154,9 +195,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. A page token, received from previous `ListMigrationSubtasks` call.
    * Provide this to retrieve the subsequent page.
@@ -165,6 +209,7 @@ public int getPageSize() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -173,14 +218,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; } } /** + * + * *
    * Optional. A page token, received from previous `ListMigrationSubtasks` call.
    * Provide this to retrieve the subsequent page.
@@ -189,16 +235,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -207,9 +252,12 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Optional. The filter to apply. This can be used to get the subtasks of a specific
    * tasks in a workflow, e.g. `migration_task = "ab012"` where `"ab012"` is the
@@ -217,6 +265,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -225,14 +274,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; } } /** + * + * *
    * Optional. The filter to apply. This can be used to get the subtasks of a specific
    * tasks in a workflow, e.g. `migration_task = "ab012"` where `"ab012"` is the
@@ -240,16 +290,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -258,6 +307,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -299,12 +348,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (readMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReadMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadMask()); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -320,26 +367,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest)) { + if (!(obj + instanceof com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest other = (com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest) obj; + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest other = + (com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasReadMask() != other.hasReadMask()) return false; if (hasReadMask()) { - if (!getReadMask() - .equals(other.getReadMask())) return false; - } - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getReadMask().equals(other.getReadMask())) return false; + } + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -369,129 +413,139 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A request to list previously created migration subtasks.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest) com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest.class, com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest.class, + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest.Builder + .class); } - // Construct using com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -509,19 +563,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest.getDefaultInstance(); + public com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest build() { - com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest result = buildPartial(); + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -530,21 +587,23 @@ public com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest buildPartial() { - com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest result = new com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest result = + new com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.readMask_ = readMaskBuilder_ == null - ? readMask_ - : readMaskBuilder_.build(); + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.pageSize_ = pageSize_; @@ -561,46 +620,52 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.ListMigra public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest) { - return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest)other); + if (other + instanceof com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest) { + return mergeFrom( + (com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest other) { - if (other == com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest other) { + if (other + == com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -648,39 +713,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getReadMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -690,23 +759,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The migration task of the subtasks to list.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string 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; @@ -715,21 +789,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The migration task of the subtasks to list.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string 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 { @@ -737,30 +814,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The migration task of the subtasks to list.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The migration task of the subtasks to list.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string 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() { @@ -770,18 +858,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The migration task of the subtasks to list.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -791,24 +885,35 @@ public Builder setParentBytes( private com.google.protobuf.FieldMask readMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> readMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + readMaskBuilder_; /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readMask field is set. */ public boolean hasReadMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -819,11 +924,14 @@ public com.google.protobuf.FieldMask getReadMask() { } } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { @@ -839,14 +947,16 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setReadMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); } else { @@ -857,17 +967,20 @@ public Builder setReadMask( return this; } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - readMask_ != null && - readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; @@ -880,11 +993,14 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearReadMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -897,11 +1013,14 @@ public Builder clearReadMask() { return this; } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { bitField0_ |= 0x00000002; @@ -909,49 +1028,60 @@ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { return getReadMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { if (readMaskBuilder_ != null) { return readMaskBuilder_.getMessageOrBuilder(); } else { - return readMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } } /** + * + * *
      * Optional. The list of fields to be retrieved.
      * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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> getReadMaskFieldBuilder() { if (readMaskBuilder_ == null) { - readMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getReadMask(), - getParentForChildren(), - isClean()); + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); readMask_ = null; } return readMaskBuilder_; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of migration tasks to return. The service may return
      * fewer than this number.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -959,29 +1089,35 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of migration tasks to return. The service may return
      * fewer than this number.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. The maximum number of migration tasks to return. The service may return
      * fewer than this number.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -993,6 +1129,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. A page token, received from previous `ListMigrationSubtasks` call.
      * Provide this to retrieve the subsequent page.
@@ -1001,13 +1139,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -1016,6 +1154,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A page token, received from previous `ListMigrationSubtasks` call.
      * Provide this to retrieve the subsequent page.
@@ -1024,15 +1164,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -1040,6 +1179,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A page token, received from previous `ListMigrationSubtasks` call.
      * Provide this to retrieve the subsequent page.
@@ -1048,18 +1189,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. A page token, received from previous `ListMigrationSubtasks` call.
      * Provide this to retrieve the subsequent page.
@@ -1068,6 +1213,7 @@ public Builder setPageToken(
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1077,6 +1223,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. A page token, received from previous `ListMigrationSubtasks` call.
      * Provide this to retrieve the subsequent page.
@@ -1085,12 +1233,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; @@ -1100,6 +1250,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. The filter to apply. This can be used to get the subtasks of a specific
      * tasks in a workflow, e.g. `migration_task = "ab012"` where `"ab012"` is the
@@ -1107,13 +1259,13 @@ public Builder setPageTokenBytes(
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -1122,6 +1274,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. The filter to apply. This can be used to get the subtasks of a specific
      * tasks in a workflow, e.g. `migration_task = "ab012"` where `"ab012"` is the
@@ -1129,15 +1283,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -1145,6 +1298,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. The filter to apply. This can be used to get the subtasks of a specific
      * tasks in a workflow, e.g. `migration_task = "ab012"` where `"ab012"` is the
@@ -1152,18 +1307,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Optional. The filter to apply. This can be used to get the subtasks of a specific
      * tasks in a workflow, e.g. `migration_task = "ab012"` where `"ab012"` is the
@@ -1171,6 +1330,7 @@ public Builder setFilter(
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1180,6 +1340,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Optional. The filter to apply. This can be used to get the subtasks of a specific
      * tasks in a workflow, e.g. `migration_task = "ab012"` where `"ab012"` is the
@@ -1187,21 +1349,23 @@ public Builder clearFilter() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1211,41 +1375,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest) - private static final com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest(); } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMigrationSubtasksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMigrationSubtasksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1257,9 +1424,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksRequestOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksRequestOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksRequestOrBuilder.java index 4f21f20..a33eaac 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksRequestOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksRequestOrBuilder.java @@ -1,73 +1,114 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_service.proto package com.google.cloud.bigquery.migration.v2alpha; -public interface ListMigrationSubtasksRequestOrBuilder extends +public interface ListMigrationSubtasksRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The migration task of the subtasks to list.
    * Example: `projects/123/locations/us/workflows/1234`
    * 
* - * string 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 migration task of the subtasks to list.
    * Example: `projects/123/locations/us/workflows/1234`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The list of fields to be retrieved.
    * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readMask field is set. */ boolean hasReadMask(); /** + * + * *
    * Optional. The list of fields to be retrieved.
    * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readMask. */ com.google.protobuf.FieldMask getReadMask(); /** + * + * *
    * Optional. The list of fields to be retrieved.
    * 
* - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); /** + * + * *
    * Optional. The maximum number of migration tasks to return. The service may return
    * fewer than this number.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. A page token, received from previous `ListMigrationSubtasks` call.
    * Provide this to retrieve the subsequent page.
@@ -76,10 +117,13 @@ public interface ListMigrationSubtasksRequestOrBuilder extends
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. A page token, received from previous `ListMigrationSubtasks` call.
    * Provide this to retrieve the subsequent page.
@@ -88,12 +132,14 @@ public interface ListMigrationSubtasksRequestOrBuilder extends
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Optional. The filter to apply. This can be used to get the subtasks of a specific
    * tasks in a workflow, e.g. `migration_task = "ab012"` where `"ab012"` is the
@@ -101,10 +147,13 @@ public interface ListMigrationSubtasksRequestOrBuilder extends
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. The filter to apply. This can be used to get the subtasks of a specific
    * tasks in a workflow, e.g. `migration_task = "ab012"` where `"ab012"` is the
@@ -112,8 +161,8 @@ public interface ListMigrationSubtasksRequestOrBuilder extends
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksResponse.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksResponse.java similarity index 61% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksResponse.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksResponse.java index 5e34c63..8af8c88 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksResponse.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_service.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * Response object for a `ListMigrationSubtasks` call.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse} */ -public final class ListMigrationSubtasksResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListMigrationSubtasksResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse) ListMigrationSubtasksResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListMigrationSubtasksResponse.newBuilder() to construct. private ListMigrationSubtasksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListMigrationSubtasksResponse() { migrationSubtasks_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,100 +44,131 @@ private ListMigrationSubtasksResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListMigrationSubtasksResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksResponse_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse.class, com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse.class, + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse.Builder + .class); } public static final int MIGRATION_SUBTASKS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List migrationSubtasks_; + private java.util.List + migrationSubtasks_; /** + * + * *
    * The migration subtasks for the specified task.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ @java.lang.Override - public java.util.List getMigrationSubtasksList() { + public java.util.List + getMigrationSubtasksList() { return migrationSubtasks_; } /** + * + * *
    * The migration subtasks for the specified task.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.bigquery.migration.v2alpha.MigrationSubtaskOrBuilder> getMigrationSubtasksOrBuilderList() { return migrationSubtasks_; } /** + * + * *
    * The migration subtasks for the specified task.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ @java.lang.Override public int getMigrationSubtasksCount() { return migrationSubtasks_.size(); } /** + * + * *
    * The migration subtasks for the specified task.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask getMigrationSubtasks(int index) { + public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask getMigrationSubtasks( + int index) { return migrationSubtasks_.get(index); } /** + * + * *
    * The migration subtasks for the specified task.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtaskOrBuilder getMigrationSubtasksOrBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtaskOrBuilder + getMigrationSubtasksOrBuilder(int index) { return migrationSubtasks_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -128,30 +177,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 { @@ -160,6 +209,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +221,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 < migrationSubtasks_.size(); i++) { output.writeMessage(1, migrationSubtasks_.get(i)); } @@ -189,8 +238,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < migrationSubtasks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, migrationSubtasks_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, migrationSubtasks_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -203,17 +252,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse)) { + if (!(obj + instanceof com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse other = (com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse) obj; + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse other = + (com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse) obj; - if (!getMigrationSubtasksList() - .equals(other.getMigrationSubtasksList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getMigrationSubtasksList().equals(other.getMigrationSubtasksList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -237,129 +286,139 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 object for a `ListMigrationSubtasks` call.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse) com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksResponse_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse.class, com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse.class, + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse.Builder + .class); } - // Construct using com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,19 +435,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse getDefaultInstanceForType() { - return com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse.getDefaultInstance(); + public com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse + getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse build() { - com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse result = buildPartial(); + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -396,15 +458,20 @@ public com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse buildPartial() { - com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse result = new com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse(this); + public com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse + buildPartial() { + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse result = + new com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse result) { if (migrationSubtasksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { migrationSubtasks_ = java.util.Collections.unmodifiableList(migrationSubtasks_); @@ -416,7 +483,8 @@ private void buildPartialRepeatedFields(com.google.cloud.bigquery.migration.v2al } } - private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse result) { + private void buildPartial0( + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -427,46 +495,52 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.ListMigra public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse) { - return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse)other); + if (other + instanceof com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse) { + return mergeFrom( + (com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse other) { - if (other == com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse other) { + if (other + == com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse + .getDefaultInstance()) return this; if (migrationSubtasksBuilder_ == null) { if (!other.migrationSubtasks_.isEmpty()) { if (migrationSubtasks_.isEmpty()) { @@ -485,9 +559,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.ListMigrati migrationSubtasksBuilder_ = null; migrationSubtasks_ = other.migrationSubtasks_; bitField0_ = (bitField0_ & ~0x00000001); - migrationSubtasksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMigrationSubtasksFieldBuilder() : null; + migrationSubtasksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMigrationSubtasksFieldBuilder() + : null; } else { migrationSubtasksBuilder_.addAllMessages(other.migrationSubtasks_); } @@ -524,30 +599,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask m = - input.readMessage( - com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.parser(), - extensionRegistry); - if (migrationSubtasksBuilder_ == null) { - ensureMigrationSubtasksIsMutable(); - migrationSubtasks_.add(m); - } else { - migrationSubtasksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask m = + input.readMessage( + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.parser(), + extensionRegistry); + if (migrationSubtasksBuilder_ == null) { + ensureMigrationSubtasksIsMutable(); + migrationSubtasks_.add(m); + } else { + migrationSubtasksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,28 +635,40 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List migrationSubtasks_ = - java.util.Collections.emptyList(); + private java.util.List + migrationSubtasks_ = java.util.Collections.emptyList(); + private void ensureMigrationSubtasksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - migrationSubtasks_ = new java.util.ArrayList(migrationSubtasks_); + migrationSubtasks_ = + new java.util.ArrayList( + migrationSubtasks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask, com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.Builder, com.google.cloud.bigquery.migration.v2alpha.MigrationSubtaskOrBuilder> migrationSubtasksBuilder_; + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask, + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.Builder, + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtaskOrBuilder> + migrationSubtasksBuilder_; /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ - public java.util.List getMigrationSubtasksList() { + public java.util.List + getMigrationSubtasksList() { if (migrationSubtasksBuilder_ == null) { return java.util.Collections.unmodifiableList(migrationSubtasks_); } else { @@ -586,11 +676,15 @@ public java.util.List * The migration subtasks for the specified task. *
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ public int getMigrationSubtasksCount() { if (migrationSubtasksBuilder_ == null) { @@ -600,13 +694,18 @@ public int getMigrationSubtasksCount() { } } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ - public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask getMigrationSubtasks(int index) { + public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask getMigrationSubtasks( + int index) { if (migrationSubtasksBuilder_ == null) { return migrationSubtasks_.get(index); } else { @@ -614,11 +713,15 @@ public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask getMigration } } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ public Builder setMigrationSubtasks( int index, com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask value) { @@ -635,14 +738,19 @@ public Builder setMigrationSubtasks( return this; } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ public Builder setMigrationSubtasks( - int index, com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.Builder builderForValue) { + int index, + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.Builder builderForValue) { if (migrationSubtasksBuilder_ == null) { ensureMigrationSubtasksIsMutable(); migrationSubtasks_.set(index, builderForValue.build()); @@ -653,13 +761,18 @@ public Builder setMigrationSubtasks( return this; } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ - public Builder addMigrationSubtasks(com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask value) { + public Builder addMigrationSubtasks( + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask value) { if (migrationSubtasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -673,11 +786,15 @@ public Builder addMigrationSubtasks(com.google.cloud.bigquery.migration.v2alpha. return this; } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ public Builder addMigrationSubtasks( int index, com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask value) { @@ -694,11 +811,15 @@ public Builder addMigrationSubtasks( return this; } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ public Builder addMigrationSubtasks( com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.Builder builderForValue) { @@ -712,14 +833,19 @@ public Builder addMigrationSubtasks( return this; } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ public Builder addMigrationSubtasks( - int index, com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.Builder builderForValue) { + int index, + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.Builder builderForValue) { if (migrationSubtasksBuilder_ == null) { ensureMigrationSubtasksIsMutable(); migrationSubtasks_.add(index, builderForValue.build()); @@ -730,18 +856,22 @@ public Builder addMigrationSubtasks( return this; } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ public Builder addAllMigrationSubtasks( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (migrationSubtasksBuilder_ == null) { ensureMigrationSubtasksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, migrationSubtasks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, migrationSubtasks_); onChanged(); } else { migrationSubtasksBuilder_.addAllMessages(values); @@ -749,11 +879,15 @@ public Builder addAllMigrationSubtasks( return this; } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ public Builder clearMigrationSubtasks() { if (migrationSubtasksBuilder_ == null) { @@ -766,11 +900,15 @@ public Builder clearMigrationSubtasks() { return this; } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ public Builder removeMigrationSubtasks(int index) { if (migrationSubtasksBuilder_ == null) { @@ -783,39 +921,53 @@ public Builder removeMigrationSubtasks(int index) { return this; } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ - public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.Builder getMigrationSubtasksBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.Builder + getMigrationSubtasksBuilder(int index) { return getMigrationSubtasksFieldBuilder().getBuilder(index); } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ - public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtaskOrBuilder getMigrationSubtasksOrBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtaskOrBuilder + getMigrationSubtasksOrBuilder(int index) { if (migrationSubtasksBuilder_ == null) { - return migrationSubtasks_.get(index); } else { + return migrationSubtasks_.get(index); + } else { return migrationSubtasksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ - public java.util.List - getMigrationSubtasksOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.bigquery.migration.v2alpha.MigrationSubtaskOrBuilder> + getMigrationSubtasksOrBuilderList() { if (migrationSubtasksBuilder_ != null) { return migrationSubtasksBuilder_.getMessageOrBuilderList(); } else { @@ -823,45 +975,67 @@ public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtaskOrBuilder get } } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ - public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.Builder addMigrationSubtasksBuilder() { - return getMigrationSubtasksFieldBuilder().addBuilder( - com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.getDefaultInstance()); + public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.Builder + addMigrationSubtasksBuilder() { + return getMigrationSubtasksFieldBuilder() + .addBuilder( + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.getDefaultInstance()); } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ - public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.Builder addMigrationSubtasksBuilder( - int index) { - return getMigrationSubtasksFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.getDefaultInstance()); + public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.Builder + addMigrationSubtasksBuilder(int index) { + return getMigrationSubtasksFieldBuilder() + .addBuilder( + index, + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.getDefaultInstance()); } /** + * + * *
      * The migration subtasks for the specified task.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ - public java.util.List - getMigrationSubtasksBuilderList() { + public java.util.List + getMigrationSubtasksBuilderList() { return getMigrationSubtasksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask, com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.Builder, com.google.cloud.bigquery.migration.v2alpha.MigrationSubtaskOrBuilder> + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask, + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.Builder, + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtaskOrBuilder> getMigrationSubtasksFieldBuilder() { if (migrationSubtasksBuilder_ == null) { - migrationSubtasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask, com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.Builder, com.google.cloud.bigquery.migration.v2alpha.MigrationSubtaskOrBuilder>( + migrationSubtasksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask, + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.Builder, + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtaskOrBuilder>( migrationSubtasks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -873,19 +1047,21 @@ public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.Builder addM 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; @@ -894,21 +1070,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 { @@ -916,30 +1093,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -949,27 +1133,31 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -979,41 +1167,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse) - private static final com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse(); } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMigrationSubtasksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMigrationSubtasksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1025,9 +1216,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksResponseOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksResponseOrBuilder.java similarity index 54% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksResponseOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksResponseOrBuilder.java index d019696..9fd052a 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksResponseOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationSubtasksResponseOrBuilder.java @@ -1,75 +1,116 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_service.proto package com.google.cloud.bigquery.migration.v2alpha; -public interface ListMigrationSubtasksResponseOrBuilder extends +public interface ListMigrationSubtasksResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The migration subtasks for the specified task.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ - java.util.List + java.util.List getMigrationSubtasksList(); /** + * + * *
    * The migration subtasks for the specified task.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask getMigrationSubtasks(int index); /** + * + * *
    * The migration subtasks for the specified task.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ int getMigrationSubtasksCount(); /** + * + * *
    * The migration subtasks for the specified task.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ - java.util.List + java.util.List getMigrationSubtasksOrBuilderList(); /** + * + * *
    * The migration subtasks for the specified task.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationSubtask migration_subtasks = 1; + * */ - com.google.cloud.bigquery.migration.v2alpha.MigrationSubtaskOrBuilder getMigrationSubtasksOrBuilder( - int index); + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtaskOrBuilder + getMigrationSubtasksOrBuilder(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(); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsRequest.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsRequest.java similarity index 66% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsRequest.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsRequest.java index d1bdf27..866db24 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsRequest.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_service.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * A request to list previously created migration workflows.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest} */ -public final class ListMigrationWorkflowsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListMigrationWorkflowsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest) ListMigrationWorkflowsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListMigrationWorkflowsRequest.newBuilder() to construct. private ListMigrationWorkflowsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListMigrationWorkflowsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,39 +44,47 @@ private ListMigrationWorkflowsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListMigrationWorkflowsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest.class, com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest.class, + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest.Builder + .class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The project and location of the migration workflows to list.
    * Example: `projects/123/locations/us`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -67,30 +93,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project and location of the migration workflows to list.
    * Example: `projects/123/locations/us`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -101,11 +129,14 @@ public java.lang.String getParent() { public static final int READ_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask readMask_; /** + * + * *
    * The list of fields to be retrieved.
    * 
* * .google.protobuf.FieldMask read_mask = 2; + * * @return Whether the readMask field is set. */ @java.lang.Override @@ -113,11 +144,14 @@ public boolean hasReadMask() { return readMask_ != null; } /** + * + * *
    * The list of fields to be retrieved.
    * 
* * .google.protobuf.FieldMask read_mask = 2; + * * @return The readMask. */ @java.lang.Override @@ -125,6 +159,8 @@ public com.google.protobuf.FieldMask getReadMask() { return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } /** + * + * *
    * The list of fields to be retrieved.
    * 
@@ -139,12 +175,15 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * The maximum number of migration workflows to return. The service may return
    * fewer than this number.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -153,9 +192,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from previous `ListMigrationWorkflows` call.
    * Provide this to retrieve the subsequent page.
@@ -164,6 +206,7 @@ public int getPageSize() {
    * 
* * string page_token = 4; + * * @return The pageToken. */ @java.lang.Override @@ -172,14 +215,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 previous `ListMigrationWorkflows` call.
    * Provide this to retrieve the subsequent page.
@@ -188,16 +232,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -206,6 +249,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -217,8 +261,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -244,12 +287,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (readMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReadMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadMask()); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -262,24 +303,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest)) { + if (!(obj + instanceof com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest other = (com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest) obj; + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest other = + (com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasReadMask() != other.hasReadMask()) return false; if (hasReadMask()) { - if (!getReadMask() - .equals(other.getReadMask())) return false; + if (!getReadMask().equals(other.getReadMask())) return false; } - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,129 +346,139 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A request to list previously created migration workflows.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest) com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest.class, com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest.class, + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest.Builder + .class); } - // Construct using com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -446,19 +495,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest.getDefaultInstance(); + public com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest build() { - com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest result = buildPartial(); + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -466,22 +518,25 @@ public com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest buildPartial() { - com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest result = new com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest + buildPartial() { + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest result = + new com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.readMask_ = readMaskBuilder_ == null - ? readMask_ - : readMaskBuilder_.build(); + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.pageSize_ = pageSize_; @@ -495,46 +550,52 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.ListMigra public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest) { - return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest)other); + if (other + instanceof com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest) { + return mergeFrom( + (com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest other) { - if (other == com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest other) { + if (other + == com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -577,34 +638,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getReadMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -614,23 +678,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project and location of the migration workflows to list.
      * Example: `projects/123/locations/us`
      * 
* - * string 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; @@ -639,21 +708,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location of the migration workflows to list.
      * Example: `projects/123/locations/us`
      * 
* - * string 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 { @@ -661,30 +733,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location of the migration workflows to list.
      * Example: `projects/123/locations/us`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The project and location of the migration workflows to list.
      * Example: `projects/123/locations/us`
      * 
* - * string 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() { @@ -694,18 +777,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The project and location of the migration workflows to list.
      * Example: `projects/123/locations/us`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -715,24 +804,33 @@ public Builder setParentBytes( private com.google.protobuf.FieldMask readMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> readMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + readMaskBuilder_; /** + * + * *
      * The list of fields to be retrieved.
      * 
* * .google.protobuf.FieldMask read_mask = 2; + * * @return Whether the readMask field is set. */ public boolean hasReadMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The list of fields to be retrieved.
      * 
* * .google.protobuf.FieldMask read_mask = 2; + * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -743,6 +841,8 @@ public com.google.protobuf.FieldMask getReadMask() { } } /** + * + * *
      * The list of fields to be retrieved.
      * 
@@ -763,14 +863,15 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be retrieved.
      * 
* * .google.protobuf.FieldMask read_mask = 2; */ - public Builder setReadMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); } else { @@ -781,6 +882,8 @@ public Builder setReadMask( return this; } /** + * + * *
      * The list of fields to be retrieved.
      * 
@@ -789,9 +892,9 @@ public Builder setReadMask( */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - readMask_ != null && - readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; @@ -804,6 +907,8 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be retrieved.
      * 
@@ -821,6 +926,8 @@ public Builder clearReadMask() { return this; } /** + * + * *
      * The list of fields to be retrieved.
      * 
@@ -833,6 +940,8 @@ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { return getReadMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The list of fields to be retrieved.
      * 
@@ -843,11 +952,12 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { if (readMaskBuilder_ != null) { return readMaskBuilder_.getMessageOrBuilder(); } else { - return readMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } } /** + * + * *
      * The list of fields to be retrieved.
      * 
@@ -855,27 +965,33 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { * .google.protobuf.FieldMask read_mask = 2; */ 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> getReadMaskFieldBuilder() { if (readMaskBuilder_ == null) { - readMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getReadMask(), - getParentForChildren(), - isClean()); + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); readMask_ = null; } return readMaskBuilder_; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of migration workflows to return. The service may return
      * fewer than this number.
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -883,29 +999,35 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of migration workflows to return. The service may return
      * fewer than this number.
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The maximum number of migration workflows to return. The service may return
      * fewer than this number.
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -917,6 +1039,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from previous `ListMigrationWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -925,13 +1049,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -940,6 +1064,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from previous `ListMigrationWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -948,15 +1074,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -964,6 +1089,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from previous `ListMigrationWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -972,18 +1099,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * A page token, received from previous `ListMigrationWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -992,6 +1123,7 @@ public Builder setPageToken(
      * 
* * string page_token = 4; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1001,6 +1133,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from previous `ListMigrationWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -1009,21 +1143,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1033,41 +1169,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest) - private static final com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest(); } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMigrationWorkflowsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMigrationWorkflowsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1079,9 +1218,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsRequestOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsRequestOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsRequestOrBuilder.java index debb61f..d040d45 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsRequestOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsRequestOrBuilder.java @@ -1,53 +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/bigquery/migration/v2alpha/migration_service.proto package com.google.cloud.bigquery.migration.v2alpha; -public interface ListMigrationWorkflowsRequestOrBuilder extends +public interface ListMigrationWorkflowsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project and location of the migration workflows to list.
    * Example: `projects/123/locations/us`
    * 
* - * string 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 project and location of the migration workflows to list.
    * Example: `projects/123/locations/us`
    * 
* - * string 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 list of fields to be retrieved.
    * 
* * .google.protobuf.FieldMask read_mask = 2; + * * @return Whether the readMask field is set. */ boolean hasReadMask(); /** + * + * *
    * The list of fields to be retrieved.
    * 
* * .google.protobuf.FieldMask read_mask = 2; + * * @return The readMask. */ com.google.protobuf.FieldMask getReadMask(); /** + * + * *
    * The list of fields to be retrieved.
    * 
@@ -57,17 +90,22 @@ public interface ListMigrationWorkflowsRequestOrBuilder extends com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); /** + * + * *
    * The maximum number of migration workflows to return. The service may return
    * fewer than this number.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from previous `ListMigrationWorkflows` call.
    * Provide this to retrieve the subsequent page.
@@ -76,10 +114,13 @@ public interface ListMigrationWorkflowsRequestOrBuilder extends
    * 
* * string page_token = 4; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from previous `ListMigrationWorkflows` call.
    * Provide this to retrieve the subsequent page.
@@ -88,8 +129,8 @@ public interface ListMigrationWorkflowsRequestOrBuilder extends
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsResponse.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsResponse.java similarity index 58% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsResponse.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsResponse.java index afe948b..1f0df7b 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsResponse.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsResponse.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/bigquery/migration/v2alpha/migration_service.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * Response object for a `ListMigrationWorkflows` call.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse} */ -public final class ListMigrationWorkflowsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListMigrationWorkflowsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse) ListMigrationWorkflowsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListMigrationWorkflowsResponse.newBuilder() to construct. - private ListMigrationWorkflowsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListMigrationWorkflowsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListMigrationWorkflowsResponse() { migrationWorkflows_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,100 +45,131 @@ private ListMigrationWorkflowsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListMigrationWorkflowsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsResponse_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse.class, com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse.class, + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse.Builder + .class); } public static final int MIGRATION_WORKFLOWS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List migrationWorkflows_; + private java.util.List + migrationWorkflows_; /** + * + * *
    * The migration workflows for the specified project / location.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ @java.lang.Override - public java.util.List getMigrationWorkflowsList() { + public java.util.List + getMigrationWorkflowsList() { return migrationWorkflows_; } /** + * + * *
    * The migration workflows for the specified project / location.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder> getMigrationWorkflowsOrBuilderList() { return migrationWorkflows_; } /** + * + * *
    * The migration workflows for the specified project / location.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ @java.lang.Override public int getMigrationWorkflowsCount() { return migrationWorkflows_.size(); } /** + * + * *
    * The migration workflows for the specified project / location.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow getMigrationWorkflows(int index) { + public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow getMigrationWorkflows( + int index) { return migrationWorkflows_.get(index); } /** + * + * *
    * The migration workflows for the specified project / location.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder getMigrationWorkflowsOrBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder + getMigrationWorkflowsOrBuilder(int index) { return migrationWorkflows_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -128,30 +178,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 { @@ -160,6 +210,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +222,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 < migrationWorkflows_.size(); i++) { output.writeMessage(1, migrationWorkflows_.get(i)); } @@ -189,8 +239,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < migrationWorkflows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, migrationWorkflows_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, migrationWorkflows_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -203,17 +253,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse)) { + if (!(obj + instanceof com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse other = (com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse) obj; + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse other = + (com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse) obj; - if (!getMigrationWorkflowsList() - .equals(other.getMigrationWorkflowsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getMigrationWorkflowsList().equals(other.getMigrationWorkflowsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -236,130 +286,145 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 object for a `ListMigrationWorkflows` call.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse) com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsResponse_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse.class, com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse.class, + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse.Builder + .class); } - // Construct using com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,19 +441,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse getDefaultInstanceForType() { - return com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse.getDefaultInstance(); + public com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse + getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse build() { - com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse result = buildPartial(); + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -396,15 +464,20 @@ public com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsRespons } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse buildPartial() { - com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse result = new com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse(this); + public com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse + buildPartial() { + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse result = + new com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse result) { if (migrationWorkflowsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { migrationWorkflows_ = java.util.Collections.unmodifiableList(migrationWorkflows_); @@ -416,7 +489,8 @@ private void buildPartialRepeatedFields(com.google.cloud.bigquery.migration.v2al } } - private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse result) { + private void buildPartial0( + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -427,46 +501,52 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.ListMigra public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse) { - return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse)other); + if (other + instanceof com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse) { + return mergeFrom( + (com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse other) { - if (other == com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse other) { + if (other + == com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse + .getDefaultInstance()) return this; if (migrationWorkflowsBuilder_ == null) { if (!other.migrationWorkflows_.isEmpty()) { if (migrationWorkflows_.isEmpty()) { @@ -485,9 +565,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.ListMigrati migrationWorkflowsBuilder_ = null; migrationWorkflows_ = other.migrationWorkflows_; bitField0_ = (bitField0_ & ~0x00000001); - migrationWorkflowsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMigrationWorkflowsFieldBuilder() : null; + migrationWorkflowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMigrationWorkflowsFieldBuilder() + : null; } else { migrationWorkflowsBuilder_.addAllMessages(other.migrationWorkflows_); } @@ -524,30 +605,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow m = - input.readMessage( - com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.parser(), - extensionRegistry); - if (migrationWorkflowsBuilder_ == null) { - ensureMigrationWorkflowsIsMutable(); - migrationWorkflows_.add(m); - } else { - migrationWorkflowsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow m = + input.readMessage( + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.parser(), + extensionRegistry); + if (migrationWorkflowsBuilder_ == null) { + ensureMigrationWorkflowsIsMutable(); + migrationWorkflows_.add(m); + } else { + migrationWorkflowsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,28 +641,40 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List migrationWorkflows_ = - java.util.Collections.emptyList(); + private java.util.List + migrationWorkflows_ = java.util.Collections.emptyList(); + private void ensureMigrationWorkflowsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - migrationWorkflows_ = new java.util.ArrayList(migrationWorkflows_); + migrationWorkflows_ = + new java.util.ArrayList( + migrationWorkflows_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow, com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder, com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder> migrationWorkflowsBuilder_; + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow, + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder, + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder> + migrationWorkflowsBuilder_; /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ - public java.util.List getMigrationWorkflowsList() { + public java.util.List + getMigrationWorkflowsList() { if (migrationWorkflowsBuilder_ == null) { return java.util.Collections.unmodifiableList(migrationWorkflows_); } else { @@ -586,11 +682,15 @@ public java.util.List * The migration workflows for the specified project / location. *
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ public int getMigrationWorkflowsCount() { if (migrationWorkflowsBuilder_ == null) { @@ -600,13 +700,18 @@ public int getMigrationWorkflowsCount() { } } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ - public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow getMigrationWorkflows(int index) { + public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow getMigrationWorkflows( + int index) { if (migrationWorkflowsBuilder_ == null) { return migrationWorkflows_.get(index); } else { @@ -614,11 +719,15 @@ public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow getMigratio } } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ public Builder setMigrationWorkflows( int index, com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow value) { @@ -635,14 +744,19 @@ public Builder setMigrationWorkflows( return this; } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ public Builder setMigrationWorkflows( - int index, com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder builderForValue) { + int index, + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder builderForValue) { if (migrationWorkflowsBuilder_ == null) { ensureMigrationWorkflowsIsMutable(); migrationWorkflows_.set(index, builderForValue.build()); @@ -653,13 +767,18 @@ public Builder setMigrationWorkflows( return this; } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ - public Builder addMigrationWorkflows(com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow value) { + public Builder addMigrationWorkflows( + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow value) { if (migrationWorkflowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -673,11 +792,15 @@ public Builder addMigrationWorkflows(com.google.cloud.bigquery.migration.v2alpha return this; } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ public Builder addMigrationWorkflows( int index, com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow value) { @@ -694,11 +817,15 @@ public Builder addMigrationWorkflows( return this; } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ public Builder addMigrationWorkflows( com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder builderForValue) { @@ -712,14 +839,19 @@ public Builder addMigrationWorkflows( return this; } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ public Builder addMigrationWorkflows( - int index, com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder builderForValue) { + int index, + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder builderForValue) { if (migrationWorkflowsBuilder_ == null) { ensureMigrationWorkflowsIsMutable(); migrationWorkflows_.add(index, builderForValue.build()); @@ -730,18 +862,22 @@ public Builder addMigrationWorkflows( return this; } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ public Builder addAllMigrationWorkflows( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (migrationWorkflowsBuilder_ == null) { ensureMigrationWorkflowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, migrationWorkflows_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, migrationWorkflows_); onChanged(); } else { migrationWorkflowsBuilder_.addAllMessages(values); @@ -749,11 +885,15 @@ public Builder addAllMigrationWorkflows( return this; } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ public Builder clearMigrationWorkflows() { if (migrationWorkflowsBuilder_ == null) { @@ -766,11 +906,15 @@ public Builder clearMigrationWorkflows() { return this; } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ public Builder removeMigrationWorkflows(int index) { if (migrationWorkflowsBuilder_ == null) { @@ -783,39 +927,53 @@ public Builder removeMigrationWorkflows(int index) { return this; } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ - public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder getMigrationWorkflowsBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder + getMigrationWorkflowsBuilder(int index) { return getMigrationWorkflowsFieldBuilder().getBuilder(index); } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ - public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder getMigrationWorkflowsOrBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder + getMigrationWorkflowsOrBuilder(int index) { if (migrationWorkflowsBuilder_ == null) { - return migrationWorkflows_.get(index); } else { + return migrationWorkflows_.get(index); + } else { return migrationWorkflowsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ - public java.util.List - getMigrationWorkflowsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder> + getMigrationWorkflowsOrBuilderList() { if (migrationWorkflowsBuilder_ != null) { return migrationWorkflowsBuilder_.getMessageOrBuilderList(); } else { @@ -823,45 +981,67 @@ public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder ge } } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ - public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder addMigrationWorkflowsBuilder() { - return getMigrationWorkflowsFieldBuilder().addBuilder( - com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.getDefaultInstance()); + public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder + addMigrationWorkflowsBuilder() { + return getMigrationWorkflowsFieldBuilder() + .addBuilder( + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.getDefaultInstance()); } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ - public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder addMigrationWorkflowsBuilder( - int index) { - return getMigrationWorkflowsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.getDefaultInstance()); + public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder + addMigrationWorkflowsBuilder(int index) { + return getMigrationWorkflowsFieldBuilder() + .addBuilder( + index, + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.getDefaultInstance()); } /** + * + * *
      * The migration workflows for the specified project / location.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ - public java.util.List - getMigrationWorkflowsBuilderList() { + public java.util.List + getMigrationWorkflowsBuilderList() { return getMigrationWorkflowsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow, com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder, com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder> + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow, + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder, + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder> getMigrationWorkflowsFieldBuilder() { if (migrationWorkflowsBuilder_ == null) { - migrationWorkflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow, com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder, com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder>( + migrationWorkflowsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow, + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder, + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder>( migrationWorkflows_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -873,19 +1053,21 @@ public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder add 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; @@ -894,21 +1076,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 { @@ -916,30 +1099,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -949,27 +1139,31 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -979,41 +1173,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse) - private static final com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse(); } - public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMigrationWorkflowsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMigrationWorkflowsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1025,9 +1222,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsResponseOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsResponseOrBuilder.java similarity index 54% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsResponseOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsResponseOrBuilder.java index 2593b6d..69b7076 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsResponseOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ListMigrationWorkflowsResponseOrBuilder.java @@ -1,75 +1,116 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_service.proto package com.google.cloud.bigquery.migration.v2alpha; -public interface ListMigrationWorkflowsResponseOrBuilder extends +public interface ListMigrationWorkflowsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The migration workflows for the specified project / location.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ - java.util.List + java.util.List getMigrationWorkflowsList(); /** + * + * *
    * The migration workflows for the specified project / location.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow getMigrationWorkflows(int index); /** + * + * *
    * The migration workflows for the specified project / location.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ int getMigrationWorkflowsCount(); /** + * + * *
    * The migration workflows for the specified project / location.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ - java.util.List + java.util.List getMigrationWorkflowsOrBuilderList(); /** + * + * *
    * The migration workflows for the specified project / location.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * + * repeated .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow migration_workflows = 1; + * */ - com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder getMigrationWorkflowsOrBuilder( - int index); + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder + getMigrationWorkflowsOrBuilder(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(); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/LocationName.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/LocationName.java similarity index 100% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/LocationName.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/LocationName.java diff --git a/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationEntitiesProto.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationEntitiesProto.java new file mode 100644 index 0000000..4dd3e9b --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationEntitiesProto.java @@ -0,0 +1,232 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2alpha/migration_entities.proto + +package com.google.cloud.bigquery.migration.v2alpha; + +public final class MigrationEntitiesProto { + private MigrationEntitiesProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_TasksEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_TasksEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTask_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTask_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_MigrationSubtask_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_MigrationSubtask_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTaskOrchestrationResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTaskOrchestrationResult_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/bigquery/migration/v2alph" + + "a/migration_entities.proto\022\'google.cloud" + + ".bigquery.migration.v2alpha\032\037google/api/" + + "field_behavior.proto\032\031google/api/resourc" + + "e.proto\032=google/cloud/bigquery/migration" + + "/v2alpha/assessment_task.proto\032Egoogle/c" + + "loud/bigquery/migration/v2alpha/migratio" + + "n_error_details.proto\032?google/cloud/bigq" + + "uery/migration/v2alpha/migration_metrics" + + ".proto\032>google/cloud/bigquery/migration/" + + "v2alpha/translation_task.proto\032\031google/p" + + "rotobuf/any.proto\032\037google/protobuf/times" + + "tamp.proto\032\036google/rpc/error_details.pro" + + "to\"\202\005\n\021MigrationWorkflow\022\024\n\004name\030\001 \001(\tB\006" + + "\340A\003\340A\005\022\024\n\014display_name\030\006 \001(\t\022T\n\005tasks\030\002 " + + "\003(\0132E.google.cloud.bigquery.migration.v2" + + "alpha.MigrationWorkflow.TasksEntry\022T\n\005st" + + "ate\030\003 \001(\0162@.google.cloud.bigquery.migrat" + + "ion.v2alpha.MigrationWorkflow.StateB\003\340A\003" + + "\022/\n\013create_time\030\004 \001(\0132\032.google.protobuf." + + "Timestamp\0224\n\020last_update_time\030\005 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\032d\n\nTasksEntry\022\013\n" + + "\003key\030\001 \001(\t\022E\n\005value\030\002 \001(\01326.google.cloud" + + ".bigquery.migration.v2alpha.MigrationTas" + + "k:\0028\001\"Q\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n" + + "\005DRAFT\020\001\022\013\n\007RUNNING\020\002\022\n\n\006PAUSED\020\003\022\r\n\tCOM" + + "PLETED\020\004:u\352Ar\n2bigquerymigration.googlea" + + "pis.com/MigrationWorkflow\022.google.cloud.bigque" + + "ry.migration.v2alpha.AssessmentTaskDetai" + + "lsH\000\022c\n\030translation_task_details\030\r \001(\0132?" + + ".google.cloud.bigquery.migration.v2alpha" + + ".TranslationTaskDetailsH\000\022\022\n\002id\030\001 \001(\tB\006\340" + + "A\003\340A\005\022\014\n\004type\030\002 \001(\t\022%\n\007details\030\003 \001(\0132\024.g" + + "oogle.protobuf.Any\022P\n\005state\030\004 \001(\0162<.goog" + + "le.cloud.bigquery.migration.v2alpha.Migr" + + "ationTask.StateB\003\340A\003\0224\n\020processing_error" + + "\030\005 \001(\0132\025.google.rpc.ErrorInfoB\003\340A\003\022/\n\013cr" + + "eate_time\030\006 \001(\0132\032.google.protobuf.Timest" + + "amp\0224\n\020last_update_time\030\007 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022l\n\024orchestration_resul" + + "t\030\n \001(\0132I.google.cloud.bigquery.migratio" + + "n.v2alpha.MigrationTaskOrchestrationResu" + + "ltB\003\340A\003\"r\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + + "\013\n\007PENDING\020\001\022\021\n\rORCHESTRATING\020\002\022\013\n\007RUNNI" + + "NG\020\003\022\n\n\006PAUSED\020\004\022\r\n\tSUCCEEDED\020\005\022\n\n\006FAILE" + + "D\020\006B\016\n\014task_details\"\353\005\n\020MigrationSubtask" + + "\022\024\n\004name\030\001 \001(\tB\006\340A\003\340A\005\022\017\n\007task_id\030\002 \001(\t\022" + + "\014\n\004type\030\003 \001(\t\022S\n\005state\030\005 \001(\0162?.google.cl" + + "oud.bigquery.migration.v2alpha.Migration" + + "Subtask.StateB\003\340A\003\0224\n\020processing_error\030\006" + + " \001(\0132\025.google.rpc.ErrorInfoB\003\340A\003\022a\n\026reso" + + "urce_error_details\030\014 \003(\0132<.google.cloud." + + "bigquery.migration.v2alpha.ResourceError" + + "DetailB\003\340A\003\022\034\n\024resource_error_count\030\r \001(" + + "\005\022/\n\013create_time\030\007 \001(\0132\032.google.protobuf" + + ".Timestamp\0224\n\020last_update_time\030\010 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\022D\n\007metrics\030\013 \003(" + + "\01323.google.cloud.bigquery.migration.v2al" + + "pha.TimeSeries\"^\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\n\n\006ACTIVE\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCCE" + + "EDED\020\003\022\n\n\006FAILED\020\004\022\n\n\006PAUSED\020\005:\210\001\352A\204\001\n1b" + + "igquerymigration.googleapis.com/Migratio" + + "nSubtask\022Oprojects/{project}/locations/{" + + "location}/workflows/{workflow}/subtasks/" + + "{subtask}\"\232\001\n MigrationTaskOrchestration" + + "Result\022k\n\022assessment_details\030\001 \001(\0132M.goo" + + "gle.cloud.bigquery.migration.v2alpha.Ass" + + "essmentOrchestrationResultDetailsH\000B\t\n\007d" + + "etailsB\346\001\n+com.google.cloud.bigquery.mig" + + "ration.v2alphaB\026MigrationEntitiesProtoP\001" + + "ZIcloud.google.com/go/bigquery/migration" + + "/apiv2alpha/migrationpb;migrationpb\252\002\'Go" + + "ogle.Cloud.BigQuery.Migration.V2Alpha\312\002\'" + + "Google\\Cloud\\BigQuery\\Migration\\V2alphab" + + "\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.cloud.bigquery.migration.v2alpha.AssessmentTaskProto.getDescriptor(), + com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto + .getDescriptor(), + com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.getDescriptor(), + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.getDescriptor(), + com.google.protobuf.AnyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.ErrorDetailsProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Tasks", "State", "CreateTime", "LastUpdateTime", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_TasksEntry_descriptor = + internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_TasksEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_TasksEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTask_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTask_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTask_descriptor, + new java.lang.String[] { + "AssessmentTaskDetails", + "TranslationTaskDetails", + "Id", + "Type", + "Details", + "State", + "ProcessingError", + "CreateTime", + "LastUpdateTime", + "OrchestrationResult", + "TaskDetails", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_MigrationSubtask_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_migration_v2alpha_MigrationSubtask_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_MigrationSubtask_descriptor, + new java.lang.String[] { + "Name", + "TaskId", + "Type", + "State", + "ProcessingError", + "ResourceErrorDetails", + "ResourceErrorCount", + "CreateTime", + "LastUpdateTime", + "Metrics", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTaskOrchestrationResult_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTaskOrchestrationResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTaskOrchestrationResult_descriptor, + new java.lang.String[] { + "AssessmentDetails", "Details", + }); + 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.cloud.bigquery.migration.v2alpha.AssessmentTaskProto.getDescriptor(); + com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto.getDescriptor(); + com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.getDescriptor(); + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.getDescriptor(); + com.google.protobuf.AnyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.ErrorDetailsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationErrorDetailsProto.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationErrorDetailsProto.java new file mode 100644 index 0000000..7759754 --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationErrorDetailsProto.java @@ -0,0 +1,114 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2alpha/migration_error_details.proto + +package com.google.cloud.bigquery.migration.v2alpha; + +public final class MigrationErrorDetailsProto { + private MigrationErrorDetailsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_ResourceErrorDetail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_ResourceErrorDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_ErrorDetail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_ErrorDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_ErrorLocation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_ErrorLocation_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nEgoogle/cloud/bigquery/migration/v2alph" + + "a/migration_error_details.proto\022\'google." + + "cloud.bigquery.migration.v2alpha\032\037google" + + "/api/field_behavior.proto\032\036google/rpc/er" + + "ror_details.proto\"\267\001\n\023ResourceErrorDetai" + + "l\0224\n\rresource_info\030\001 \001(\0132\030.google.rpc.Re" + + "sourceInfoB\003\340A\002\022P\n\rerror_details\030\002 \003(\01324" + + ".google.cloud.bigquery.migration.v2alpha" + + ".ErrorDetailB\003\340A\002\022\030\n\013error_count\030\003 \001(\005B\003" + + "\340A\002\"\214\001\n\013ErrorDetail\022M\n\010location\030\001 \001(\01326." + + "google.cloud.bigquery.migration.v2alpha." + + "ErrorLocationB\003\340A\001\022.\n\nerror_info\030\002 \001(\0132\025" + + ".google.rpc.ErrorInfoB\003\340A\002\"7\n\rErrorLocat" + + "ion\022\021\n\004line\030\001 \001(\005B\003\340A\001\022\023\n\006column\030\002 \001(\005B\003" + + "\340A\001B\352\001\n+com.google.cloud.bigquery.migrat" + + "ion.v2alphaB\032MigrationErrorDetailsProtoP" + + "\001ZIcloud.google.com/go/bigquery/migratio" + + "n/apiv2alpha/migrationpb;migrationpb\252\002\'G" + + "oogle.Cloud.BigQuery.Migration.V2Alpha\312\002" + + "\'Google\\Cloud\\BigQuery\\Migration\\V2alpha" + + "b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.rpc.ErrorDetailsProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_migration_v2alpha_ResourceErrorDetail_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_migration_v2alpha_ResourceErrorDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_ResourceErrorDetail_descriptor, + new java.lang.String[] { + "ResourceInfo", "ErrorDetails", "ErrorCount", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_ErrorDetail_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_migration_v2alpha_ErrorDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_ErrorDetail_descriptor, + new java.lang.String[] { + "Location", "ErrorInfo", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_ErrorLocation_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_migration_v2alpha_ErrorLocation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_ErrorLocation_descriptor, + new java.lang.String[] { + "Line", "Column", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.rpc.ErrorDetailsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationMetricsProto.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationMetricsProto.java new file mode 100644 index 0000000..dec8ab9 --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationMetricsProto.java @@ -0,0 +1,138 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2alpha/migration_metrics.proto + +package com.google.cloud.bigquery.migration.v2alpha; + +public final class MigrationMetricsProto { + private MigrationMetricsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_TimeSeries_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_TimeSeries_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_Point_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_Point_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_TimeInterval_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_TimeInterval_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_TypedValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_TypedValue_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/bigquery/migration/v2alph" + + "a/migration_metrics.proto\022\'google.cloud." + + "bigquery.migration.v2alpha\032\035google/api/d" + + "istribution.proto\032\037google/api/field_beha" + + "vior.proto\032\027google/api/metric.proto\032\037goo" + + "gle/protobuf/timestamp.proto\"\352\001\n\nTimeSer" + + "ies\022\023\n\006metric\030\001 \001(\tB\003\340A\002\022?\n\nvalue_type\030\002" + + " \001(\0162&.google.api.MetricDescriptor.Value" + + "TypeB\003\340A\002\022A\n\013metric_kind\030\003 \001(\0162\'.google." + + "api.MetricDescriptor.MetricKindB\003\340A\001\022C\n\006" + + "points\030\004 \003(\0132..google.cloud.bigquery.mig" + + "ration.v2alpha.PointB\003\340A\002\"\224\001\n\005Point\022G\n\010i" + + "nterval\030\001 \001(\01325.google.cloud.bigquery.mi" + + "gration.v2alpha.TimeInterval\022B\n\005value\030\002 " + + "\001(\01323.google.cloud.bigquery.migration.v2" + + "alpha.TypedValue\"v\n\014TimeInterval\0223\n\nstar" + + "t_time\030\001 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\001\0221\n\010end_time\030\002 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\002\"\252\001\n\nTypedValue\022\024\n\nbool_" + + "value\030\001 \001(\010H\000\022\025\n\013int64_value\030\002 \001(\003H\000\022\026\n\014" + + "double_value\030\003 \001(\001H\000\022\026\n\014string_value\030\004 \001" + + "(\tH\000\0226\n\022distribution_value\030\005 \001(\0132\030.googl" + + "e.api.DistributionH\000B\007\n\005valueB\345\001\n+com.go" + + "ogle.cloud.bigquery.migration.v2alphaB\025M" + + "igrationMetricsProtoP\001ZIcloud.google.com" + + "/go/bigquery/migration/apiv2alpha/migrat" + + "ionpb;migrationpb\252\002\'Google.Cloud.BigQuer" + + "y.Migration.V2Alpha\312\002\'Google\\Cloud\\BigQu" + + "ery\\Migration\\V2alphab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.DistributionProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.MetricProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_migration_v2alpha_TimeSeries_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_migration_v2alpha_TimeSeries_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_TimeSeries_descriptor, + new java.lang.String[] { + "Metric", "ValueType", "MetricKind", "Points", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_Point_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_migration_v2alpha_Point_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_Point_descriptor, + new java.lang.String[] { + "Interval", "Value", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_TimeInterval_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_migration_v2alpha_TimeInterval_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_TimeInterval_descriptor, + new java.lang.String[] { + "StartTime", "EndTime", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_TypedValue_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_bigquery_migration_v2alpha_TypedValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_TypedValue_descriptor, + new java.lang.String[] { + "BoolValue", "Int64Value", "DoubleValue", "StringValue", "DistributionValue", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.DistributionProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.MetricProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceProto.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceProto.java new file mode 100644 index 0000000..daeded5 --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceProto.java @@ -0,0 +1,282 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2alpha/migration_service.proto + +package com.google.cloud.bigquery.migration.v2alpha; + +public final class MigrationServiceProto { + private MigrationServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_CreateMigrationWorkflowRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_CreateMigrationWorkflowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationWorkflowRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationWorkflowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_DeleteMigrationWorkflowRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_DeleteMigrationWorkflowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_StartMigrationWorkflowRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_StartMigrationWorkflowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationSubtaskRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationSubtaskRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksResponse_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/bigquery/migration/v2alph" + + "a/migration_service.proto\022\'google.cloud." + + "bigquery.migration.v2alpha\032\034google/api/a" + + "nnotations.proto\032\027google/api/client.prot" + + "o\032\037google/api/field_behavior.proto\032\031goog" + + "le/api/resource.proto\032@google/cloud/bigq" + + "uery/migration/v2alpha/migration_entitie" + + "s.proto\032Egoogle/cloud/bigquery/migration" + + "/v2alpha/migration_error_details.proto\032?" + + "google/cloud/bigquery/migration/v2alpha/" + + "migration_metrics.proto\032\033google/protobuf" + + "/empty.proto\032 google/protobuf/field_mask" + + ".proto\"\270\001\n\036CreateMigrationWorkflowReques" + + "t\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goo" + + "gleapis.com/Location\022[\n\022migration_workfl" + + "ow\030\002 \001(\0132:.google.cloud.bigquery.migrati" + + "on.v2alpha.MigrationWorkflowB\003\340A\002\"\226\001\n\033Ge" + + "tMigrationWorkflowRequest\022H\n\004name\030\001 \001(\tB" + + ":\340A\002\372A4\n2bigquerymigration.googleapis.co" + + "m/MigrationWorkflow\022-\n\tread_mask\030\002 \001(\0132\032" + + ".google.protobuf.FieldMask\"\260\001\n\035ListMigra" + + "tionWorkflowsRequest\0229\n\006parent\030\001 \001(\tB)\340A" + + "\002\372A#\n!locations.googleapis.com/Location\022" + + "-\n\tread_mask\030\002 \001(\0132\032.google.protobuf.Fie" + + "ldMask\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030" + + "\004 \001(\t\"\222\001\n\036ListMigrationWorkflowsResponse" + + "\022W\n\023migration_workflows\030\001 \003(\0132:.google.c" + + "loud.bigquery.migration.v2alpha.Migratio" + + "nWorkflow\022\027\n\017next_page_token\030\002 \001(\t\"j\n\036De" + + "leteMigrationWorkflowRequest\022H\n\004name\030\001 \001" + + "(\tB:\340A\002\372A4\n2bigquerymigration.googleapis" + + ".com/MigrationWorkflow\"i\n\035StartMigration" + + "WorkflowRequest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2b" + + "igquerymigration.googleapis.com/Migratio" + + "nWorkflow\"\231\001\n\032GetMigrationSubtaskRequest" + + "\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1bigquerymigratio" + + "n.googleapis.com/MigrationSubtask\0222\n\trea" + + "d_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + + "B\003\340A\001\"\344\001\n\034ListMigrationSubtasksRequest\022J" + + "\n\006parent\030\001 \001(\tB:\340A\002\372A4\n2bigquerymigratio" + + "n.googleapis.com/MigrationWorkflow\0222\n\tre" + + "ad_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + + "kB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_t" + + "oken\030\004 \001(\tB\003\340A\001\022\023\n\006filter\030\005 \001(\tB\003\340A\001\"\217\001\n" + + "\035ListMigrationSubtasksResponse\022U\n\022migrat" + + "ion_subtasks\030\001 \003(\01329.google.cloud.bigque" + + "ry.migration.v2alpha.MigrationSubtask\022\027\n" + + "\017next_page_token\030\002 \001(\t2\252\r\n\020MigrationServ" + + "ice\022\212\002\n\027CreateMigrationWorkflow\022G.google" + + ".cloud.bigquery.migration.v2alpha.Create" + + "MigrationWorkflowRequest\032:.google.cloud." + + "bigquery.migration.v2alpha.MigrationWork" + + "flow\"j\202\323\344\223\002H\"2/v2alpha/{parent=projects/" + + "*/locations/*}/workflows:\022migration_work" + + "flow\332A\031parent,migration_workflow\022\333\001\n\024Get" + + "MigrationWorkflow\022D.google.cloud.bigquer" + + "y.migration.v2alpha.GetMigrationWorkflow" + + "Request\032:.google.cloud.bigquery.migratio" + + "n.v2alpha.MigrationWorkflow\"A\202\323\344\223\0024\0222/v2" + + "alpha/{name=projects/*/locations/*/workf" + + "lows/*}\332A\004name\022\356\001\n\026ListMigrationWorkflow" + + "s\022F.google.cloud.bigquery.migration.v2al" + + "pha.ListMigrationWorkflowsRequest\032G.goog" + + "le.cloud.bigquery.migration.v2alpha.List" + + "MigrationWorkflowsResponse\"C\202\323\344\223\0024\0222/v2a" + + "lpha/{parent=projects/*/locations/*}/wor" + + "kflows\332A\006parent\022\275\001\n\027DeleteMigrationWorkf" + + "low\022G.google.cloud.bigquery.migration.v2" + + "alpha.DeleteMigrationWorkflowRequest\032\026.g" + + "oogle.protobuf.Empty\"A\202\323\344\223\0024*2/v2alpha/{" + + "name=projects/*/locations/*/workflows/*}" + + "\332A\004name\022\304\001\n\026StartMigrationWorkflow\022F.goo" + + "gle.cloud.bigquery.migration.v2alpha.Sta" + + "rtMigrationWorkflowRequest\032\026.google.prot" + + "obuf.Empty\"J\202\323\344\223\002=\"8/v2alpha/{name=proje" + + "cts/*/locations/*/workflows/*}:start:\001*\332" + + "A\004name\022\343\001\n\023GetMigrationSubtask\022C.google." + + "cloud.bigquery.migration.v2alpha.GetMigr" + + "ationSubtaskRequest\0329.google.cloud.bigqu" + + "ery.migration.v2alpha.MigrationSubtask\"L" + + "\202\323\344\223\002?\022=/v2alpha/{name=projects/*/locati" + + "ons/*/workflows/*/subtasks/*}\332A\004name\022\366\001\n" + + "\025ListMigrationSubtasks\022E.google.cloud.bi" + + "gquery.migration.v2alpha.ListMigrationSu" + + "btasksRequest\032F.google.cloud.bigquery.mi" + + "gration.v2alpha.ListMigrationSubtasksRes" + + "ponse\"N\202\323\344\223\002?\022=/v2alpha/{parent=projects" + + "/*/locations/*/workflows/*}/subtasks\332A\006p" + + "arent\032T\312A bigquerymigration.googleapis.c" + + "om\322A.https://www.googleapis.com/auth/clo" + + "ud-platformB\345\001\n+com.google.cloud.bigquer" + + "y.migration.v2alphaB\025MigrationServicePro" + + "toP\001ZIcloud.google.com/go/bigquery/migra" + + "tion/apiv2alpha/migrationpb;migrationpb\252" + + "\002\'Google.Cloud.BigQuery.Migration.V2Alph" + + "a\312\002\'Google\\Cloud\\BigQuery\\Migration\\V2al" + + "phab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto.getDescriptor(), + com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto + .getDescriptor(), + com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_migration_v2alpha_CreateMigrationWorkflowRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_migration_v2alpha_CreateMigrationWorkflowRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_CreateMigrationWorkflowRequest_descriptor, + new java.lang.String[] { + "Parent", "MigrationWorkflow", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationWorkflowRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationWorkflowRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationWorkflowRequest_descriptor, + new java.lang.String[] { + "Name", "ReadMask", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsRequest_descriptor, + new java.lang.String[] { + "Parent", "ReadMask", "PageSize", "PageToken", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationWorkflowsResponse_descriptor, + new java.lang.String[] { + "MigrationWorkflows", "NextPageToken", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_DeleteMigrationWorkflowRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_bigquery_migration_v2alpha_DeleteMigrationWorkflowRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_DeleteMigrationWorkflowRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_StartMigrationWorkflowRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_bigquery_migration_v2alpha_StartMigrationWorkflowRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_StartMigrationWorkflowRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationSubtaskRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationSubtaskRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_GetMigrationSubtaskRequest_descriptor, + new java.lang.String[] { + "Name", "ReadMask", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksRequest_descriptor, + new java.lang.String[] { + "Parent", "ReadMask", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_ListMigrationSubtasksResponse_descriptor, + new java.lang.String[] { + "MigrationSubtasks", "NextPageToken", + }); + 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); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto.getDescriptor(); + com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto.getDescriptor(); + com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationSubtask.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationSubtask.java similarity index 69% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationSubtask.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationSubtask.java index 8d564eb..379f9b5 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationSubtask.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationSubtask.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_entities.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * A subtask for a migration which carries details about the configuration of
  * the subtask. The content of the details should not matter to the end user,
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.MigrationSubtask}
  */
-public final class MigrationSubtask extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MigrationSubtask extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.MigrationSubtask)
     MigrationSubtaskOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MigrationSubtask.newBuilder() to construct.
   private MigrationSubtask(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private MigrationSubtask() {
     name_ = "";
     taskId_ = "";
@@ -32,39 +50,43 @@ private MigrationSubtask() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MigrationSubtask();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2alpha_MigrationSubtask_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto
+        .internal_static_google_cloud_bigquery_migration_v2alpha_MigrationSubtask_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2alpha_MigrationSubtask_fieldAccessorTable
+    return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto
+        .internal_static_google_cloud_bigquery_migration_v2alpha_MigrationSubtask_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.class, com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.Builder.class);
+            com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.class,
+            com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Possible states of a migration subtask.
    * 
* * Protobuf enum {@code google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The state is unspecified.
      * 
@@ -73,6 +95,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The subtask is ready, i.e. it is ready for execution.
      * 
@@ -81,6 +105,8 @@ public enum State */ ACTIVE(1), /** + * + * *
      * The subtask is running, i.e. it is assigned to a worker for execution.
      * 
@@ -89,6 +115,8 @@ public enum State */ RUNNING(2), /** + * + * *
      * The subtask finished successfully.
      * 
@@ -97,6 +125,8 @@ public enum State */ SUCCEEDED(3), /** + * + * *
      * The subtask finished unsuccessfully.
      * 
@@ -105,6 +135,8 @@ public enum State */ FAILED(4), /** + * + * *
      * The subtask is paused, i.e., it will not be scheduled. If it was already
      * assigned,it might still finish but no new lease renewals will be granted.
@@ -117,6 +149,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * The state is unspecified.
      * 
@@ -125,6 +159,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The subtask is ready, i.e. it is ready for execution.
      * 
@@ -133,6 +169,8 @@ public enum State */ public static final int ACTIVE_VALUE = 1; /** + * + * *
      * The subtask is running, i.e. it is assigned to a worker for execution.
      * 
@@ -141,6 +179,8 @@ public enum State */ public static final int RUNNING_VALUE = 2; /** + * + * *
      * The subtask finished successfully.
      * 
@@ -149,6 +189,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 3; /** + * + * *
      * The subtask finished unsuccessfully.
      * 
@@ -157,6 +199,8 @@ public enum State */ public static final int FAILED_VALUE = 4; /** + * + * *
      * The subtask is paused, i.e., it will not be scheduled. If it was already
      * assigned,it might still finish but no new lease renewals will be granted.
@@ -166,7 +210,6 @@ public enum State
      */
     public static final int PAUSED_VALUE = 5;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -191,52 +234,57 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return ACTIVE;
-        case 2: return RUNNING;
-        case 3: return SUCCEEDED;
-        case 4: return FAILED;
-        case 5: return PAUSED;
-        default: return null;
-      }
-    }
-
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return ACTIVE;
+        case 2:
+          return RUNNING;
+        case 3:
+          return SUCCEEDED;
+        case 4:
+          return FAILED;
+        case 5:
+          return PAUSED;
+        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() {
-      return com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.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;
@@ -254,16 +302,22 @@ private State(int value) {
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Output only. Immutable. The resource name for the migration subtask. The ID is
    * server-generated.
    * Example: `projects/123/locations/us/workflows/345/subtasks/678`
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The name. */ @java.lang.Override @@ -272,31 +326,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. Immutable. The resource name for the migration subtask. The ID is
    * server-generated.
    * Example: `projects/123/locations/us/workflows/345/subtasks/678`
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @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 { @@ -305,14 +361,18 @@ public java.lang.String getName() { } public static final int TASK_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object taskId_ = ""; /** + * + * *
    * The unique ID of the task to which this subtask belongs.
    * 
* * string task_id = 2; + * * @return The taskId. */ @java.lang.Override @@ -321,29 +381,29 @@ public java.lang.String getTaskId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); taskId_ = s; return s; } } /** + * + * *
    * The unique ID of the task to which this subtask belongs.
    * 
* * string task_id = 2; + * * @return The bytes for taskId. */ @java.lang.Override - public com.google.protobuf.ByteString - getTaskIdBytes() { + public com.google.protobuf.ByteString getTaskIdBytes() { java.lang.Object ref = taskId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); taskId_ = b; return b; } else { @@ -352,9 +412,12 @@ public java.lang.String getTaskId() { } public static final int TYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** + * + * *
    * The type of the Subtask. The migration service does not check whether this
    * is a known type. It is up to the task creator (i.e. orchestrator or worker)
@@ -363,6 +426,7 @@ public java.lang.String getTaskId() {
    * 
* * string type = 3; + * * @return The type. */ @java.lang.Override @@ -371,14 +435,15 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** + * + * *
    * The type of the Subtask. The migration service does not check whether this
    * is a known type. It is up to the task creator (i.e. orchestrator or worker)
@@ -387,16 +452,15 @@ public java.lang.String getType() {
    * 
* * string type = 3; + * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -407,37 +471,56 @@ public java.lang.String getType() { public static final int STATE_FIELD_NUMBER = 5; private int state_ = 0; /** + * + * *
    * Output only. The current state of the subtask.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current state of the subtask.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State getState() { - com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State result = com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State.forNumber(state_); - return result == null ? com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State getState() { + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State result = + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State.forNumber(state_); + return result == null + ? com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State.UNRECOGNIZED + : result; } public static final int PROCESSING_ERROR_FIELD_NUMBER = 6; private com.google.rpc.ErrorInfo processingError_; /** + * + * *
    * Output only. An explanation that may be populated when the task is in FAILED state.
    * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the processingError field is set. */ @java.lang.Override @@ -445,98 +528,136 @@ public boolean hasProcessingError() { return processingError_ != null; } /** + * + * *
    * Output only. An explanation that may be populated when the task is in FAILED state.
    * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The processingError. */ @java.lang.Override public com.google.rpc.ErrorInfo getProcessingError() { - return processingError_ == null ? com.google.rpc.ErrorInfo.getDefaultInstance() : processingError_; + return processingError_ == null + ? com.google.rpc.ErrorInfo.getDefaultInstance() + : processingError_; } /** + * + * *
    * Output only. An explanation that may be populated when the task is in FAILED state.
    * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.rpc.ErrorInfoOrBuilder getProcessingErrorOrBuilder() { - return processingError_ == null ? com.google.rpc.ErrorInfo.getDefaultInstance() : processingError_; + return processingError_ == null + ? com.google.rpc.ErrorInfo.getDefaultInstance() + : processingError_; } public static final int RESOURCE_ERROR_DETAILS_FIELD_NUMBER = 12; + @SuppressWarnings("serial") - private java.util.List resourceErrorDetails_; + private java.util.List + resourceErrorDetails_; /** + * + * *
    * Output only. Provides details to errors and issues encountered while processing the
    * subtask. Presence of error details does not mean that the subtask failed.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getResourceErrorDetailsList() { + public java.util.List + getResourceErrorDetailsList() { return resourceErrorDetails_; } /** + * + * *
    * Output only. Provides details to errors and issues encountered while processing the
    * subtask. Presence of error details does not mean that the subtask failed.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetailOrBuilder> getResourceErrorDetailsOrBuilderList() { return resourceErrorDetails_; } /** + * + * *
    * Output only. Provides details to errors and issues encountered while processing the
    * subtask. Presence of error details does not mean that the subtask failed.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getResourceErrorDetailsCount() { return resourceErrorDetails_.size(); } /** + * + * *
    * Output only. Provides details to errors and issues encountered while processing the
    * subtask. Presence of error details does not mean that the subtask failed.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail getResourceErrorDetails(int index) { + public com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail getResourceErrorDetails( + int index) { return resourceErrorDetails_.get(index); } /** + * + * *
    * Output only. Provides details to errors and issues encountered while processing the
    * subtask. Presence of error details does not mean that the subtask failed.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetailOrBuilder getResourceErrorDetailsOrBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetailOrBuilder + getResourceErrorDetailsOrBuilder(int index) { return resourceErrorDetails_.get(index); } public static final int RESOURCE_ERROR_COUNT_FIELD_NUMBER = 13; private int resourceErrorCount_ = 0; /** + * + * *
    * The number or resources with errors. Note: This is not the total
    * number of errors as each resource can have more than one error.
@@ -545,6 +666,7 @@ public com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetailOrBuilder
    * 
* * int32 resource_error_count = 13; + * * @return The resourceErrorCount. */ @java.lang.Override @@ -555,11 +677,14 @@ public int getResourceErrorCount() { public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Time when the subtask was created.
    * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -567,11 +692,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Time when the subtask was created.
    * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return The createTime. */ @java.lang.Override @@ -579,6 +707,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Time when the subtask was created.
    * 
@@ -593,11 +723,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int LAST_UPDATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp lastUpdateTime_; /** + * + * *
    * Time when the subtask was last updated.
    * 
* * .google.protobuf.Timestamp last_update_time = 8; + * * @return Whether the lastUpdateTime field is set. */ @java.lang.Override @@ -605,18 +738,25 @@ public boolean hasLastUpdateTime() { return lastUpdateTime_ != null; } /** + * + * *
    * Time when the subtask was last updated.
    * 
* * .google.protobuf.Timestamp last_update_time = 8; + * * @return The lastUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastUpdateTime() { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } /** + * + * *
    * Time when the subtask was last updated.
    * 
@@ -625,13 +765,18 @@ public com.google.protobuf.Timestamp getLastUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } public static final int METRICS_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private java.util.List metrics_; /** + * + * *
    * The metrics for the subtask.
    * 
@@ -643,6 +788,8 @@ public java.util.List ge return metrics_; } /** + * + * *
    * The metrics for the subtask.
    * 
@@ -650,11 +797,13 @@ public java.util.List ge * repeated .google.cloud.bigquery.migration.v2alpha.TimeSeries metrics = 11; */ @java.lang.Override - public java.util.List + public java.util.List getMetricsOrBuilderList() { return metrics_; } /** + * + * *
    * The metrics for the subtask.
    * 
@@ -666,6 +815,8 @@ public int getMetricsCount() { return metrics_.size(); } /** + * + * *
    * The metrics for the subtask.
    * 
@@ -677,6 +828,8 @@ public com.google.cloud.bigquery.migration.v2alpha.TimeSeries getMetrics(int ind return metrics_.get(index); } /** + * + * *
    * The metrics for the subtask.
    * 
@@ -690,6 +843,7 @@ public com.google.cloud.bigquery.migration.v2alpha.TimeSeriesOrBuilder getMetric } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -701,8 +855,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -712,7 +865,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_); } - if (state_ != com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(5, state_); } if (processingError_ != null) { @@ -751,33 +906,30 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_); } - if (state_ != com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, state_); + if (state_ + != com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); } if (processingError_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getProcessingError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getProcessingError()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); } if (lastUpdateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getLastUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLastUpdateTime()); } for (int i = 0; i < metrics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, metrics_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, metrics_.get(i)); } for (int i = 0; i < resourceErrorDetails_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, resourceErrorDetails_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, resourceErrorDetails_.get(i)); } if (resourceErrorCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(13, resourceErrorCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(13, resourceErrorCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -787,41 +939,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.bigquery.migration.v2alpha.MigrationSubtask)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask other = (com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask) obj; + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask other = + (com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getTaskId() - .equals(other.getTaskId())) return false; - if (!getType() - .equals(other.getType())) return false; + if (!getName().equals(other.getName())) return false; + if (!getTaskId().equals(other.getTaskId())) return false; + if (!getType().equals(other.getType())) return false; if (state_ != other.state_) return false; if (hasProcessingError() != other.hasProcessingError()) return false; if (hasProcessingError()) { - if (!getProcessingError() - .equals(other.getProcessingError())) return false; + if (!getProcessingError().equals(other.getProcessingError())) return false; } - if (!getResourceErrorDetailsList() - .equals(other.getResourceErrorDetailsList())) return false; - if (getResourceErrorCount() - != other.getResourceErrorCount()) return false; + if (!getResourceErrorDetailsList().equals(other.getResourceErrorDetailsList())) return false; + if (getResourceErrorCount() != other.getResourceErrorCount()) 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 (hasLastUpdateTime() != other.hasLastUpdateTime()) return false; if (hasLastUpdateTime()) { - if (!getLastUpdateTime() - .equals(other.getLastUpdateTime())) return false; + if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false; } - if (!getMetricsList() - .equals(other.getMetricsList())) return false; + if (!getMetricsList().equals(other.getMetricsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -869,96 +1013,104 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 subtask for a migration which carries details about the configuration of
    * the subtask. The content of the details should not matter to the end user,
@@ -967,33 +1119,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.MigrationSubtask}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.MigrationSubtask)
       com.google.cloud.bigquery.migration.v2alpha.MigrationSubtaskOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2alpha_MigrationSubtask_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto
+          .internal_static_google_cloud_bigquery_migration_v2alpha_MigrationSubtask_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2alpha_MigrationSubtask_fieldAccessorTable
+      return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto
+          .internal_static_google_cloud_bigquery_migration_v2alpha_MigrationSubtask_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.class, com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.Builder.class);
+              com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.class,
+              com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1036,13 +1187,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2alpha_MigrationSubtask_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto
+          .internal_static_google_cloud_bigquery_migration_v2alpha_MigrationSubtask_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask getDefaultInstanceForType() {
+    public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask
+        getDefaultInstanceForType() {
       return com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.getDefaultInstance();
     }
 
@@ -1057,14 +1209,18 @@ public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask buildPartial() {
-      com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask result = new com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask(this);
+      com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask result =
+          new com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask result) {
       if (resourceErrorDetailsBuilder_ == null) {
         if (((bitField0_ & 0x00000020) != 0)) {
           resourceErrorDetails_ = java.util.Collections.unmodifiableList(resourceErrorDetails_);
@@ -1085,7 +1241,8 @@ private void buildPartialRepeatedFields(com.google.cloud.bigquery.migration.v2al
       }
     }
 
-    private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask result) {
+    private void buildPartial0(
+        com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.name_ = name_;
@@ -1100,22 +1257,18 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.Migration
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.processingError_ = processingErrorBuilder_ == null
-            ? processingError_
-            : processingErrorBuilder_.build();
+        result.processingError_ =
+            processingErrorBuilder_ == null ? processingError_ : processingErrorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
         result.resourceErrorCount_ = resourceErrorCount_;
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.lastUpdateTime_ = lastUpdateTimeBuilder_ == null
-            ? lastUpdateTime_
-            : lastUpdateTimeBuilder_.build();
+        result.lastUpdateTime_ =
+            lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build();
       }
     }
 
@@ -1123,38 +1276,39 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.Migration
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask) {
-        return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask)other);
+        return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1162,7 +1316,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask other) {
-      if (other == com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -1202,9 +1358,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.MigrationSu
             resourceErrorDetailsBuilder_ = null;
             resourceErrorDetails_ = other.resourceErrorDetails_;
             bitField0_ = (bitField0_ & ~0x00000020);
-            resourceErrorDetailsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getResourceErrorDetailsFieldBuilder() : null;
+            resourceErrorDetailsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getResourceErrorDetailsFieldBuilder()
+                    : null;
           } else {
             resourceErrorDetailsBuilder_.addAllMessages(other.resourceErrorDetails_);
           }
@@ -1237,9 +1394,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.MigrationSu
             metricsBuilder_ = null;
             metrics_ = other.metrics_;
             bitField0_ = (bitField0_ & ~0x00000200);
-            metricsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getMetricsFieldBuilder() : null;
+            metricsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getMetricsFieldBuilder()
+                    : null;
           } else {
             metricsBuilder_.addAllMessages(other.metrics_);
           }
@@ -1271,84 +1429,89 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              taskId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              type_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 40: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 40
-            case 50: {
-              input.readMessage(
-                  getProcessingErrorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getLastUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 66
-            case 90: {
-              com.google.cloud.bigquery.migration.v2alpha.TimeSeries m =
-                  input.readMessage(
-                      com.google.cloud.bigquery.migration.v2alpha.TimeSeries.parser(),
-                      extensionRegistry);
-              if (metricsBuilder_ == null) {
-                ensureMetricsIsMutable();
-                metrics_.add(m);
-              } else {
-                metricsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 90
-            case 98: {
-              com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail m =
-                  input.readMessage(
-                      com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.parser(),
-                      extensionRegistry);
-              if (resourceErrorDetailsBuilder_ == null) {
-                ensureResourceErrorDetailsIsMutable();
-                resourceErrorDetails_.add(m);
-              } else {
-                resourceErrorDetailsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 98
-            case 104: {
-              resourceErrorCount_ = input.readInt32();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 104
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                taskId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                type_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 40:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 40
+            case 50:
+              {
+                input.readMessage(getProcessingErrorFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getLastUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 66
+            case 90:
+              {
+                com.google.cloud.bigquery.migration.v2alpha.TimeSeries m =
+                    input.readMessage(
+                        com.google.cloud.bigquery.migration.v2alpha.TimeSeries.parser(),
+                        extensionRegistry);
+                if (metricsBuilder_ == null) {
+                  ensureMetricsIsMutable();
+                  metrics_.add(m);
+                } else {
+                  metricsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 90
+            case 98:
+              {
+                com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail m =
+                    input.readMessage(
+                        com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.parser(),
+                        extensionRegistry);
+                if (resourceErrorDetailsBuilder_ == null) {
+                  ensureResourceErrorDetailsIsMutable();
+                  resourceErrorDetails_.add(m);
+                } else {
+                  resourceErrorDetailsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 98
+            case 104:
+              {
+                resourceErrorCount_ = input.readInt32();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 104
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1358,24 +1521,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. Immutable. The resource name for the migration subtask. The ID is
      * server-generated.
      * Example: `projects/123/locations/us/workflows/345/subtasks/678`
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @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; @@ -1384,22 +1552,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Immutable. The resource name for the migration subtask. The ID is
      * server-generated.
      * Example: `projects/123/locations/us/workflows/345/subtasks/678`
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @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 { @@ -1407,32 +1578,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Immutable. The resource name for the migration subtask. The ID is
      * server-generated.
      * Example: `projects/123/locations/us/workflows/345/subtasks/678`
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. Immutable. The resource name for the migration subtask. The ID is
      * server-generated.
      * Example: `projects/123/locations/us/workflows/345/subtasks/678`
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -1442,19 +1624,25 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. Immutable. The resource name for the migration subtask. The ID is
      * server-generated.
      * Example: `projects/123/locations/us/workflows/345/subtasks/678`
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1464,18 +1652,20 @@ public Builder setNameBytes( private java.lang.Object taskId_ = ""; /** + * + * *
      * The unique ID of the task to which this subtask belongs.
      * 
* * string task_id = 2; + * * @return The taskId. */ public java.lang.String getTaskId() { java.lang.Object ref = taskId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); taskId_ = s; return s; @@ -1484,20 +1674,21 @@ public java.lang.String getTaskId() { } } /** + * + * *
      * The unique ID of the task to which this subtask belongs.
      * 
* * string task_id = 2; + * * @return The bytes for taskId. */ - public com.google.protobuf.ByteString - getTaskIdBytes() { + public com.google.protobuf.ByteString getTaskIdBytes() { java.lang.Object ref = taskId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); taskId_ = b; return b; } else { @@ -1505,28 +1696,35 @@ public java.lang.String getTaskId() { } } /** + * + * *
      * The unique ID of the task to which this subtask belongs.
      * 
* * string task_id = 2; + * * @param value The taskId to set. * @return This builder for chaining. */ - public Builder setTaskId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTaskId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } taskId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The unique ID of the task to which this subtask belongs.
      * 
* * string task_id = 2; + * * @return This builder for chaining. */ public Builder clearTaskId() { @@ -1536,17 +1734,21 @@ public Builder clearTaskId() { return this; } /** + * + * *
      * The unique ID of the task to which this subtask belongs.
      * 
* * string task_id = 2; + * * @param value The bytes for taskId to set. * @return This builder for chaining. */ - public Builder setTaskIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTaskIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); taskId_ = value; bitField0_ |= 0x00000002; @@ -1556,6 +1758,8 @@ public Builder setTaskIdBytes( private java.lang.Object type_ = ""; /** + * + * *
      * The type of the Subtask. The migration service does not check whether this
      * is a known type. It is up to the task creator (i.e. orchestrator or worker)
@@ -1564,13 +1768,13 @@ public Builder setTaskIdBytes(
      * 
* * string type = 3; + * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -1579,6 +1783,8 @@ public java.lang.String getType() { } } /** + * + * *
      * The type of the Subtask. The migration service does not check whether this
      * is a known type. It is up to the task creator (i.e. orchestrator or worker)
@@ -1587,15 +1793,14 @@ public java.lang.String getType() {
      * 
* * string type = 3; + * * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -1603,6 +1808,8 @@ public java.lang.String getType() { } } /** + * + * *
      * The type of the Subtask. The migration service does not check whether this
      * is a known type. It is up to the task creator (i.e. orchestrator or worker)
@@ -1611,18 +1818,22 @@ public java.lang.String getType() {
      * 
* * string type = 3; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } type_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The type of the Subtask. The migration service does not check whether this
      * is a known type. It is up to the task creator (i.e. orchestrator or worker)
@@ -1631,6 +1842,7 @@ public Builder setType(
      * 
* * string type = 3; + * * @return This builder for chaining. */ public Builder clearType() { @@ -1640,6 +1852,8 @@ public Builder clearType() { return this; } /** + * + * *
      * The type of the Subtask. The migration service does not check whether this
      * is a known type. It is up to the task creator (i.e. orchestrator or worker)
@@ -1648,12 +1862,14 @@ public Builder clearType() {
      * 
* * string type = 3; + * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); type_ = value; bitField0_ |= 0x00000004; @@ -1663,22 +1879,33 @@ public Builder setTypeBytes( private int state_ = 0; /** + * + * *
      * Output only. The current state of the subtask.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current state of the subtask.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1689,28 +1916,42 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. The current state of the subtask.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State getState() { - com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State result = com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State.forNumber(state_); - return result == null ? com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State.UNRECOGNIZED : result; + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State result = + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State.forNumber(state_); + return result == null + ? com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The current state of the subtask.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ - public Builder setState(com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State value) { + public Builder setState( + com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State value) { if (value == null) { throw new NullPointerException(); } @@ -1720,11 +1961,16 @@ public Builder setState(com.google.cloud.bigquery.migration.v2alpha.MigrationSub return this; } /** + * + * *
      * Output only. The current state of the subtask.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -1736,39 +1982,58 @@ public Builder clearState() { private com.google.rpc.ErrorInfo processingError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.ErrorInfo, com.google.rpc.ErrorInfo.Builder, com.google.rpc.ErrorInfoOrBuilder> processingErrorBuilder_; + com.google.rpc.ErrorInfo, + com.google.rpc.ErrorInfo.Builder, + com.google.rpc.ErrorInfoOrBuilder> + processingErrorBuilder_; /** + * + * *
      * Output only. An explanation that may be populated when the task is in FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the processingError field is set. */ public boolean hasProcessingError() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Output only. An explanation that may be populated when the task is in FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The processingError. */ public com.google.rpc.ErrorInfo getProcessingError() { if (processingErrorBuilder_ == null) { - return processingError_ == null ? com.google.rpc.ErrorInfo.getDefaultInstance() : processingError_; + return processingError_ == null + ? com.google.rpc.ErrorInfo.getDefaultInstance() + : processingError_; } else { return processingErrorBuilder_.getMessage(); } } /** + * + * *
      * Output only. An explanation that may be populated when the task is in FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setProcessingError(com.google.rpc.ErrorInfo value) { if (processingErrorBuilder_ == null) { @@ -1784,14 +2049,17 @@ public Builder setProcessingError(com.google.rpc.ErrorInfo value) { return this; } /** + * + * *
      * Output only. An explanation that may be populated when the task is in FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setProcessingError( - com.google.rpc.ErrorInfo.Builder builderForValue) { + public Builder setProcessingError(com.google.rpc.ErrorInfo.Builder builderForValue) { if (processingErrorBuilder_ == null) { processingError_ = builderForValue.build(); } else { @@ -1802,17 +2070,21 @@ public Builder setProcessingError( return this; } /** + * + * *
      * Output only. An explanation that may be populated when the task is in FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeProcessingError(com.google.rpc.ErrorInfo value) { if (processingErrorBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - processingError_ != null && - processingError_ != com.google.rpc.ErrorInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && processingError_ != null + && processingError_ != com.google.rpc.ErrorInfo.getDefaultInstance()) { getProcessingErrorBuilder().mergeFrom(value); } else { processingError_ = value; @@ -1825,11 +2097,15 @@ public Builder mergeProcessingError(com.google.rpc.ErrorInfo value) { return this; } /** + * + * *
      * Output only. An explanation that may be populated when the task is in FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearProcessingError() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1842,11 +2118,15 @@ public Builder clearProcessingError() { return this; } /** + * + * *
      * Output only. An explanation that may be populated when the task is in FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.rpc.ErrorInfo.Builder getProcessingErrorBuilder() { bitField0_ |= 0x00000010; @@ -1854,62 +2134,86 @@ public com.google.rpc.ErrorInfo.Builder getProcessingErrorBuilder() { return getProcessingErrorFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. An explanation that may be populated when the task is in FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.rpc.ErrorInfoOrBuilder getProcessingErrorOrBuilder() { if (processingErrorBuilder_ != null) { return processingErrorBuilder_.getMessageOrBuilder(); } else { - return processingError_ == null ? - com.google.rpc.ErrorInfo.getDefaultInstance() : processingError_; + return processingError_ == null + ? com.google.rpc.ErrorInfo.getDefaultInstance() + : processingError_; } } /** + * + * *
      * Output only. An explanation that may be populated when the task is in FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.ErrorInfo, com.google.rpc.ErrorInfo.Builder, com.google.rpc.ErrorInfoOrBuilder> + com.google.rpc.ErrorInfo, + com.google.rpc.ErrorInfo.Builder, + com.google.rpc.ErrorInfoOrBuilder> getProcessingErrorFieldBuilder() { if (processingErrorBuilder_ == null) { - processingErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.ErrorInfo, com.google.rpc.ErrorInfo.Builder, com.google.rpc.ErrorInfoOrBuilder>( - getProcessingError(), - getParentForChildren(), - isClean()); + processingErrorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.ErrorInfo, + com.google.rpc.ErrorInfo.Builder, + com.google.rpc.ErrorInfoOrBuilder>( + getProcessingError(), getParentForChildren(), isClean()); processingError_ = null; } return processingErrorBuilder_; } - private java.util.List resourceErrorDetails_ = - java.util.Collections.emptyList(); + private java.util.List + resourceErrorDetails_ = java.util.Collections.emptyList(); + private void ensureResourceErrorDetailsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - resourceErrorDetails_ = new java.util.ArrayList(resourceErrorDetails_); + resourceErrorDetails_ = + new java.util.ArrayList< + com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail>( + resourceErrorDetails_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail, com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.Builder, com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetailOrBuilder> resourceErrorDetailsBuilder_; + com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail, + com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.Builder, + com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetailOrBuilder> + resourceErrorDetailsBuilder_; /** + * + * *
      * Output only. Provides details to errors and issues encountered while processing the
      * subtask. Presence of error details does not mean that the subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getResourceErrorDetailsList() { + public java.util.List + getResourceErrorDetailsList() { if (resourceErrorDetailsBuilder_ == null) { return java.util.Collections.unmodifiableList(resourceErrorDetails_); } else { @@ -1917,12 +2221,16 @@ public java.util.List * Output only. Provides details to errors and issues encountered while processing the * subtask. Presence of error details does not mean that the subtask failed. *
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getResourceErrorDetailsCount() { if (resourceErrorDetailsBuilder_ == null) { @@ -1932,14 +2240,19 @@ public int getResourceErrorDetailsCount() { } } /** + * + * *
      * Output only. Provides details to errors and issues encountered while processing the
      * subtask. Presence of error details does not mean that the subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail getResourceErrorDetails(int index) { + public com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail getResourceErrorDetails( + int index) { if (resourceErrorDetailsBuilder_ == null) { return resourceErrorDetails_.get(index); } else { @@ -1947,12 +2260,16 @@ public com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail getResour } } /** + * + * *
      * Output only. Provides details to errors and issues encountered while processing the
      * subtask. Presence of error details does not mean that the subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setResourceErrorDetails( int index, com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail value) { @@ -1969,15 +2286,20 @@ public Builder setResourceErrorDetails( return this; } /** + * + * *
      * Output only. Provides details to errors and issues encountered while processing the
      * subtask. Presence of error details does not mean that the subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setResourceErrorDetails( - int index, com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.Builder builderForValue) { + int index, + com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.Builder builderForValue) { if (resourceErrorDetailsBuilder_ == null) { ensureResourceErrorDetailsIsMutable(); resourceErrorDetails_.set(index, builderForValue.build()); @@ -1988,14 +2310,19 @@ public Builder setResourceErrorDetails( return this; } /** + * + * *
      * Output only. Provides details to errors and issues encountered while processing the
      * subtask. Presence of error details does not mean that the subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addResourceErrorDetails(com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail value) { + public Builder addResourceErrorDetails( + com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail value) { if (resourceErrorDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2009,12 +2336,16 @@ public Builder addResourceErrorDetails(com.google.cloud.bigquery.migration.v2alp return this; } /** + * + * *
      * Output only. Provides details to errors and issues encountered while processing the
      * subtask. Presence of error details does not mean that the subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addResourceErrorDetails( int index, com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail value) { @@ -2031,12 +2362,16 @@ public Builder addResourceErrorDetails( return this; } /** + * + * *
      * Output only. Provides details to errors and issues encountered while processing the
      * subtask. Presence of error details does not mean that the subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addResourceErrorDetails( com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.Builder builderForValue) { @@ -2050,15 +2385,20 @@ public Builder addResourceErrorDetails( return this; } /** + * + * *
      * Output only. Provides details to errors and issues encountered while processing the
      * subtask. Presence of error details does not mean that the subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addResourceErrorDetails( - int index, com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.Builder builderForValue) { + int index, + com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.Builder builderForValue) { if (resourceErrorDetailsBuilder_ == null) { ensureResourceErrorDetailsIsMutable(); resourceErrorDetails_.add(index, builderForValue.build()); @@ -2069,19 +2409,24 @@ public Builder addResourceErrorDetails( return this; } /** + * + * *
      * Output only. Provides details to errors and issues encountered while processing the
      * subtask. Presence of error details does not mean that the subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllResourceErrorDetails( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail> + values) { if (resourceErrorDetailsBuilder_ == null) { ensureResourceErrorDetailsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resourceErrorDetails_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceErrorDetails_); onChanged(); } else { resourceErrorDetailsBuilder_.addAllMessages(values); @@ -2089,12 +2434,16 @@ public Builder addAllResourceErrorDetails( return this; } /** + * + * *
      * Output only. Provides details to errors and issues encountered while processing the
      * subtask. Presence of error details does not mean that the subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearResourceErrorDetails() { if (resourceErrorDetailsBuilder_ == null) { @@ -2107,12 +2456,16 @@ public Builder clearResourceErrorDetails() { return this; } /** + * + * *
      * Output only. Provides details to errors and issues encountered while processing the
      * subtask. Presence of error details does not mean that the subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeResourceErrorDetails(int index) { if (resourceErrorDetailsBuilder_ == null) { @@ -2125,42 +2478,56 @@ public Builder removeResourceErrorDetails(int index) { return this; } /** + * + * *
      * Output only. Provides details to errors and issues encountered while processing the
      * subtask. Presence of error details does not mean that the subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.Builder getResourceErrorDetailsBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.Builder + getResourceErrorDetailsBuilder(int index) { return getResourceErrorDetailsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Provides details to errors and issues encountered while processing the
      * subtask. Presence of error details does not mean that the subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetailOrBuilder getResourceErrorDetailsOrBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetailOrBuilder + getResourceErrorDetailsOrBuilder(int index) { if (resourceErrorDetailsBuilder_ == null) { - return resourceErrorDetails_.get(index); } else { + return resourceErrorDetails_.get(index); + } else { return resourceErrorDetailsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Provides details to errors and issues encountered while processing the
      * subtask. Presence of error details does not mean that the subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getResourceErrorDetailsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetailOrBuilder> + getResourceErrorDetailsOrBuilderList() { if (resourceErrorDetailsBuilder_ != null) { return resourceErrorDetailsBuilder_.getMessageOrBuilderList(); } else { @@ -2168,48 +2535,70 @@ public com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetailOrBuilder } } /** + * + * *
      * Output only. Provides details to errors and issues encountered while processing the
      * subtask. Presence of error details does not mean that the subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.Builder addResourceErrorDetailsBuilder() { - return getResourceErrorDetailsFieldBuilder().addBuilder( - com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.getDefaultInstance()); + public com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.Builder + addResourceErrorDetailsBuilder() { + return getResourceErrorDetailsFieldBuilder() + .addBuilder( + com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.getDefaultInstance()); } /** + * + * *
      * Output only. Provides details to errors and issues encountered while processing the
      * subtask. Presence of error details does not mean that the subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.Builder addResourceErrorDetailsBuilder( - int index) { - return getResourceErrorDetailsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.getDefaultInstance()); + public com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.Builder + addResourceErrorDetailsBuilder(int index) { + return getResourceErrorDetailsFieldBuilder() + .addBuilder( + index, + com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.getDefaultInstance()); } /** + * + * *
      * Output only. Provides details to errors and issues encountered while processing the
      * subtask. Presence of error details does not mean that the subtask failed.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getResourceErrorDetailsBuilderList() { + public java.util.List + getResourceErrorDetailsBuilderList() { return getResourceErrorDetailsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail, com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.Builder, com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetailOrBuilder> + com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail, + com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.Builder, + com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetailOrBuilder> getResourceErrorDetailsFieldBuilder() { if (resourceErrorDetailsBuilder_ == null) { - resourceErrorDetailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail, com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.Builder, com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetailOrBuilder>( + resourceErrorDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail, + com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.Builder, + com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetailOrBuilder>( resourceErrorDetails_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), @@ -2219,8 +2608,10 @@ public com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.Builder a return resourceErrorDetailsBuilder_; } - private int resourceErrorCount_ ; + private int resourceErrorCount_; /** + * + * *
      * The number or resources with errors. Note: This is not the total
      * number of errors as each resource can have more than one error.
@@ -2229,6 +2620,7 @@ public com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.Builder a
      * 
* * int32 resource_error_count = 13; + * * @return The resourceErrorCount. */ @java.lang.Override @@ -2236,6 +2628,8 @@ public int getResourceErrorCount() { return resourceErrorCount_; } /** + * + * *
      * The number or resources with errors. Note: This is not the total
      * number of errors as each resource can have more than one error.
@@ -2244,17 +2638,20 @@ public int getResourceErrorCount() {
      * 
* * int32 resource_error_count = 13; + * * @param value The resourceErrorCount to set. * @return This builder for chaining. */ public Builder setResourceErrorCount(int value) { - + resourceErrorCount_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * The number or resources with errors. Note: This is not the total
      * number of errors as each resource can have more than one error.
@@ -2263,6 +2660,7 @@ public Builder setResourceErrorCount(int value) {
      * 
* * int32 resource_error_count = 13; + * * @return This builder for chaining. */ public Builder clearResourceErrorCount() { @@ -2274,34 +2672,47 @@ public Builder clearResourceErrorCount() { 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_; /** + * + * *
      * Time when the subtask was created.
      * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Time when the subtask was created.
      * 
* * .google.protobuf.Timestamp create_time = 7; + * * @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(); } } /** + * + * *
      * Time when the subtask was created.
      * 
@@ -2322,14 +2733,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the subtask was created.
      * 
* * .google.protobuf.Timestamp create_time = 7; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -2340,6 +2752,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Time when the subtask was created.
      * 
@@ -2348,9 +2762,9 @@ public Builder setCreateTime( */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -2363,6 +2777,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the subtask was created.
      * 
@@ -2380,6 +2796,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Time when the subtask was created.
      * 
@@ -2392,6 +2810,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the subtask was created.
      * 
@@ -2402,11 +2822,14 @@ 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_; } } /** + * + * *
      * Time when the subtask was created.
      * 
@@ -2414,14 +2837,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 7; */ 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_; @@ -2429,34 +2855,47 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp lastUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastUpdateTimeBuilder_; /** + * + * *
      * Time when the subtask was last updated.
      * 
* * .google.protobuf.Timestamp last_update_time = 8; + * * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Time when the subtask was last updated.
      * 
* * .google.protobuf.Timestamp last_update_time = 8; + * * @return The lastUpdateTime. */ public com.google.protobuf.Timestamp getLastUpdateTime() { if (lastUpdateTimeBuilder_ == null) { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } else { return lastUpdateTimeBuilder_.getMessage(); } } /** + * + * *
      * Time when the subtask was last updated.
      * 
@@ -2477,14 +2916,15 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the subtask was last updated.
      * 
* * .google.protobuf.Timestamp last_update_time = 8; */ - public Builder setLastUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); } else { @@ -2495,6 +2935,8 @@ public Builder setLastUpdateTime( return this; } /** + * + * *
      * Time when the subtask was last updated.
      * 
@@ -2503,9 +2945,9 @@ public Builder setLastUpdateTime( */ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - lastUpdateTime_ != null && - lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && lastUpdateTime_ != null + && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastUpdateTimeBuilder().mergeFrom(value); } else { lastUpdateTime_ = value; @@ -2518,6 +2960,8 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the subtask was last updated.
      * 
@@ -2535,6 +2979,8 @@ public Builder clearLastUpdateTime() { return this; } /** + * + * *
      * Time when the subtask was last updated.
      * 
@@ -2547,6 +2993,8 @@ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { return getLastUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the subtask was last updated.
      * 
@@ -2557,11 +3005,14 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { if (lastUpdateTimeBuilder_ != null) { return lastUpdateTimeBuilder_.getMessageOrBuilder(); } else { - return lastUpdateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } } /** + * + * *
      * Time when the subtask was last updated.
      * 
@@ -2569,32 +3020,43 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { * .google.protobuf.Timestamp last_update_time = 8; */ 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> getLastUpdateTimeFieldBuilder() { if (lastUpdateTimeBuilder_ == null) { - lastUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getLastUpdateTime(), - getParentForChildren(), - isClean()); + lastUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastUpdateTime(), getParentForChildren(), isClean()); lastUpdateTime_ = null; } return lastUpdateTimeBuilder_; } private java.util.List metrics_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMetricsIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { - metrics_ = new java.util.ArrayList(metrics_); + metrics_ = + new java.util.ArrayList( + metrics_); bitField0_ |= 0x00000200; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.TimeSeries, com.google.cloud.bigquery.migration.v2alpha.TimeSeries.Builder, com.google.cloud.bigquery.migration.v2alpha.TimeSeriesOrBuilder> metricsBuilder_; + com.google.cloud.bigquery.migration.v2alpha.TimeSeries, + com.google.cloud.bigquery.migration.v2alpha.TimeSeries.Builder, + com.google.cloud.bigquery.migration.v2alpha.TimeSeriesOrBuilder> + metricsBuilder_; /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2609,6 +3071,8 @@ public java.util.List ge } } /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2623,6 +3087,8 @@ public int getMetricsCount() { } } /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2637,6 +3103,8 @@ public com.google.cloud.bigquery.migration.v2alpha.TimeSeries getMetrics(int ind } } /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2658,6 +3126,8 @@ public Builder setMetrics( return this; } /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2676,6 +3146,8 @@ public Builder setMetrics( return this; } /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2696,6 +3168,8 @@ public Builder addMetrics(com.google.cloud.bigquery.migration.v2alpha.TimeSeries return this; } /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2717,6 +3191,8 @@ public Builder addMetrics( return this; } /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2735,6 +3211,8 @@ public Builder addMetrics( return this; } /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2753,6 +3231,8 @@ public Builder addMetrics( return this; } /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2760,11 +3240,11 @@ public Builder addMetrics( * repeated .google.cloud.bigquery.migration.v2alpha.TimeSeries metrics = 11; */ public Builder addAllMetrics( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, metrics_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); onChanged(); } else { metricsBuilder_.addAllMessages(values); @@ -2772,6 +3252,8 @@ public Builder addAllMetrics( return this; } /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2789,6 +3271,8 @@ public Builder clearMetrics() { return this; } /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2806,6 +3290,8 @@ public Builder removeMetrics(int index) { return this; } /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2817,6 +3303,8 @@ public com.google.cloud.bigquery.migration.v2alpha.TimeSeries.Builder getMetrics return getMetricsFieldBuilder().getBuilder(index); } /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2826,19 +3314,22 @@ public com.google.cloud.bigquery.migration.v2alpha.TimeSeries.Builder getMetrics public com.google.cloud.bigquery.migration.v2alpha.TimeSeriesOrBuilder getMetricsOrBuilder( int index) { if (metricsBuilder_ == null) { - return metrics_.get(index); } else { + return metrics_.get(index); + } else { return metricsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The metrics for the subtask.
      * 
* * repeated .google.cloud.bigquery.migration.v2alpha.TimeSeries metrics = 11; */ - public java.util.List - getMetricsOrBuilderList() { + public java.util.List + getMetricsOrBuilderList() { if (metricsBuilder_ != null) { return metricsBuilder_.getMessageOrBuilderList(); } else { @@ -2846,6 +3337,8 @@ public com.google.cloud.bigquery.migration.v2alpha.TimeSeriesOrBuilder getMetric } } /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2853,10 +3346,12 @@ public com.google.cloud.bigquery.migration.v2alpha.TimeSeriesOrBuilder getMetric * repeated .google.cloud.bigquery.migration.v2alpha.TimeSeries metrics = 11; */ public com.google.cloud.bigquery.migration.v2alpha.TimeSeries.Builder addMetricsBuilder() { - return getMetricsFieldBuilder().addBuilder( - com.google.cloud.bigquery.migration.v2alpha.TimeSeries.getDefaultInstance()); + return getMetricsFieldBuilder() + .addBuilder(com.google.cloud.bigquery.migration.v2alpha.TimeSeries.getDefaultInstance()); } /** + * + * *
      * The metrics for the subtask.
      * 
@@ -2865,37 +3360,43 @@ public com.google.cloud.bigquery.migration.v2alpha.TimeSeries.Builder addMetrics */ public com.google.cloud.bigquery.migration.v2alpha.TimeSeries.Builder addMetricsBuilder( int index) { - return getMetricsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.migration.v2alpha.TimeSeries.getDefaultInstance()); + return getMetricsFieldBuilder() + .addBuilder( + index, com.google.cloud.bigquery.migration.v2alpha.TimeSeries.getDefaultInstance()); } /** + * + * *
      * The metrics for the subtask.
      * 
* * repeated .google.cloud.bigquery.migration.v2alpha.TimeSeries metrics = 11; */ - public java.util.List - getMetricsBuilderList() { + public java.util.List + getMetricsBuilderList() { return getMetricsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.TimeSeries, com.google.cloud.bigquery.migration.v2alpha.TimeSeries.Builder, com.google.cloud.bigquery.migration.v2alpha.TimeSeriesOrBuilder> + com.google.cloud.bigquery.migration.v2alpha.TimeSeries, + com.google.cloud.bigquery.migration.v2alpha.TimeSeries.Builder, + com.google.cloud.bigquery.migration.v2alpha.TimeSeriesOrBuilder> getMetricsFieldBuilder() { if (metricsBuilder_ == null) { - metricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.TimeSeries, com.google.cloud.bigquery.migration.v2alpha.TimeSeries.Builder, com.google.cloud.bigquery.migration.v2alpha.TimeSeriesOrBuilder>( - metrics_, - ((bitField0_ & 0x00000200) != 0), - getParentForChildren(), - isClean()); + metricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2alpha.TimeSeries, + com.google.cloud.bigquery.migration.v2alpha.TimeSeries.Builder, + com.google.cloud.bigquery.migration.v2alpha.TimeSeriesOrBuilder>( + metrics_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); metrics_ = null; } return metricsBuilder_; } + @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); } @@ -2905,12 +3406,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.MigrationSubtask) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.MigrationSubtask) - private static final com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask(); } @@ -2919,27 +3421,27 @@ public static com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MigrationSubtask parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MigrationSubtask parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2954,6 +3456,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationSubtaskName.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationSubtaskName.java similarity index 100% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationSubtaskName.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationSubtaskName.java diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationSubtaskOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationSubtaskOrBuilder.java similarity index 71% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationSubtaskOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationSubtaskOrBuilder.java index 02bb387..ba4f4a1 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationSubtaskOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationSubtaskOrBuilder.java @@ -1,57 +1,89 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_entities.proto package com.google.cloud.bigquery.migration.v2alpha; -public interface MigrationSubtaskOrBuilder extends +public interface MigrationSubtaskOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.MigrationSubtask) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Immutable. The resource name for the migration subtask. The ID is
    * server-generated.
    * Example: `projects/123/locations/us/workflows/345/subtasks/678`
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Immutable. The resource name for the migration subtask. The ID is
    * server-generated.
    * Example: `projects/123/locations/us/workflows/345/subtasks/678`
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The unique ID of the task to which this subtask belongs.
    * 
* * string task_id = 2; + * * @return The taskId. */ java.lang.String getTaskId(); /** + * + * *
    * The unique ID of the task to which this subtask belongs.
    * 
* * string task_id = 2; + * * @return The bytes for taskId. */ - com.google.protobuf.ByteString - getTaskIdBytes(); + com.google.protobuf.ByteString getTaskIdBytes(); /** + * + * *
    * The type of the Subtask. The migration service does not check whether this
    * is a known type. It is up to the task creator (i.e. orchestrator or worker)
@@ -60,10 +92,13 @@ public interface MigrationSubtaskOrBuilder extends
    * 
* * string type = 3; + * * @return The type. */ java.lang.String getType(); /** + * + * *
    * The type of the Subtask. The migration service does not check whether this
    * is a known type. It is up to the task creator (i.e. orchestrator or worker)
@@ -72,107 +107,151 @@ public interface MigrationSubtaskOrBuilder extends
    * 
* * string type = 3; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
    * Output only. The current state of the subtask.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current state of the subtask.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State getState(); /** + * + * *
    * Output only. An explanation that may be populated when the task is in FAILED state.
    * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the processingError field is set. */ boolean hasProcessingError(); /** + * + * *
    * Output only. An explanation that may be populated when the task is in FAILED state.
    * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The processingError. */ com.google.rpc.ErrorInfo getProcessingError(); /** + * + * *
    * Output only. An explanation that may be populated when the task is in FAILED state.
    * 
* - * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.rpc.ErrorInfoOrBuilder getProcessingErrorOrBuilder(); /** + * + * *
    * Output only. Provides details to errors and issues encountered while processing the
    * subtask. Presence of error details does not mean that the subtask failed.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getResourceErrorDetailsList(); /** + * + * *
    * Output only. Provides details to errors and issues encountered while processing the
    * subtask. Presence of error details does not mean that the subtask failed.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail getResourceErrorDetails(int index); + com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail getResourceErrorDetails( + int index); /** + * + * *
    * Output only. Provides details to errors and issues encountered while processing the
    * subtask. Presence of error details does not mean that the subtask failed.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getResourceErrorDetailsCount(); /** + * + * *
    * Output only. Provides details to errors and issues encountered while processing the
    * subtask. Presence of error details does not mean that the subtask failed.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getResourceErrorDetailsOrBuilderList(); /** + * + * *
    * Output only. Provides details to errors and issues encountered while processing the
    * subtask. Presence of error details does not mean that the subtask failed.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetailOrBuilder getResourceErrorDetailsOrBuilder( - int index); + com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetailOrBuilder + getResourceErrorDetailsOrBuilder(int index); /** + * + * *
    * The number or resources with errors. Note: This is not the total
    * number of errors as each resource can have more than one error.
@@ -181,29 +260,38 @@ com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetailOrBuilder getReso
    * 
* * int32 resource_error_count = 13; + * * @return The resourceErrorCount. */ int getResourceErrorCount(); /** + * + * *
    * Time when the subtask was created.
    * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Time when the subtask was created.
    * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Time when the subtask was created.
    * 
@@ -213,24 +301,32 @@ com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetailOrBuilder getReso com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Time when the subtask was last updated.
    * 
* * .google.protobuf.Timestamp last_update_time = 8; + * * @return Whether the lastUpdateTime field is set. */ boolean hasLastUpdateTime(); /** + * + * *
    * Time when the subtask was last updated.
    * 
* * .google.protobuf.Timestamp last_update_time = 8; + * * @return The lastUpdateTime. */ com.google.protobuf.Timestamp getLastUpdateTime(); /** + * + * *
    * Time when the subtask was last updated.
    * 
@@ -240,15 +336,18 @@ com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetailOrBuilder getReso com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder(); /** + * + * *
    * The metrics for the subtask.
    * 
* * repeated .google.cloud.bigquery.migration.v2alpha.TimeSeries metrics = 11; */ - java.util.List - getMetricsList(); + java.util.List getMetricsList(); /** + * + * *
    * The metrics for the subtask.
    * 
@@ -257,6 +356,8 @@ com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetailOrBuilder getReso */ com.google.cloud.bigquery.migration.v2alpha.TimeSeries getMetrics(int index); /** + * + * *
    * The metrics for the subtask.
    * 
@@ -265,21 +366,24 @@ com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetailOrBuilder getReso */ int getMetricsCount(); /** + * + * *
    * The metrics for the subtask.
    * 
* * repeated .google.cloud.bigquery.migration.v2alpha.TimeSeries metrics = 11; */ - java.util.List + java.util.List getMetricsOrBuilderList(); /** + * + * *
    * The metrics for the subtask.
    * 
* * repeated .google.cloud.bigquery.migration.v2alpha.TimeSeries metrics = 11; */ - com.google.cloud.bigquery.migration.v2alpha.TimeSeriesOrBuilder getMetricsOrBuilder( - int index); + com.google.cloud.bigquery.migration.v2alpha.TimeSeriesOrBuilder getMetricsOrBuilder(int index); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTask.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTask.java similarity index 63% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTask.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTask.java index 064977a..bfc319f 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTask.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTask.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_entities.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * A single task for a migration which has details about the configuration of
  * the task.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.MigrationTask}
  */
-public final class MigrationTask extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MigrationTask extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.MigrationTask)
     MigrationTaskOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MigrationTask.newBuilder() to construct.
   private MigrationTask(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private MigrationTask() {
     id_ = "";
     type_ = "";
@@ -28,39 +46,43 @@ private MigrationTask() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MigrationTask();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTask_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto
+        .internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTask_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTask_fieldAccessorTable
+    return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto
+        .internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTask_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.migration.v2alpha.MigrationTask.class, com.google.cloud.bigquery.migration.v2alpha.MigrationTask.Builder.class);
+            com.google.cloud.bigquery.migration.v2alpha.MigrationTask.class,
+            com.google.cloud.bigquery.migration.v2alpha.MigrationTask.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Possible states of a migration task.
    * 
* * Protobuf enum {@code google.cloud.bigquery.migration.v2alpha.MigrationTask.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The state is unspecified.
      * 
@@ -69,6 +91,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The task is waiting for orchestration.
      * 
@@ -77,6 +101,8 @@ public enum State */ PENDING(1), /** + * + * *
      * The task is assigned to an orchestrator.
      * 
@@ -85,6 +111,8 @@ public enum State */ ORCHESTRATING(2), /** + * + * *
      * The task is running, i.e. its subtasks are ready for execution.
      * 
@@ -93,6 +121,8 @@ public enum State */ RUNNING(3), /** + * + * *
      * Tha task is paused. Assigned subtasks can continue, but no new subtasks
      * will be scheduled.
@@ -102,6 +132,8 @@ public enum State
      */
     PAUSED(4),
     /**
+     *
+     *
      * 
      * The task finished successfully.
      * 
@@ -110,6 +142,8 @@ public enum State */ SUCCEEDED(5), /** + * + * *
      * The task finished unsuccessfully.
      * 
@@ -121,6 +155,8 @@ public enum State ; /** + * + * *
      * The state is unspecified.
      * 
@@ -129,6 +165,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The task is waiting for orchestration.
      * 
@@ -137,6 +175,8 @@ public enum State */ public static final int PENDING_VALUE = 1; /** + * + * *
      * The task is assigned to an orchestrator.
      * 
@@ -145,6 +185,8 @@ public enum State */ public static final int ORCHESTRATING_VALUE = 2; /** + * + * *
      * The task is running, i.e. its subtasks are ready for execution.
      * 
@@ -153,6 +195,8 @@ public enum State */ public static final int RUNNING_VALUE = 3; /** + * + * *
      * Tha task is paused. Assigned subtasks can continue, but no new subtasks
      * will be scheduled.
@@ -162,6 +206,8 @@ public enum State
      */
     public static final int PAUSED_VALUE = 4;
     /**
+     *
+     *
      * 
      * The task finished successfully.
      * 
@@ -170,6 +216,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 5; /** + * + * *
      * The task finished unsuccessfully.
      * 
@@ -178,7 +226,6 @@ public enum State */ public static final int FAILED_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -203,53 +250,59 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return PENDING; - case 2: return ORCHESTRATING; - case 3: return RUNNING; - case 4: return PAUSED; - case 5: return SUCCEEDED; - case 6: return FAILED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return STATE_UNSPECIFIED; + case 1: + return PENDING; + case 2: + return ORCHESTRATING; + case 3: + return RUNNING; + case 4: + return PAUSED; + case 5: + return SUCCEEDED; + case 6: + return FAILED; + 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() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationTask.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationTask.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; @@ -268,13 +321,16 @@ private State(int value) { private int taskDetailsCase_ = 0; private java.lang.Object taskDetails_; + public enum TaskDetailsCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ASSESSMENT_TASK_DETAILS(12), TRANSLATION_TASK_DETAILS(13), TASKDETAILS_NOT_SET(0); private final int value; + private TaskDetailsCase(int value) { this.value = value; } @@ -290,30 +346,38 @@ public static TaskDetailsCase valueOf(int value) { public static TaskDetailsCase forNumber(int value) { switch (value) { - case 12: return ASSESSMENT_TASK_DETAILS; - case 13: return TRANSLATION_TASK_DETAILS; - case 0: return TASKDETAILS_NOT_SET; - default: return null; + case 12: + return ASSESSMENT_TASK_DETAILS; + case 13: + return TRANSLATION_TASK_DETAILS; + case 0: + return TASKDETAILS_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public TaskDetailsCase - getTaskDetailsCase() { - return TaskDetailsCase.forNumber( - taskDetailsCase_); + public TaskDetailsCase getTaskDetailsCase() { + return TaskDetailsCase.forNumber(taskDetailsCase_); } public static final int ASSESSMENT_TASK_DETAILS_FIELD_NUMBER = 12; /** + * + * *
    * Task configuration for Assessment.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * + * * @return Whether the assessmentTaskDetails field is set. */ @java.lang.Override @@ -321,42 +385,58 @@ public boolean hasAssessmentTaskDetails() { return taskDetailsCase_ == 12; } /** + * + * *
    * Task configuration for Assessment.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * + * * @return The assessmentTaskDetails. */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails getAssessmentTaskDetails() { + public com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails + getAssessmentTaskDetails() { if (taskDetailsCase_ == 12) { - return (com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails) taskDetails_; + return (com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails) taskDetails_; } return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.getDefaultInstance(); } /** + * + * *
    * Task configuration for Assessment.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetailsOrBuilder getAssessmentTaskDetailsOrBuilder() { + public com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetailsOrBuilder + getAssessmentTaskDetailsOrBuilder() { if (taskDetailsCase_ == 12) { - return (com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails) taskDetails_; + return (com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails) taskDetails_; } return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.getDefaultInstance(); } public static final int TRANSLATION_TASK_DETAILS_FIELD_NUMBER = 13; /** + * + * *
    * Task configuration for Batch/Offline SQL Translation.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * + * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * + * * @return Whether the translationTaskDetails field is set. */ @java.lang.Override @@ -364,44 +444,61 @@ public boolean hasTranslationTaskDetails() { return taskDetailsCase_ == 13; } /** + * + * *
    * Task configuration for Batch/Offline SQL Translation.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * + * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * + * * @return The translationTaskDetails. */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails getTranslationTaskDetails() { + public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails + getTranslationTaskDetails() { if (taskDetailsCase_ == 13) { - return (com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails) taskDetails_; + return (com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails) taskDetails_; } return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.getDefaultInstance(); } /** + * + * *
    * Task configuration for Batch/Offline SQL Translation.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * + * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetailsOrBuilder getTranslationTaskDetailsOrBuilder() { + public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetailsOrBuilder + getTranslationTaskDetailsOrBuilder() { if (taskDetailsCase_ == 13) { - return (com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails) taskDetails_; + return (com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails) taskDetails_; } return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.getDefaultInstance(); } public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** + * + * *
    * Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.
    * 
* - * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The id. */ @java.lang.Override @@ -410,29 +507,31 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** + * + * *
    * Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.
    * 
* - * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -441,14 +540,18 @@ public java.lang.String getId() { } public static final int TYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** + * + * *
    * The type of the task. This must be a supported task type.
    * 
* * string type = 2; + * * @return The type. */ @java.lang.Override @@ -457,29 +560,29 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** + * + * *
    * The type of the task. This must be a supported task type.
    * 
* * string type = 2; + * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -490,6 +593,8 @@ public java.lang.String getType() { public static final int DETAILS_FIELD_NUMBER = 3; private com.google.protobuf.Any details_; /** + * + * *
    * DEPRECATED! Use one of the task_details below.
    * The details of the task. The type URL must be one of the supported task
@@ -497,6 +602,7 @@ public java.lang.String getType() {
    * 
* * .google.protobuf.Any details = 3; + * * @return Whether the details field is set. */ @java.lang.Override @@ -504,6 +610,8 @@ public boolean hasDetails() { return details_ != null; } /** + * + * *
    * DEPRECATED! Use one of the task_details below.
    * The details of the task. The type URL must be one of the supported task
@@ -511,6 +619,7 @@ public boolean hasDetails() {
    * 
* * .google.protobuf.Any details = 3; + * * @return The details. */ @java.lang.Override @@ -518,6 +627,8 @@ public com.google.protobuf.Any getDetails() { return details_ == null ? com.google.protobuf.Any.getDefaultInstance() : details_; } /** + * + * *
    * DEPRECATED! Use one of the task_details below.
    * The details of the task. The type URL must be one of the supported task
@@ -534,37 +645,56 @@ public com.google.protobuf.AnyOrBuilder getDetailsOrBuilder() {
   public static final int STATE_FIELD_NUMBER = 4;
   private int state_ = 0;
   /**
+   *
+   *
    * 
    * Output only. The current state of the task.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current state of the task.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.MigrationTask.State getState() { - com.google.cloud.bigquery.migration.v2alpha.MigrationTask.State result = com.google.cloud.bigquery.migration.v2alpha.MigrationTask.State.forNumber(state_); - return result == null ? com.google.cloud.bigquery.migration.v2alpha.MigrationTask.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.migration.v2alpha.MigrationTask.State getState() { + com.google.cloud.bigquery.migration.v2alpha.MigrationTask.State result = + com.google.cloud.bigquery.migration.v2alpha.MigrationTask.State.forNumber(state_); + return result == null + ? com.google.cloud.bigquery.migration.v2alpha.MigrationTask.State.UNRECOGNIZED + : result; } public static final int PROCESSING_ERROR_FIELD_NUMBER = 5; private com.google.rpc.ErrorInfo processingError_; /** + * + * *
    * Output only. An explanation that may be populated when the task is in FAILED state.
    * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the processingError field is set. */ @java.lang.Override @@ -572,37 +702,51 @@ public boolean hasProcessingError() { return processingError_ != null; } /** + * + * *
    * Output only. An explanation that may be populated when the task is in FAILED state.
    * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The processingError. */ @java.lang.Override public com.google.rpc.ErrorInfo getProcessingError() { - return processingError_ == null ? com.google.rpc.ErrorInfo.getDefaultInstance() : processingError_; + return processingError_ == null + ? com.google.rpc.ErrorInfo.getDefaultInstance() + : processingError_; } /** + * + * *
    * Output only. An explanation that may be populated when the task is in FAILED state.
    * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.rpc.ErrorInfoOrBuilder getProcessingErrorOrBuilder() { - return processingError_ == null ? com.google.rpc.ErrorInfo.getDefaultInstance() : processingError_; + return processingError_ == null + ? com.google.rpc.ErrorInfo.getDefaultInstance() + : processingError_; } public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Time when the task was created.
    * 
* * .google.protobuf.Timestamp create_time = 6; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -610,11 +754,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Time when the task was created.
    * 
* * .google.protobuf.Timestamp create_time = 6; + * * @return The createTime. */ @java.lang.Override @@ -622,6 +769,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Time when the task was created.
    * 
@@ -636,11 +785,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int LAST_UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp lastUpdateTime_; /** + * + * *
    * Time when the task was last updated.
    * 
* * .google.protobuf.Timestamp last_update_time = 7; + * * @return Whether the lastUpdateTime field is set. */ @java.lang.Override @@ -648,18 +800,25 @@ public boolean hasLastUpdateTime() { return lastUpdateTime_ != null; } /** + * + * *
    * Time when the task was last updated.
    * 
* * .google.protobuf.Timestamp last_update_time = 7; + * * @return The lastUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastUpdateTime() { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } /** + * + * *
    * Time when the task was last updated.
    * 
@@ -668,17 +827,25 @@ public com.google.protobuf.Timestamp getLastUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } public static final int ORCHESTRATION_RESULT_FIELD_NUMBER = 10; - private com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestrationResult_; + private com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult + orchestrationResult_; /** + * + * *
    * Output only. Additional information about the orchestration.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the orchestrationResult field is set. */ @java.lang.Override @@ -686,30 +853,48 @@ public boolean hasOrchestrationResult() { return orchestrationResult_ != null; } /** + * + * *
    * Output only. Additional information about the orchestration.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The orchestrationResult. */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult getOrchestrationResult() { - return orchestrationResult_ == null ? com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.getDefaultInstance() : orchestrationResult_; + public com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult + getOrchestrationResult() { + return orchestrationResult_ == null + ? com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult + .getDefaultInstance() + : orchestrationResult_; } /** + * + * *
    * Output only. Additional information about the orchestration.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResultOrBuilder getOrchestrationResultOrBuilder() { - return orchestrationResult_ == null ? com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.getDefaultInstance() : orchestrationResult_; + public com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResultOrBuilder + getOrchestrationResultOrBuilder() { + return orchestrationResult_ == null + ? com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult + .getDefaultInstance() + : orchestrationResult_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -721,8 +906,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -732,7 +916,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (details_ != null) { output.writeMessage(3, getDetails()); } - if (state_ != com.google.cloud.bigquery.migration.v2alpha.MigrationTask.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.bigquery.migration.v2alpha.MigrationTask.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(4, state_); } if (processingError_ != null) { @@ -748,10 +934,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(10, getOrchestrationResult()); } if (taskDetailsCase_ == 12) { - output.writeMessage(12, (com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails) taskDetails_); + output.writeMessage( + 12, (com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails) taskDetails_); } if (taskDetailsCase_ == 13) { - output.writeMessage(13, (com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails) taskDetails_); + output.writeMessage( + 13, (com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails) taskDetails_); } getUnknownFields().writeTo(output); } @@ -769,36 +957,36 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); } if (details_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getDetails()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDetails()); } - if (state_ != com.google.cloud.bigquery.migration.v2alpha.MigrationTask.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, state_); + if (state_ + != com.google.cloud.bigquery.migration.v2alpha.MigrationTask.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); } if (processingError_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getProcessingError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getProcessingError()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (lastUpdateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getLastUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLastUpdateTime()); } if (orchestrationResult_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getOrchestrationResult()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, getOrchestrationResult()); } if (taskDetailsCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails) taskDetails_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails) taskDetails_); } if (taskDetailsCase_ == 13) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, (com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails) taskDetails_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, + (com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails) taskDetails_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -808,52 +996,44 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.MigrationTask)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.MigrationTask other = (com.google.cloud.bigquery.migration.v2alpha.MigrationTask) obj; + com.google.cloud.bigquery.migration.v2alpha.MigrationTask other = + (com.google.cloud.bigquery.migration.v2alpha.MigrationTask) obj; - if (!getId() - .equals(other.getId())) return false; - if (!getType() - .equals(other.getType())) return false; + if (!getId().equals(other.getId())) return false; + if (!getType().equals(other.getType())) return false; if (hasDetails() != other.hasDetails()) return false; if (hasDetails()) { - if (!getDetails() - .equals(other.getDetails())) return false; + if (!getDetails().equals(other.getDetails())) return false; } if (state_ != other.state_) return false; if (hasProcessingError() != other.hasProcessingError()) return false; if (hasProcessingError()) { - if (!getProcessingError() - .equals(other.getProcessingError())) return false; + if (!getProcessingError().equals(other.getProcessingError())) 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 (hasLastUpdateTime() != other.hasLastUpdateTime()) return false; if (hasLastUpdateTime()) { - if (!getLastUpdateTime() - .equals(other.getLastUpdateTime())) return false; + if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false; } if (hasOrchestrationResult() != other.hasOrchestrationResult()) return false; if (hasOrchestrationResult()) { - if (!getOrchestrationResult() - .equals(other.getOrchestrationResult())) return false; + if (!getOrchestrationResult().equals(other.getOrchestrationResult())) return false; } if (!getTaskDetailsCase().equals(other.getTaskDetailsCase())) return false; switch (taskDetailsCase_) { case 12: - if (!getAssessmentTaskDetails() - .equals(other.getAssessmentTaskDetails())) return false; + if (!getAssessmentTaskDetails().equals(other.getAssessmentTaskDetails())) return false; break; case 13: - if (!getTranslationTaskDetails() - .equals(other.getTranslationTaskDetails())) return false; + if (!getTranslationTaskDetails().equals(other.getTranslationTaskDetails())) return false; break; case 0: default: @@ -913,96 +1093,104 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.MigrationTask parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.MigrationTask parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.MigrationTask parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.MigrationTask parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.MigrationTask parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.MigrationTask parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.MigrationTask parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.MigrationTask parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.MigrationTask parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.MigrationTask parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.MigrationTask parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.MigrationTask parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.MigrationTask parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.MigrationTask parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.MigrationTask prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.MigrationTask prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 single task for a migration which has details about the configuration of
    * the task.
@@ -1010,33 +1198,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.MigrationTask}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.MigrationTask)
       com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTask_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto
+          .internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTask_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTask_fieldAccessorTable
+      return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto
+          .internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTask_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.migration.v2alpha.MigrationTask.class, com.google.cloud.bigquery.migration.v2alpha.MigrationTask.Builder.class);
+              com.google.cloud.bigquery.migration.v2alpha.MigrationTask.class,
+              com.google.cloud.bigquery.migration.v2alpha.MigrationTask.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.migration.v2alpha.MigrationTask.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1081,9 +1268,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTask_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto
+          .internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTask_descriptor;
     }
 
     @java.lang.Override
@@ -1102,8 +1289,11 @@ public com.google.cloud.bigquery.migration.v2alpha.MigrationTask build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.migration.v2alpha.MigrationTask buildPartial() {
-      com.google.cloud.bigquery.migration.v2alpha.MigrationTask result = new com.google.cloud.bigquery.migration.v2alpha.MigrationTask(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.migration.v2alpha.MigrationTask result =
+          new com.google.cloud.bigquery.migration.v2alpha.MigrationTask(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -1118,44 +1308,38 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.Migration
         result.type_ = type_;
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.details_ = detailsBuilder_ == null
-            ? details_
-            : detailsBuilder_.build();
+        result.details_ = detailsBuilder_ == null ? details_ : detailsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.processingError_ = processingErrorBuilder_ == null
-            ? processingError_
-            : processingErrorBuilder_.build();
+        result.processingError_ =
+            processingErrorBuilder_ == null ? processingError_ : processingErrorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.lastUpdateTime_ = lastUpdateTimeBuilder_ == null
-            ? lastUpdateTime_
-            : lastUpdateTimeBuilder_.build();
+        result.lastUpdateTime_ =
+            lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.orchestrationResult_ = orchestrationResultBuilder_ == null
-            ? orchestrationResult_
-            : orchestrationResultBuilder_.build();
+        result.orchestrationResult_ =
+            orchestrationResultBuilder_ == null
+                ? orchestrationResult_
+                : orchestrationResultBuilder_.build();
       }
     }
 
-    private void buildPartialOneofs(com.google.cloud.bigquery.migration.v2alpha.MigrationTask result) {
+    private void buildPartialOneofs(
+        com.google.cloud.bigquery.migration.v2alpha.MigrationTask result) {
       result.taskDetailsCase_ = taskDetailsCase_;
       result.taskDetails_ = this.taskDetails_;
-      if (taskDetailsCase_ == 12 &&
-          assessmentTaskDetailsBuilder_ != null) {
+      if (taskDetailsCase_ == 12 && assessmentTaskDetailsBuilder_ != null) {
         result.taskDetails_ = assessmentTaskDetailsBuilder_.build();
       }
-      if (taskDetailsCase_ == 13 &&
-          translationTaskDetailsBuilder_ != null) {
+      if (taskDetailsCase_ == 13 && translationTaskDetailsBuilder_ != null) {
         result.taskDetails_ = translationTaskDetailsBuilder_.build();
       }
     }
@@ -1164,38 +1348,39 @@ private void buildPartialOneofs(com.google.cloud.bigquery.migration.v2alpha.Migr
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.migration.v2alpha.MigrationTask) {
-        return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.MigrationTask)other);
+        return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.MigrationTask) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1203,7 +1388,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.MigrationTask other) {
-      if (other == com.google.cloud.bigquery.migration.v2alpha.MigrationTask.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.migration.v2alpha.MigrationTask.getDefaultInstance())
+        return this;
       if (!other.getId().isEmpty()) {
         id_ = other.id_;
         bitField0_ |= 0x00000004;
@@ -1233,17 +1419,20 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.MigrationTa
         mergeOrchestrationResult(other.getOrchestrationResult());
       }
       switch (other.getTaskDetailsCase()) {
-        case ASSESSMENT_TASK_DETAILS: {
-          mergeAssessmentTaskDetails(other.getAssessmentTaskDetails());
-          break;
-        }
-        case TRANSLATION_TASK_DETAILS: {
-          mergeTranslationTaskDetails(other.getTranslationTaskDetails());
-          break;
-        }
-        case TASKDETAILS_NOT_SET: {
-          break;
-        }
+        case ASSESSMENT_TASK_DETAILS:
+          {
+            mergeAssessmentTaskDetails(other.getAssessmentTaskDetails());
+            break;
+          }
+        case TRANSLATION_TASK_DETAILS:
+          {
+            mergeTranslationTaskDetails(other.getTranslationTaskDetails());
+            break;
+          }
+        case TASKDETAILS_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1271,76 +1460,76 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              id_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 10
-            case 18: {
-              type_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getDetailsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 26
-            case 32: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 32
-            case 42: {
-              input.readMessage(
-                  getProcessingErrorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getLastUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 58
-            case 82: {
-              input.readMessage(
-                  getOrchestrationResultFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 82
-            case 98: {
-              input.readMessage(
-                  getAssessmentTaskDetailsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              taskDetailsCase_ = 12;
-              break;
-            } // case 98
-            case 106: {
-              input.readMessage(
-                  getTranslationTaskDetailsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              taskDetailsCase_ = 13;
-              break;
-            } // case 106
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                id_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 10
+            case 18:
+              {
+                type_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getDetailsFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 26
+            case 32:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 32
+            case 42:
+              {
+                input.readMessage(getProcessingErrorFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getLastUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 58
+            case 82:
+              {
+                input.readMessage(
+                    getOrchestrationResultFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 82
+            case 98:
+              {
+                input.readMessage(
+                    getAssessmentTaskDetailsFieldBuilder().getBuilder(), extensionRegistry);
+                taskDetailsCase_ = 12;
+                break;
+              } // case 98
+            case 106:
+              {
+                input.readMessage(
+                    getTranslationTaskDetailsFieldBuilder().getBuilder(), extensionRegistry);
+                taskDetailsCase_ = 13;
+                break;
+              } // case 106
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1350,12 +1539,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int taskDetailsCase_ = 0;
     private java.lang.Object taskDetails_;
-    public TaskDetailsCase
-        getTaskDetailsCase() {
-      return TaskDetailsCase.forNumber(
-          taskDetailsCase_);
+
+    public TaskDetailsCase getTaskDetailsCase() {
+      return TaskDetailsCase.forNumber(taskDetailsCase_);
     }
 
     public Builder clearTaskDetails() {
@@ -1368,13 +1557,21 @@ public Builder clearTaskDetails() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails, com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.Builder, com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetailsOrBuilder> assessmentTaskDetailsBuilder_;
+            com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails,
+            com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.Builder,
+            com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetailsOrBuilder>
+        assessmentTaskDetailsBuilder_;
     /**
+     *
+     *
      * 
      * Task configuration for Assessment.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * + * * @return Whether the assessmentTaskDetails field is set. */ @java.lang.Override @@ -1382,35 +1579,48 @@ public boolean hasAssessmentTaskDetails() { return taskDetailsCase_ == 12; } /** + * + * *
      * Task configuration for Assessment.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * + * * @return The assessmentTaskDetails. */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails getAssessmentTaskDetails() { + public com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails + getAssessmentTaskDetails() { if (assessmentTaskDetailsBuilder_ == null) { if (taskDetailsCase_ == 12) { return (com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails) taskDetails_; } - return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.getDefaultInstance(); + return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails + .getDefaultInstance(); } else { if (taskDetailsCase_ == 12) { return assessmentTaskDetailsBuilder_.getMessage(); } - return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.getDefaultInstance(); + return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails + .getDefaultInstance(); } } /** + * + * *
      * Task configuration for Assessment.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * */ - public Builder setAssessmentTaskDetails(com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails value) { + public Builder setAssessmentTaskDetails( + com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails value) { if (assessmentTaskDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1424,11 +1634,15 @@ public Builder setAssessmentTaskDetails(com.google.cloud.bigquery.migration.v2al return this; } /** + * + * *
      * Task configuration for Assessment.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * */ public Builder setAssessmentTaskDetails( com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.Builder builderForValue) { @@ -1442,18 +1656,29 @@ public Builder setAssessmentTaskDetails( return this; } /** + * + * *
      * Task configuration for Assessment.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * */ - public Builder mergeAssessmentTaskDetails(com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails value) { + public Builder mergeAssessmentTaskDetails( + com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails value) { if (assessmentTaskDetailsBuilder_ == null) { - if (taskDetailsCase_ == 12 && - taskDetails_ != com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.getDefaultInstance()) { - taskDetails_ = com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.newBuilder((com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails) taskDetails_) - .mergeFrom(value).buildPartial(); + if (taskDetailsCase_ == 12 + && taskDetails_ + != com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails + .getDefaultInstance()) { + taskDetails_ = + com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.newBuilder( + (com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails) + taskDetails_) + .mergeFrom(value) + .buildPartial(); } else { taskDetails_ = value; } @@ -1469,11 +1694,15 @@ public Builder mergeAssessmentTaskDetails(com.google.cloud.bigquery.migration.v2 return this; } /** + * + * *
      * Task configuration for Assessment.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * */ public Builder clearAssessmentTaskDetails() { if (assessmentTaskDetailsBuilder_ == null) { @@ -1492,49 +1721,71 @@ public Builder clearAssessmentTaskDetails() { return this; } /** + * + * *
      * Task configuration for Assessment.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * */ - public com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.Builder getAssessmentTaskDetailsBuilder() { + public com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.Builder + getAssessmentTaskDetailsBuilder() { return getAssessmentTaskDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Task configuration for Assessment.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetailsOrBuilder getAssessmentTaskDetailsOrBuilder() { + public com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetailsOrBuilder + getAssessmentTaskDetailsOrBuilder() { if ((taskDetailsCase_ == 12) && (assessmentTaskDetailsBuilder_ != null)) { return assessmentTaskDetailsBuilder_.getMessageOrBuilder(); } else { if (taskDetailsCase_ == 12) { return (com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails) taskDetails_; } - return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.getDefaultInstance(); + return com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails + .getDefaultInstance(); } } /** + * + * *
      * Task configuration for Assessment.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails, com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.Builder, com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetailsOrBuilder> + com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails, + com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.Builder, + com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetailsOrBuilder> getAssessmentTaskDetailsFieldBuilder() { if (assessmentTaskDetailsBuilder_ == null) { if (!(taskDetailsCase_ == 12)) { - taskDetails_ = com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.getDefaultInstance(); + taskDetails_ = + com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails + .getDefaultInstance(); } - assessmentTaskDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails, com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.Builder, com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetailsOrBuilder>( + assessmentTaskDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails, + com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails.Builder, + com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetailsOrBuilder>( (com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails) taskDetails_, getParentForChildren(), isClean()); @@ -1546,13 +1797,21 @@ public com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetailsOrBuilde } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails, com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.Builder, com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetailsOrBuilder> translationTaskDetailsBuilder_; + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails, + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.Builder, + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetailsOrBuilder> + translationTaskDetailsBuilder_; /** + * + * *
      * Task configuration for Batch/Offline SQL Translation.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * + * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * + * * @return Whether the translationTaskDetails field is set. */ @java.lang.Override @@ -1560,35 +1819,48 @@ public boolean hasTranslationTaskDetails() { return taskDetailsCase_ == 13; } /** + * + * *
      * Task configuration for Batch/Offline SQL Translation.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * + * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * + * * @return The translationTaskDetails. */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails getTranslationTaskDetails() { + public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails + getTranslationTaskDetails() { if (translationTaskDetailsBuilder_ == null) { if (taskDetailsCase_ == 13) { return (com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails) taskDetails_; } - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.getDefaultInstance(); + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails + .getDefaultInstance(); } else { if (taskDetailsCase_ == 13) { return translationTaskDetailsBuilder_.getMessage(); } - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.getDefaultInstance(); + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails + .getDefaultInstance(); } } /** + * + * *
      * Task configuration for Batch/Offline SQL Translation.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * + * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * */ - public Builder setTranslationTaskDetails(com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails value) { + public Builder setTranslationTaskDetails( + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails value) { if (translationTaskDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1602,14 +1874,19 @@ public Builder setTranslationTaskDetails(com.google.cloud.bigquery.migration.v2a return this; } /** + * + * *
      * Task configuration for Batch/Offline SQL Translation.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * + * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * */ public Builder setTranslationTaskDetails( - com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.Builder builderForValue) { + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.Builder + builderForValue) { if (translationTaskDetailsBuilder_ == null) { taskDetails_ = builderForValue.build(); onChanged(); @@ -1620,18 +1897,29 @@ public Builder setTranslationTaskDetails( return this; } /** + * + * *
      * Task configuration for Batch/Offline SQL Translation.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * + * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * */ - public Builder mergeTranslationTaskDetails(com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails value) { + public Builder mergeTranslationTaskDetails( + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails value) { if (translationTaskDetailsBuilder_ == null) { - if (taskDetailsCase_ == 13 && - taskDetails_ != com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.getDefaultInstance()) { - taskDetails_ = com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.newBuilder((com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails) taskDetails_) - .mergeFrom(value).buildPartial(); + if (taskDetailsCase_ == 13 + && taskDetails_ + != com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails + .getDefaultInstance()) { + taskDetails_ = + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.newBuilder( + (com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails) + taskDetails_) + .mergeFrom(value) + .buildPartial(); } else { taskDetails_ = value; } @@ -1647,11 +1935,15 @@ public Builder mergeTranslationTaskDetails(com.google.cloud.bigquery.migration.v return this; } /** + * + * *
      * Task configuration for Batch/Offline SQL Translation.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * + * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * */ public Builder clearTranslationTaskDetails() { if (translationTaskDetailsBuilder_ == null) { @@ -1670,49 +1962,71 @@ public Builder clearTranslationTaskDetails() { return this; } /** + * + * *
      * Task configuration for Batch/Offline SQL Translation.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * + * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * */ - public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.Builder getTranslationTaskDetailsBuilder() { + public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.Builder + getTranslationTaskDetailsBuilder() { return getTranslationTaskDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Task configuration for Batch/Offline SQL Translation.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * + * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetailsOrBuilder getTranslationTaskDetailsOrBuilder() { + public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetailsOrBuilder + getTranslationTaskDetailsOrBuilder() { if ((taskDetailsCase_ == 13) && (translationTaskDetailsBuilder_ != null)) { return translationTaskDetailsBuilder_.getMessageOrBuilder(); } else { if (taskDetailsCase_ == 13) { return (com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails) taskDetails_; } - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.getDefaultInstance(); + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails + .getDefaultInstance(); } } /** + * + * *
      * Task configuration for Batch/Offline SQL Translation.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * + * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails, com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.Builder, com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetailsOrBuilder> + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails, + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.Builder, + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetailsOrBuilder> getTranslationTaskDetailsFieldBuilder() { if (translationTaskDetailsBuilder_ == null) { if (!(taskDetailsCase_ == 13)) { - taskDetails_ = com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.getDefaultInstance(); + taskDetails_ = + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails + .getDefaultInstance(); } - translationTaskDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails, com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.Builder, com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetailsOrBuilder>( + translationTaskDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails, + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.Builder, + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetailsOrBuilder>( (com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails) taskDetails_, getParentForChildren(), isClean()); @@ -1725,18 +2039,22 @@ public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetailsOrBuild private java.lang.Object id_ = ""; /** + * + * *
      * Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.
      * 
* - * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -1745,20 +2063,23 @@ public java.lang.String getId() { } } /** + * + * *
      * Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.
      * 
* - * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for id. */ - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -1766,28 +2087,39 @@ public java.lang.String getId() { } } /** + * + * *
      * Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.
      * 
* - * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } id_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.
      * 
* - * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return This builder for chaining. */ public Builder clearId() { @@ -1797,17 +2129,23 @@ public Builder clearId() { return this; } /** + * + * *
      * Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.
      * 
* - * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000004; @@ -1817,18 +2155,20 @@ public Builder setIdBytes( private java.lang.Object type_ = ""; /** + * + * *
      * The type of the task. This must be a supported task type.
      * 
* * string type = 2; + * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -1837,20 +2177,21 @@ public java.lang.String getType() { } } /** + * + * *
      * The type of the task. This must be a supported task type.
      * 
* * string type = 2; + * * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -1858,28 +2199,35 @@ public java.lang.String getType() { } } /** + * + * *
      * The type of the task. This must be a supported task type.
      * 
* * string type = 2; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } type_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The type of the task. This must be a supported task type.
      * 
* * string type = 2; + * * @return This builder for chaining. */ public Builder clearType() { @@ -1889,17 +2237,21 @@ public Builder clearType() { return this; } /** + * + * *
      * The type of the task. This must be a supported task type.
      * 
* * string type = 2; + * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); type_ = value; bitField0_ |= 0x00000008; @@ -1909,8 +2261,13 @@ public Builder setTypeBytes( private com.google.protobuf.Any details_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> detailsBuilder_; + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder> + detailsBuilder_; /** + * + * *
      * DEPRECATED! Use one of the task_details below.
      * The details of the task. The type URL must be one of the supported task
@@ -1918,12 +2275,15 @@ public Builder setTypeBytes(
      * 
* * .google.protobuf.Any details = 3; + * * @return Whether the details field is set. */ public boolean hasDetails() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * DEPRECATED! Use one of the task_details below.
      * The details of the task. The type URL must be one of the supported task
@@ -1931,6 +2291,7 @@ public boolean hasDetails() {
      * 
* * .google.protobuf.Any details = 3; + * * @return The details. */ public com.google.protobuf.Any getDetails() { @@ -1941,6 +2302,8 @@ public com.google.protobuf.Any getDetails() { } } /** + * + * *
      * DEPRECATED! Use one of the task_details below.
      * The details of the task. The type URL must be one of the supported task
@@ -1963,6 +2326,8 @@ public Builder setDetails(com.google.protobuf.Any value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * DEPRECATED! Use one of the task_details below.
      * The details of the task. The type URL must be one of the supported task
@@ -1971,8 +2336,7 @@ public Builder setDetails(com.google.protobuf.Any value) {
      *
      * .google.protobuf.Any details = 3;
      */
-    public Builder setDetails(
-        com.google.protobuf.Any.Builder builderForValue) {
+    public Builder setDetails(com.google.protobuf.Any.Builder builderForValue) {
       if (detailsBuilder_ == null) {
         details_ = builderForValue.build();
       } else {
@@ -1983,6 +2347,8 @@ public Builder setDetails(
       return this;
     }
     /**
+     *
+     *
      * 
      * DEPRECATED! Use one of the task_details below.
      * The details of the task. The type URL must be one of the supported task
@@ -1993,9 +2359,9 @@ public Builder setDetails(
      */
     public Builder mergeDetails(com.google.protobuf.Any value) {
       if (detailsBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0) &&
-          details_ != null &&
-          details_ != com.google.protobuf.Any.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0)
+            && details_ != null
+            && details_ != com.google.protobuf.Any.getDefaultInstance()) {
           getDetailsBuilder().mergeFrom(value);
         } else {
           details_ = value;
@@ -2008,6 +2374,8 @@ public Builder mergeDetails(com.google.protobuf.Any value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * DEPRECATED! Use one of the task_details below.
      * The details of the task. The type URL must be one of the supported task
@@ -2027,6 +2395,8 @@ public Builder clearDetails() {
       return this;
     }
     /**
+     *
+     *
      * 
      * DEPRECATED! Use one of the task_details below.
      * The details of the task. The type URL must be one of the supported task
@@ -2041,6 +2411,8 @@ public com.google.protobuf.Any.Builder getDetailsBuilder() {
       return getDetailsFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * DEPRECATED! Use one of the task_details below.
      * The details of the task. The type URL must be one of the supported task
@@ -2053,11 +2425,12 @@ public com.google.protobuf.AnyOrBuilder getDetailsOrBuilder() {
       if (detailsBuilder_ != null) {
         return detailsBuilder_.getMessageOrBuilder();
       } else {
-        return details_ == null ?
-            com.google.protobuf.Any.getDefaultInstance() : details_;
+        return details_ == null ? com.google.protobuf.Any.getDefaultInstance() : details_;
       }
     }
     /**
+     *
+     *
      * 
      * DEPRECATED! Use one of the task_details below.
      * The details of the task. The type URL must be one of the supported task
@@ -2067,14 +2440,16 @@ public com.google.protobuf.AnyOrBuilder getDetailsOrBuilder() {
      * .google.protobuf.Any details = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> 
+            com.google.protobuf.Any,
+            com.google.protobuf.Any.Builder,
+            com.google.protobuf.AnyOrBuilder>
         getDetailsFieldBuilder() {
       if (detailsBuilder_ == null) {
-        detailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
-                getDetails(),
-                getParentForChildren(),
-                isClean());
+        detailsBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Any,
+                com.google.protobuf.Any.Builder,
+                com.google.protobuf.AnyOrBuilder>(getDetails(), getParentForChildren(), isClean());
         details_ = null;
       }
       return detailsBuilder_;
@@ -2082,22 +2457,33 @@ public com.google.protobuf.AnyOrBuilder getDetailsOrBuilder() {
 
     private int state_ = 0;
     /**
+     *
+     *
      * 
      * Output only. The current state of the task.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current state of the task.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2108,24 +2494,37 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. The current state of the task.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.MigrationTask.State getState() { - com.google.cloud.bigquery.migration.v2alpha.MigrationTask.State result = com.google.cloud.bigquery.migration.v2alpha.MigrationTask.State.forNumber(state_); - return result == null ? com.google.cloud.bigquery.migration.v2alpha.MigrationTask.State.UNRECOGNIZED : result; + com.google.cloud.bigquery.migration.v2alpha.MigrationTask.State result = + com.google.cloud.bigquery.migration.v2alpha.MigrationTask.State.forNumber(state_); + return result == null + ? com.google.cloud.bigquery.migration.v2alpha.MigrationTask.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The current state of the task.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2139,11 +2538,16 @@ public Builder setState(com.google.cloud.bigquery.migration.v2alpha.MigrationTas return this; } /** + * + * *
      * Output only. The current state of the task.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -2155,39 +2559,58 @@ public Builder clearState() { private com.google.rpc.ErrorInfo processingError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.ErrorInfo, com.google.rpc.ErrorInfo.Builder, com.google.rpc.ErrorInfoOrBuilder> processingErrorBuilder_; + com.google.rpc.ErrorInfo, + com.google.rpc.ErrorInfo.Builder, + com.google.rpc.ErrorInfoOrBuilder> + processingErrorBuilder_; /** + * + * *
      * Output only. An explanation that may be populated when the task is in FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the processingError field is set. */ public boolean hasProcessingError() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. An explanation that may be populated when the task is in FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The processingError. */ public com.google.rpc.ErrorInfo getProcessingError() { if (processingErrorBuilder_ == null) { - return processingError_ == null ? com.google.rpc.ErrorInfo.getDefaultInstance() : processingError_; + return processingError_ == null + ? com.google.rpc.ErrorInfo.getDefaultInstance() + : processingError_; } else { return processingErrorBuilder_.getMessage(); } } /** + * + * *
      * Output only. An explanation that may be populated when the task is in FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setProcessingError(com.google.rpc.ErrorInfo value) { if (processingErrorBuilder_ == null) { @@ -2203,14 +2626,17 @@ public Builder setProcessingError(com.google.rpc.ErrorInfo value) { return this; } /** + * + * *
      * Output only. An explanation that may be populated when the task is in FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setProcessingError( - com.google.rpc.ErrorInfo.Builder builderForValue) { + public Builder setProcessingError(com.google.rpc.ErrorInfo.Builder builderForValue) { if (processingErrorBuilder_ == null) { processingError_ = builderForValue.build(); } else { @@ -2221,17 +2647,21 @@ public Builder setProcessingError( return this; } /** + * + * *
      * Output only. An explanation that may be populated when the task is in FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeProcessingError(com.google.rpc.ErrorInfo value) { if (processingErrorBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - processingError_ != null && - processingError_ != com.google.rpc.ErrorInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && processingError_ != null + && processingError_ != com.google.rpc.ErrorInfo.getDefaultInstance()) { getProcessingErrorBuilder().mergeFrom(value); } else { processingError_ = value; @@ -2244,11 +2674,15 @@ public Builder mergeProcessingError(com.google.rpc.ErrorInfo value) { return this; } /** + * + * *
      * Output only. An explanation that may be populated when the task is in FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearProcessingError() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2261,11 +2695,15 @@ public Builder clearProcessingError() { return this; } /** + * + * *
      * Output only. An explanation that may be populated when the task is in FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.rpc.ErrorInfo.Builder getProcessingErrorBuilder() { bitField0_ |= 0x00000040; @@ -2273,36 +2711,48 @@ public com.google.rpc.ErrorInfo.Builder getProcessingErrorBuilder() { return getProcessingErrorFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. An explanation that may be populated when the task is in FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.rpc.ErrorInfoOrBuilder getProcessingErrorOrBuilder() { if (processingErrorBuilder_ != null) { return processingErrorBuilder_.getMessageOrBuilder(); } else { - return processingError_ == null ? - com.google.rpc.ErrorInfo.getDefaultInstance() : processingError_; + return processingError_ == null + ? com.google.rpc.ErrorInfo.getDefaultInstance() + : processingError_; } } /** + * + * *
      * Output only. An explanation that may be populated when the task is in FAILED state.
      * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.ErrorInfo, com.google.rpc.ErrorInfo.Builder, com.google.rpc.ErrorInfoOrBuilder> + com.google.rpc.ErrorInfo, + com.google.rpc.ErrorInfo.Builder, + com.google.rpc.ErrorInfoOrBuilder> getProcessingErrorFieldBuilder() { if (processingErrorBuilder_ == null) { - processingErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.ErrorInfo, com.google.rpc.ErrorInfo.Builder, com.google.rpc.ErrorInfoOrBuilder>( - getProcessingError(), - getParentForChildren(), - isClean()); + processingErrorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.ErrorInfo, + com.google.rpc.ErrorInfo.Builder, + com.google.rpc.ErrorInfoOrBuilder>( + getProcessingError(), getParentForChildren(), isClean()); processingError_ = null; } return processingErrorBuilder_; @@ -2310,34 +2760,47 @@ public com.google.rpc.ErrorInfoOrBuilder getProcessingErrorOrBuilder() { 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_; /** + * + * *
      * Time when the task was created.
      * 
* * .google.protobuf.Timestamp create_time = 6; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Time when the task was created.
      * 
* * .google.protobuf.Timestamp create_time = 6; + * * @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(); } } /** + * + * *
      * Time when the task was created.
      * 
@@ -2358,14 +2821,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the task was created.
      * 
* * .google.protobuf.Timestamp create_time = 6; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -2376,6 +2840,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Time when the task was created.
      * 
@@ -2384,9 +2850,9 @@ public Builder setCreateTime( */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -2399,6 +2865,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the task was created.
      * 
@@ -2416,6 +2884,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Time when the task was created.
      * 
@@ -2428,6 +2898,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the task was created.
      * 
@@ -2438,11 +2910,14 @@ 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_; } } /** + * + * *
      * Time when the task was created.
      * 
@@ -2450,14 +2925,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 6; */ 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_; @@ -2465,34 +2943,47 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp lastUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastUpdateTimeBuilder_; /** + * + * *
      * Time when the task was last updated.
      * 
* * .google.protobuf.Timestamp last_update_time = 7; + * * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Time when the task was last updated.
      * 
* * .google.protobuf.Timestamp last_update_time = 7; + * * @return The lastUpdateTime. */ public com.google.protobuf.Timestamp getLastUpdateTime() { if (lastUpdateTimeBuilder_ == null) { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } else { return lastUpdateTimeBuilder_.getMessage(); } } /** + * + * *
      * Time when the task was last updated.
      * 
@@ -2513,14 +3004,15 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the task was last updated.
      * 
* * .google.protobuf.Timestamp last_update_time = 7; */ - public Builder setLastUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); } else { @@ -2531,6 +3023,8 @@ public Builder setLastUpdateTime( return this; } /** + * + * *
      * Time when the task was last updated.
      * 
@@ -2539,9 +3033,9 @@ public Builder setLastUpdateTime( */ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - lastUpdateTime_ != null && - lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && lastUpdateTime_ != null + && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastUpdateTimeBuilder().mergeFrom(value); } else { lastUpdateTime_ = value; @@ -2554,6 +3048,8 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the task was last updated.
      * 
@@ -2571,6 +3067,8 @@ public Builder clearLastUpdateTime() { return this; } /** + * + * *
      * Time when the task was last updated.
      * 
@@ -2583,6 +3081,8 @@ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { return getLastUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the task was last updated.
      * 
@@ -2593,11 +3093,14 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { if (lastUpdateTimeBuilder_ != null) { return lastUpdateTimeBuilder_.getMessageOrBuilder(); } else { - return lastUpdateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } } /** + * + * *
      * Time when the task was last updated.
      * 
@@ -2605,56 +3108,82 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { * .google.protobuf.Timestamp last_update_time = 7; */ 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> getLastUpdateTimeFieldBuilder() { if (lastUpdateTimeBuilder_ == null) { - lastUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getLastUpdateTime(), - getParentForChildren(), - isClean()); + lastUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastUpdateTime(), getParentForChildren(), isClean()); lastUpdateTime_ = null; } return lastUpdateTimeBuilder_; } - private com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestrationResult_; + private com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult + orchestrationResult_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult, com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.Builder, com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResultOrBuilder> orchestrationResultBuilder_; + com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult, + com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.Builder, + com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResultOrBuilder> + orchestrationResultBuilder_; /** + * + * *
      * Output only. Additional information about the orchestration.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the orchestrationResult field is set. */ public boolean hasOrchestrationResult() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * Output only. Additional information about the orchestration.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The orchestrationResult. */ - public com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult getOrchestrationResult() { + public com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult + getOrchestrationResult() { if (orchestrationResultBuilder_ == null) { - return orchestrationResult_ == null ? com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.getDefaultInstance() : orchestrationResult_; + return orchestrationResult_ == null + ? com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult + .getDefaultInstance() + : orchestrationResult_; } else { return orchestrationResultBuilder_.getMessage(); } } /** + * + * *
      * Output only. Additional information about the orchestration.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setOrchestrationResult(com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult value) { + public Builder setOrchestrationResult( + com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult value) { if (orchestrationResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2668,14 +3197,19 @@ public Builder setOrchestrationResult(com.google.cloud.bigquery.migration.v2alph return this; } /** + * + * *
      * Output only. Additional information about the orchestration.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setOrchestrationResult( - com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.Builder builderForValue) { + com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.Builder + builderForValue) { if (orchestrationResultBuilder_ == null) { orchestrationResult_ = builderForValue.build(); } else { @@ -2686,17 +3220,24 @@ public Builder setOrchestrationResult( return this; } /** + * + * *
      * Output only. Additional information about the orchestration.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeOrchestrationResult(com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult value) { + public Builder mergeOrchestrationResult( + com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult value) { if (orchestrationResultBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - orchestrationResult_ != null && - orchestrationResult_ != com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && orchestrationResult_ != null + && orchestrationResult_ + != com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult + .getDefaultInstance()) { getOrchestrationResultBuilder().mergeFrom(value); } else { orchestrationResult_ = value; @@ -2709,11 +3250,15 @@ public Builder mergeOrchestrationResult(com.google.cloud.bigquery.migration.v2al return this; } /** + * + * *
      * Output only. Additional information about the orchestration.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearOrchestrationResult() { bitField0_ = (bitField0_ & ~0x00000200); @@ -2726,55 +3271,76 @@ public Builder clearOrchestrationResult() { return this; } /** + * + * *
      * Output only. Additional information about the orchestration.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.Builder getOrchestrationResultBuilder() { + public com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.Builder + getOrchestrationResultBuilder() { bitField0_ |= 0x00000200; onChanged(); return getOrchestrationResultFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Additional information about the orchestration.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResultOrBuilder getOrchestrationResultOrBuilder() { + public com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResultOrBuilder + getOrchestrationResultOrBuilder() { if (orchestrationResultBuilder_ != null) { return orchestrationResultBuilder_.getMessageOrBuilder(); } else { - return orchestrationResult_ == null ? - com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.getDefaultInstance() : orchestrationResult_; + return orchestrationResult_ == null + ? com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult + .getDefaultInstance() + : orchestrationResult_; } } /** + * + * *
      * Output only. Additional information about the orchestration.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult, com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.Builder, com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResultOrBuilder> + com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult, + com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.Builder, + com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResultOrBuilder> getOrchestrationResultFieldBuilder() { if (orchestrationResultBuilder_ == null) { - orchestrationResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult, com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.Builder, com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResultOrBuilder>( - getOrchestrationResult(), - getParentForChildren(), - isClean()); + orchestrationResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult, + com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult + .Builder, + com.google.cloud.bigquery.migration.v2alpha + .MigrationTaskOrchestrationResultOrBuilder>( + getOrchestrationResult(), getParentForChildren(), isClean()); orchestrationResult_ = null; } return orchestrationResultBuilder_; } + @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); } @@ -2784,12 +3350,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.MigrationTask) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.MigrationTask) private static final com.google.cloud.bigquery.migration.v2alpha.MigrationTask DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.MigrationTask(); } @@ -2798,27 +3364,27 @@ public static com.google.cloud.bigquery.migration.v2alpha.MigrationTask getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MigrationTask parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MigrationTask parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2833,6 +3399,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2alpha.MigrationTask getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTaskOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTaskOrBuilder.java similarity index 65% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTaskOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTaskOrBuilder.java index 1850ce7..69089d5 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTaskOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTaskOrBuilder.java @@ -1,107 +1,169 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_entities.proto package com.google.cloud.bigquery.migration.v2alpha; -public interface MigrationTaskOrBuilder extends +public interface MigrationTaskOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.MigrationTask) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Task configuration for Assessment.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * + * * @return Whether the assessmentTaskDetails field is set. */ boolean hasAssessmentTaskDetails(); /** + * + * *
    * Task configuration for Assessment.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * + * * @return The assessmentTaskDetails. */ com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails getAssessmentTaskDetails(); /** + * + * *
    * Task configuration for Assessment.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails assessment_task_details = 12; + * */ - com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetailsOrBuilder getAssessmentTaskDetailsOrBuilder(); + com.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetailsOrBuilder + getAssessmentTaskDetailsOrBuilder(); /** + * + * *
    * Task configuration for Batch/Offline SQL Translation.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * + * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * + * * @return Whether the translationTaskDetails field is set. */ boolean hasTranslationTaskDetails(); /** + * + * *
    * Task configuration for Batch/Offline SQL Translation.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * + * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * + * * @return The translationTaskDetails. */ com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails getTranslationTaskDetails(); /** + * + * *
    * Task configuration for Batch/Offline SQL Translation.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * + * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails translation_task_details = 13; + * */ - com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetailsOrBuilder getTranslationTaskDetailsOrBuilder(); + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetailsOrBuilder + getTranslationTaskDetailsOrBuilder(); /** + * + * *
    * Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.
    * 
* - * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.
    * 
* - * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * The type of the task. This must be a supported task type.
    * 
* * string type = 2; + * * @return The type. */ java.lang.String getType(); /** + * + * *
    * The type of the task. This must be a supported task type.
    * 
* * string type = 2; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
    * DEPRECATED! Use one of the task_details below.
    * The details of the task. The type URL must be one of the supported task
@@ -109,10 +171,13 @@ public interface MigrationTaskOrBuilder extends
    * 
* * .google.protobuf.Any details = 3; + * * @return Whether the details field is set. */ boolean hasDetails(); /** + * + * *
    * DEPRECATED! Use one of the task_details below.
    * The details of the task. The type URL must be one of the supported task
@@ -120,10 +185,13 @@ public interface MigrationTaskOrBuilder extends
    * 
* * .google.protobuf.Any details = 3; + * * @return The details. */ com.google.protobuf.Any getDetails(); /** + * + * *
    * DEPRECATED! Use one of the task_details below.
    * The details of the task. The type URL must be one of the supported task
@@ -135,70 +203,99 @@ public interface MigrationTaskOrBuilder extends
   com.google.protobuf.AnyOrBuilder getDetailsOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. The current state of the task.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current state of the task.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.bigquery.migration.v2alpha.MigrationTask.State getState(); /** + * + * *
    * Output only. An explanation that may be populated when the task is in FAILED state.
    * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the processingError field is set. */ boolean hasProcessingError(); /** + * + * *
    * Output only. An explanation that may be populated when the task is in FAILED state.
    * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The processingError. */ com.google.rpc.ErrorInfo getProcessingError(); /** + * + * *
    * Output only. An explanation that may be populated when the task is in FAILED state.
    * 
* - * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.rpc.ErrorInfoOrBuilder getProcessingErrorOrBuilder(); /** + * + * *
    * Time when the task was created.
    * 
* * .google.protobuf.Timestamp create_time = 6; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Time when the task was created.
    * 
* * .google.protobuf.Timestamp create_time = 6; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Time when the task was created.
    * 
@@ -208,24 +305,32 @@ public interface MigrationTaskOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Time when the task was last updated.
    * 
* * .google.protobuf.Timestamp last_update_time = 7; + * * @return Whether the lastUpdateTime field is set. */ boolean hasLastUpdateTime(); /** + * + * *
    * Time when the task was last updated.
    * 
* * .google.protobuf.Timestamp last_update_time = 7; + * * @return The lastUpdateTime. */ com.google.protobuf.Timestamp getLastUpdateTime(); /** + * + * *
    * Time when the task was last updated.
    * 
@@ -235,31 +340,48 @@ public interface MigrationTaskOrBuilder extends com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder(); /** + * + * *
    * Output only. Additional information about the orchestration.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the orchestrationResult field is set. */ boolean hasOrchestrationResult(); /** + * + * *
    * Output only. Additional information about the orchestration.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The orchestrationResult. */ - com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult getOrchestrationResult(); + com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult + getOrchestrationResult(); /** + * + * *
    * Output only. Additional information about the orchestration.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult orchestration_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResultOrBuilder getOrchestrationResultOrBuilder(); + com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResultOrBuilder + getOrchestrationResultOrBuilder(); - public com.google.cloud.bigquery.migration.v2alpha.MigrationTask.TaskDetailsCase getTaskDetailsCase(); + public com.google.cloud.bigquery.migration.v2alpha.MigrationTask.TaskDetailsCase + getTaskDetailsCase(); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTaskOrchestrationResult.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTaskOrchestrationResult.java similarity index 50% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTaskOrchestrationResult.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTaskOrchestrationResult.java index 6008467..e3d77c9 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTaskOrchestrationResult.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTaskOrchestrationResult.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_entities.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * Additional information from the orchestrator when it is done with the
  * task orchestration.
@@ -11,51 +28,57 @@
  *
  * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult}
  */
-public final class MigrationTaskOrchestrationResult extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MigrationTaskOrchestrationResult extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult)
     MigrationTaskOrchestrationResultOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MigrationTaskOrchestrationResult.newBuilder() to construct.
-  private MigrationTaskOrchestrationResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private MigrationTaskOrchestrationResult(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private MigrationTaskOrchestrationResult() {
-  }
+
+  private MigrationTaskOrchestrationResult() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MigrationTaskOrchestrationResult();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTaskOrchestrationResult_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto
+        .internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTaskOrchestrationResult_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTaskOrchestrationResult_fieldAccessorTable
+    return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto
+        .internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTaskOrchestrationResult_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.class, com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.Builder.class);
+            com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.class,
+            com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.Builder
+                .class);
   }
 
   private int detailsCase_ = 0;
   private java.lang.Object details_;
+
   public enum DetailsCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     ASSESSMENT_DETAILS(1),
     DETAILS_NOT_SET(0);
     private final int value;
+
     private DetailsCase(int value) {
       this.value = value;
     }
@@ -71,29 +94,36 @@ public static DetailsCase valueOf(int value) {
 
     public static DetailsCase forNumber(int value) {
       switch (value) {
-        case 1: return ASSESSMENT_DETAILS;
-        case 0: return DETAILS_NOT_SET;
-        default: return null;
+        case 1:
+          return ASSESSMENT_DETAILS;
+        case 0:
+          return DETAILS_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public DetailsCase
-  getDetailsCase() {
-    return DetailsCase.forNumber(
-        detailsCase_);
+  public DetailsCase getDetailsCase() {
+    return DetailsCase.forNumber(detailsCase_);
   }
 
   public static final int ASSESSMENT_DETAILS_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * Details specific to assessment task types.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; + * + * * @return Whether the assessmentDetails field is set. */ @java.lang.Override @@ -101,36 +131,52 @@ public boolean hasAssessmentDetails() { return detailsCase_ == 1; } /** + * + * *
    * Details specific to assessment task types.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; + * + * * @return The assessmentDetails. */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails getAssessmentDetails() { + public com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + getAssessmentDetails() { if (detailsCase_ == 1) { - return (com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails) details_; + return (com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails) + details_; } - return com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails.getDefaultInstance(); + return com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + .getDefaultInstance(); } /** + * + * *
    * Details specific to assessment task types.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetailsOrBuilder getAssessmentDetailsOrBuilder() { + public com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetailsOrBuilder + getAssessmentDetailsOrBuilder() { if (detailsCase_ == 1) { - return (com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails) details_; + return (com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails) + details_; } - return com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails.getDefaultInstance(); + return com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + .getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,10 +188,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (detailsCase_ == 1) { - output.writeMessage(1, (com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails) details_); + output.writeMessage( + 1, + (com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails) + details_); } getUnknownFields().writeTo(output); } @@ -157,8 +205,11 @@ public int getSerializedSize() { size = 0; if (detailsCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails) details_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails) + details_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -168,18 +219,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult)) { + if (!(obj + instanceof com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult other = (com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult) obj; + com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult other = + (com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult) obj; if (!getDetailsCase().equals(other.getDetailsCase())) return false; switch (detailsCase_) { case 1: - if (!getAssessmentDetails() - .equals(other.getAssessmentDetails())) return false; + if (!getAssessmentDetails().equals(other.getAssessmentDetails())) return false; break; case 0: default: @@ -208,97 +260,111 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Additional information from the orchestrator when it is done with the
    * task orchestration.
@@ -306,33 +372,34 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult)
       com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResultOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTaskOrchestrationResult_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto
+          .internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTaskOrchestrationResult_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTaskOrchestrationResult_fieldAccessorTable
+      return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto
+          .internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTaskOrchestrationResult_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.class, com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.Builder.class);
+              com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.class,
+              com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.newBuilder()
-    private Builder() {
-
-    }
+    // Construct using
+    // com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.newBuilder()
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -346,19 +413,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTaskOrchestrationResult_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto
+          .internal_static_google_cloud_bigquery_migration_v2alpha_MigrationTaskOrchestrationResult_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult getDefaultInstanceForType() {
-      return com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.getDefaultInstance();
+    public com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult
+        getDefaultInstanceForType() {
+      return com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult build() {
-      com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult result = buildPartial();
+      com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -366,23 +436,28 @@ public com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationRes
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult buildPartial() {
-      com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult result = new com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+    public com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult
+        buildPartial() {
+      com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult result =
+          new com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult result) {
+    private void buildPartial0(
+        com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult result) {
       int from_bitField0_ = bitField0_;
     }
 
-    private void buildPartialOneofs(com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult result) {
+    private void buildPartialOneofs(
+        com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult result) {
       result.detailsCase_ = detailsCase_;
       result.details_ = this.details_;
-      if (detailsCase_ == 1 &&
-          assessmentDetailsBuilder_ != null) {
+      if (detailsCase_ == 1 && assessmentDetailsBuilder_ != null) {
         result.details_ = assessmentDetailsBuilder_.build();
       }
     }
@@ -391,54 +466,62 @@ private void buildPartialOneofs(com.google.cloud.bigquery.migration.v2alpha.Migr
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult) {
-        return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult)other);
+      if (other
+          instanceof com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult) {
+        return mergeFrom(
+            (com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult other) {
-      if (other == com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult other) {
+      if (other
+          == com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult
+              .getDefaultInstance()) return this;
       switch (other.getDetailsCase()) {
-        case ASSESSMENT_DETAILS: {
-          mergeAssessmentDetails(other.getAssessmentDetails());
-          break;
-        }
-        case DETAILS_NOT_SET: {
-          break;
-        }
+        case ASSESSMENT_DETAILS:
+          {
+            mergeAssessmentDetails(other.getAssessmentDetails());
+            break;
+          }
+        case DETAILS_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -466,19 +549,20 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getAssessmentDetailsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              detailsCase_ = 1;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(
+                    getAssessmentDetailsFieldBuilder().getBuilder(), extensionRegistry);
+                detailsCase_ = 1;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -488,12 +572,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int detailsCase_ = 0;
     private java.lang.Object details_;
-    public DetailsCase
-        getDetailsCase() {
-      return DetailsCase.forNumber(
-          detailsCase_);
+
+    public DetailsCase getDetailsCase() {
+      return DetailsCase.forNumber(detailsCase_);
     }
 
     public Builder clearDetails() {
@@ -506,13 +590,23 @@ public Builder clearDetails() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails, com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails.Builder, com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetailsOrBuilder> assessmentDetailsBuilder_;
+            com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails,
+            com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails
+                .Builder,
+            com.google.cloud.bigquery.migration.v2alpha
+                .AssessmentOrchestrationResultDetailsOrBuilder>
+        assessmentDetailsBuilder_;
     /**
+     *
+     *
      * 
      * Details specific to assessment task types.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; + * + * * @return Whether the assessmentDetails field is set. */ @java.lang.Override @@ -520,35 +614,49 @@ public boolean hasAssessmentDetails() { return detailsCase_ == 1; } /** + * + * *
      * Details specific to assessment task types.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; + * + * * @return The assessmentDetails. */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails getAssessmentDetails() { + public com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + getAssessmentDetails() { if (assessmentDetailsBuilder_ == null) { if (detailsCase_ == 1) { - return (com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails) details_; + return (com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails) + details_; } - return com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails.getDefaultInstance(); + return com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + .getDefaultInstance(); } else { if (detailsCase_ == 1) { return assessmentDetailsBuilder_.getMessage(); } - return com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails.getDefaultInstance(); + return com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + .getDefaultInstance(); } } /** + * + * *
      * Details specific to assessment task types.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; + * */ - public Builder setAssessmentDetails(com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails value) { + public Builder setAssessmentDetails( + com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails value) { if (assessmentDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -562,14 +670,19 @@ public Builder setAssessmentDetails(com.google.cloud.bigquery.migration.v2alpha. return this; } /** + * + * *
      * Details specific to assessment task types.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; + * */ public Builder setAssessmentDetails( - com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails.Builder builderForValue) { + com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails.Builder + builderForValue) { if (assessmentDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -580,18 +693,31 @@ public Builder setAssessmentDetails( return this; } /** + * + * *
      * Details specific to assessment task types.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; + * */ - public Builder mergeAssessmentDetails(com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails value) { + public Builder mergeAssessmentDetails( + com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails value) { if (assessmentDetailsBuilder_ == null) { - if (detailsCase_ == 1 && - details_ != com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails.getDefaultInstance()) { - details_ = com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails.newBuilder((com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails) details_) - .mergeFrom(value).buildPartial(); + if (detailsCase_ == 1 + && details_ + != com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + .getDefaultInstance()) { + details_ = + com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + .newBuilder( + (com.google.cloud.bigquery.migration.v2alpha + .AssessmentOrchestrationResultDetails) + details_) + .mergeFrom(value) + .buildPartial(); } else { details_ = value; } @@ -607,11 +733,15 @@ public Builder mergeAssessmentDetails(com.google.cloud.bigquery.migration.v2alph return this; } /** + * + * *
      * Details specific to assessment task types.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; + * */ public Builder clearAssessmentDetails() { if (assessmentDetailsBuilder_ == null) { @@ -630,50 +760,78 @@ public Builder clearAssessmentDetails() { return this; } /** + * + * *
      * Details specific to assessment task types.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; + * */ - public com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails.Builder getAssessmentDetailsBuilder() { + public com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails.Builder + getAssessmentDetailsBuilder() { return getAssessmentDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details specific to assessment task types.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetailsOrBuilder getAssessmentDetailsOrBuilder() { + public com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetailsOrBuilder + getAssessmentDetailsOrBuilder() { if ((detailsCase_ == 1) && (assessmentDetailsBuilder_ != null)) { return assessmentDetailsBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 1) { - return (com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails) details_; + return (com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails) + details_; } - return com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails.getDefaultInstance(); + return com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + .getDefaultInstance(); } } /** + * + * *
      * Details specific to assessment task types.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails, com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails.Builder, com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetailsOrBuilder> + com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails, + com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + .Builder, + com.google.cloud.bigquery.migration.v2alpha + .AssessmentOrchestrationResultDetailsOrBuilder> getAssessmentDetailsFieldBuilder() { if (assessmentDetailsBuilder_ == null) { if (!(detailsCase_ == 1)) { - details_ = com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails.getDefaultInstance(); + details_ = + com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + .getDefaultInstance(); } - assessmentDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails, com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails.Builder, com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetailsOrBuilder>( - (com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails) details_, + assessmentDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails, + com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + .Builder, + com.google.cloud.bigquery.migration.v2alpha + .AssessmentOrchestrationResultDetailsOrBuilder>( + (com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails) + details_, getParentForChildren(), isClean()); details_ = null; @@ -682,9 +840,9 @@ public com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResult onChanged(); return assessmentDetailsBuilder_; } + @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); } @@ -694,41 +852,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult) - private static final com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult(); } - public static com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MigrationTaskOrchestrationResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MigrationTaskOrchestrationResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -740,9 +901,8 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTaskOrchestrationResultOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTaskOrchestrationResultOrBuilder.java new file mode 100644 index 0000000..92b6d4b --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationTaskOrchestrationResultOrBuilder.java @@ -0,0 +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/bigquery/migration/v2alpha/migration_entities.proto + +package com.google.cloud.bigquery.migration.v2alpha; + +public interface MigrationTaskOrchestrationResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Details specific to assessment task types.
+   * 
+ * + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; + * + * + * @return Whether the assessmentDetails field is set. + */ + boolean hasAssessmentDetails(); + /** + * + * + *
+   * Details specific to assessment task types.
+   * 
+ * + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; + * + * + * @return The assessmentDetails. + */ + com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails + getAssessmentDetails(); + /** + * + * + *
+   * Details specific to assessment task types.
+   * 
+ * + * + * .google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails assessment_details = 1; + * + */ + com.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetailsOrBuilder + getAssessmentDetailsOrBuilder(); + + public com.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.DetailsCase + getDetailsCase(); +} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationWorkflow.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationWorkflow.java similarity index 64% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationWorkflow.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationWorkflow.java index 1ad97ed..7179149 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationWorkflow.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationWorkflow.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_entities.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * A migration workflow which specifies what needs to be done for an EDW
  * migration.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.MigrationWorkflow}
  */
-public final class MigrationWorkflow extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MigrationWorkflow extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.MigrationWorkflow)
     MigrationWorkflowOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MigrationWorkflow.newBuilder() to construct.
   private MigrationWorkflow(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private MigrationWorkflow() {
     name_ = "";
     displayName_ = "";
@@ -28,51 +46,54 @@ private MigrationWorkflow() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MigrationWorkflow();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto
+        .internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_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 internalGetTasks();
       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.bigquery.migration.v2alpha.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_fieldAccessorTable
+    return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto
+        .internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.class, com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder.class);
+            com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.class,
+            com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Possible migration workflow states.
    * 
* * Protobuf enum {@code google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Workflow state is unspecified.
      * 
@@ -81,6 +102,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Workflow is in draft status, i.e. tasks are not yet eligible for
      * execution.
@@ -90,6 +113,8 @@ public enum State
      */
     DRAFT(1),
     /**
+     *
+     *
      * 
      * Workflow is running (i.e. tasks are eligible for execution).
      * 
@@ -98,6 +123,8 @@ public enum State */ RUNNING(2), /** + * + * *
      * Workflow is paused. Tasks currently in progress may continue, but no
      * further tasks will be scheduled.
@@ -107,6 +134,8 @@ public enum State
      */
     PAUSED(3),
     /**
+     *
+     *
      * 
      * Workflow is complete. There should not be any task in a non-terminal
      * state, but if they are (e.g. forced termination), they will not be
@@ -120,6 +149,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Workflow state is unspecified.
      * 
@@ -128,6 +159,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Workflow is in draft status, i.e. tasks are not yet eligible for
      * execution.
@@ -137,6 +170,8 @@ public enum State
      */
     public static final int DRAFT_VALUE = 1;
     /**
+     *
+     *
      * 
      * Workflow is running (i.e. tasks are eligible for execution).
      * 
@@ -145,6 +180,8 @@ public enum State */ public static final int RUNNING_VALUE = 2; /** + * + * *
      * Workflow is paused. Tasks currently in progress may continue, but no
      * further tasks will be scheduled.
@@ -154,6 +191,8 @@ public enum State
      */
     public static final int PAUSED_VALUE = 3;
     /**
+     *
+     *
      * 
      * Workflow is complete. There should not be any task in a non-terminal
      * state, but if they are (e.g. forced termination), they will not be
@@ -164,7 +203,6 @@ public enum State
      */
     public static final int COMPLETED_VALUE = 4;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -189,51 +227,55 @@ 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 RUNNING;
-        case 3: return PAUSED;
-        case 4: return COMPLETED;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return DRAFT;
+        case 2:
+          return RUNNING;
+        case 3:
+          return PAUSED;
+        case 4:
+          return COMPLETED;
+        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() {
-      return com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.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;
@@ -251,16 +293,22 @@ private State(int value) {
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Output only. Immutable. The unique identifier for the migration workflow. The ID is
    * server-generated.
    * Example: `projects/123/locations/us/workflows/345`
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The name. */ @java.lang.Override @@ -269,31 +317,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. Immutable. The unique identifier for the migration workflow. The ID is
    * server-generated.
    * Example: `projects/123/locations/us/workflows/345`
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @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 { @@ -302,15 +352,19 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * The display name of the workflow. This can be set to give a workflow
    * a descriptive name. There is no guarantee or enforcement of uniqueness.
    * 
* * string display_name = 6; + * * @return The displayName. */ @java.lang.Override @@ -319,30 +373,30 @@ 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 display name of the workflow. This can be set to give a workflow
    * a descriptive name. There is no guarantee or enforcement of uniqueness.
    * 
* * 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 { @@ -351,100 +405,125 @@ public java.lang.String getDisplayName() { } public static final int TASKS_FIELD_NUMBER = 2; + private static final class TasksDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.bigquery.migration.v2alpha.MigrationTask> defaultEntry = + java.lang.String, com.google.cloud.bigquery.migration.v2alpha.MigrationTask> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_TasksEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.bigquery.migration.v2alpha.MigrationTask.getDefaultInstance()); + . + newDefaultInstance( + com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto + .internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_TasksEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.bigquery.migration.v2alpha.MigrationTask + .getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks_; - private com.google.protobuf.MapField - internalGetTasks() { + java.lang.String, com.google.cloud.bigquery.migration.v2alpha.MigrationTask> + tasks_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.bigquery.migration.v2alpha.MigrationTask> + internalGetTasks() { if (tasks_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TasksDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(TasksDefaultEntryHolder.defaultEntry); } return tasks_; } + public int getTasksCount() { return internalGetTasks().getMap().size(); } /** + * + * *
    * The tasks in a workflow in a named map. The name (i.e. key) has no
    * meaning and is merely a convenient way to address a specific task
    * in a workflow.
    * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * */ @java.lang.Override - public boolean containsTasks( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsTasks(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetTasks().getMap().containsKey(key); } - /** - * Use {@link #getTasksMap()} instead. - */ + /** Use {@link #getTasksMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getTasks() { + public java.util.Map + getTasks() { return getTasksMap(); } /** + * + * *
    * The tasks in a workflow in a named map. The name (i.e. key) has no
    * meaning and is merely a convenient way to address a specific task
    * in a workflow.
    * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * */ @java.lang.Override - public java.util.Map getTasksMap() { + public java.util.Map + getTasksMap() { return internalGetTasks().getMap(); } /** + * + * *
    * The tasks in a workflow in a named map. The name (i.e. key) has no
    * meaning and is merely a convenient way to address a specific task
    * in a workflow.
    * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * */ @java.lang.Override - public /* nullable */ -com.google.cloud.bigquery.migration.v2alpha.MigrationTask getTasksOrDefault( + public /* nullable */ com.google.cloud.bigquery.migration.v2alpha.MigrationTask getTasksOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.bigquery.migration.v2alpha.MigrationTask defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + com.google.cloud.bigquery.migration.v2alpha.MigrationTask defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetTasks().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * The tasks in a workflow in a named map. The name (i.e. key) has no
    * meaning and is merely a convenient way to address a specific task
    * in a workflow.
    * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * */ @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.MigrationTask getTasksOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetTasks().getMap(); if (!map.containsKey(key)) { @@ -456,37 +535,55 @@ public com.google.cloud.bigquery.migration.v2alpha.MigrationTask getTasksOrThrow public static final int STATE_FIELD_NUMBER = 3; private int state_ = 0; /** + * + * *
    * Output only. That status of the workflow.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. That status of the workflow.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State getState() { - com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State result = com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State.forNumber(state_); - return result == null ? com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State getState() { + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State result = + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State.forNumber(state_); + return result == null + ? com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State.UNRECOGNIZED + : result; } public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Time when the workflow was created.
    * 
* * .google.protobuf.Timestamp create_time = 4; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -494,11 +591,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Time when the workflow was created.
    * 
* * .google.protobuf.Timestamp create_time = 4; + * * @return The createTime. */ @java.lang.Override @@ -506,6 +606,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Time when the workflow was created.
    * 
@@ -520,11 +622,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int LAST_UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp lastUpdateTime_; /** + * + * *
    * Time when the workflow was last updated.
    * 
* * .google.protobuf.Timestamp last_update_time = 5; + * * @return Whether the lastUpdateTime field is set. */ @java.lang.Override @@ -532,18 +637,25 @@ public boolean hasLastUpdateTime() { return lastUpdateTime_ != null; } /** + * + * *
    * Time when the workflow was last updated.
    * 
* * .google.protobuf.Timestamp last_update_time = 5; + * * @return The lastUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastUpdateTime() { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } /** + * + * *
    * Time when the workflow was last updated.
    * 
@@ -552,10 +664,13 @@ public com.google.protobuf.Timestamp getLastUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -567,18 +682,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetTasks(), - TasksDefaultEntryHolder.defaultEntry, - 2); - if (state_ != com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State.STATE_UNSPECIFIED.getNumber()) { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetTasks(), TasksDefaultEntryHolder.defaultEntry, 2); + if (state_ + != com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, state_); } if (createTime_ != null) { @@ -602,27 +714,29 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - for (java.util.Map.Entry entry - : internalGetTasks().getMap().entrySet()) { - com.google.protobuf.MapEntry - tasks__ = TasksDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, tasks__); - } - if (state_ != com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.bigquery.migration.v2alpha.MigrationTask> + entry : internalGetTasks().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.bigquery.migration.v2alpha.MigrationTask> + tasks__ = + TasksDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, tasks__); + } + if (state_ + != com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); } if (lastUpdateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getLastUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getLastUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, displayName_); @@ -635,29 +749,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow other = (com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow) obj; + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow other = + (com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!internalGetTasks().equals( - other.internalGetTasks())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!internalGetTasks().equals(other.internalGetTasks())) return false; if (state_ != other.state_) 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 (hasLastUpdateTime() != other.hasLastUpdateTime()) return false; if (hasLastUpdateTime()) { - if (!getLastUpdateTime() - .equals(other.getLastUpdateTime())) return false; + if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -694,96 +804,104 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 migration workflow which specifies what needs to be done for an EDW
    * migration.
@@ -791,55 +909,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.MigrationWorkflow}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.MigrationWorkflow)
       com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflowOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto
+          .internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 2:
           return internalGetTasks();
         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 internalGetMutableTasks();
         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.bigquery.migration.v2alpha.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_fieldAccessorTable
+      return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto
+          .internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.class, com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder.class);
+              com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.class,
+              com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -862,13 +977,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto.internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.migration.v2alpha.MigrationEntitiesProto
+          .internal_static_google_cloud_bigquery_migration_v2alpha_MigrationWorkflow_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow getDefaultInstanceForType() {
+    public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow
+        getDefaultInstanceForType() {
       return com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.getDefaultInstance();
     }
 
@@ -883,13 +999,17 @@ public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow buildPartial() {
-      com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow result = new com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow result =
+          new com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow result) {
+    private void buildPartial0(
+        com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.name_ = name_;
@@ -905,14 +1025,11 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.Migration
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.lastUpdateTime_ = lastUpdateTimeBuilder_ == null
-            ? lastUpdateTime_
-            : lastUpdateTimeBuilder_.build();
+        result.lastUpdateTime_ =
+            lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build();
       }
     }
 
@@ -920,38 +1037,39 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.Migration
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow) {
-        return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow)other);
+        return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -959,7 +1077,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow other) {
-      if (other == com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -970,8 +1090,7 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.MigrationWo
         bitField0_ |= 0x00000002;
         onChanged();
       }
-      internalGetMutableTasks().mergeFrom(
-          other.internalGetTasks());
+      internalGetMutableTasks().mergeFrom(other.internalGetTasks());
       bitField0_ |= 0x00000004;
       if (other.state_ != 0) {
         setStateValue(other.getStateValue());
@@ -1008,50 +1127,55 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              com.google.protobuf.MapEntry
-              tasks__ = input.readMessage(
-                  TasksDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableTasks().getMutableMap().put(
-                  tasks__.getKey(), tasks__.getValue());
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 18
-            case 24: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 24
-            case 34: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getLastUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 42
-            case 50: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.protobuf.MapEntry<
+                        java.lang.String, com.google.cloud.bigquery.migration.v2alpha.MigrationTask>
+                    tasks__ =
+                        input.readMessage(
+                            TasksDefaultEntryHolder.defaultEntry.getParserForType(),
+                            extensionRegistry);
+                internalGetMutableTasks().getMutableMap().put(tasks__.getKey(), tasks__.getValue());
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 18
+            case 24:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 24
+            case 34:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getLastUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 42
+            case 50:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 50
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1061,24 +1185,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. Immutable. The unique identifier for the migration workflow. The ID is
      * server-generated.
      * Example: `projects/123/locations/us/workflows/345`
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @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; @@ -1087,22 +1216,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Immutable. The unique identifier for the migration workflow. The ID is
      * server-generated.
      * Example: `projects/123/locations/us/workflows/345`
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @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 { @@ -1110,32 +1242,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Immutable. The unique identifier for the migration workflow. The ID is
      * server-generated.
      * Example: `projects/123/locations/us/workflows/345`
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. Immutable. The unique identifier for the migration workflow. The ID is
      * server-generated.
      * Example: `projects/123/locations/us/workflows/345`
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -1145,19 +1288,25 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. Immutable. The unique identifier for the migration workflow. The ID is
      * server-generated.
      * Example: `projects/123/locations/us/workflows/345`
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1167,19 +1316,21 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * The display name of the workflow. This can be set to give a workflow
      * a descriptive name. There is no guarantee or enforcement of uniqueness.
      * 
* * 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; @@ -1188,21 +1339,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The display name of the workflow. This can be set to give a workflow
      * a descriptive name. There is no guarantee or enforcement of uniqueness.
      * 
* * 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 { @@ -1210,30 +1362,37 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The display name of the workflow. This can be set to give a workflow
      * a descriptive name. There is no guarantee or enforcement of uniqueness.
      * 
* * string display_name = 6; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The display name of the workflow. This can be set to give a workflow
      * a descriptive name. There is no guarantee or enforcement of uniqueness.
      * 
* * string display_name = 6; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1243,18 +1402,22 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * The display name of the workflow. This can be set to give a workflow
      * a descriptive name. There is no guarantee or enforcement of uniqueness.
      * 
* * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1263,20 +1426,23 @@ public Builder setDisplayNameBytes( } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks_; - private com.google.protobuf.MapField + java.lang.String, com.google.cloud.bigquery.migration.v2alpha.MigrationTask> + tasks_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.bigquery.migration.v2alpha.MigrationTask> internalGetTasks() { if (tasks_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TasksDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(TasksDefaultEntryHolder.defaultEntry); } return tasks_; } - private com.google.protobuf.MapField + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.bigquery.migration.v2alpha.MigrationTask> internalGetMutableTasks() { if (tasks_ == null) { - tasks_ = com.google.protobuf.MapField.newMapField( - TasksDefaultEntryHolder.defaultEntry); + tasks_ = com.google.protobuf.MapField.newMapField(TasksDefaultEntryHolder.defaultEntry); } if (!tasks_.isMutable()) { tasks_ = tasks_.copy(); @@ -1285,170 +1451,211 @@ public Builder setDisplayNameBytes( onChanged(); return tasks_; } + public int getTasksCount() { return internalGetTasks().getMap().size(); } /** + * + * *
      * The tasks in a workflow in a named map. The name (i.e. key) has no
      * meaning and is merely a convenient way to address a specific task
      * in a workflow.
      * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * */ @java.lang.Override - public boolean containsTasks( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsTasks(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetTasks().getMap().containsKey(key); } - /** - * Use {@link #getTasksMap()} instead. - */ + /** Use {@link #getTasksMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getTasks() { + public java.util.Map< + java.lang.String, com.google.cloud.bigquery.migration.v2alpha.MigrationTask> + getTasks() { return getTasksMap(); } /** + * + * *
      * The tasks in a workflow in a named map. The name (i.e. key) has no
      * meaning and is merely a convenient way to address a specific task
      * in a workflow.
      * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * */ @java.lang.Override - public java.util.Map getTasksMap() { + public java.util.Map< + java.lang.String, com.google.cloud.bigquery.migration.v2alpha.MigrationTask> + getTasksMap() { return internalGetTasks().getMap(); } /** + * + * *
      * The tasks in a workflow in a named map. The name (i.e. key) has no
      * meaning and is merely a convenient way to address a specific task
      * in a workflow.
      * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * */ @java.lang.Override - public /* nullable */ -com.google.cloud.bigquery.migration.v2alpha.MigrationTask getTasksOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.bigquery.migration.v2alpha.MigrationTask defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetTasks().getMap(); + public /* nullable */ com.google.cloud.bigquery.migration.v2alpha.MigrationTask + getTasksOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.bigquery.migration.v2alpha.MigrationTask defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetTasks().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * The tasks in a workflow in a named map. The name (i.e. key) has no
      * meaning and is merely a convenient way to address a specific task
      * in a workflow.
      * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * */ @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.MigrationTask getTasksOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetTasks().getMap(); + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetTasks().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearTasks() { bitField0_ = (bitField0_ & ~0x00000004); - internalGetMutableTasks().getMutableMap() - .clear(); + internalGetMutableTasks().getMutableMap().clear(); return this; } /** + * + * *
      * The tasks in a workflow in a named map. The name (i.e. key) has no
      * meaning and is merely a convenient way to address a specific task
      * in a workflow.
      * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * */ - public Builder removeTasks( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableTasks().getMutableMap() - .remove(key); + public Builder removeTasks(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableTasks().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map + public java.util.Map< + java.lang.String, com.google.cloud.bigquery.migration.v2alpha.MigrationTask> getMutableTasks() { bitField0_ |= 0x00000004; return internalGetMutableTasks().getMutableMap(); } /** + * + * *
      * The tasks in a workflow in a named map. The name (i.e. key) has no
      * meaning and is merely a convenient way to address a specific task
      * in a workflow.
      * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * */ public Builder putTasks( - java.lang.String key, - com.google.cloud.bigquery.migration.v2alpha.MigrationTask value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableTasks().getMutableMap() - .put(key, value); + java.lang.String key, com.google.cloud.bigquery.migration.v2alpha.MigrationTask value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableTasks().getMutableMap().put(key, value); bitField0_ |= 0x00000004; return this; } /** + * + * *
      * The tasks in a workflow in a named map. The name (i.e. key) has no
      * meaning and is merely a convenient way to address a specific task
      * in a workflow.
      * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * */ public Builder putAllTasks( - java.util.Map values) { - internalGetMutableTasks().getMutableMap() - .putAll(values); + java.util.Map + values) { + internalGetMutableTasks().getMutableMap().putAll(values); bitField0_ |= 0x00000004; return this; } private int state_ = 0; /** + * + * *
      * Output only. That status of the workflow.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. That status of the workflow.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1459,28 +1666,42 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. That status of the workflow.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State getState() { - com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State result = com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State.forNumber(state_); - return result == null ? com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State.UNRECOGNIZED : result; + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State result = + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State.forNumber(state_); + return result == null + ? com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. That status of the workflow.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ - public Builder setState(com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State value) { + public Builder setState( + com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State value) { if (value == null) { throw new NullPointerException(); } @@ -1490,11 +1711,16 @@ public Builder setState(com.google.cloud.bigquery.migration.v2alpha.MigrationWor return this; } /** + * + * *
      * Output only. That status of the workflow.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -1506,34 +1732,47 @@ public Builder clearState() { 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_; /** + * + * *
      * Time when the workflow was created.
      * 
* * .google.protobuf.Timestamp create_time = 4; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Time when the workflow was created.
      * 
* * .google.protobuf.Timestamp create_time = 4; + * * @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(); } } /** + * + * *
      * Time when the workflow was created.
      * 
@@ -1554,14 +1793,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the workflow was created.
      * 
* * .google.protobuf.Timestamp create_time = 4; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1572,6 +1812,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Time when the workflow was created.
      * 
@@ -1580,9 +1822,9 @@ public Builder setCreateTime( */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1595,6 +1837,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the workflow was created.
      * 
@@ -1612,6 +1856,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Time when the workflow was created.
      * 
@@ -1624,6 +1870,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the workflow was created.
      * 
@@ -1634,11 +1882,14 @@ 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_; } } /** + * + * *
      * Time when the workflow was created.
      * 
@@ -1646,14 +1897,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> 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_; @@ -1661,34 +1915,47 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp lastUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastUpdateTimeBuilder_; /** + * + * *
      * Time when the workflow was last updated.
      * 
* * .google.protobuf.Timestamp last_update_time = 5; + * * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Time when the workflow was last updated.
      * 
* * .google.protobuf.Timestamp last_update_time = 5; + * * @return The lastUpdateTime. */ public com.google.protobuf.Timestamp getLastUpdateTime() { if (lastUpdateTimeBuilder_ == null) { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } else { return lastUpdateTimeBuilder_.getMessage(); } } /** + * + * *
      * Time when the workflow was last updated.
      * 
@@ -1709,14 +1976,15 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the workflow was last updated.
      * 
* * .google.protobuf.Timestamp last_update_time = 5; */ - public Builder setLastUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); } else { @@ -1727,6 +1995,8 @@ public Builder setLastUpdateTime( return this; } /** + * + * *
      * Time when the workflow was last updated.
      * 
@@ -1735,9 +2005,9 @@ public Builder setLastUpdateTime( */ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - lastUpdateTime_ != null && - lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && lastUpdateTime_ != null + && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastUpdateTimeBuilder().mergeFrom(value); } else { lastUpdateTime_ = value; @@ -1750,6 +2020,8 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the workflow was last updated.
      * 
@@ -1767,6 +2039,8 @@ public Builder clearLastUpdateTime() { return this; } /** + * + * *
      * Time when the workflow was last updated.
      * 
@@ -1779,6 +2053,8 @@ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { return getLastUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the workflow was last updated.
      * 
@@ -1789,11 +2065,14 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { if (lastUpdateTimeBuilder_ != null) { return lastUpdateTimeBuilder_.getMessageOrBuilder(); } else { - return lastUpdateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } } /** + * + * *
      * Time when the workflow was last updated.
      * 
@@ -1801,21 +2080,24 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { * .google.protobuf.Timestamp last_update_time = 5; */ 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> getLastUpdateTimeFieldBuilder() { if (lastUpdateTimeBuilder_ == null) { - lastUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getLastUpdateTime(), - getParentForChildren(), - isClean()); + lastUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastUpdateTime(), getParentForChildren(), isClean()); lastUpdateTime_ = null; } return lastUpdateTimeBuilder_; } + @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); } @@ -1825,12 +2107,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.MigrationWorkflow) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.MigrationWorkflow) - private static final com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow(); } @@ -1839,27 +2122,27 @@ public static com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MigrationWorkflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MigrationWorkflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1874,6 +2157,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationWorkflowName.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationWorkflowName.java similarity index 100% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationWorkflowName.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationWorkflowName.java diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationWorkflowOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationWorkflowOrBuilder.java similarity index 69% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationWorkflowOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationWorkflowOrBuilder.java index a38910e..470fd8c 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationWorkflowOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationWorkflowOrBuilder.java @@ -1,160 +1,219 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_entities.proto package com.google.cloud.bigquery.migration.v2alpha; -public interface MigrationWorkflowOrBuilder extends +public interface MigrationWorkflowOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.MigrationWorkflow) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Immutable. The unique identifier for the migration workflow. The ID is
    * server-generated.
    * Example: `projects/123/locations/us/workflows/345`
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Immutable. The unique identifier for the migration workflow. The ID is
    * server-generated.
    * Example: `projects/123/locations/us/workflows/345`
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The display name of the workflow. This can be set to give a workflow
    * a descriptive name. There is no guarantee or enforcement of uniqueness.
    * 
* * string display_name = 6; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * The display name of the workflow. This can be set to give a workflow
    * a descriptive name. There is no guarantee or enforcement of uniqueness.
    * 
* * string display_name = 6; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * The tasks in a workflow in a named map. The name (i.e. key) has no
    * meaning and is merely a convenient way to address a specific task
    * in a workflow.
    * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * */ int getTasksCount(); /** + * + * *
    * The tasks in a workflow in a named map. The name (i.e. key) has no
    * meaning and is merely a convenient way to address a specific task
    * in a workflow.
    * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; - */ - boolean containsTasks( - java.lang.String key); - /** - * Use {@link #getTasksMap()} instead. + * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * */ + boolean containsTasks(java.lang.String key); + /** Use {@link #getTasksMap()} instead. */ @java.lang.Deprecated java.util.Map - getTasks(); + getTasks(); /** + * + * *
    * The tasks in a workflow in a named map. The name (i.e. key) has no
    * meaning and is merely a convenient way to address a specific task
    * in a workflow.
    * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * */ java.util.Map - getTasksMap(); + getTasksMap(); /** + * + * *
    * The tasks in a workflow in a named map. The name (i.e. key) has no
    * meaning and is merely a convenient way to address a specific task
    * in a workflow.
    * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * */ /* nullable */ -com.google.cloud.bigquery.migration.v2alpha.MigrationTask getTasksOrDefault( + com.google.cloud.bigquery.migration.v2alpha.MigrationTask getTasksOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.bigquery.migration.v2alpha.MigrationTask defaultValue); + com.google.cloud.bigquery.migration.v2alpha.MigrationTask defaultValue); /** + * + * *
    * The tasks in a workflow in a named map. The name (i.e. key) has no
    * meaning and is merely a convenient way to address a specific task
    * in a workflow.
    * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * map<string, .google.cloud.bigquery.migration.v2alpha.MigrationTask> tasks = 2; + * */ - com.google.cloud.bigquery.migration.v2alpha.MigrationTask getTasksOrThrow( - java.lang.String key); + com.google.cloud.bigquery.migration.v2alpha.MigrationTask getTasksOrThrow(java.lang.String key); /** + * + * *
    * Output only. That status of the workflow.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. That status of the workflow.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State getState(); /** + * + * *
    * Time when the workflow was created.
    * 
* * .google.protobuf.Timestamp create_time = 4; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Time when the workflow was created.
    * 
* * .google.protobuf.Timestamp create_time = 4; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Time when the workflow was created.
    * 
@@ -164,24 +223,32 @@ com.google.cloud.bigquery.migration.v2alpha.MigrationTask getTasksOrThrow( com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Time when the workflow was last updated.
    * 
* * .google.protobuf.Timestamp last_update_time = 5; + * * @return Whether the lastUpdateTime field is set. */ boolean hasLastUpdateTime(); /** + * + * *
    * Time when the workflow was last updated.
    * 
* * .google.protobuf.Timestamp last_update_time = 5; + * * @return The lastUpdateTime. */ com.google.protobuf.Timestamp getLastUpdateTime(); /** + * + * *
    * Time when the workflow was last updated.
    * 
diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/Point.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/Point.java similarity index 74% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/Point.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/Point.java index 4913034..96bc311 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/Point.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/Point.java @@ -1,55 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_metrics.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * A single data point in a time series.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.Point} */ -public final class Point extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Point extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.Point) PointOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Point.newBuilder() to construct. private Point(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Point() { - } + + private Point() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Point(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2alpha_Point_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2alpha_Point_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2alpha_Point_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2alpha_Point_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.Point.class, com.google.cloud.bigquery.migration.v2alpha.Point.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.Point.class, + com.google.cloud.bigquery.migration.v2alpha.Point.Builder.class); } public static final int INTERVAL_FIELD_NUMBER = 1; private com.google.cloud.bigquery.migration.v2alpha.TimeInterval interval_; /** + * + * *
    * The time interval to which the data point applies.  For `GAUGE` metrics,
    * the start time does not need to be supplied, but if it is supplied, it must
@@ -63,6 +83,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.cloud.bigquery.migration.v2alpha.TimeInterval interval = 1; + * * @return Whether the interval field is set. */ @java.lang.Override @@ -70,6 +91,8 @@ public boolean hasInterval() { return interval_ != null; } /** + * + * *
    * The time interval to which the data point applies.  For `GAUGE` metrics,
    * the start time does not need to be supplied, but if it is supplied, it must
@@ -83,13 +106,18 @@ public boolean hasInterval() {
    * 
* * .google.cloud.bigquery.migration.v2alpha.TimeInterval interval = 1; + * * @return The interval. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.TimeInterval getInterval() { - return interval_ == null ? com.google.cloud.bigquery.migration.v2alpha.TimeInterval.getDefaultInstance() : interval_; + return interval_ == null + ? com.google.cloud.bigquery.migration.v2alpha.TimeInterval.getDefaultInstance() + : interval_; } /** + * + * *
    * The time interval to which the data point applies.  For `GAUGE` metrics,
    * the start time does not need to be supplied, but if it is supplied, it must
@@ -106,17 +134,22 @@ public com.google.cloud.bigquery.migration.v2alpha.TimeInterval getInterval() {
    */
   @java.lang.Override
   public com.google.cloud.bigquery.migration.v2alpha.TimeIntervalOrBuilder getIntervalOrBuilder() {
-    return interval_ == null ? com.google.cloud.bigquery.migration.v2alpha.TimeInterval.getDefaultInstance() : interval_;
+    return interval_ == null
+        ? com.google.cloud.bigquery.migration.v2alpha.TimeInterval.getDefaultInstance()
+        : interval_;
   }
 
   public static final int VALUE_FIELD_NUMBER = 2;
   private com.google.cloud.bigquery.migration.v2alpha.TypedValue value_;
   /**
+   *
+   *
    * 
    * The value of the data point.
    * 
* * .google.cloud.bigquery.migration.v2alpha.TypedValue value = 2; + * * @return Whether the value field is set. */ @java.lang.Override @@ -124,18 +157,25 @@ public boolean hasValue() { return value_ != null; } /** + * + * *
    * The value of the data point.
    * 
* * .google.cloud.bigquery.migration.v2alpha.TypedValue value = 2; + * * @return The value. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.TypedValue getValue() { - return value_ == null ? com.google.cloud.bigquery.migration.v2alpha.TypedValue.getDefaultInstance() : value_; + return value_ == null + ? com.google.cloud.bigquery.migration.v2alpha.TypedValue.getDefaultInstance() + : value_; } /** + * + * *
    * The value of the data point.
    * 
@@ -144,10 +184,13 @@ public com.google.cloud.bigquery.migration.v2alpha.TypedValue getValue() { */ @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.TypedValueOrBuilder getValueOrBuilder() { - return value_ == null ? com.google.cloud.bigquery.migration.v2alpha.TypedValue.getDefaultInstance() : value_; + return value_ == null + ? com.google.cloud.bigquery.migration.v2alpha.TypedValue.getDefaultInstance() + : value_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +202,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 (interval_ != null) { output.writeMessage(1, getInterval()); } @@ -177,12 +219,10 @@ public int getSerializedSize() { size = 0; if (interval_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInterval()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInterval()); } if (value_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getValue()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -192,22 +232,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.Point)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.Point other = (com.google.cloud.bigquery.migration.v2alpha.Point) obj; + com.google.cloud.bigquery.migration.v2alpha.Point other = + (com.google.cloud.bigquery.migration.v2alpha.Point) obj; if (hasInterval() != other.hasInterval()) return false; if (hasInterval()) { - if (!getInterval() - .equals(other.getInterval())) return false; + if (!getInterval().equals(other.getInterval())) return false; } if (hasValue() != other.hasValue()) return false; if (hasValue()) { - if (!getValue() - .equals(other.getValue())) return false; + if (!getValue().equals(other.getValue())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -234,129 +273,135 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.Point parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.Point parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.Point parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.Point parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.Point parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.Point parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.Point parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.Point parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.Point parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.Point parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.Point parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.Point parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.Point parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.Point parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.Point prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 single data point in a time series.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.Point} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.Point) com.google.cloud.bigquery.migration.v2alpha.PointOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2alpha_Point_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2alpha_Point_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2alpha_Point_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2alpha_Point_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.Point.class, com.google.cloud.bigquery.migration.v2alpha.Point.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.Point.class, + com.google.cloud.bigquery.migration.v2alpha.Point.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2alpha.Point.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +420,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2alpha_Point_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2alpha_Point_descriptor; } @java.lang.Override @@ -396,8 +441,11 @@ public com.google.cloud.bigquery.migration.v2alpha.Point build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.Point buildPartial() { - com.google.cloud.bigquery.migration.v2alpha.Point result = new com.google.cloud.bigquery.migration.v2alpha.Point(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.migration.v2alpha.Point result = + new com.google.cloud.bigquery.migration.v2alpha.Point(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -405,14 +453,10 @@ public com.google.cloud.bigquery.migration.v2alpha.Point buildPartial() { private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.Point result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.interval_ = intervalBuilder_ == null - ? interval_ - : intervalBuilder_.build(); + result.interval_ = intervalBuilder_ == null ? interval_ : intervalBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.value_ = valueBuilder_ == null - ? value_ - : valueBuilder_.build(); + result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); } } @@ -420,38 +464,39 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.Point res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2alpha.Point) { - return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.Point)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.Point) other); } else { super.mergeFrom(other); return this; @@ -459,7 +504,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.Point other) { - if (other == com.google.cloud.bigquery.migration.v2alpha.Point.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.migration.v2alpha.Point.getDefaultInstance()) + return this; if (other.hasInterval()) { mergeInterval(other.getInterval()); } @@ -492,26 +538,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getIntervalFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getValueFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getIntervalFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getValueFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -521,12 +566,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.bigquery.migration.v2alpha.TimeInterval interval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.TimeInterval, com.google.cloud.bigquery.migration.v2alpha.TimeInterval.Builder, com.google.cloud.bigquery.migration.v2alpha.TimeIntervalOrBuilder> intervalBuilder_; + com.google.cloud.bigquery.migration.v2alpha.TimeInterval, + com.google.cloud.bigquery.migration.v2alpha.TimeInterval.Builder, + com.google.cloud.bigquery.migration.v2alpha.TimeIntervalOrBuilder> + intervalBuilder_; /** + * + * *
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time does not need to be supplied, but if it is supplied, it must
@@ -540,12 +591,15 @@ public Builder mergeFrom(
      * 
* * .google.cloud.bigquery.migration.v2alpha.TimeInterval interval = 1; + * * @return Whether the interval field is set. */ public boolean hasInterval() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time does not need to be supplied, but if it is supplied, it must
@@ -559,16 +613,21 @@ public boolean hasInterval() {
      * 
* * .google.cloud.bigquery.migration.v2alpha.TimeInterval interval = 1; + * * @return The interval. */ public com.google.cloud.bigquery.migration.v2alpha.TimeInterval getInterval() { if (intervalBuilder_ == null) { - return interval_ == null ? com.google.cloud.bigquery.migration.v2alpha.TimeInterval.getDefaultInstance() : interval_; + return interval_ == null + ? com.google.cloud.bigquery.migration.v2alpha.TimeInterval.getDefaultInstance() + : interval_; } else { return intervalBuilder_.getMessage(); } } /** + * + * *
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time does not need to be supplied, but if it is supplied, it must
@@ -597,6 +656,8 @@ public Builder setInterval(com.google.cloud.bigquery.migration.v2alpha.TimeInter
       return this;
     }
     /**
+     *
+     *
      * 
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time does not need to be supplied, but if it is supplied, it must
@@ -623,6 +684,8 @@ public Builder setInterval(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time does not need to be supplied, but if it is supplied, it must
@@ -639,9 +702,10 @@ public Builder setInterval(
      */
     public Builder mergeInterval(com.google.cloud.bigquery.migration.v2alpha.TimeInterval value) {
       if (intervalBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          interval_ != null &&
-          interval_ != com.google.cloud.bigquery.migration.v2alpha.TimeInterval.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && interval_ != null
+            && interval_
+                != com.google.cloud.bigquery.migration.v2alpha.TimeInterval.getDefaultInstance()) {
           getIntervalBuilder().mergeFrom(value);
         } else {
           interval_ = value;
@@ -654,6 +718,8 @@ public Builder mergeInterval(com.google.cloud.bigquery.migration.v2alpha.TimeInt
       return this;
     }
     /**
+     *
+     *
      * 
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time does not need to be supplied, but if it is supplied, it must
@@ -679,6 +745,8 @@ public Builder clearInterval() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time does not need to be supplied, but if it is supplied, it must
@@ -699,6 +767,8 @@ public com.google.cloud.bigquery.migration.v2alpha.TimeInterval.Builder getInter
       return getIntervalFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time does not need to be supplied, but if it is supplied, it must
@@ -713,15 +783,19 @@ public com.google.cloud.bigquery.migration.v2alpha.TimeInterval.Builder getInter
      *
      * .google.cloud.bigquery.migration.v2alpha.TimeInterval interval = 1;
      */
-    public com.google.cloud.bigquery.migration.v2alpha.TimeIntervalOrBuilder getIntervalOrBuilder() {
+    public com.google.cloud.bigquery.migration.v2alpha.TimeIntervalOrBuilder
+        getIntervalOrBuilder() {
       if (intervalBuilder_ != null) {
         return intervalBuilder_.getMessageOrBuilder();
       } else {
-        return interval_ == null ?
-            com.google.cloud.bigquery.migration.v2alpha.TimeInterval.getDefaultInstance() : interval_;
+        return interval_ == null
+            ? com.google.cloud.bigquery.migration.v2alpha.TimeInterval.getDefaultInstance()
+            : interval_;
       }
     }
     /**
+     *
+     *
      * 
      * The time interval to which the data point applies.  For `GAUGE` metrics,
      * the start time does not need to be supplied, but if it is supplied, it must
@@ -737,14 +811,17 @@ public com.google.cloud.bigquery.migration.v2alpha.TimeIntervalOrBuilder getInte
      * .google.cloud.bigquery.migration.v2alpha.TimeInterval interval = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.migration.v2alpha.TimeInterval, com.google.cloud.bigquery.migration.v2alpha.TimeInterval.Builder, com.google.cloud.bigquery.migration.v2alpha.TimeIntervalOrBuilder> 
+            com.google.cloud.bigquery.migration.v2alpha.TimeInterval,
+            com.google.cloud.bigquery.migration.v2alpha.TimeInterval.Builder,
+            com.google.cloud.bigquery.migration.v2alpha.TimeIntervalOrBuilder>
         getIntervalFieldBuilder() {
       if (intervalBuilder_ == null) {
-        intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.migration.v2alpha.TimeInterval, com.google.cloud.bigquery.migration.v2alpha.TimeInterval.Builder, com.google.cloud.bigquery.migration.v2alpha.TimeIntervalOrBuilder>(
-                getInterval(),
-                getParentForChildren(),
-                isClean());
+        intervalBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.bigquery.migration.v2alpha.TimeInterval,
+                com.google.cloud.bigquery.migration.v2alpha.TimeInterval.Builder,
+                com.google.cloud.bigquery.migration.v2alpha.TimeIntervalOrBuilder>(
+                getInterval(), getParentForChildren(), isClean());
         interval_ = null;
       }
       return intervalBuilder_;
@@ -752,34 +829,47 @@ public com.google.cloud.bigquery.migration.v2alpha.TimeIntervalOrBuilder getInte
 
     private com.google.cloud.bigquery.migration.v2alpha.TypedValue value_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.migration.v2alpha.TypedValue, com.google.cloud.bigquery.migration.v2alpha.TypedValue.Builder, com.google.cloud.bigquery.migration.v2alpha.TypedValueOrBuilder> valueBuilder_;
+            com.google.cloud.bigquery.migration.v2alpha.TypedValue,
+            com.google.cloud.bigquery.migration.v2alpha.TypedValue.Builder,
+            com.google.cloud.bigquery.migration.v2alpha.TypedValueOrBuilder>
+        valueBuilder_;
     /**
+     *
+     *
      * 
      * The value of the data point.
      * 
* * .google.cloud.bigquery.migration.v2alpha.TypedValue value = 2; + * * @return Whether the value field is set. */ public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The value of the data point.
      * 
* * .google.cloud.bigquery.migration.v2alpha.TypedValue value = 2; + * * @return The value. */ public com.google.cloud.bigquery.migration.v2alpha.TypedValue getValue() { if (valueBuilder_ == null) { - return value_ == null ? com.google.cloud.bigquery.migration.v2alpha.TypedValue.getDefaultInstance() : value_; + return value_ == null + ? com.google.cloud.bigquery.migration.v2alpha.TypedValue.getDefaultInstance() + : value_; } else { return valueBuilder_.getMessage(); } } /** + * + * *
      * The value of the data point.
      * 
@@ -800,6 +890,8 @@ public Builder setValue(com.google.cloud.bigquery.migration.v2alpha.TypedValue v return this; } /** + * + * *
      * The value of the data point.
      * 
@@ -818,6 +910,8 @@ public Builder setValue( return this; } /** + * + * *
      * The value of the data point.
      * 
@@ -826,9 +920,10 @@ public Builder setValue( */ public Builder mergeValue(com.google.cloud.bigquery.migration.v2alpha.TypedValue value) { if (valueBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - value_ != null && - value_ != com.google.cloud.bigquery.migration.v2alpha.TypedValue.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && value_ != null + && value_ + != com.google.cloud.bigquery.migration.v2alpha.TypedValue.getDefaultInstance()) { getValueBuilder().mergeFrom(value); } else { value_ = value; @@ -841,6 +936,8 @@ public Builder mergeValue(com.google.cloud.bigquery.migration.v2alpha.TypedValue return this; } /** + * + * *
      * The value of the data point.
      * 
@@ -858,6 +955,8 @@ public Builder clearValue() { return this; } /** + * + * *
      * The value of the data point.
      * 
@@ -870,6 +969,8 @@ public com.google.cloud.bigquery.migration.v2alpha.TypedValue.Builder getValueBu return getValueFieldBuilder().getBuilder(); } /** + * + * *
      * The value of the data point.
      * 
@@ -880,11 +981,14 @@ public com.google.cloud.bigquery.migration.v2alpha.TypedValueOrBuilder getValueO if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { - return value_ == null ? - com.google.cloud.bigquery.migration.v2alpha.TypedValue.getDefaultInstance() : value_; + return value_ == null + ? com.google.cloud.bigquery.migration.v2alpha.TypedValue.getDefaultInstance() + : value_; } } /** + * + * *
      * The value of the data point.
      * 
@@ -892,21 +996,24 @@ public com.google.cloud.bigquery.migration.v2alpha.TypedValueOrBuilder getValueO * .google.cloud.bigquery.migration.v2alpha.TypedValue value = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.TypedValue, com.google.cloud.bigquery.migration.v2alpha.TypedValue.Builder, com.google.cloud.bigquery.migration.v2alpha.TypedValueOrBuilder> + com.google.cloud.bigquery.migration.v2alpha.TypedValue, + com.google.cloud.bigquery.migration.v2alpha.TypedValue.Builder, + com.google.cloud.bigquery.migration.v2alpha.TypedValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { - valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.TypedValue, com.google.cloud.bigquery.migration.v2alpha.TypedValue.Builder, com.google.cloud.bigquery.migration.v2alpha.TypedValueOrBuilder>( - getValue(), - getParentForChildren(), - isClean()); + valueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2alpha.TypedValue, + com.google.cloud.bigquery.migration.v2alpha.TypedValue.Builder, + com.google.cloud.bigquery.migration.v2alpha.TypedValueOrBuilder>( + getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } + @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); } @@ -916,12 +1023,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.Point) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.Point) private static final com.google.cloud.bigquery.migration.v2alpha.Point DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.Point(); } @@ -930,27 +1037,27 @@ public static com.google.cloud.bigquery.migration.v2alpha.Point getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Point parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Point parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -965,6 +1072,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2alpha.Point getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/PointOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/PointOrBuilder.java similarity index 83% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/PointOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/PointOrBuilder.java index c459191..a7c5095 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/PointOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/PointOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_metrics.proto package com.google.cloud.bigquery.migration.v2alpha; -public interface PointOrBuilder extends +public interface PointOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.Point) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The time interval to which the data point applies.  For `GAUGE` metrics,
    * the start time does not need to be supplied, but if it is supplied, it must
@@ -21,10 +39,13 @@ public interface PointOrBuilder extends
    * 
* * .google.cloud.bigquery.migration.v2alpha.TimeInterval interval = 1; + * * @return Whether the interval field is set. */ boolean hasInterval(); /** + * + * *
    * The time interval to which the data point applies.  For `GAUGE` metrics,
    * the start time does not need to be supplied, but if it is supplied, it must
@@ -38,10 +59,13 @@ public interface PointOrBuilder extends
    * 
* * .google.cloud.bigquery.migration.v2alpha.TimeInterval interval = 1; + * * @return The interval. */ com.google.cloud.bigquery.migration.v2alpha.TimeInterval getInterval(); /** + * + * *
    * The time interval to which the data point applies.  For `GAUGE` metrics,
    * the start time does not need to be supplied, but if it is supplied, it must
@@ -59,24 +83,32 @@ public interface PointOrBuilder extends
   com.google.cloud.bigquery.migration.v2alpha.TimeIntervalOrBuilder getIntervalOrBuilder();
 
   /**
+   *
+   *
    * 
    * The value of the data point.
    * 
* * .google.cloud.bigquery.migration.v2alpha.TypedValue value = 2; + * * @return Whether the value field is set. */ boolean hasValue(); /** + * + * *
    * The value of the data point.
    * 
* * .google.cloud.bigquery.migration.v2alpha.TypedValue value = 2; + * * @return The value. */ com.google.cloud.bigquery.migration.v2alpha.TypedValue getValue(); /** + * + * *
    * The value of the data point.
    * 
diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ResourceErrorDetail.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ResourceErrorDetail.java similarity index 63% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ResourceErrorDetail.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ResourceErrorDetail.java index 080c2be..0a342aa 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ResourceErrorDetail.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ResourceErrorDetail.java @@ -1,61 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_error_details.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * Provides details for errors and the corresponding resources.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail} */ -public final class ResourceErrorDetail extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ResourceErrorDetail extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail) ResourceErrorDetailOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResourceErrorDetail.newBuilder() to construct. private ResourceErrorDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ResourceErrorDetail() { errorDetails_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResourceErrorDetail(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2alpha_ResourceErrorDetail_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ResourceErrorDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2alpha_ResourceErrorDetail_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ResourceErrorDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.class, com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.class, + com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.Builder.class); } public static final int RESOURCE_INFO_FIELD_NUMBER = 1; private com.google.rpc.ResourceInfo resourceInfo_; /** + * + * *
    * Required. Information about the resource where the error is located.
    * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resourceInfo field is set. */ @java.lang.Override @@ -63,11 +86,15 @@ public boolean hasResourceInfo() { return resourceInfo_ != null; } /** + * + * *
    * Required. Information about the resource where the error is located.
    * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resourceInfo. */ @java.lang.Override @@ -75,11 +102,14 @@ public com.google.rpc.ResourceInfo getResourceInfo() { return resourceInfo_ == null ? com.google.rpc.ResourceInfo.getDefaultInstance() : resourceInfo_; } /** + * + * *
    * Required. Information about the resource where the error is located.
    * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.rpc.ResourceInfoOrBuilder getResourceInfoOrBuilder() { @@ -87,59 +117,81 @@ public com.google.rpc.ResourceInfoOrBuilder getResourceInfoOrBuilder() { } public static final int ERROR_DETAILS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List errorDetails_; /** + * + * *
    * Required. The error details for the resource.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List getErrorDetailsList() { + public java.util.List + getErrorDetailsList() { return errorDetails_; } /** + * + * *
    * Required. The error details for the resource.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getErrorDetailsOrBuilderList() { return errorDetails_; } /** + * + * *
    * Required. The error details for the resource.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getErrorDetailsCount() { return errorDetails_.size(); } /** + * + * *
    * Required. The error details for the resource.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.ErrorDetail getErrorDetails(int index) { return errorDetails_.get(index); } /** + * + * *
    * Required. The error details for the resource.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.ErrorDetailOrBuilder getErrorDetailsOrBuilder( @@ -150,6 +202,8 @@ public com.google.cloud.bigquery.migration.v2alpha.ErrorDetailOrBuilder getError public static final int ERROR_COUNT_FIELD_NUMBER = 3; private int errorCount_ = 0; /** + * + * *
    * Required. How many errors there are in total for the resource. Truncation can be
    * indicated by having an `error_count` that is higher than the size of
@@ -157,6 +211,7 @@ public com.google.cloud.bigquery.migration.v2alpha.ErrorDetailOrBuilder getError
    * 
* * int32 error_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The errorCount. */ @java.lang.Override @@ -165,6 +220,7 @@ public int getErrorCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,8 +232,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 (resourceInfo_ != null) { output.writeMessage(1, getResourceInfo()); } @@ -197,16 +252,13 @@ public int getSerializedSize() { size = 0; if (resourceInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getResourceInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getResourceInfo()); } for (int i = 0; i < errorDetails_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, errorDetails_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, errorDetails_.get(i)); } if (errorCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, errorCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, errorCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -216,22 +268,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail other = (com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail) obj; + com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail other = + (com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail) obj; if (hasResourceInfo() != other.hasResourceInfo()) return false; if (hasResourceInfo()) { - if (!getResourceInfo() - .equals(other.getResourceInfo())) return false; + if (!getResourceInfo().equals(other.getResourceInfo())) return false; } - if (!getErrorDetailsList() - .equals(other.getErrorDetailsList())) return false; - if (getErrorCount() - != other.getErrorCount()) return false; + if (!getErrorDetailsList().equals(other.getErrorDetailsList())) return false; + if (getErrorCount() != other.getErrorCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -259,129 +309,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Provides details for errors and the corresponding resources.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail) com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2alpha_ResourceErrorDetail_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ResourceErrorDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2alpha_ResourceErrorDetail_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ResourceErrorDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.class, com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.class, + com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -403,13 +460,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto.internal_static_google_cloud_bigquery_migration_v2alpha_ResourceErrorDetail_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationErrorDetailsProto + .internal_static_google_cloud_bigquery_migration_v2alpha_ResourceErrorDetail_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail + getDefaultInstanceForType() { return com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.getDefaultInstance(); } @@ -424,14 +482,18 @@ public com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail buildPartial() { - com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail result = new com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail(this); + com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail result = + new com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail result) { + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail result) { if (errorDetailsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { errorDetails_ = java.util.Collections.unmodifiableList(errorDetails_); @@ -443,12 +505,12 @@ private void buildPartialRepeatedFields(com.google.cloud.bigquery.migration.v2al } } - private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail result) { + private void buildPartial0( + com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.resourceInfo_ = resourceInfoBuilder_ == null - ? resourceInfo_ - : resourceInfoBuilder_.build(); + result.resourceInfo_ = + resourceInfoBuilder_ == null ? resourceInfo_ : resourceInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.errorCount_ = errorCount_; @@ -459,46 +521,50 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.ResourceE public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail) { - return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail other) { - if (other == com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail other) { + if (other + == com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail.getDefaultInstance()) + return this; if (other.hasResourceInfo()) { mergeResourceInfo(other.getResourceInfo()); } @@ -520,9 +586,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.ResourceErr errorDetailsBuilder_ = null; errorDetails_ = other.errorDetails_; bitField0_ = (bitField0_ & ~0x00000002); - errorDetailsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getErrorDetailsFieldBuilder() : null; + errorDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorDetailsFieldBuilder() + : null; } else { errorDetailsBuilder_.addAllMessages(other.errorDetails_); } @@ -557,37 +624,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getResourceInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.cloud.bigquery.migration.v2alpha.ErrorDetail m = - input.readMessage( - com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.parser(), - extensionRegistry); - if (errorDetailsBuilder_ == null) { - ensureErrorDetailsIsMutable(); - errorDetails_.add(m); - } else { - errorDetailsBuilder_.addMessage(m); - } - break; - } // case 18 - case 24: { - errorCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getResourceInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.bigquery.migration.v2alpha.ErrorDetail m = + input.readMessage( + com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.parser(), + extensionRegistry); + if (errorDetailsBuilder_ == null) { + ensureErrorDetailsIsMutable(); + errorDetails_.add(m); + } else { + errorDetailsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: + { + errorCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -597,43 +666,60 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.rpc.ResourceInfo resourceInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.ResourceInfo, com.google.rpc.ResourceInfo.Builder, com.google.rpc.ResourceInfoOrBuilder> resourceInfoBuilder_; + com.google.rpc.ResourceInfo, + com.google.rpc.ResourceInfo.Builder, + com.google.rpc.ResourceInfoOrBuilder> + resourceInfoBuilder_; /** + * + * *
      * Required. Information about the resource where the error is located.
      * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resourceInfo field is set. */ public boolean hasResourceInfo() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. Information about the resource where the error is located.
      * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resourceInfo. */ public com.google.rpc.ResourceInfo getResourceInfo() { if (resourceInfoBuilder_ == null) { - return resourceInfo_ == null ? com.google.rpc.ResourceInfo.getDefaultInstance() : resourceInfo_; + return resourceInfo_ == null + ? com.google.rpc.ResourceInfo.getDefaultInstance() + : resourceInfo_; } else { return resourceInfoBuilder_.getMessage(); } } /** + * + * *
      * Required. Information about the resource where the error is located.
      * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setResourceInfo(com.google.rpc.ResourceInfo value) { if (resourceInfoBuilder_ == null) { @@ -649,14 +735,16 @@ public Builder setResourceInfo(com.google.rpc.ResourceInfo value) { return this; } /** + * + * *
      * Required. Information about the resource where the error is located.
      * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setResourceInfo( - com.google.rpc.ResourceInfo.Builder builderForValue) { + public Builder setResourceInfo(com.google.rpc.ResourceInfo.Builder builderForValue) { if (resourceInfoBuilder_ == null) { resourceInfo_ = builderForValue.build(); } else { @@ -667,17 +755,20 @@ public Builder setResourceInfo( return this; } /** + * + * *
      * Required. Information about the resource where the error is located.
      * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeResourceInfo(com.google.rpc.ResourceInfo value) { if (resourceInfoBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - resourceInfo_ != null && - resourceInfo_ != com.google.rpc.ResourceInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && resourceInfo_ != null + && resourceInfo_ != com.google.rpc.ResourceInfo.getDefaultInstance()) { getResourceInfoBuilder().mergeFrom(value); } else { resourceInfo_ = value; @@ -690,11 +781,14 @@ public Builder mergeResourceInfo(com.google.rpc.ResourceInfo value) { return this; } /** + * + * *
      * Required. Information about the resource where the error is located.
      * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearResourceInfo() { bitField0_ = (bitField0_ & ~0x00000001); @@ -707,11 +801,14 @@ public Builder clearResourceInfo() { return this; } /** + * + * *
      * Required. Information about the resource where the error is located.
      * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.rpc.ResourceInfo.Builder getResourceInfoBuilder() { bitField0_ |= 0x00000001; @@ -719,61 +816,82 @@ public com.google.rpc.ResourceInfo.Builder getResourceInfoBuilder() { return getResourceInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Information about the resource where the error is located.
      * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.rpc.ResourceInfoOrBuilder getResourceInfoOrBuilder() { if (resourceInfoBuilder_ != null) { return resourceInfoBuilder_.getMessageOrBuilder(); } else { - return resourceInfo_ == null ? - com.google.rpc.ResourceInfo.getDefaultInstance() : resourceInfo_; + return resourceInfo_ == null + ? com.google.rpc.ResourceInfo.getDefaultInstance() + : resourceInfo_; } } /** + * + * *
      * Required. Information about the resource where the error is located.
      * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.ResourceInfo, com.google.rpc.ResourceInfo.Builder, com.google.rpc.ResourceInfoOrBuilder> + com.google.rpc.ResourceInfo, + com.google.rpc.ResourceInfo.Builder, + com.google.rpc.ResourceInfoOrBuilder> getResourceInfoFieldBuilder() { if (resourceInfoBuilder_ == null) { - resourceInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.ResourceInfo, com.google.rpc.ResourceInfo.Builder, com.google.rpc.ResourceInfoOrBuilder>( - getResourceInfo(), - getParentForChildren(), - isClean()); + resourceInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.ResourceInfo, + com.google.rpc.ResourceInfo.Builder, + com.google.rpc.ResourceInfoOrBuilder>( + getResourceInfo(), getParentForChildren(), isClean()); resourceInfo_ = null; } return resourceInfoBuilder_; } private java.util.List errorDetails_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureErrorDetailsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - errorDetails_ = new java.util.ArrayList(errorDetails_); + errorDetails_ = + new java.util.ArrayList( + errorDetails_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.ErrorDetail, com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.Builder, com.google.cloud.bigquery.migration.v2alpha.ErrorDetailOrBuilder> errorDetailsBuilder_; + com.google.cloud.bigquery.migration.v2alpha.ErrorDetail, + com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.Builder, + com.google.cloud.bigquery.migration.v2alpha.ErrorDetailOrBuilder> + errorDetailsBuilder_; /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List getErrorDetailsList() { + public java.util.List + getErrorDetailsList() { if (errorDetailsBuilder_ == null) { return java.util.Collections.unmodifiableList(errorDetails_); } else { @@ -781,11 +899,15 @@ public java.util.List g } } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getErrorDetailsCount() { if (errorDetailsBuilder_ == null) { @@ -795,11 +917,15 @@ public int getErrorDetailsCount() { } } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.migration.v2alpha.ErrorDetail getErrorDetails(int index) { if (errorDetailsBuilder_ == null) { @@ -809,11 +935,15 @@ public com.google.cloud.bigquery.migration.v2alpha.ErrorDetail getErrorDetails(i } } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setErrorDetails( int index, com.google.cloud.bigquery.migration.v2alpha.ErrorDetail value) { @@ -830,14 +960,19 @@ public Builder setErrorDetails( return this; } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setErrorDetails( - int index, com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.Builder builderForValue) { + int index, + com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.Builder builderForValue) { if (errorDetailsBuilder_ == null) { ensureErrorDetailsIsMutable(); errorDetails_.set(index, builderForValue.build()); @@ -848,11 +983,15 @@ public Builder setErrorDetails( return this; } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addErrorDetails(com.google.cloud.bigquery.migration.v2alpha.ErrorDetail value) { if (errorDetailsBuilder_ == null) { @@ -868,11 +1007,15 @@ public Builder addErrorDetails(com.google.cloud.bigquery.migration.v2alpha.Error return this; } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addErrorDetails( int index, com.google.cloud.bigquery.migration.v2alpha.ErrorDetail value) { @@ -889,11 +1032,15 @@ public Builder addErrorDetails( return this; } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addErrorDetails( com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.Builder builderForValue) { @@ -907,14 +1054,19 @@ public Builder addErrorDetails( return this; } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addErrorDetails( - int index, com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.Builder builderForValue) { + int index, + com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.Builder builderForValue) { if (errorDetailsBuilder_ == null) { ensureErrorDetailsIsMutable(); errorDetails_.add(index, builderForValue.build()); @@ -925,18 +1077,22 @@ public Builder addErrorDetails( return this; } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllErrorDetails( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (errorDetailsBuilder_ == null) { ensureErrorDetailsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, errorDetails_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorDetails_); onChanged(); } else { errorDetailsBuilder_.addAllMessages(values); @@ -944,11 +1100,15 @@ public Builder addAllErrorDetails( return this; } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearErrorDetails() { if (errorDetailsBuilder_ == null) { @@ -961,11 +1121,15 @@ public Builder clearErrorDetails() { return this; } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeErrorDetails(int index) { if (errorDetailsBuilder_ == null) { @@ -978,39 +1142,53 @@ public Builder removeErrorDetails(int index) { return this; } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.Builder getErrorDetailsBuilder( int index) { return getErrorDetailsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.migration.v2alpha.ErrorDetailOrBuilder getErrorDetailsOrBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2alpha.ErrorDetailOrBuilder + getErrorDetailsOrBuilder(int index) { if (errorDetailsBuilder_ == null) { - return errorDetails_.get(index); } else { + return errorDetails_.get(index); + } else { return errorDetailsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getErrorDetailsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.bigquery.migration.v2alpha.ErrorDetailOrBuilder> + getErrorDetailsOrBuilderList() { if (errorDetailsBuilder_ != null) { return errorDetailsBuilder_.getMessageOrBuilderList(); } else { @@ -1018,56 +1196,75 @@ public com.google.cloud.bigquery.migration.v2alpha.ErrorDetailOrBuilder getError } } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.Builder addErrorDetailsBuilder() { - return getErrorDetailsFieldBuilder().addBuilder( - com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.getDefaultInstance()); + public com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.Builder + addErrorDetailsBuilder() { + return getErrorDetailsFieldBuilder() + .addBuilder(com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.getDefaultInstance()); } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.Builder addErrorDetailsBuilder( int index) { - return getErrorDetailsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.getDefaultInstance()); + return getErrorDetailsFieldBuilder() + .addBuilder( + index, com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.getDefaultInstance()); } /** + * + * *
      * Required. The error details for the resource.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getErrorDetailsBuilderList() { + public java.util.List + getErrorDetailsBuilderList() { return getErrorDetailsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.ErrorDetail, com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.Builder, com.google.cloud.bigquery.migration.v2alpha.ErrorDetailOrBuilder> + com.google.cloud.bigquery.migration.v2alpha.ErrorDetail, + com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.Builder, + com.google.cloud.bigquery.migration.v2alpha.ErrorDetailOrBuilder> getErrorDetailsFieldBuilder() { if (errorDetailsBuilder_ == null) { - errorDetailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.ErrorDetail, com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.Builder, com.google.cloud.bigquery.migration.v2alpha.ErrorDetailOrBuilder>( - errorDetails_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + errorDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2alpha.ErrorDetail, + com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.Builder, + com.google.cloud.bigquery.migration.v2alpha.ErrorDetailOrBuilder>( + errorDetails_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); errorDetails_ = null; } return errorDetailsBuilder_; } - private int errorCount_ ; + private int errorCount_; /** + * + * *
      * Required. How many errors there are in total for the resource. Truncation can be
      * indicated by having an `error_count` that is higher than the size of
@@ -1075,6 +1272,7 @@ public com.google.cloud.bigquery.migration.v2alpha.ErrorDetail.Builder addErrorD
      * 
* * int32 error_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The errorCount. */ @java.lang.Override @@ -1082,6 +1280,8 @@ public int getErrorCount() { return errorCount_; } /** + * + * *
      * Required. How many errors there are in total for the resource. Truncation can be
      * indicated by having an `error_count` that is higher than the size of
@@ -1089,17 +1289,20 @@ public int getErrorCount() {
      * 
* * int32 error_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The errorCount to set. * @return This builder for chaining. */ public Builder setErrorCount(int value) { - + errorCount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. How many errors there are in total for the resource. Truncation can be
      * indicated by having an `error_count` that is higher than the size of
@@ -1107,6 +1310,7 @@ public Builder setErrorCount(int value) {
      * 
* * int32 error_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearErrorCount() { @@ -1115,9 +1319,9 @@ public Builder clearErrorCount() { 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); } @@ -1127,41 +1331,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail) - private static final com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail(); } - public static com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceErrorDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceErrorDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1173,9 +1379,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ResourceErrorDetailOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ResourceErrorDetailOrBuilder.java similarity index 57% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ResourceErrorDetailOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ResourceErrorDetailOrBuilder.java index 72fc641..e78e55a 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ResourceErrorDetailOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ResourceErrorDetailOrBuilder.java @@ -1,84 +1,132 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_error_details.proto package com.google.cloud.bigquery.migration.v2alpha; -public interface ResourceErrorDetailOrBuilder extends +public interface ResourceErrorDetailOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Information about the resource where the error is located.
    * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resourceInfo field is set. */ boolean hasResourceInfo(); /** + * + * *
    * Required. Information about the resource where the error is located.
    * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resourceInfo. */ com.google.rpc.ResourceInfo getResourceInfo(); /** + * + * *
    * Required. Information about the resource where the error is located.
    * 
* - * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.rpc.ResourceInfoOrBuilder getResourceInfoOrBuilder(); /** + * + * *
    * Required. The error details for the resource.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getErrorDetailsList(); + java.util.List getErrorDetailsList(); /** + * + * *
    * Required. The error details for the resource.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.bigquery.migration.v2alpha.ErrorDetail getErrorDetails(int index); /** + * + * *
    * Required. The error details for the resource.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ int getErrorDetailsCount(); /** + * + * *
    * Required. The error details for the resource.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List getErrorDetailsOrBuilderList(); /** + * + * *
    * Required. The error details for the resource.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.bigquery.migration.v2alpha.ErrorDetailOrBuilder getErrorDetailsOrBuilder( int index); /** + * + * *
    * Required. How many errors there are in total for the resource. Truncation can be
    * indicated by having an `error_count` that is higher than the size of
@@ -86,6 +134,7 @@ com.google.cloud.bigquery.migration.v2alpha.ErrorDetailOrBuilder getErrorDetails
    * 
* * int32 error_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The errorCount. */ int getErrorCount(); diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationError.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationError.java similarity index 61% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationError.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationError.java index d3808cc..bd7664b 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationError.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationError.java @@ -1,63 +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/bigquery/migration/v2alpha/translation_service.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * The detailed error object if the SQL translation job fails.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.SqlTranslationError} */ -public final class SqlTranslationError extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SqlTranslationError extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.SqlTranslationError) SqlTranslationErrorOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SqlTranslationError.newBuilder() to construct. private SqlTranslationError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SqlTranslationError() { errorType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SqlTranslationError(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationError_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationError_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.class, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.class, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.Builder.class); } /** + * + * *
    * The error type of the SQL translation job.
    * 
* - * Protobuf enum {@code google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType} + * Protobuf enum {@code + * google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType} */ - public enum SqlTranslationErrorType - implements com.google.protobuf.ProtocolMessageEnum { + public enum SqlTranslationErrorType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * SqlTranslationErrorType not specified.
      * 
@@ -66,6 +89,8 @@ public enum SqlTranslationErrorType */ SQL_TRANSLATION_ERROR_TYPE_UNSPECIFIED(0), /** + * + * *
      * Failed to parse the input text as a SQL query.
      * 
@@ -74,6 +99,8 @@ public enum SqlTranslationErrorType */ SQL_PARSE_ERROR(1), /** + * + * *
      * Found unsupported functions in the input SQL query that are not able to
      * translate.
@@ -86,6 +113,8 @@ public enum SqlTranslationErrorType
     ;
 
     /**
+     *
+     *
      * 
      * SqlTranslationErrorType not specified.
      * 
@@ -94,6 +123,8 @@ public enum SqlTranslationErrorType */ public static final int SQL_TRANSLATION_ERROR_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Failed to parse the input text as a SQL query.
      * 
@@ -102,6 +133,8 @@ public enum SqlTranslationErrorType */ public static final int SQL_PARSE_ERROR_VALUE = 1; /** + * + * *
      * Found unsupported functions in the input SQL query that are not able to
      * translate.
@@ -111,7 +144,6 @@ public enum SqlTranslationErrorType
      */
     public static final int UNSUPPORTED_SQL_FUNCTION_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -136,10 +168,14 @@ public static SqlTranslationErrorType valueOf(int value) {
      */
     public static SqlTranslationErrorType forNumber(int value) {
       switch (value) {
-        case 0: return SQL_TRANSLATION_ERROR_TYPE_UNSPECIFIED;
-        case 1: return SQL_PARSE_ERROR;
-        case 2: return UNSUPPORTED_SQL_FUNCTION;
-        default: return null;
+        case 0:
+          return SQL_TRANSLATION_ERROR_TYPE_UNSPECIFIED;
+        case 1:
+          return SQL_PARSE_ERROR;
+        case 2:
+          return UNSUPPORTED_SQL_FUNCTION;
+        default:
+          return null;
       }
     }
 
@@ -147,29 +183,31 @@ public static SqlTranslationErrorType forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        SqlTranslationErrorType> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public SqlTranslationErrorType findValueByNumber(int number) {
-              return SqlTranslationErrorType.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 SqlTranslationErrorType findValueByNumber(int number) {
+                return SqlTranslationErrorType.forNumber(number);
+              }
+            };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final SqlTranslationErrorType[] VALUES = values();
@@ -177,8 +215,7 @@ public SqlTranslationErrorType findValueByNumber(int number) {
     public static SqlTranslationErrorType 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;
@@ -198,38 +235,60 @@ private SqlTranslationErrorType(int value) {
   public static final int ERROR_TYPE_FIELD_NUMBER = 1;
   private int errorType_ = 0;
   /**
+   *
+   *
    * 
    * The type of SQL translation error.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1; + * + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1; + * + * * @return The enum numeric value on the wire for errorType. */ - @java.lang.Override public int getErrorTypeValue() { + @java.lang.Override + public int getErrorTypeValue() { return errorType_; } /** + * + * *
    * The type of SQL translation error.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1; + * + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1; + * + * * @return The errorType. */ - @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType getErrorType() { - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType result = com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType.forNumber(errorType_); - return result == null ? com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType + getErrorType() { + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType result = + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType + .forNumber(errorType_); + return result == null + ? com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType + .UNRECOGNIZED + : result; } public static final int ERROR_DETAIL_FIELD_NUMBER = 2; private com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail errorDetail_; /** + * + * *
    * Specifies the details of the error, including the error message and
    * location from the source text.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * + * * @return Whether the errorDetail field is set. */ @java.lang.Override @@ -237,32 +296,45 @@ public boolean hasErrorDetail() { return errorDetail_ != null; } /** + * + * *
    * Specifies the details of the error, including the error message and
    * location from the source text.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * + * * @return The errorDetail. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail getErrorDetail() { - return errorDetail_ == null ? com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.getDefaultInstance() : errorDetail_; + return errorDetail_ == null + ? com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.getDefaultInstance() + : errorDetail_; } /** + * + * *
    * Specifies the details of the error, including the error message and
    * location from the source text.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetailOrBuilder getErrorDetailOrBuilder() { - return errorDetail_ == null ? com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.getDefaultInstance() : errorDetail_; + public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetailOrBuilder + getErrorDetailOrBuilder() { + return errorDetail_ == null + ? com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.getDefaultInstance() + : errorDetail_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,9 +346,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (errorType_ != com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType.SQL_TRANSLATION_ERROR_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (errorType_ + != com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType + .SQL_TRANSLATION_ERROR_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, errorType_); } if (errorDetail_ != null) { @@ -291,13 +365,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (errorType_ != com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType.SQL_TRANSLATION_ERROR_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, errorType_); + if (errorType_ + != com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType + .SQL_TRANSLATION_ERROR_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, errorType_); } if (errorDetail_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getErrorDetail()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getErrorDetail()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -307,18 +382,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError other = (com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError) obj; + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError other = + (com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError) obj; if (errorType_ != other.errorType_) return false; if (hasErrorDetail() != other.hasErrorDetail()) return false; if (hasErrorDetail()) { - if (!getErrorDetail() - .equals(other.getErrorDetail())) return false; + if (!getErrorDetail().equals(other.getErrorDetail())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -343,129 +418,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 detailed error object if the SQL translation job fails.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.SqlTranslationError} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.SqlTranslationError) com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationError_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.class, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.class, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -480,13 +562,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationError_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationError_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError + getDefaultInstanceForType() { return com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.getDefaultInstance(); } @@ -501,21 +584,24 @@ public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError buildPartial() { - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError result = new com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError result = + new com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError result) { + private void buildPartial0( + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.errorType_ = errorType_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.errorDetail_ = errorDetailBuilder_ == null - ? errorDetail_ - : errorDetailBuilder_.build(); + result.errorDetail_ = + errorDetailBuilder_ == null ? errorDetail_ : errorDetailBuilder_.build(); } } @@ -523,46 +609,50 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.SqlTransl public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError) { - return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError other) { - if (other == com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError other) { + if (other + == com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.getDefaultInstance()) + return this; if (other.errorType_ != 0) { setErrorTypeValue(other.getErrorTypeValue()); } @@ -595,24 +685,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - errorType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getErrorDetailFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + errorType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getErrorDetailFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -622,26 +713,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int errorType_ = 0; /** + * + * *
      * The type of SQL translation error.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1; + * + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1; + * + * * @return The enum numeric value on the wire for errorType. */ - @java.lang.Override public int getErrorTypeValue() { + @java.lang.Override + public int getErrorTypeValue() { return errorType_; } /** + * + * *
      * The type of SQL translation error.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1; + * + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1; + * + * * @param value The enum numeric value on the wire for errorType to set. * @return This builder for chaining. */ @@ -652,28 +755,47 @@ public Builder setErrorTypeValue(int value) { return this; } /** + * + * *
      * The type of SQL translation error.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1; + * + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1; + * + * * @return The errorType. */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType getErrorType() { - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType result = com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType.forNumber(errorType_); - return result == null ? com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType.UNRECOGNIZED : result; + public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType + getErrorType() { + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType + result = + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError + .SqlTranslationErrorType.forNumber(errorType_); + return result == null + ? com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType + .UNRECOGNIZED + : result; } /** + * + * *
      * The type of SQL translation error.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1; + * + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1; + * + * * @param value The errorType to set. * @return This builder for chaining. */ - public Builder setErrorType(com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType value) { + public Builder setErrorType( + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType + value) { if (value == null) { throw new NullPointerException(); } @@ -683,11 +805,16 @@ public Builder setErrorType(com.google.cloud.bigquery.migration.v2alpha.SqlTrans return this; } /** + * + * *
      * The type of SQL translation error.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1; + * + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1; + * + * * @return This builder for chaining. */ public Builder clearErrorType() { @@ -699,44 +826,62 @@ public Builder clearErrorType() { private com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail errorDetail_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.Builder, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetailOrBuilder> errorDetailBuilder_; + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.Builder, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetailOrBuilder> + errorDetailBuilder_; /** + * + * *
      * Specifies the details of the error, including the error message and
      * location from the source text.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * + * * @return Whether the errorDetail field is set. */ public boolean hasErrorDetail() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Specifies the details of the error, including the error message and
      * location from the source text.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * + * * @return The errorDetail. */ public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail getErrorDetail() { if (errorDetailBuilder_ == null) { - return errorDetail_ == null ? com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.getDefaultInstance() : errorDetail_; + return errorDetail_ == null + ? com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail + .getDefaultInstance() + : errorDetail_; } else { return errorDetailBuilder_.getMessage(); } } /** + * + * *
      * Specifies the details of the error, including the error message and
      * location from the source text.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * */ - public Builder setErrorDetail(com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail value) { + public Builder setErrorDetail( + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail value) { if (errorDetailBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -750,15 +895,19 @@ public Builder setErrorDetail(com.google.cloud.bigquery.migration.v2alpha.SqlTra return this; } /** + * + * *
      * Specifies the details of the error, including the error message and
      * location from the source text.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * */ public Builder setErrorDetail( - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.Builder builderForValue) { + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.Builder + builderForValue) { if (errorDetailBuilder_ == null) { errorDetail_ = builderForValue.build(); } else { @@ -769,18 +918,24 @@ public Builder setErrorDetail( return this; } /** + * + * *
      * Specifies the details of the error, including the error message and
      * location from the source text.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * */ - public Builder mergeErrorDetail(com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail value) { + public Builder mergeErrorDetail( + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail value) { if (errorDetailBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - errorDetail_ != null && - errorDetail_ != com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && errorDetail_ != null + && errorDetail_ + != com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail + .getDefaultInstance()) { getErrorDetailBuilder().mergeFrom(value); } else { errorDetail_ = value; @@ -793,12 +948,15 @@ public Builder mergeErrorDetail(com.google.cloud.bigquery.migration.v2alpha.SqlT return this; } /** + * + * *
      * Specifies the details of the error, including the error message and
      * location from the source text.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * */ public Builder clearErrorDetail() { bitField0_ = (bitField0_ & ~0x00000002); @@ -811,58 +969,74 @@ public Builder clearErrorDetail() { return this; } /** + * + * *
      * Specifies the details of the error, including the error message and
      * location from the source text.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * */ - public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.Builder getErrorDetailBuilder() { + public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.Builder + getErrorDetailBuilder() { bitField0_ |= 0x00000002; onChanged(); return getErrorDetailFieldBuilder().getBuilder(); } /** + * + * *
      * Specifies the details of the error, including the error message and
      * location from the source text.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * */ - public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetailOrBuilder getErrorDetailOrBuilder() { + public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetailOrBuilder + getErrorDetailOrBuilder() { if (errorDetailBuilder_ != null) { return errorDetailBuilder_.getMessageOrBuilder(); } else { - return errorDetail_ == null ? - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.getDefaultInstance() : errorDetail_; + return errorDetail_ == null + ? com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail + .getDefaultInstance() + : errorDetail_; } } /** + * + * *
      * Specifies the details of the error, including the error message and
      * location from the source text.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.Builder, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetailOrBuilder> + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.Builder, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetailOrBuilder> getErrorDetailFieldBuilder() { if (errorDetailBuilder_ == null) { - errorDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.Builder, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetailOrBuilder>( - getErrorDetail(), - getParentForChildren(), - isClean()); + errorDetailBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.Builder, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetailOrBuilder>( + getErrorDetail(), getParentForChildren(), isClean()); errorDetail_ = null; } return errorDetailBuilder_; } + @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); } @@ -872,41 +1046,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.SqlTranslationError) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.SqlTranslationError) - private static final com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError(); } - public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SqlTranslationError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SqlTranslationError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -918,9 +1094,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationErrorDetail.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationErrorDetail.java similarity index 64% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationErrorDetail.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationErrorDetail.java index 9899123..c100014 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationErrorDetail.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationErrorDetail.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/translation_service.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * Structured error object capturing the error message and the location in the
  * source text where the error occurs.
@@ -11,52 +28,57 @@
  *
  * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail}
  */
-public final class SqlTranslationErrorDetail extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SqlTranslationErrorDetail extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail)
     SqlTranslationErrorDetailOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SqlTranslationErrorDetail.newBuilder() to construct.
   private SqlTranslationErrorDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SqlTranslationErrorDetail() {
     message_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SqlTranslationErrorDetail();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationErrorDetail_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto
+        .internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationErrorDetail_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationErrorDetail_fieldAccessorTable
+    return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto
+        .internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationErrorDetail_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.class, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.Builder.class);
+            com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.class,
+            com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.Builder.class);
   }
 
   public static final int ROW_FIELD_NUMBER = 1;
   private long row_ = 0L;
   /**
+   *
+   *
    * 
    * Specifies the row from the source text where the error occurred.
    * 
* * int64 row = 1; + * * @return The row. */ @java.lang.Override @@ -67,11 +89,14 @@ public long getRow() { public static final int COLUMN_FIELD_NUMBER = 2; private long column_ = 0L; /** + * + * *
    * Specifie the column from the source texts where the error occurred.
    * 
* * int64 column = 2; + * * @return The column. */ @java.lang.Override @@ -80,14 +105,18 @@ public long getColumn() { } public static final int MESSAGE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object message_ = ""; /** + * + * *
    * A human-readable description of the error.
    * 
* * string message = 3; + * * @return The message. */ @java.lang.Override @@ -96,29 +125,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** + * + * *
    * A human-readable description of the error.
    * 
* * string message = 3; + * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -127,6 +156,7 @@ public java.lang.String getMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,8 +168,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 (row_ != 0L) { output.writeInt64(1, row_); } @@ -159,12 +188,10 @@ public int getSerializedSize() { size = 0; if (row_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, row_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, row_); } if (column_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, column_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, column_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); @@ -177,19 +204,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail other = (com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail) obj; + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail other = + (com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail) obj; - if (getRow() - != other.getRow()) return false; - if (getColumn() - != other.getColumn()) return false; - if (!getMessage() - .equals(other.getMessage())) return false; + if (getRow() != other.getRow()) return false; + if (getColumn() != other.getColumn()) return false; + if (!getMessage().equals(other.getMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -202,11 +227,9 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ROW_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRow()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRow()); hash = (37 * hash) + COLUMN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getColumn()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getColumn()); hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -215,96 +238,105 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Structured error object capturing the error message and the location in the
    * source text where the error occurs.
@@ -312,33 +344,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail)
       com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetailOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationErrorDetail_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto
+          .internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationErrorDetail_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationErrorDetail_fieldAccessorTable
+      return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto
+          .internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationErrorDetail_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.class, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.Builder.class);
+              com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.class,
+              com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.Builder.class);
     }
 
-    // Construct using com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.newBuilder()
-    private Builder() {
+    // Construct using
+    // com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.newBuilder()
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -350,14 +382,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationErrorDetail_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto
+          .internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationErrorDetail_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail getDefaultInstanceForType() {
-      return com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.getDefaultInstance();
+    public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail
+        getDefaultInstanceForType() {
+      return com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -371,13 +405,17 @@ public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail bui
 
     @java.lang.Override
     public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail buildPartial() {
-      com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail result = new com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail result =
+          new com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail result) {
+    private void buildPartial0(
+        com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.row_ = row_;
@@ -394,46 +432,51 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.SqlTransl
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail) {
-        return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail)other);
+        return mergeFrom(
+            (com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail other) {
-      if (other == com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail other) {
+      if (other
+          == com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail
+              .getDefaultInstance()) return this;
       if (other.getRow() != 0L) {
         setRow(other.getRow());
       }
@@ -471,27 +514,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              row_ = input.readInt64();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 16: {
-              column_ = input.readInt64();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              message_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                row_ = input.readInt64();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 16:
+              {
+                column_ = input.readInt64();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                message_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -501,15 +548,19 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private long row_ ;
+    private long row_;
     /**
+     *
+     *
      * 
      * Specifies the row from the source text where the error occurred.
      * 
* * int64 row = 1; + * * @return The row. */ @java.lang.Override @@ -517,27 +568,33 @@ public long getRow() { return row_; } /** + * + * *
      * Specifies the row from the source text where the error occurred.
      * 
* * int64 row = 1; + * * @param value The row to set. * @return This builder for chaining. */ public Builder setRow(long value) { - + row_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Specifies the row from the source text where the error occurred.
      * 
* * int64 row = 1; + * * @return This builder for chaining. */ public Builder clearRow() { @@ -547,13 +604,16 @@ public Builder clearRow() { return this; } - private long column_ ; + private long column_; /** + * + * *
      * Specifie the column from the source texts where the error occurred.
      * 
* * int64 column = 2; + * * @return The column. */ @java.lang.Override @@ -561,27 +621,33 @@ public long getColumn() { return column_; } /** + * + * *
      * Specifie the column from the source texts where the error occurred.
      * 
* * int64 column = 2; + * * @param value The column to set. * @return This builder for chaining. */ public Builder setColumn(long value) { - + column_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Specifie the column from the source texts where the error occurred.
      * 
* * int64 column = 2; + * * @return This builder for chaining. */ public Builder clearColumn() { @@ -593,18 +659,20 @@ public Builder clearColumn() { private java.lang.Object message_ = ""; /** + * + * *
      * A human-readable description of the error.
      * 
* * string message = 3; + * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -613,20 +681,21 @@ public java.lang.String getMessage() { } } /** + * + * *
      * A human-readable description of the error.
      * 
* * string message = 3; + * * @return The bytes for message. */ - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -634,28 +703,35 @@ public java.lang.String getMessage() { } } /** + * + * *
      * A human-readable description of the error.
      * 
* * string message = 3; + * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } message_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A human-readable description of the error.
      * 
* * string message = 3; + * * @return This builder for chaining. */ public Builder clearMessage() { @@ -665,26 +741,30 @@ public Builder clearMessage() { return this; } /** + * + * *
      * A human-readable description of the error.
      * 
* * string message = 3; + * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); message_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -694,41 +774,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail) - private static final com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail(); } - public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SqlTranslationErrorDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SqlTranslationErrorDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -740,9 +822,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationErrorDetailOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationErrorDetailOrBuilder.java similarity index 58% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationErrorDetailOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationErrorDetailOrBuilder.java index 327a766..8738d92 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationErrorDetailOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationErrorDetailOrBuilder.java @@ -1,49 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/translation_service.proto package com.google.cloud.bigquery.migration.v2alpha; -public interface SqlTranslationErrorDetailOrBuilder extends +public interface SqlTranslationErrorDetailOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Specifies the row from the source text where the error occurred.
    * 
* * int64 row = 1; + * * @return The row. */ long getRow(); /** + * + * *
    * Specifie the column from the source texts where the error occurred.
    * 
* * int64 column = 2; + * * @return The column. */ long getColumn(); /** + * + * *
    * A human-readable description of the error.
    * 
* * string message = 3; + * * @return The message. */ java.lang.String getMessage(); /** + * + * *
    * A human-readable description of the error.
    * 
* * string message = 3; + * * @return The bytes for message. */ - com.google.protobuf.ByteString - getMessageBytes(); + com.google.protobuf.ByteString getMessageBytes(); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationErrorOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationErrorOrBuilder.java similarity index 56% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationErrorOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationErrorOrBuilder.java index d6c9e65..5bef0aa 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationErrorOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationErrorOrBuilder.java @@ -1,58 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/translation_service.proto package com.google.cloud.bigquery.migration.v2alpha; -public interface SqlTranslationErrorOrBuilder extends +public interface SqlTranslationErrorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.SqlTranslationError) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The type of SQL translation error.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1; + * + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1; + * + * * @return The enum numeric value on the wire for errorType. */ int getErrorTypeValue(); /** + * + * *
    * The type of SQL translation error.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1; + * + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType error_type = 1; + * + * * @return The errorType. */ - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType getErrorType(); + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.SqlTranslationErrorType + getErrorType(); /** + * + * *
    * Specifies the details of the error, including the error message and
    * location from the source text.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * + * * @return Whether the errorDetail field is set. */ boolean hasErrorDetail(); /** + * + * *
    * Specifies the details of the error, including the error message and
    * location from the source text.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * + * * @return The errorDetail. */ com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail getErrorDetail(); /** + * + * *
    * Specifies the details of the error, including the error message and
    * location from the source text.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail error_detail = 2; + * */ - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetailOrBuilder getErrorDetailOrBuilder(); + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetailOrBuilder + getErrorDetailOrBuilder(); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationWarning.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationWarning.java similarity index 61% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationWarning.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationWarning.java index 3a6712d..f091581 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationWarning.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationWarning.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/translation_service.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * The detailed warning object if the SQL translation job is completed but not
  * semantically correct.
@@ -11,52 +28,57 @@
  *
  * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning}
  */
-public final class SqlTranslationWarning extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SqlTranslationWarning extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning)
     SqlTranslationWarningOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SqlTranslationWarning.newBuilder() to construct.
   private SqlTranslationWarning(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private SqlTranslationWarning() {
-  }
+
+  private SqlTranslationWarning() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SqlTranslationWarning();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationWarning_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto
+        .internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationWarning_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationWarning_fieldAccessorTable
+    return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto
+        .internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationWarning_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.class, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.Builder.class);
+            com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.class,
+            com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.Builder.class);
   }
 
   public static final int WARNING_DETAIL_FIELD_NUMBER = 1;
   private com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warningDetail_;
   /**
+   *
+   *
    * 
    * Specifies the details of the warning, including the warning message and
    * location from the source text.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * + * * @return Whether the warningDetail field is set. */ @java.lang.Override @@ -64,32 +86,45 @@ public boolean hasWarningDetail() { return warningDetail_ != null; } /** + * + * *
    * Specifies the details of the warning, including the warning message and
    * location from the source text.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * + * * @return The warningDetail. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail getWarningDetail() { - return warningDetail_ == null ? com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.getDefaultInstance() : warningDetail_; + return warningDetail_ == null + ? com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.getDefaultInstance() + : warningDetail_; } /** + * + * *
    * Specifies the details of the warning, including the warning message and
    * location from the source text.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetailOrBuilder getWarningDetailOrBuilder() { - return warningDetail_ == null ? com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.getDefaultInstance() : warningDetail_; + public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetailOrBuilder + getWarningDetailOrBuilder() { + return warningDetail_ == null + ? com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.getDefaultInstance() + : warningDetail_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -101,8 +136,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 (warningDetail_ != null) { output.writeMessage(1, getWarningDetail()); } @@ -116,8 +150,7 @@ public int getSerializedSize() { size = 0; if (warningDetail_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWarningDetail()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWarningDetail()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -127,17 +160,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning other = (com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning) obj; + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning other = + (com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning) obj; if (hasWarningDetail() != other.hasWarningDetail()) return false; if (hasWarningDetail()) { - if (!getWarningDetail() - .equals(other.getWarningDetail())) return false; + if (!getWarningDetail().equals(other.getWarningDetail())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -160,96 +193,105 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 detailed warning object if the SQL translation job is completed but not
    * semantically correct.
@@ -257,33 +299,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning)
       com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarningOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationWarning_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto
+          .internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationWarning_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationWarning_fieldAccessorTable
+      return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto
+          .internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationWarning_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.class, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.Builder.class);
+              com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.class,
+              com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.Builder.class);
     }
 
-    // Construct using com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.newBuilder()
-    private Builder() {
-
-    }
+    // Construct using
+    // com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.newBuilder()
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -297,13 +339,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationWarning_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto
+          .internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationWarning_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning getDefaultInstanceForType() {
+    public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning
+        getDefaultInstanceForType() {
       return com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.getDefaultInstance();
     }
 
@@ -318,18 +361,21 @@ public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning build()
 
     @java.lang.Override
     public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning buildPartial() {
-      com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning result = new com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning result =
+          new com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning result) {
+    private void buildPartial0(
+        com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.warningDetail_ = warningDetailBuilder_ == null
-            ? warningDetail_
-            : warningDetailBuilder_.build();
+        result.warningDetail_ =
+            warningDetailBuilder_ == null ? warningDetail_ : warningDetailBuilder_.build();
       }
     }
 
@@ -337,46 +383,50 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.SqlTransl
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning) {
-        return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning)other);
+        return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning other) {
-      if (other == com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning other) {
+      if (other
+          == com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.getDefaultInstance())
+        return this;
       if (other.hasWarningDetail()) {
         mergeWarningDetail(other.getWarningDetail());
       }
@@ -406,19 +456,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getWarningDetailFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getWarningDetailFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -428,48 +478,68 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warningDetail_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.Builder, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetailOrBuilder> warningDetailBuilder_;
+            com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail,
+            com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.Builder,
+            com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetailOrBuilder>
+        warningDetailBuilder_;
     /**
+     *
+     *
      * 
      * Specifies the details of the warning, including the warning message and
      * location from the source text.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * + * * @return Whether the warningDetail field is set. */ public boolean hasWarningDetail() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Specifies the details of the warning, including the warning message and
      * location from the source text.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * + * * @return The warningDetail. */ - public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail getWarningDetail() { + public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail + getWarningDetail() { if (warningDetailBuilder_ == null) { - return warningDetail_ == null ? com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.getDefaultInstance() : warningDetail_; + return warningDetail_ == null + ? com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail + .getDefaultInstance() + : warningDetail_; } else { return warningDetailBuilder_.getMessage(); } } /** + * + * *
      * Specifies the details of the warning, including the warning message and
      * location from the source text.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * */ - public Builder setWarningDetail(com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail value) { + public Builder setWarningDetail( + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail value) { if (warningDetailBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -483,15 +553,19 @@ public Builder setWarningDetail(com.google.cloud.bigquery.migration.v2alpha.SqlT return this; } /** + * + * *
      * Specifies the details of the warning, including the warning message and
      * location from the source text.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * */ public Builder setWarningDetail( - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.Builder builderForValue) { + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.Builder + builderForValue) { if (warningDetailBuilder_ == null) { warningDetail_ = builderForValue.build(); } else { @@ -502,18 +576,24 @@ public Builder setWarningDetail( return this; } /** + * + * *
      * Specifies the details of the warning, including the warning message and
      * location from the source text.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * */ - public Builder mergeWarningDetail(com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail value) { + public Builder mergeWarningDetail( + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail value) { if (warningDetailBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - warningDetail_ != null && - warningDetail_ != com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && warningDetail_ != null + && warningDetail_ + != com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail + .getDefaultInstance()) { getWarningDetailBuilder().mergeFrom(value); } else { warningDetail_ = value; @@ -526,12 +606,15 @@ public Builder mergeWarningDetail(com.google.cloud.bigquery.migration.v2alpha.Sq return this; } /** + * + * *
      * Specifies the details of the warning, including the warning message and
      * location from the source text.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * */ public Builder clearWarningDetail() { bitField0_ = (bitField0_ & ~0x00000001); @@ -544,58 +627,74 @@ public Builder clearWarningDetail() { return this; } /** + * + * *
      * Specifies the details of the warning, including the warning message and
      * location from the source text.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * */ - public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.Builder getWarningDetailBuilder() { + public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.Builder + getWarningDetailBuilder() { bitField0_ |= 0x00000001; onChanged(); return getWarningDetailFieldBuilder().getBuilder(); } /** + * + * *
      * Specifies the details of the warning, including the warning message and
      * location from the source text.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * */ - public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetailOrBuilder getWarningDetailOrBuilder() { + public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetailOrBuilder + getWarningDetailOrBuilder() { if (warningDetailBuilder_ != null) { return warningDetailBuilder_.getMessageOrBuilder(); } else { - return warningDetail_ == null ? - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.getDefaultInstance() : warningDetail_; + return warningDetail_ == null + ? com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail + .getDefaultInstance() + : warningDetail_; } } /** + * + * *
      * Specifies the details of the warning, including the warning message and
      * location from the source text.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.Builder, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetailOrBuilder> + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.Builder, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetailOrBuilder> getWarningDetailFieldBuilder() { if (warningDetailBuilder_ == null) { - warningDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.Builder, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetailOrBuilder>( - getWarningDetail(), - getParentForChildren(), - isClean()); + warningDetailBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail.Builder, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetailOrBuilder>( + getWarningDetail(), getParentForChildren(), isClean()); warningDetail_ = null; } return warningDetailBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -605,41 +704,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning) - private static final com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning(); } - public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SqlTranslationWarning parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SqlTranslationWarning parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -651,9 +752,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationWarningOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationWarningOrBuilder.java similarity index 58% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationWarningOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationWarningOrBuilder.java index 4a64848..edd5c7a 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationWarningOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationWarningOrBuilder.java @@ -1,39 +1,67 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/translation_service.proto package com.google.cloud.bigquery.migration.v2alpha; -public interface SqlTranslationWarningOrBuilder extends +public interface SqlTranslationWarningOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Specifies the details of the warning, including the warning message and
    * location from the source text.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * + * * @return Whether the warningDetail field is set. */ boolean hasWarningDetail(); /** + * + * *
    * Specifies the details of the warning, including the warning message and
    * location from the source text.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * + * * @return The warningDetail. */ com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail getWarningDetail(); /** + * + * *
    * Specifies the details of the warning, including the warning message and
    * location from the source text.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * .google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetail warning_detail = 1; + * */ - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetailOrBuilder getWarningDetailOrBuilder(); + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorDetailOrBuilder + getWarningDetailOrBuilder(); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/StartMigrationWorkflowRequest.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/StartMigrationWorkflowRequest.java similarity index 57% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/StartMigrationWorkflowRequest.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/StartMigrationWorkflowRequest.java index 6666a56..4526926 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/StartMigrationWorkflowRequest.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/StartMigrationWorkflowRequest.java @@ -1,63 +1,89 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_service.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * A request to start a previously created migration workflow.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest} */ -public final class StartMigrationWorkflowRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartMigrationWorkflowRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest) StartMigrationWorkflowRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartMigrationWorkflowRequest.newBuilder() to construct. private StartMigrationWorkflowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StartMigrationWorkflowRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartMigrationWorkflowRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_StartMigrationWorkflowRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_StartMigrationWorkflowRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_StartMigrationWorkflowRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_StartMigrationWorkflowRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest.class, com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest.class, + com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest.Builder + .class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The unique identifier for the migration workflow.
    * Example: `projects/123/locations/us/workflows/1234`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,30 +92,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The unique identifier for the migration workflow.
    * Example: `projects/123/locations/us/workflows/1234`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,6 +126,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +138,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -134,15 +162,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest)) { + if (!(obj + instanceof com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest other = (com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest) obj; + com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest other = + (com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,129 +191,139 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A request to start a previously created migration workflow.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest) com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_StartMigrationWorkflowRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_StartMigrationWorkflowRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_StartMigrationWorkflowRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_StartMigrationWorkflowRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest.class, com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest.class, + com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest.Builder + .class); } - // Construct using com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -294,19 +333,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_StartMigrationWorkflowRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_StartMigrationWorkflowRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest.getDefaultInstance(); + public com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest build() { - com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest result = buildPartial(); + com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -314,14 +356,19 @@ public com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest buildPartial() { - com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest result = new com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest + buildPartial() { + com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest result = + new com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -332,46 +379,52 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.StartMigr public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest) { - return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest)other); + if (other + instanceof com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest) { + return mergeFrom( + (com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest other) { - if (other == com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest other) { + if (other + == com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -403,17 +456,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,23 +478,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -448,21 +508,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -470,30 +533,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -503,27 +577,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The unique identifier for the migration workflow.
      * Example: `projects/123/locations/us/workflows/1234`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -533,41 +613,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest) - private static final com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest(); } - public static com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartMigrationWorkflowRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartMigrationWorkflowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -579,9 +662,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/StartMigrationWorkflowRequestOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/StartMigrationWorkflowRequestOrBuilder.java new file mode 100644 index 0000000..ed49772 --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/StartMigrationWorkflowRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2alpha/migration_service.proto + +package com.google.cloud.bigquery.migration.v2alpha; + +public interface StartMigrationWorkflowRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.StartMigrationWorkflowRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The unique identifier for the migration workflow.
+   * Example: `projects/123/locations/us/workflows/1234`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The unique identifier for the migration workflow.
+   * Example: `projects/123/locations/us/workflows/1234`
+   * 
+ * + * + * 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/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TeradataOptions.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TeradataOptions.java similarity index 63% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TeradataOptions.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TeradataOptions.java index dec7dee..589bb4b 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TeradataOptions.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TeradataOptions.java @@ -1,53 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/translation_task.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * Teradata SQL specific translation task related settings.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.TeradataOptions} */ -public final class TeradataOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TeradataOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.TeradataOptions) TeradataOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TeradataOptions.newBuilder() to construct. private TeradataOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TeradataOptions() { - } + + private TeradataOptions() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TeradataOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_TeradataOptions_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TeradataOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_TeradataOptions_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TeradataOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.TeradataOptions.class, com.google.cloud.bigquery.migration.v2alpha.TeradataOptions.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.TeradataOptions.class, + com.google.cloud.bigquery.migration.v2alpha.TeradataOptions.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -59,8 +78,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 { getUnknownFields().writeTo(output); } @@ -78,12 +96,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.bigquery.migration.v2alpha.TeradataOptions)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.TeradataOptions other = (com.google.cloud.bigquery.migration.v2alpha.TeradataOptions) obj; + com.google.cloud.bigquery.migration.v2alpha.TeradataOptions other = + (com.google.cloud.bigquery.migration.v2alpha.TeradataOptions) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -102,129 +121,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.TeradataOptions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.TeradataOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.TeradataOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.TeradataOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.TeradataOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.TeradataOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.TeradataOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.TeradataOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.TeradataOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.TeradataOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.TeradataOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.TeradataOptions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.TeradataOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.TeradataOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.TeradataOptions prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.TeradataOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Teradata SQL specific translation task related settings.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.TeradataOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.TeradataOptions) com.google.cloud.bigquery.migration.v2alpha.TeradataOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_TeradataOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TeradataOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_TeradataOptions_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TeradataOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.TeradataOptions.class, com.google.cloud.bigquery.migration.v2alpha.TeradataOptions.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.TeradataOptions.class, + com.google.cloud.bigquery.migration.v2alpha.TeradataOptions.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2alpha.TeradataOptions.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -232,9 +258,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_TeradataOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TeradataOptions_descriptor; } @java.lang.Override @@ -253,7 +279,8 @@ public com.google.cloud.bigquery.migration.v2alpha.TeradataOptions build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.TeradataOptions buildPartial() { - com.google.cloud.bigquery.migration.v2alpha.TeradataOptions result = new com.google.cloud.bigquery.migration.v2alpha.TeradataOptions(this); + com.google.cloud.bigquery.migration.v2alpha.TeradataOptions result = + new com.google.cloud.bigquery.migration.v2alpha.TeradataOptions(this); onBuilt(); return result; } @@ -262,38 +289,39 @@ public com.google.cloud.bigquery.migration.v2alpha.TeradataOptions buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2alpha.TeradataOptions) { - return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.TeradataOptions)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.TeradataOptions) other); } else { super.mergeFrom(other); return this; @@ -301,7 +329,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.TeradataOptions other) { - if (other == com.google.cloud.bigquery.migration.v2alpha.TeradataOptions.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.migration.v2alpha.TeradataOptions.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -328,12 +357,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -343,9 +373,9 @@ public Builder mergeFrom( } // finally 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); } @@ -355,12 +385,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.TeradataOptions) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.TeradataOptions) private static final com.google.cloud.bigquery.migration.v2alpha.TeradataOptions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.TeradataOptions(); } @@ -369,27 +399,27 @@ public static com.google.cloud.bigquery.migration.v2alpha.TeradataOptions getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TeradataOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TeradataOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -404,6 +434,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2alpha.TeradataOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TeradataOptionsOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TeradataOptionsOrBuilder.java new file mode 100644 index 0000000..11ca0ad --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TeradataOptionsOrBuilder.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/bigquery/migration/v2alpha/translation_task.proto + +package com.google.cloud.bigquery.migration.v2alpha; + +public interface TeradataOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.TeradataOptions) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeInterval.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeInterval.java similarity index 69% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeInterval.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeInterval.java index 8550fff..de1d7a3 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeInterval.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeInterval.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_metrics.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * A time interval extending just after a start time through an end time.
  * If the start time is the same as the end time, then the interval
@@ -12,53 +29,58 @@
  *
  * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.TimeInterval}
  */
-public final class TimeInterval extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TimeInterval extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.TimeInterval)
     TimeIntervalOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TimeInterval.newBuilder() to construct.
   private TimeInterval(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private TimeInterval() {
-  }
+
+  private TimeInterval() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TimeInterval();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2alpha_TimeInterval_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto
+        .internal_static_google_cloud_bigquery_migration_v2alpha_TimeInterval_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2alpha_TimeInterval_fieldAccessorTable
+    return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto
+        .internal_static_google_cloud_bigquery_migration_v2alpha_TimeInterval_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.migration.v2alpha.TimeInterval.class, com.google.cloud.bigquery.migration.v2alpha.TimeInterval.Builder.class);
+            com.google.cloud.bigquery.migration.v2alpha.TimeInterval.class,
+            com.google.cloud.bigquery.migration.v2alpha.TimeInterval.Builder.class);
   }
 
   public static final int START_TIME_FIELD_NUMBER = 1;
   private com.google.protobuf.Timestamp startTime_;
   /**
+   *
+   *
    * 
    * Optional. The beginning of the time interval.  The default value
    * for the start time is the end time. The start time must not be
    * later than the end time.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -66,13 +88,17 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Optional. The beginning of the time interval.  The default value
    * for the start time is the end time. The start time must not be
    * later than the end time.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The startTime. */ @java.lang.Override @@ -80,13 +106,16 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Optional. The beginning of the time interval.  The default value
    * for the start time is the end time. The start time must not be
    * later than the end time.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -96,11 +125,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Required. The end of the time interval.
    * 
* * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -108,11 +140,14 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Required. The end of the time interval.
    * 
* * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The endTime. */ @java.lang.Override @@ -120,6 +155,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Required. The end of the time interval.
    * 
@@ -132,6 +169,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -143,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } @@ -161,12 +198,10 @@ public int getSerializedSize() { size = 0; if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -176,22 +211,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.TimeInterval)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.TimeInterval other = (com.google.cloud.bigquery.migration.v2alpha.TimeInterval) obj; + com.google.cloud.bigquery.migration.v2alpha.TimeInterval other = + (com.google.cloud.bigquery.migration.v2alpha.TimeInterval) obj; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -218,96 +252,104 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.TimeInterval parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.TimeInterval parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.TimeInterval parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.TimeInterval parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.TimeInterval parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.TimeInterval parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.TimeInterval parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.TimeInterval parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.TimeInterval parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.TimeInterval parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.TimeInterval parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.TimeInterval parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.TimeInterval parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.TimeInterval parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.TimeInterval prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.TimeInterval prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 time interval extending just after a start time through an end time.
    * If the start time is the same as the end time, then the interval
@@ -316,33 +358,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.TimeInterval}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.TimeInterval)
       com.google.cloud.bigquery.migration.v2alpha.TimeIntervalOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2alpha_TimeInterval_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto
+          .internal_static_google_cloud_bigquery_migration_v2alpha_TimeInterval_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2alpha_TimeInterval_fieldAccessorTable
+      return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto
+          .internal_static_google_cloud_bigquery_migration_v2alpha_TimeInterval_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.migration.v2alpha.TimeInterval.class, com.google.cloud.bigquery.migration.v2alpha.TimeInterval.Builder.class);
+              com.google.cloud.bigquery.migration.v2alpha.TimeInterval.class,
+              com.google.cloud.bigquery.migration.v2alpha.TimeInterval.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.migration.v2alpha.TimeInterval.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -361,9 +402,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2alpha_TimeInterval_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto
+          .internal_static_google_cloud_bigquery_migration_v2alpha_TimeInterval_descriptor;
     }
 
     @java.lang.Override
@@ -382,8 +423,11 @@ public com.google.cloud.bigquery.migration.v2alpha.TimeInterval build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.migration.v2alpha.TimeInterval buildPartial() {
-      com.google.cloud.bigquery.migration.v2alpha.TimeInterval result = new com.google.cloud.bigquery.migration.v2alpha.TimeInterval(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.migration.v2alpha.TimeInterval result =
+          new com.google.cloud.bigquery.migration.v2alpha.TimeInterval(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -391,14 +435,10 @@ public com.google.cloud.bigquery.migration.v2alpha.TimeInterval buildPartial() {
     private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.TimeInterval result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.startTime_ = startTimeBuilder_ == null
-            ? startTime_
-            : startTimeBuilder_.build();
+        result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null
-            ? endTime_
-            : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
       }
     }
 
@@ -406,38 +446,39 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.TimeInter
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.migration.v2alpha.TimeInterval) {
-        return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.TimeInterval)other);
+        return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.TimeInterval) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -445,7 +486,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.TimeInterval other) {
-      if (other == com.google.cloud.bigquery.migration.v2alpha.TimeInterval.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.migration.v2alpha.TimeInterval.getDefaultInstance())
+        return this;
       if (other.hasStartTime()) {
         mergeStartTime(other.getStartTime());
       }
@@ -478,26 +520,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getStartTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -507,32 +548,44 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.Timestamp startTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        startTimeBuilder_;
     /**
+     *
+     *
      * 
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
      * later than the end time.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
      * later than the end time.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -543,13 +596,16 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
      * later than the end time.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -565,16 +621,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
      * later than the end time.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -585,19 +643,22 @@ public Builder setStartTime( return this; } /** + * + * *
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
      * later than the end time.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - startTime_ != null && - startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -610,13 +671,16 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
      * later than the end time.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -629,13 +693,16 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
      * later than the end time.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { bitField0_ |= 0x00000001; @@ -643,40 +710,48 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
      * later than the end time.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * Optional. The beginning of the time interval.  The default value
      * for the start time is the end time. The start time must not be
      * later than the end time.
      * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -684,24 +759,35 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Required. The end of the time interval.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The end of the time interval.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -712,11 +798,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Required. The end of the time interval.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -732,14 +821,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Required. The end of the time interval.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -750,17 +841,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Required. The end of the time interval.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -773,11 +867,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Required. The end of the time interval.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -790,11 +887,14 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Required. The end of the time interval.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -802,43 +902,51 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The end of the time interval.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Required. The end of the time interval.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> 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); } @@ -848,12 +956,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.TimeInterval) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.TimeInterval) private static final com.google.cloud.bigquery.migration.v2alpha.TimeInterval DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.TimeInterval(); } @@ -862,27 +970,27 @@ public static com.google.cloud.bigquery.migration.v2alpha.TimeInterval getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeInterval parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeInterval parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -897,6 +1005,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2alpha.TimeInterval getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeIntervalOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeIntervalOrBuilder.java similarity index 71% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeIntervalOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeIntervalOrBuilder.java index aa459bf..d65c2dc 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeIntervalOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeIntervalOrBuilder.java @@ -1,64 +1,99 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_metrics.proto package com.google.cloud.bigquery.migration.v2alpha; -public interface TimeIntervalOrBuilder extends +public interface TimeIntervalOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.TimeInterval) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The beginning of the time interval.  The default value
    * for the start time is the end time. The start time must not be
    * later than the end time.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Optional. The beginning of the time interval.  The default value
    * for the start time is the end time. The start time must not be
    * later than the end time.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Optional. The beginning of the time interval.  The default value
    * for the start time is the end time. The start time must not be
    * later than the end time.
    * 
* - * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * Required. The end of the time interval.
    * 
* * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Required. The end of the time interval.
    * 
* * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Required. The end of the time interval.
    * 
diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeSeries.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeSeries.java similarity index 70% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeSeries.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeSeries.java index 60a4133..eba07cc 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeSeries.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeSeries.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_metrics.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * The metrics object for a SubTask.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.TimeSeries} */ -public final class TimeSeries extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TimeSeries extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.TimeSeries) TimeSeriesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TimeSeries.newBuilder() to construct. private TimeSeries(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TimeSeries() { metric_ = ""; valueType_ = 0; @@ -28,39 +46,44 @@ private TimeSeries() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TimeSeries(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2alpha_TimeSeries_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TimeSeries_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2alpha_TimeSeries_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TimeSeries_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.TimeSeries.class, com.google.cloud.bigquery.migration.v2alpha.TimeSeries.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.TimeSeries.class, + com.google.cloud.bigquery.migration.v2alpha.TimeSeries.Builder.class); } public static final int METRIC_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object metric_ = ""; /** + * + * *
    * Required. The name of the metric.
    * If the metric is not known by the service yet, it will be auto-created.
    * 
* * string metric = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The metric. */ @java.lang.Override @@ -69,30 +92,30 @@ public java.lang.String getMetric() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metric_ = s; return s; } } /** + * + * *
    * Required. The name of the metric.
    * If the metric is not known by the service yet, it will be auto-created.
    * 
* * string metric = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for metric. */ @java.lang.Override - public com.google.protobuf.ByteString - getMetricBytes() { + public com.google.protobuf.ByteString getMetricBytes() { java.lang.Object ref = metric_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); metric_ = b; return b; } else { @@ -103,32 +126,47 @@ public java.lang.String getMetric() { public static final int VALUE_TYPE_FIELD_NUMBER = 2; private int valueType_ = 0; /** + * + * *
    * Required. The value type of the time series.
    * 
* - * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for valueType. */ - @java.lang.Override public int getValueTypeValue() { + @java.lang.Override + public int getValueTypeValue() { return valueType_; } /** + * + * *
    * Required. The value type of the time series.
    * 
* - * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The valueType. */ - @java.lang.Override public com.google.api.MetricDescriptor.ValueType getValueType() { - com.google.api.MetricDescriptor.ValueType result = com.google.api.MetricDescriptor.ValueType.forNumber(valueType_); + @java.lang.Override + public com.google.api.MetricDescriptor.ValueType getValueType() { + com.google.api.MetricDescriptor.ValueType result = + com.google.api.MetricDescriptor.ValueType.forNumber(valueType_); return result == null ? com.google.api.MetricDescriptor.ValueType.UNRECOGNIZED : result; } public static final int METRIC_KIND_FIELD_NUMBER = 3; private int metricKind_ = 0; /** + * + * *
    * Optional. The metric kind of the time series.
    * If present, it must be the same as the metric kind of the associated
@@ -137,13 +175,19 @@ public java.lang.String getMetric() {
    * either `GAUGE` (the default) or `CUMULATIVE`.
    * 
* - * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for metricKind. */ - @java.lang.Override public int getMetricKindValue() { + @java.lang.Override + public int getMetricKindValue() { return metricKind_; } /** + * + * *
    * Optional. The metric kind of the time series.
    * If present, it must be the same as the metric kind of the associated
@@ -152,18 +196,26 @@ public java.lang.String getMetric() {
    * either `GAUGE` (the default) or `CUMULATIVE`.
    * 
* - * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The metricKind. */ - @java.lang.Override public com.google.api.MetricDescriptor.MetricKind getMetricKind() { - com.google.api.MetricDescriptor.MetricKind result = com.google.api.MetricDescriptor.MetricKind.forNumber(metricKind_); + @java.lang.Override + public com.google.api.MetricDescriptor.MetricKind getMetricKind() { + com.google.api.MetricDescriptor.MetricKind result = + com.google.api.MetricDescriptor.MetricKind.forNumber(metricKind_); return result == null ? com.google.api.MetricDescriptor.MetricKind.UNRECOGNIZED : result; } public static final int POINTS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private java.util.List points_; /** + * + * *
    * Required. The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -174,13 +226,17 @@ public java.lang.String getMetric() {
    * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getPointsList() { return points_; } /** + * + * *
    * Required. The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -191,14 +247,18 @@ public java.util.List getPoin
    * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getPointsOrBuilderList() { return points_; } /** + * + * *
    * Required. The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -209,13 +269,17 @@ public java.util.List getPoin
    * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getPointsCount() { return points_.size(); } /** + * + * *
    * Required. The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -226,13 +290,17 @@ public int getPointsCount() {
    * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.Point getPoints(int index) { return points_.get(index); } /** + * + * *
    * Required. The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -243,15 +311,17 @@ public com.google.cloud.bigquery.migration.v2alpha.Point getPoints(int index) {
    * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.PointOrBuilder getPointsOrBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2alpha.PointOrBuilder getPointsOrBuilder(int index) { return points_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,15 +333,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metric_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metric_); } - if (valueType_ != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { + if (valueType_ + != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, valueType_); } - if (metricKind_ != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { + if (metricKind_ + != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { output.writeEnum(3, metricKind_); } for (int i = 0; i < points_.size(); i++) { @@ -289,17 +360,16 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metric_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metric_); } - if (valueType_ != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, valueType_); + if (valueType_ + != com.google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, valueType_); } - if (metricKind_ != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, metricKind_); + if (metricKind_ + != com.google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, metricKind_); } for (int i = 0; i < points_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, points_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, points_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -309,19 +379,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.TimeSeries)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.TimeSeries other = (com.google.cloud.bigquery.migration.v2alpha.TimeSeries) obj; + com.google.cloud.bigquery.migration.v2alpha.TimeSeries other = + (com.google.cloud.bigquery.migration.v2alpha.TimeSeries) obj; - if (!getMetric() - .equals(other.getMetric())) return false; + if (!getMetric().equals(other.getMetric())) return false; if (valueType_ != other.valueType_) return false; if (metricKind_ != other.metricKind_) return false; - if (!getPointsList() - .equals(other.getPointsList())) return false; + if (!getPointsList().equals(other.getPointsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -349,129 +418,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.TimeSeries parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.TimeSeries parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.TimeSeries parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.TimeSeries parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.TimeSeries parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.TimeSeries parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.TimeSeries parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.TimeSeries parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.TimeSeries parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.TimeSeries parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.TimeSeries parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.TimeSeries parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.TimeSeries parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.TimeSeries parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.TimeSeries prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.TimeSeries prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 metrics object for a SubTask.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.TimeSeries} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.TimeSeries) com.google.cloud.bigquery.migration.v2alpha.TimeSeriesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2alpha_TimeSeries_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TimeSeries_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2alpha_TimeSeries_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TimeSeries_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.TimeSeries.class, com.google.cloud.bigquery.migration.v2alpha.TimeSeries.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.TimeSeries.class, + com.google.cloud.bigquery.migration.v2alpha.TimeSeries.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2alpha.TimeSeries.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -490,9 +566,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2alpha_TimeSeries_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TimeSeries_descriptor; } @java.lang.Override @@ -511,14 +587,18 @@ public com.google.cloud.bigquery.migration.v2alpha.TimeSeries build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.TimeSeries buildPartial() { - com.google.cloud.bigquery.migration.v2alpha.TimeSeries result = new com.google.cloud.bigquery.migration.v2alpha.TimeSeries(this); + com.google.cloud.bigquery.migration.v2alpha.TimeSeries result = + new com.google.cloud.bigquery.migration.v2alpha.TimeSeries(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.bigquery.migration.v2alpha.TimeSeries result) { + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.migration.v2alpha.TimeSeries result) { if (pointsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { points_ = java.util.Collections.unmodifiableList(points_); @@ -547,38 +627,39 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.TimeSerie public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2alpha.TimeSeries) { - return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.TimeSeries)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.TimeSeries) other); } else { super.mergeFrom(other); return this; @@ -586,7 +667,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.TimeSeries other) { - if (other == com.google.cloud.bigquery.migration.v2alpha.TimeSeries.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.migration.v2alpha.TimeSeries.getDefaultInstance()) + return this; if (!other.getMetric().isEmpty()) { metric_ = other.metric_; bitField0_ |= 0x00000001; @@ -616,9 +698,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.TimeSeries pointsBuilder_ = null; points_ = other.points_; bitField0_ = (bitField0_ & ~0x00000008); - pointsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPointsFieldBuilder() : null; + pointsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPointsFieldBuilder() + : null; } else { pointsBuilder_.addAllMessages(other.points_); } @@ -650,40 +733,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - metric_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - valueType_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - metricKind_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - com.google.cloud.bigquery.migration.v2alpha.Point m = - input.readMessage( - com.google.cloud.bigquery.migration.v2alpha.Point.parser(), - extensionRegistry); - if (pointsBuilder_ == null) { - ensurePointsIsMutable(); - points_.add(m); - } else { - pointsBuilder_.addMessage(m); - } - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + metric_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + valueType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + metricKind_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + com.google.cloud.bigquery.migration.v2alpha.Point m = + input.readMessage( + com.google.cloud.bigquery.migration.v2alpha.Point.parser(), + extensionRegistry); + if (pointsBuilder_ == null) { + ensurePointsIsMutable(); + points_.add(m); + } else { + pointsBuilder_.addMessage(m); + } + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -693,23 +781,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object metric_ = ""; /** + * + * *
      * Required. The name of the metric.
      * If the metric is not known by the service yet, it will be auto-created.
      * 
* * string metric = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The metric. */ public java.lang.String getMetric() { java.lang.Object ref = metric_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metric_ = s; return s; @@ -718,21 +809,22 @@ public java.lang.String getMetric() { } } /** + * + * *
      * Required. The name of the metric.
      * If the metric is not known by the service yet, it will be auto-created.
      * 
* * string metric = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for metric. */ - public com.google.protobuf.ByteString - getMetricBytes() { + public com.google.protobuf.ByteString getMetricBytes() { java.lang.Object ref = metric_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); metric_ = b; return b; } else { @@ -740,30 +832,37 @@ public java.lang.String getMetric() { } } /** + * + * *
      * Required. The name of the metric.
      * If the metric is not known by the service yet, it will be auto-created.
      * 
* * string metric = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The metric to set. * @return This builder for chaining. */ - public Builder setMetric( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMetric(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } metric_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the metric.
      * If the metric is not known by the service yet, it will be auto-created.
      * 
* * string metric = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMetric() { @@ -773,18 +872,22 @@ public Builder clearMetric() { return this; } /** + * + * *
      * Required. The name of the metric.
      * If the metric is not known by the service yet, it will be auto-created.
      * 
* * string metric = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for metric to set. * @return This builder for chaining. */ - public Builder setMetricBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMetricBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); metric_ = value; bitField0_ |= 0x00000001; @@ -794,22 +897,33 @@ public Builder setMetricBytes( private int valueType_ = 0; /** + * + * *
      * Required. The value type of the time series.
      * 
* - * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for valueType. */ - @java.lang.Override public int getValueTypeValue() { + @java.lang.Override + public int getValueTypeValue() { return valueType_; } /** + * + * *
      * Required. The value type of the time series.
      * 
* - * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for valueType to set. * @return This builder for chaining. */ @@ -820,24 +934,35 @@ public Builder setValueTypeValue(int value) { return this; } /** + * + * *
      * Required. The value type of the time series.
      * 
* - * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The valueType. */ @java.lang.Override public com.google.api.MetricDescriptor.ValueType getValueType() { - com.google.api.MetricDescriptor.ValueType result = com.google.api.MetricDescriptor.ValueType.forNumber(valueType_); + com.google.api.MetricDescriptor.ValueType result = + com.google.api.MetricDescriptor.ValueType.forNumber(valueType_); return result == null ? com.google.api.MetricDescriptor.ValueType.UNRECOGNIZED : result; } /** + * + * *
      * Required. The value type of the time series.
      * 
* - * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The valueType to set. * @return This builder for chaining. */ @@ -851,11 +976,16 @@ public Builder setValueType(com.google.api.MetricDescriptor.ValueType value) { return this; } /** + * + * *
      * Required. The value type of the time series.
      * 
* - * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearValueType() { @@ -867,6 +997,8 @@ public Builder clearValueType() { private int metricKind_ = 0; /** + * + * *
      * Optional. The metric kind of the time series.
      * If present, it must be the same as the metric kind of the associated
@@ -875,13 +1007,19 @@ public Builder clearValueType() {
      * either `GAUGE` (the default) or `CUMULATIVE`.
      * 
* - * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for metricKind. */ - @java.lang.Override public int getMetricKindValue() { + @java.lang.Override + public int getMetricKindValue() { return metricKind_; } /** + * + * *
      * Optional. The metric kind of the time series.
      * If present, it must be the same as the metric kind of the associated
@@ -890,7 +1028,10 @@ public Builder clearValueType() {
      * either `GAUGE` (the default) or `CUMULATIVE`.
      * 
* - * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for metricKind to set. * @return This builder for chaining. */ @@ -901,6 +1042,8 @@ public Builder setMetricKindValue(int value) { return this; } /** + * + * *
      * Optional. The metric kind of the time series.
      * If present, it must be the same as the metric kind of the associated
@@ -909,15 +1052,21 @@ public Builder setMetricKindValue(int value) {
      * either `GAUGE` (the default) or `CUMULATIVE`.
      * 
* - * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The metricKind. */ @java.lang.Override public com.google.api.MetricDescriptor.MetricKind getMetricKind() { - com.google.api.MetricDescriptor.MetricKind result = com.google.api.MetricDescriptor.MetricKind.forNumber(metricKind_); + com.google.api.MetricDescriptor.MetricKind result = + com.google.api.MetricDescriptor.MetricKind.forNumber(metricKind_); return result == null ? com.google.api.MetricDescriptor.MetricKind.UNRECOGNIZED : result; } /** + * + * *
      * Optional. The metric kind of the time series.
      * If present, it must be the same as the metric kind of the associated
@@ -926,7 +1075,10 @@ public com.google.api.MetricDescriptor.MetricKind getMetricKind() {
      * either `GAUGE` (the default) or `CUMULATIVE`.
      * 
* - * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The metricKind to set. * @return This builder for chaining. */ @@ -940,6 +1092,8 @@ public Builder setMetricKind(com.google.api.MetricDescriptor.MetricKind value) { return this; } /** + * + * *
      * Optional. The metric kind of the time series.
      * If present, it must be the same as the metric kind of the associated
@@ -948,7 +1102,10 @@ public Builder setMetricKind(com.google.api.MetricDescriptor.MetricKind value) {
      * either `GAUGE` (the default) or `CUMULATIVE`.
      * 
* - * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearMetricKind() { @@ -959,18 +1116,25 @@ public Builder clearMetricKind() { } private java.util.List points_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePointsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - points_ = new java.util.ArrayList(points_); + points_ = + new java.util.ArrayList(points_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.Point, com.google.cloud.bigquery.migration.v2alpha.Point.Builder, com.google.cloud.bigquery.migration.v2alpha.PointOrBuilder> pointsBuilder_; + com.google.cloud.bigquery.migration.v2alpha.Point, + com.google.cloud.bigquery.migration.v2alpha.Point.Builder, + com.google.cloud.bigquery.migration.v2alpha.PointOrBuilder> + pointsBuilder_; /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -981,7 +1145,9 @@ private void ensurePointsIsMutable() {
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getPointsList() { if (pointsBuilder_ == null) { @@ -991,6 +1157,8 @@ public java.util.List getPoin } } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1001,7 +1169,9 @@ public java.util.List getPoin
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getPointsCount() { if (pointsBuilder_ == null) { @@ -1011,6 +1181,8 @@ public int getPointsCount() { } } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1021,7 +1193,9 @@ public int getPointsCount() {
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.migration.v2alpha.Point getPoints(int index) { if (pointsBuilder_ == null) { @@ -1031,6 +1205,8 @@ public com.google.cloud.bigquery.migration.v2alpha.Point getPoints(int index) { } } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1041,10 +1217,11 @@ public com.google.cloud.bigquery.migration.v2alpha.Point getPoints(int index) {
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setPoints( - int index, com.google.cloud.bigquery.migration.v2alpha.Point value) { + public Builder setPoints(int index, com.google.cloud.bigquery.migration.v2alpha.Point value) { if (pointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1058,6 +1235,8 @@ public Builder setPoints( return this; } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1068,7 +1247,9 @@ public Builder setPoints(
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPoints( int index, com.google.cloud.bigquery.migration.v2alpha.Point.Builder builderForValue) { @@ -1082,6 +1263,8 @@ public Builder setPoints( return this; } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1092,7 +1275,9 @@ public Builder setPoints(
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addPoints(com.google.cloud.bigquery.migration.v2alpha.Point value) { if (pointsBuilder_ == null) { @@ -1108,6 +1293,8 @@ public Builder addPoints(com.google.cloud.bigquery.migration.v2alpha.Point value return this; } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1118,10 +1305,11 @@ public Builder addPoints(com.google.cloud.bigquery.migration.v2alpha.Point value
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addPoints( - int index, com.google.cloud.bigquery.migration.v2alpha.Point value) { + public Builder addPoints(int index, com.google.cloud.bigquery.migration.v2alpha.Point value) { if (pointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1135,6 +1323,8 @@ public Builder addPoints( return this; } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1145,7 +1335,9 @@ public Builder addPoints(
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addPoints( com.google.cloud.bigquery.migration.v2alpha.Point.Builder builderForValue) { @@ -1159,6 +1351,8 @@ public Builder addPoints( return this; } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1169,7 +1363,9 @@ public Builder addPoints(
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addPoints( int index, com.google.cloud.bigquery.migration.v2alpha.Point.Builder builderForValue) { @@ -1183,6 +1379,8 @@ public Builder addPoints( return this; } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1193,14 +1391,15 @@ public Builder addPoints(
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllPoints( java.lang.Iterable values) { if (pointsBuilder_ == null) { ensurePointsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, points_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, points_); onChanged(); } else { pointsBuilder_.addAllMessages(values); @@ -1208,6 +1407,8 @@ public Builder addAllPoints( return this; } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1218,7 +1419,9 @@ public Builder addAllPoints(
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPoints() { if (pointsBuilder_ == null) { @@ -1231,6 +1434,8 @@ public Builder clearPoints() { return this; } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1241,7 +1446,9 @@ public Builder clearPoints() {
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removePoints(int index) { if (pointsBuilder_ == null) { @@ -1254,6 +1461,8 @@ public Builder removePoints(int index) { return this; } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1264,13 +1473,16 @@ public Builder removePoints(int index) {
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.migration.v2alpha.Point.Builder getPointsBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2alpha.Point.Builder getPointsBuilder(int index) { return getPointsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1281,16 +1493,21 @@ public com.google.cloud.bigquery.migration.v2alpha.Point.Builder getPointsBuilde
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.migration.v2alpha.PointOrBuilder getPointsOrBuilder( int index) { if (pointsBuilder_ == null) { - return points_.get(index); } else { + return points_.get(index); + } else { return pointsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1301,10 +1518,12 @@ public com.google.cloud.bigquery.migration.v2alpha.PointOrBuilder getPointsOrBui
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getPointsOrBuilderList() { + public java.util.List + getPointsOrBuilderList() { if (pointsBuilder_ != null) { return pointsBuilder_.getMessageOrBuilderList(); } else { @@ -1312,6 +1531,8 @@ public com.google.cloud.bigquery.migration.v2alpha.PointOrBuilder getPointsOrBui } } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1322,13 +1543,17 @@ public com.google.cloud.bigquery.migration.v2alpha.PointOrBuilder getPointsOrBui
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.migration.v2alpha.Point.Builder addPointsBuilder() { - return getPointsFieldBuilder().addBuilder( - com.google.cloud.bigquery.migration.v2alpha.Point.getDefaultInstance()); + return getPointsFieldBuilder() + .addBuilder(com.google.cloud.bigquery.migration.v2alpha.Point.getDefaultInstance()); } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1339,14 +1564,18 @@ public com.google.cloud.bigquery.migration.v2alpha.Point.Builder addPointsBuilde
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.migration.v2alpha.Point.Builder addPointsBuilder( - int index) { - return getPointsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.migration.v2alpha.Point.getDefaultInstance()); + public com.google.cloud.bigquery.migration.v2alpha.Point.Builder addPointsBuilder(int index) { + return getPointsFieldBuilder() + .addBuilder( + index, com.google.cloud.bigquery.migration.v2alpha.Point.getDefaultInstance()); } /** + * + * *
      * Required. The data points of this time series. When listing time series, points are
      * returned in reverse time order.
@@ -1357,29 +1586,34 @@ public com.google.cloud.bigquery.migration.v2alpha.Point.Builder addPointsBuilde
      * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getPointsBuilderList() { + public java.util.List + getPointsBuilderList() { return getPointsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.Point, com.google.cloud.bigquery.migration.v2alpha.Point.Builder, com.google.cloud.bigquery.migration.v2alpha.PointOrBuilder> + com.google.cloud.bigquery.migration.v2alpha.Point, + com.google.cloud.bigquery.migration.v2alpha.Point.Builder, + com.google.cloud.bigquery.migration.v2alpha.PointOrBuilder> getPointsFieldBuilder() { if (pointsBuilder_ == null) { - pointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.Point, com.google.cloud.bigquery.migration.v2alpha.Point.Builder, com.google.cloud.bigquery.migration.v2alpha.PointOrBuilder>( - points_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); + pointsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2alpha.Point, + com.google.cloud.bigquery.migration.v2alpha.Point.Builder, + com.google.cloud.bigquery.migration.v2alpha.PointOrBuilder>( + points_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); points_ = null; } return pointsBuilder_; } + @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 +1623,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.TimeSeries) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.TimeSeries) private static final com.google.cloud.bigquery.migration.v2alpha.TimeSeries DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.TimeSeries(); } @@ -1403,27 +1637,27 @@ public static com.google.cloud.bigquery.migration.v2alpha.TimeSeries getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeSeries parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeSeries parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1438,6 +1672,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2alpha.TimeSeries getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeSeriesOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeSeriesOrBuilder.java similarity index 71% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeSeriesOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeSeriesOrBuilder.java index da671f7..91b6e84 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeSeriesOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TimeSeriesOrBuilder.java @@ -1,54 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_metrics.proto package com.google.cloud.bigquery.migration.v2alpha; -public interface TimeSeriesOrBuilder extends +public interface TimeSeriesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.TimeSeries) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the metric.
    * If the metric is not known by the service yet, it will be auto-created.
    * 
* * string metric = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The metric. */ java.lang.String getMetric(); /** + * + * *
    * Required. The name of the metric.
    * If the metric is not known by the service yet, it will be auto-created.
    * 
* * string metric = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for metric. */ - com.google.protobuf.ByteString - getMetricBytes(); + com.google.protobuf.ByteString getMetricBytes(); /** + * + * *
    * Required. The value type of the time series.
    * 
* - * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for valueType. */ int getValueTypeValue(); /** + * + * *
    * Required. The value type of the time series.
    * 
* - * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The valueType. */ com.google.api.MetricDescriptor.ValueType getValueType(); /** + * + * *
    * Optional. The metric kind of the time series.
    * If present, it must be the same as the metric kind of the associated
@@ -57,11 +90,16 @@ public interface TimeSeriesOrBuilder extends
    * either `GAUGE` (the default) or `CUMULATIVE`.
    * 
* - * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for metricKind. */ int getMetricKindValue(); /** + * + * *
    * Optional. The metric kind of the time series.
    * If present, it must be the same as the metric kind of the associated
@@ -70,12 +108,17 @@ public interface TimeSeriesOrBuilder extends
    * either `GAUGE` (the default) or `CUMULATIVE`.
    * 
* - * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The metricKind. */ com.google.api.MetricDescriptor.MetricKind getMetricKind(); /** + * + * *
    * Required. The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -86,11 +129,14 @@ public interface TimeSeriesOrBuilder extends
    * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getPointsList(); + java.util.List getPointsList(); /** + * + * *
    * Required. The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -101,10 +147,14 @@ public interface TimeSeriesOrBuilder extends
    * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.bigquery.migration.v2alpha.Point getPoints(int index); /** + * + * *
    * Required. The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -115,10 +165,14 @@ public interface TimeSeriesOrBuilder extends
    * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ int getPointsCount(); /** + * + * *
    * Required. The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -129,11 +183,15 @@ public interface TimeSeriesOrBuilder extends
    * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List getPointsOrBuilderList(); /** + * + * *
    * Required. The data points of this time series. When listing time series, points are
    * returned in reverse time order.
@@ -144,8 +202,9 @@ public interface TimeSeriesOrBuilder extends
    * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.bigquery.migration.v2alpha.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.bigquery.migration.v2alpha.PointOrBuilder getPointsOrBuilder( - int index); + com.google.cloud.bigquery.migration.v2alpha.PointOrBuilder getPointsOrBuilder(int index); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryRequest.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryRequest.java similarity index 61% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryRequest.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryRequest.java index 46d4e68..96eb87d 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryRequest.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/translation_service.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * The request of translating a SQL query to Standard SQL.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest} */ -public final class TranslateQueryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranslateQueryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest) TranslateQueryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranslateQueryRequest.newBuilder() to construct. private TranslateQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TranslateQueryRequest() { parent_ = ""; sourceDialect_ = 0; @@ -27,39 +45,44 @@ private TranslateQueryRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranslateQueryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.class, com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.class, + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.Builder.class); } /** + * + * *
    * Supported SQL translation source dialects.
    * 
* - * Protobuf enum {@code google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect} + * Protobuf enum {@code + * google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect} */ - public enum SqlTranslationSourceDialect - implements com.google.protobuf.ProtocolMessageEnum { + public enum SqlTranslationSourceDialect implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * SqlTranslationSourceDialect not specified.
      * 
@@ -68,6 +91,8 @@ public enum SqlTranslationSourceDialect */ SQL_TRANSLATION_SOURCE_DIALECT_UNSPECIFIED(0), /** + * + * *
      * Teradata SQL.
      * 
@@ -79,6 +104,8 @@ public enum SqlTranslationSourceDialect ; /** + * + * *
      * SqlTranslationSourceDialect not specified.
      * 
@@ -87,6 +114,8 @@ public enum SqlTranslationSourceDialect */ public static final int SQL_TRANSLATION_SOURCE_DIALECT_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Teradata SQL.
      * 
@@ -95,7 +124,6 @@ public enum SqlTranslationSourceDialect */ public static final int TERADATA_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -120,9 +148,12 @@ public static SqlTranslationSourceDialect valueOf(int value) { */ public static SqlTranslationSourceDialect forNumber(int value) { switch (value) { - case 0: return SQL_TRANSLATION_SOURCE_DIALECT_UNSPECIFIED; - case 1: return TERADATA; - default: return null; + case 0: + return SQL_TRANSLATION_SOURCE_DIALECT_UNSPECIFIED; + case 1: + return TERADATA; + default: + return null; } } @@ -130,29 +161,31 @@ public static SqlTranslationSourceDialect forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - SqlTranslationSourceDialect> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SqlTranslationSourceDialect findValueByNumber(int number) { - return SqlTranslationSourceDialect.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 SqlTranslationSourceDialect findValueByNumber(int number) { + return SqlTranslationSourceDialect.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.getDescriptor() + .getEnumTypes() + .get(0); } private static final SqlTranslationSourceDialect[] VALUES = values(); @@ -160,8 +193,7 @@ public SqlTranslationSourceDialect findValueByNumber(int number) { public static SqlTranslationSourceDialect valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -179,15 +211,21 @@ private SqlTranslationSourceDialect(int value) { } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The name of the project to which this translation request belongs.
    * Example: `projects/foo/locations/bar`
    * 
* - * string 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 @@ -196,30 +234,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The name of the project to which this translation request belongs.
    * Example: `projects/foo/locations/bar`
    * 
* - * string 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 { @@ -230,38 +270,62 @@ public java.lang.String getParent() { public static final int SOURCE_DIALECT_FIELD_NUMBER = 2; private int sourceDialect_ = 0; /** + * + * *
    * Required. The source SQL dialect of `queries`.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect source_dialect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect source_dialect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for sourceDialect. */ - @java.lang.Override public int getSourceDialectValue() { + @java.lang.Override + public int getSourceDialectValue() { return sourceDialect_; } /** + * + * *
    * Required. The source SQL dialect of `queries`.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect source_dialect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect source_dialect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The sourceDialect. */ - @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect getSourceDialect() { - com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect result = com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect.forNumber(sourceDialect_); - return result == null ? com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest + .SqlTranslationSourceDialect + getSourceDialect() { + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect + result = + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest + .SqlTranslationSourceDialect.forNumber(sourceDialect_); + return result == null + ? com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest + .SqlTranslationSourceDialect.UNRECOGNIZED + : result; } public static final int QUERY_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object query_ = ""; /** + * + * *
    * Required. The query to be translated.
    * 
* * string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The query. */ @java.lang.Override @@ -270,29 +334,29 @@ public java.lang.String getQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } } /** + * + * *
    * Required. The query to be translated.
    * 
* * string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for query. */ @java.lang.Override - public com.google.protobuf.ByteString - getQueryBytes() { + public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); query_ = b; return b; } else { @@ -301,6 +365,7 @@ public java.lang.String getQuery() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -312,12 +377,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (sourceDialect_ != com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect.SQL_TRANSLATION_SOURCE_DIALECT_UNSPECIFIED.getNumber()) { + if (sourceDialect_ + != com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest + .SqlTranslationSourceDialect.SQL_TRANSLATION_SOURCE_DIALECT_UNSPECIFIED + .getNumber()) { output.writeEnum(2, sourceDialect_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { @@ -335,9 +402,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (sourceDialect_ != com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect.SQL_TRANSLATION_SOURCE_DIALECT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, sourceDialect_); + if (sourceDialect_ + != com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest + .SqlTranslationSourceDialect.SQL_TRANSLATION_SOURCE_DIALECT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, sourceDialect_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, query_); @@ -350,18 +419,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest other = (com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest) obj; + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest other = + (com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (sourceDialect_ != other.sourceDialect_) return false; - if (!getQuery() - .equals(other.getQuery())) return false; + if (!getQuery().equals(other.getQuery())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -385,129 +453,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request of translating a SQL query to Standard SQL.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest) com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryRequest_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.class, com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.class, + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -519,13 +596,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest + getDefaultInstanceForType() { return com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.getDefaultInstance(); } @@ -540,13 +618,17 @@ public com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest build() @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest buildPartial() { - com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest result = new com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest result = + new com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -563,46 +645,50 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.Translate public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest) { - return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest other) { - if (other == com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest other) { + if (other + == com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -642,27 +728,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - sourceDialect_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - query_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + sourceDialect_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -672,23 +762,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the project to which this translation request belongs.
      * Example: `projects/foo/locations/bar`
      * 
* - * string 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; @@ -697,21 +792,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project to which this translation request belongs.
      * Example: `projects/foo/locations/bar`
      * 
* - * string 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 { @@ -719,30 +817,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project to which this translation request belongs.
      * Example: `projects/foo/locations/bar`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the project to which this translation request belongs.
      * Example: `projects/foo/locations/bar`
      * 
* - * string 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() { @@ -752,18 +861,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The name of the project to which this translation request belongs.
      * Example: `projects/foo/locations/bar`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -773,22 +888,33 @@ public Builder setParentBytes( private int sourceDialect_ = 0; /** + * + * *
      * Required. The source SQL dialect of `queries`.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect source_dialect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect source_dialect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for sourceDialect. */ - @java.lang.Override public int getSourceDialectValue() { + @java.lang.Override + public int getSourceDialectValue() { return sourceDialect_; } /** + * + * *
      * Required. The source SQL dialect of `queries`.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect source_dialect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect source_dialect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for sourceDialect to set. * @return This builder for chaining. */ @@ -799,28 +925,49 @@ public Builder setSourceDialectValue(int value) { return this; } /** + * + * *
      * Required. The source SQL dialect of `queries`.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect source_dialect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect source_dialect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The sourceDialect. */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect getSourceDialect() { - com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect result = com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect.forNumber(sourceDialect_); - return result == null ? com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect.UNRECOGNIZED : result; + public com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest + .SqlTranslationSourceDialect + getSourceDialect() { + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect + result = + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest + .SqlTranslationSourceDialect.forNumber(sourceDialect_); + return result == null + ? com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest + .SqlTranslationSourceDialect.UNRECOGNIZED + : result; } /** + * + * *
      * Required. The source SQL dialect of `queries`.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect source_dialect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect source_dialect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The sourceDialect to set. * @return This builder for chaining. */ - public Builder setSourceDialect(com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect value) { + public Builder setSourceDialect( + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest + .SqlTranslationSourceDialect + value) { if (value == null) { throw new NullPointerException(); } @@ -830,11 +977,16 @@ public Builder setSourceDialect(com.google.cloud.bigquery.migration.v2alpha.Tran return this; } /** + * + * *
      * Required. The source SQL dialect of `queries`.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect source_dialect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect source_dialect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearSourceDialect() { @@ -846,18 +998,20 @@ public Builder clearSourceDialect() { private java.lang.Object query_ = ""; /** + * + * *
      * Required. The query to be translated.
      * 
* * string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; @@ -866,20 +1020,21 @@ public java.lang.String getQuery() { } } /** + * + * *
      * Required. The query to be translated.
      * 
* * string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for query. */ - public com.google.protobuf.ByteString - getQueryBytes() { + public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); query_ = b; return b; } else { @@ -887,28 +1042,35 @@ public java.lang.String getQuery() { } } /** + * + * *
      * Required. The query to be translated.
      * 
* * string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The query to set. * @return This builder for chaining. */ - public Builder setQuery( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } query_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. The query to be translated.
      * 
* * string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearQuery() { @@ -918,26 +1080,30 @@ public Builder clearQuery() { return this; } /** + * + * *
      * Required. The query to be translated.
      * 
* * string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for query to set. * @return This builder for chaining. */ - public Builder setQueryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); query_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -947,41 +1113,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest) - private static final com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest(); } - public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateQueryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateQueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -993,9 +1161,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryRequestOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryRequestOrBuilder.java similarity index 50% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryRequestOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryRequestOrBuilder.java index 7dbf972..a521db0 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryRequestOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryRequestOrBuilder.java @@ -1,70 +1,111 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/translation_service.proto package com.google.cloud.bigquery.migration.v2alpha; -public interface TranslateQueryRequestOrBuilder extends +public interface TranslateQueryRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the project to which this translation request belongs.
    * Example: `projects/foo/locations/bar`
    * 
* - * string 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 name of the project to which this translation request belongs.
    * Example: `projects/foo/locations/bar`
    * 
* - * string 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 source SQL dialect of `queries`.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect source_dialect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect source_dialect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for sourceDialect. */ int getSourceDialectValue(); /** + * + * *
    * Required. The source SQL dialect of `queries`.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect source_dialect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect source_dialect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The sourceDialect. */ - com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect getSourceDialect(); + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect + getSourceDialect(); /** + * + * *
    * Required. The query to be translated.
    * 
* * string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The query. */ java.lang.String getQuery(); /** + * + * *
    * Required. The query to be translated.
    * 
* * string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for query. */ - com.google.protobuf.ByteString - getQueryBytes(); + com.google.protobuf.ByteString getQueryBytes(); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryResponse.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryResponse.java similarity index 67% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryResponse.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryResponse.java index d373644..6c095ec 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryResponse.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/translation_service.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * The response of translating a SQL query to Standard SQL.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse} */ -public final class TranslateQueryResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranslateQueryResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse) TranslateQueryResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranslateQueryResponse.newBuilder() to construct. private TranslateQueryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TranslateQueryResponse() { translationJob_ = ""; translatedQuery_ = ""; @@ -28,39 +46,46 @@ private TranslateQueryResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranslateQueryResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryResponse_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse.class, com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse.class, + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse.Builder.class); } public static final int TRANSLATION_JOB_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object translationJob_ = ""; /** + * + * *
    * Output only. Immutable. The unique identifier for the SQL translation job.
    * Example: `projects/123/locations/us/translation/1234`
    * 
* - * string translation_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string translation_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The translationJob. */ @java.lang.Override @@ -69,30 +94,32 @@ public java.lang.String getTranslationJob() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); translationJob_ = s; return s; } } /** + * + * *
    * Output only. Immutable. The unique identifier for the SQL translation job.
    * Example: `projects/123/locations/us/translation/1234`
    * 
* - * string translation_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string translation_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for translationJob. */ @java.lang.Override - public com.google.protobuf.ByteString - getTranslationJobBytes() { + public com.google.protobuf.ByteString getTranslationJobBytes() { java.lang.Object ref = translationJob_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); translationJob_ = b; return b; } else { @@ -101,14 +128,18 @@ public java.lang.String getTranslationJob() { } public static final int TRANSLATED_QUERY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object translatedQuery_ = ""; /** + * + * *
    * The translated result. This will be empty if the translation fails.
    * 
* * string translated_query = 1; + * * @return The translatedQuery. */ @java.lang.Override @@ -117,29 +148,29 @@ public java.lang.String getTranslatedQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); translatedQuery_ = s; return s; } } /** + * + * *
    * The translated result. This will be empty if the translation fails.
    * 
* * string translated_query = 1; + * * @return The bytes for translatedQuery. */ @java.lang.Override - public com.google.protobuf.ByteString - getTranslatedQueryBytes() { + public com.google.protobuf.ByteString getTranslatedQueryBytes() { java.lang.Object ref = translatedQuery_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); translatedQuery_ = b; return b; } else { @@ -148,9 +179,12 @@ public java.lang.String getTranslatedQuery() { } public static final int ERRORS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List errors_; /** + * + * *
    * The list of errors encountered during the translation, if present.
    * 
@@ -158,10 +192,13 @@ public java.lang.String getTranslatedQuery() { * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; */ @java.lang.Override - public java.util.List getErrorsList() { + public java.util.List + getErrorsList() { return errors_; } /** + * + * *
    * The list of errors encountered during the translation, if present.
    * 
@@ -169,11 +206,14 @@ public java.util.Listrepeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorOrBuilder> getErrorsOrBuilderList() { return errors_; } /** + * + * *
    * The list of errors encountered during the translation, if present.
    * 
@@ -185,6 +225,8 @@ public int getErrorsCount() { return errors_.size(); } /** + * + * *
    * The list of errors encountered during the translation, if present.
    * 
@@ -196,6 +238,8 @@ public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError getErrors return errors_.get(index); } /** + * + * *
    * The list of errors encountered during the translation, if present.
    * 
@@ -203,78 +247,98 @@ public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError getErrors * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorOrBuilder getErrorsOrBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorOrBuilder + getErrorsOrBuilder(int index) { return errors_.get(index); } public static final int WARNINGS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") - private java.util.List warnings_; + private java.util.List + warnings_; /** + * + * *
    * The list of warnings encountered during the translation, if present,
    * indicates non-semantically correct translation.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ @java.lang.Override - public java.util.List getWarningsList() { + public java.util.List + getWarningsList() { return warnings_; } /** + * + * *
    * The list of warnings encountered during the translation, if present,
    * indicates non-semantically correct translation.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarningOrBuilder> getWarningsOrBuilderList() { return warnings_; } /** + * + * *
    * The list of warnings encountered during the translation, if present,
    * indicates non-semantically correct translation.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ @java.lang.Override public int getWarningsCount() { return warnings_.size(); } /** + * + * *
    * The list of warnings encountered during the translation, if present,
    * indicates non-semantically correct translation.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning getWarnings(int index) { return warnings_.get(index); } /** + * + * *
    * The list of warnings encountered during the translation, if present,
    * indicates non-semantically correct translation.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarningOrBuilder getWarningsOrBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarningOrBuilder + getWarningsOrBuilder(int index) { return warnings_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -286,8 +350,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(translatedQuery_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, translatedQuery_); } @@ -313,12 +376,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, translatedQuery_); } for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, errors_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, errors_.get(i)); } for (int i = 0; i < warnings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, warnings_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, warnings_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(translationJob_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, translationJob_); @@ -331,21 +392,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse other = (com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse) obj; + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse other = + (com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse) obj; - if (!getTranslationJob() - .equals(other.getTranslationJob())) return false; - if (!getTranslatedQuery() - .equals(other.getTranslatedQuery())) return false; - if (!getErrorsList() - .equals(other.getErrorsList())) return false; - if (!getWarningsList() - .equals(other.getWarningsList())) return false; + if (!getTranslationJob().equals(other.getTranslationJob())) return false; + if (!getTranslatedQuery().equals(other.getTranslatedQuery())) return false; + if (!getErrorsList().equals(other.getErrorsList())) return false; + if (!getWarningsList().equals(other.getWarningsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -375,129 +433,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response of translating a SQL query to Standard SQL.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse) com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryResponse_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse.class, com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse.class, + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse.Builder.class); } - // Construct using com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -522,14 +589,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto.internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationServiceProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse getDefaultInstanceForType() { - return com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse.getDefaultInstance(); + public com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse + getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse + .getDefaultInstance(); } @java.lang.Override @@ -543,14 +612,18 @@ public com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse build( @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse buildPartial() { - com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse result = new com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse(this); + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse result = + new com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse result) { if (errorsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -571,7 +644,8 @@ private void buildPartialRepeatedFields(com.google.cloud.bigquery.migration.v2al } } - private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse result) { + private void buildPartial0( + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.translationJob_ = translationJob_; @@ -585,46 +659,51 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.Translate public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse) { - return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse)other); + return mergeFrom( + (com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse other) { - if (other == com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse other) { + if (other + == com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse + .getDefaultInstance()) return this; if (!other.getTranslationJob().isEmpty()) { translationJob_ = other.translationJob_; bitField0_ |= 0x00000001; @@ -653,9 +732,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.TranslateQu errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000004); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getErrorsFieldBuilder() : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : null; } else { errorsBuilder_.addAllMessages(other.errors_); } @@ -679,9 +759,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.TranslateQu warningsBuilder_ = null; warnings_ = other.warnings_; bitField0_ = (bitField0_ & ~0x00000008); - warningsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWarningsFieldBuilder() : null; + warningsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWarningsFieldBuilder() + : null; } else { warningsBuilder_.addAllMessages(other.warnings_); } @@ -713,48 +794,53 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - translatedQuery_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: { - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError m = - input.readMessage( - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.parser(), - extensionRegistry); - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(m); - } else { - errorsBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: { - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning m = - input.readMessage( - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.parser(), - extensionRegistry); - if (warningsBuilder_ == null) { - ensureWarningsIsMutable(); - warnings_.add(m); - } else { - warningsBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: { - translationJob_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + translatedQuery_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError m = + input.readMessage( + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.parser(), + extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning m = + input.readMessage( + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.parser(), + extensionRegistry); + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.add(m); + } else { + warningsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + translationJob_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -764,23 +850,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object translationJob_ = ""; /** + * + * *
      * Output only. Immutable. The unique identifier for the SQL translation job.
      * Example: `projects/123/locations/us/translation/1234`
      * 
* - * string translation_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string translation_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The translationJob. */ public java.lang.String getTranslationJob() { java.lang.Object ref = translationJob_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); translationJob_ = s; return s; @@ -789,21 +880,24 @@ public java.lang.String getTranslationJob() { } } /** + * + * *
      * Output only. Immutable. The unique identifier for the SQL translation job.
      * Example: `projects/123/locations/us/translation/1234`
      * 
* - * string translation_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string translation_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for translationJob. */ - public com.google.protobuf.ByteString - getTranslationJobBytes() { + public com.google.protobuf.ByteString getTranslationJobBytes() { java.lang.Object ref = translationJob_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); translationJob_ = b; return b; } else { @@ -811,30 +905,41 @@ public java.lang.String getTranslationJob() { } } /** + * + * *
      * Output only. Immutable. The unique identifier for the SQL translation job.
      * Example: `projects/123/locations/us/translation/1234`
      * 
* - * string translation_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string translation_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The translationJob to set. * @return This builder for chaining. */ - public Builder setTranslationJob( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTranslationJob(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } translationJob_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. Immutable. The unique identifier for the SQL translation job.
      * Example: `projects/123/locations/us/translation/1234`
      * 
* - * string translation_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string translation_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return This builder for chaining. */ public Builder clearTranslationJob() { @@ -844,18 +949,24 @@ public Builder clearTranslationJob() { return this; } /** + * + * *
      * Output only. Immutable. The unique identifier for the SQL translation job.
      * Example: `projects/123/locations/us/translation/1234`
      * 
* - * string translation_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string translation_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The bytes for translationJob to set. * @return This builder for chaining. */ - public Builder setTranslationJobBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTranslationJobBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); translationJob_ = value; bitField0_ |= 0x00000001; @@ -865,18 +976,20 @@ public Builder setTranslationJobBytes( private java.lang.Object translatedQuery_ = ""; /** + * + * *
      * The translated result. This will be empty if the translation fails.
      * 
* * string translated_query = 1; + * * @return The translatedQuery. */ public java.lang.String getTranslatedQuery() { java.lang.Object ref = translatedQuery_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); translatedQuery_ = s; return s; @@ -885,20 +998,21 @@ public java.lang.String getTranslatedQuery() { } } /** + * + * *
      * The translated result. This will be empty if the translation fails.
      * 
* * string translated_query = 1; + * * @return The bytes for translatedQuery. */ - public com.google.protobuf.ByteString - getTranslatedQueryBytes() { + public com.google.protobuf.ByteString getTranslatedQueryBytes() { java.lang.Object ref = translatedQuery_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); translatedQuery_ = b; return b; } else { @@ -906,28 +1020,35 @@ public java.lang.String getTranslatedQuery() { } } /** + * + * *
      * The translated result. This will be empty if the translation fails.
      * 
* * string translated_query = 1; + * * @param value The translatedQuery to set. * @return This builder for chaining. */ - public Builder setTranslatedQuery( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTranslatedQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } translatedQuery_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The translated result. This will be empty if the translation fails.
      * 
* * string translated_query = 1; + * * @return This builder for chaining. */ public Builder clearTranslatedQuery() { @@ -937,17 +1058,21 @@ public Builder clearTranslatedQuery() { return this; } /** + * + * *
      * The translated result. This will be empty if the translation fails.
      * 
* * string translated_query = 1; + * * @param value The bytes for translatedQuery to set. * @return This builder for chaining. */ - public Builder setTranslatedQueryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTranslatedQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); translatedQuery_ = value; bitField0_ |= 0x00000002; @@ -955,26 +1080,36 @@ public Builder setTranslatedQueryBytes( return this; } - private java.util.List errors_ = - java.util.Collections.emptyList(); + private java.util.List + errors_ = java.util.Collections.emptyList(); + private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - errors_ = new java.util.ArrayList(errors_); + errors_ = + new java.util.ArrayList< + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError>(errors_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.Builder, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorOrBuilder> errorsBuilder_; + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.Builder, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorOrBuilder> + errorsBuilder_; /** + * + * *
      * The list of errors encountered during the translation, if present.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * */ - public java.util.List getErrorsList() { + public java.util.List + getErrorsList() { if (errorsBuilder_ == null) { return java.util.Collections.unmodifiableList(errors_); } else { @@ -982,11 +1117,14 @@ public java.util.List * The list of errors encountered during the translation, if present. *
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * */ public int getErrorsCount() { if (errorsBuilder_ == null) { @@ -996,11 +1134,14 @@ public int getErrorsCount() { } } /** + * + * *
      * The list of errors encountered during the translation, if present.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * */ public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError getErrors(int index) { if (errorsBuilder_ == null) { @@ -1010,11 +1151,14 @@ public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError getErrors } } /** + * + * *
      * The list of errors encountered during the translation, if present.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * */ public Builder setErrors( int index, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError value) { @@ -1031,14 +1175,18 @@ public Builder setErrors( return this; } /** + * + * *
      * The list of errors encountered during the translation, if present.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * */ public Builder setErrors( - int index, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.Builder builderForValue) { + int index, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.set(index, builderForValue.build()); @@ -1049,13 +1197,17 @@ public Builder setErrors( return this; } /** + * + * *
      * The list of errors encountered during the translation, if present.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * */ - public Builder addErrors(com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError value) { + public Builder addErrors( + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1069,11 +1221,14 @@ public Builder addErrors(com.google.cloud.bigquery.migration.v2alpha.SqlTranslat return this; } /** + * + * *
      * The list of errors encountered during the translation, if present.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * */ public Builder addErrors( int index, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError value) { @@ -1090,11 +1245,14 @@ public Builder addErrors( return this; } /** + * + * *
      * The list of errors encountered during the translation, if present.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * */ public Builder addErrors( com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.Builder builderForValue) { @@ -1108,14 +1266,18 @@ public Builder addErrors( return this; } /** + * + * *
      * The list of errors encountered during the translation, if present.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * */ public Builder addErrors( - int index, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.Builder builderForValue) { + int index, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.add(index, builderForValue.build()); @@ -1126,18 +1288,22 @@ public Builder addErrors( return this; } /** + * + * *
      * The list of errors encountered during the translation, if present.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * */ public Builder addAllErrors( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError> + values) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, errors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); onChanged(); } else { errorsBuilder_.addAllMessages(values); @@ -1145,11 +1311,14 @@ public Builder addAllErrors( return this; } /** + * + * *
      * The list of errors encountered during the translation, if present.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * */ public Builder clearErrors() { if (errorsBuilder_ == null) { @@ -1162,11 +1331,14 @@ public Builder clearErrors() { return this; } /** + * + * *
      * The list of errors encountered during the translation, if present.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * */ public Builder removeErrors(int index) { if (errorsBuilder_ == null) { @@ -1179,39 +1351,50 @@ public Builder removeErrors(int index) { return this; } /** + * + * *
      * The list of errors encountered during the translation, if present.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * */ public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.Builder getErrorsBuilder( int index) { return getErrorsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of errors encountered during the translation, if present.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * */ - public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorOrBuilder getErrorsOrBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorOrBuilder + getErrorsOrBuilder(int index) { if (errorsBuilder_ == null) { - return errors_.get(index); } else { + return errors_.get(index); + } else { return errorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of errors encountered during the translation, if present.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * */ - public java.util.List - getErrorsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorOrBuilder> + getErrorsOrBuilderList() { if (errorsBuilder_ != null) { return errorsBuilder_.getMessageOrBuilderList(); } else { @@ -1219,75 +1402,101 @@ public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorOrBuilder } } /** + * + * *
      * The list of errors encountered during the translation, if present.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * */ - public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.Builder addErrorsBuilder() { - return getErrorsFieldBuilder().addBuilder( - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.getDefaultInstance()); + public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.Builder + addErrorsBuilder() { + return getErrorsFieldBuilder() + .addBuilder( + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.getDefaultInstance()); } /** + * + * *
      * The list of errors encountered during the translation, if present.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * */ public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.Builder addErrorsBuilder( int index) { - return getErrorsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.getDefaultInstance()); + return getErrorsFieldBuilder() + .addBuilder( + index, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.getDefaultInstance()); } /** + * + * *
      * The list of errors encountered during the translation, if present.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; + * */ - public java.util.List - getErrorsBuilderList() { + public java.util.List + getErrorsBuilderList() { return getErrorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.Builder, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorOrBuilder> + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.Builder, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorOrBuilder> getErrorsFieldBuilder() { if (errorsBuilder_ == null) { - errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.Builder, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorOrBuilder>( - errors_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError.Builder, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorOrBuilder>( + errors_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); errors_ = null; } return errorsBuilder_; } - private java.util.List warnings_ = - java.util.Collections.emptyList(); + private java.util.List + warnings_ = java.util.Collections.emptyList(); + private void ensureWarningsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - warnings_ = new java.util.ArrayList(warnings_); + warnings_ = + new java.util.ArrayList< + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning>(warnings_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.Builder, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarningOrBuilder> warningsBuilder_; + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.Builder, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarningOrBuilder> + warningsBuilder_; /** + * + * *
      * The list of warnings encountered during the translation, if present,
      * indicates non-semantically correct translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ - public java.util.List getWarningsList() { + public java.util.List + getWarningsList() { if (warningsBuilder_ == null) { return java.util.Collections.unmodifiableList(warnings_); } else { @@ -1295,12 +1504,15 @@ public java.util.List * The list of warnings encountered during the translation, if present, * indicates non-semantically correct translation. *
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ public int getWarningsCount() { if (warningsBuilder_ == null) { @@ -1310,14 +1522,18 @@ public int getWarningsCount() { } } /** + * + * *
      * The list of warnings encountered during the translation, if present,
      * indicates non-semantically correct translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ - public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning getWarnings(int index) { + public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning getWarnings( + int index) { if (warningsBuilder_ == null) { return warnings_.get(index); } else { @@ -1325,12 +1541,15 @@ public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning getWarn } } /** + * + * *
      * The list of warnings encountered during the translation, if present,
      * indicates non-semantically correct translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ public Builder setWarnings( int index, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning value) { @@ -1347,15 +1566,19 @@ public Builder setWarnings( return this; } /** + * + * *
      * The list of warnings encountered during the translation, if present,
      * indicates non-semantically correct translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ public Builder setWarnings( - int index, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.Builder builderForValue) { + int index, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.Builder builderForValue) { if (warningsBuilder_ == null) { ensureWarningsIsMutable(); warnings_.set(index, builderForValue.build()); @@ -1366,14 +1589,18 @@ public Builder setWarnings( return this; } /** + * + * *
      * The list of warnings encountered during the translation, if present,
      * indicates non-semantically correct translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ - public Builder addWarnings(com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning value) { + public Builder addWarnings( + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning value) { if (warningsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1387,12 +1614,15 @@ public Builder addWarnings(com.google.cloud.bigquery.migration.v2alpha.SqlTransl return this; } /** + * + * *
      * The list of warnings encountered during the translation, if present,
      * indicates non-semantically correct translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ public Builder addWarnings( int index, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning value) { @@ -1409,12 +1639,15 @@ public Builder addWarnings( return this; } /** + * + * *
      * The list of warnings encountered during the translation, if present,
      * indicates non-semantically correct translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ public Builder addWarnings( com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.Builder builderForValue) { @@ -1428,15 +1661,19 @@ public Builder addWarnings( return this; } /** + * + * *
      * The list of warnings encountered during the translation, if present,
      * indicates non-semantically correct translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ public Builder addWarnings( - int index, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.Builder builderForValue) { + int index, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.Builder builderForValue) { if (warningsBuilder_ == null) { ensureWarningsIsMutable(); warnings_.add(index, builderForValue.build()); @@ -1447,19 +1684,23 @@ public Builder addWarnings( return this; } /** + * + * *
      * The list of warnings encountered during the translation, if present,
      * indicates non-semantically correct translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ public Builder addAllWarnings( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning> + values) { if (warningsBuilder_ == null) { ensureWarningsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, warnings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); onChanged(); } else { warningsBuilder_.addAllMessages(values); @@ -1467,12 +1708,15 @@ public Builder addAllWarnings( return this; } /** + * + * *
      * The list of warnings encountered during the translation, if present,
      * indicates non-semantically correct translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ public Builder clearWarnings() { if (warningsBuilder_ == null) { @@ -1485,12 +1729,15 @@ public Builder clearWarnings() { return this; } /** + * + * *
      * The list of warnings encountered during the translation, if present,
      * indicates non-semantically correct translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ public Builder removeWarnings(int index) { if (warningsBuilder_ == null) { @@ -1503,42 +1750,53 @@ public Builder removeWarnings(int index) { return this; } /** + * + * *
      * The list of warnings encountered during the translation, if present,
      * indicates non-semantically correct translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ - public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.Builder getWarningsBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.Builder + getWarningsBuilder(int index) { return getWarningsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of warnings encountered during the translation, if present,
      * indicates non-semantically correct translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ - public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarningOrBuilder getWarningsOrBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarningOrBuilder + getWarningsOrBuilder(int index) { if (warningsBuilder_ == null) { - return warnings_.get(index); } else { + return warnings_.get(index); + } else { return warningsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of warnings encountered during the translation, if present,
      * indicates non-semantically correct translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ - public java.util.List - getWarningsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarningOrBuilder> + getWarningsOrBuilderList() { if (warningsBuilder_ != null) { return warningsBuilder_.getMessageOrBuilderList(); } else { @@ -1546,59 +1804,77 @@ public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarningOrBuilde } } /** + * + * *
      * The list of warnings encountered during the translation, if present,
      * indicates non-semantically correct translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ - public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.Builder addWarningsBuilder() { - return getWarningsFieldBuilder().addBuilder( - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.getDefaultInstance()); + public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.Builder + addWarningsBuilder() { + return getWarningsFieldBuilder() + .addBuilder( + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning + .getDefaultInstance()); } /** + * + * *
      * The list of warnings encountered during the translation, if present,
      * indicates non-semantically correct translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ - public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.Builder addWarningsBuilder( - int index) { - return getWarningsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.getDefaultInstance()); + public com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.Builder + addWarningsBuilder(int index) { + return getWarningsFieldBuilder() + .addBuilder( + index, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning + .getDefaultInstance()); } /** + * + * *
      * The list of warnings encountered during the translation, if present,
      * indicates non-semantically correct translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ - public java.util.List - getWarningsBuilderList() { + public java.util.List + getWarningsBuilderList() { return getWarningsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.Builder, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarningOrBuilder> + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.Builder, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarningOrBuilder> getWarningsFieldBuilder() { if (warningsBuilder_ == null) { - warningsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.Builder, com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarningOrBuilder>( - warnings_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); + warningsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning.Builder, + com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarningOrBuilder>( + warnings_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); warnings_ = null; } return warningsBuilder_; } + @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); } @@ -1608,41 +1884,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse) - private static final com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse(); } - public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslateQueryResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslateQueryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1654,9 +1932,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryResponseOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryResponseOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryResponseOrBuilder.java index e890a4a..ef368f4 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryResponseOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslateQueryResponseOrBuilder.java @@ -1,64 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/translation_service.proto package com.google.cloud.bigquery.migration.v2alpha; -public interface TranslateQueryResponseOrBuilder extends +public interface TranslateQueryResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Immutable. The unique identifier for the SQL translation job.
    * Example: `projects/123/locations/us/translation/1234`
    * 
* - * string translation_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string translation_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The translationJob. */ java.lang.String getTranslationJob(); /** + * + * *
    * Output only. Immutable. The unique identifier for the SQL translation job.
    * Example: `projects/123/locations/us/translation/1234`
    * 
* - * string translation_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * string translation_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for translationJob. */ - com.google.protobuf.ByteString - getTranslationJobBytes(); + com.google.protobuf.ByteString getTranslationJobBytes(); /** + * + * *
    * The translated result. This will be empty if the translation fails.
    * 
* * string translated_query = 1; + * * @return The translatedQuery. */ java.lang.String getTranslatedQuery(); /** + * + * *
    * The translated result. This will be empty if the translation fails.
    * 
* * string translated_query = 1; + * * @return The bytes for translatedQuery. */ - com.google.protobuf.ByteString - getTranslatedQueryBytes(); + com.google.protobuf.ByteString getTranslatedQueryBytes(); /** + * + * *
    * The list of errors encountered during the translation, if present.
    * 
* * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; */ - java.util.List - getErrorsList(); + java.util.List getErrorsList(); /** + * + * *
    * The list of errors encountered during the translation, if present.
    * 
@@ -67,6 +100,8 @@ public interface TranslateQueryResponseOrBuilder extends */ com.google.cloud.bigquery.migration.v2alpha.SqlTranslationError getErrors(int index); /** + * + * *
    * The list of errors encountered during the translation, if present.
    * 
@@ -75,15 +110,19 @@ public interface TranslateQueryResponseOrBuilder extends */ int getErrorsCount(); /** + * + * *
    * The list of errors encountered during the translation, if present.
    * 
* * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationError errors = 2; */ - java.util.List + java.util.List getErrorsOrBuilderList(); /** + * + * *
    * The list of errors encountered during the translation, if present.
    * 
@@ -94,50 +133,66 @@ com.google.cloud.bigquery.migration.v2alpha.SqlTranslationErrorOrBuilder getErro int index); /** + * + * *
    * The list of warnings encountered during the translation, if present,
    * indicates non-semantically correct translation.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ - java.util.List + java.util.List getWarningsList(); /** + * + * *
    * The list of warnings encountered during the translation, if present,
    * indicates non-semantically correct translation.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning getWarnings(int index); /** + * + * *
    * The list of warnings encountered during the translation, if present,
    * indicates non-semantically correct translation.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ int getWarningsCount(); /** + * + * *
    * The list of warnings encountered during the translation, if present,
    * indicates non-semantically correct translation.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarningOrBuilder> getWarningsOrBuilderList(); /** + * + * *
    * The list of warnings encountered during the translation, if present,
    * indicates non-semantically correct translation.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; + * */ com.google.cloud.bigquery.migration.v2alpha.SqlTranslationWarningOrBuilder getWarningsOrBuilder( int index); diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationFileMapping.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationFileMapping.java similarity index 64% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationFileMapping.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationFileMapping.java index f913d47..f75b79e 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationFileMapping.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationFileMapping.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/translation_task.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * Mapping between an input and output file to be translated in a subtask.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.TranslationFileMapping} */ -public final class TranslationFileMapping extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranslationFileMapping extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.TranslationFileMapping) TranslationFileMappingOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranslationFileMapping.newBuilder() to construct. private TranslationFileMapping(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TranslationFileMapping() { inputPath_ = ""; outputPath_ = ""; @@ -26,38 +44,43 @@ private TranslationFileMapping() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranslationFileMapping(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_TranslationFileMapping_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TranslationFileMapping_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_TranslationFileMapping_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TranslationFileMapping_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.class, com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.class, + com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.Builder.class); } public static final int INPUT_PATH_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object inputPath_ = ""; /** + * + * *
    * The Cloud Storage path for a file to translation in a subtask.
    * 
* * string input_path = 1; + * * @return The inputPath. */ @java.lang.Override @@ -66,29 +89,29 @@ public java.lang.String getInputPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputPath_ = s; return s; } } /** + * + * *
    * The Cloud Storage path for a file to translation in a subtask.
    * 
* * string input_path = 1; + * * @return The bytes for inputPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getInputPathBytes() { + public com.google.protobuf.ByteString getInputPathBytes() { java.lang.Object ref = inputPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputPath_ = b; return b; } else { @@ -97,14 +120,18 @@ public java.lang.String getInputPath() { } public static final int OUTPUT_PATH_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object outputPath_ = ""; /** + * + * *
    * The Cloud Storage path to write back the corresponding input file to.
    * 
* * string output_path = 2; + * * @return The outputPath. */ @java.lang.Override @@ -113,29 +140,29 @@ public java.lang.String getOutputPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputPath_ = s; return s; } } /** + * + * *
    * The Cloud Storage path to write back the corresponding input file to.
    * 
* * string output_path = 2; + * * @return The bytes for outputPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getOutputPathBytes() { + public com.google.protobuf.ByteString getOutputPathBytes() { java.lang.Object ref = outputPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputPath_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getOutputPath() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputPath_); } @@ -186,17 +213,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping other = (com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping) obj; + com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping other = + (com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping) obj; - if (!getInputPath() - .equals(other.getInputPath())) return false; - if (!getOutputPath() - .equals(other.getOutputPath())) return false; + if (!getInputPath().equals(other.getInputPath())) return false; + if (!getOutputPath().equals(other.getOutputPath())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -218,129 +244,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Mapping between an input and output file to be translated in a subtask.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.TranslationFileMapping} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.TranslationFileMapping) com.google.cloud.bigquery.migration.v2alpha.TranslationFileMappingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_TranslationFileMapping_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TranslationFileMapping_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_TranslationFileMapping_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TranslationFileMapping_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.class, com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.class, + com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.Builder.class); } - // Construct using com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,14 +386,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_TranslationFileMapping_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TranslationFileMapping_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping getDefaultInstanceForType() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.getDefaultInstance(); + public com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping + getDefaultInstanceForType() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping + .getDefaultInstance(); } @java.lang.Override @@ -372,13 +409,17 @@ public com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping build( @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping buildPartial() { - com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping result = new com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping result = + new com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping result) { + private void buildPartial0( + com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.inputPath_ = inputPath_; @@ -392,46 +433,51 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.Translati public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping) { - return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping)other); + return mergeFrom( + (com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping other) { - if (other == com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping other) { + if (other + == com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping + .getDefaultInstance()) return this; if (!other.getInputPath().isEmpty()) { inputPath_ = other.inputPath_; bitField0_ |= 0x00000001; @@ -468,22 +514,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - inputPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - outputPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + inputPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + outputPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -493,22 +542,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object inputPath_ = ""; /** + * + * *
      * The Cloud Storage path for a file to translation in a subtask.
      * 
* * string input_path = 1; + * * @return The inputPath. */ public java.lang.String getInputPath() { java.lang.Object ref = inputPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputPath_ = s; return s; @@ -517,20 +569,21 @@ public java.lang.String getInputPath() { } } /** + * + * *
      * The Cloud Storage path for a file to translation in a subtask.
      * 
* * string input_path = 1; + * * @return The bytes for inputPath. */ - public com.google.protobuf.ByteString - getInputPathBytes() { + public com.google.protobuf.ByteString getInputPathBytes() { java.lang.Object ref = inputPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputPath_ = b; return b; } else { @@ -538,28 +591,35 @@ public java.lang.String getInputPath() { } } /** + * + * *
      * The Cloud Storage path for a file to translation in a subtask.
      * 
* * string input_path = 1; + * * @param value The inputPath to set. * @return This builder for chaining. */ - public Builder setInputPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInputPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } inputPath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The Cloud Storage path for a file to translation in a subtask.
      * 
* * string input_path = 1; + * * @return This builder for chaining. */ public Builder clearInputPath() { @@ -569,17 +629,21 @@ public Builder clearInputPath() { return this; } /** + * + * *
      * The Cloud Storage path for a file to translation in a subtask.
      * 
* * string input_path = 1; + * * @param value The bytes for inputPath to set. * @return This builder for chaining. */ - public Builder setInputPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInputPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); inputPath_ = value; bitField0_ |= 0x00000001; @@ -589,18 +653,20 @@ public Builder setInputPathBytes( private java.lang.Object outputPath_ = ""; /** + * + * *
      * The Cloud Storage path to write back the corresponding input file to.
      * 
* * string output_path = 2; + * * @return The outputPath. */ public java.lang.String getOutputPath() { java.lang.Object ref = outputPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputPath_ = s; return s; @@ -609,20 +675,21 @@ public java.lang.String getOutputPath() { } } /** + * + * *
      * The Cloud Storage path to write back the corresponding input file to.
      * 
* * string output_path = 2; + * * @return The bytes for outputPath. */ - public com.google.protobuf.ByteString - getOutputPathBytes() { + public com.google.protobuf.ByteString getOutputPathBytes() { java.lang.Object ref = outputPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputPath_ = b; return b; } else { @@ -630,28 +697,35 @@ public java.lang.String getOutputPath() { } } /** + * + * *
      * The Cloud Storage path to write back the corresponding input file to.
      * 
* * string output_path = 2; + * * @param value The outputPath to set. * @return This builder for chaining. */ - public Builder setOutputPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOutputPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } outputPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The Cloud Storage path to write back the corresponding input file to.
      * 
* * string output_path = 2; + * * @return This builder for chaining. */ public Builder clearOutputPath() { @@ -661,26 +735,30 @@ public Builder clearOutputPath() { return this; } /** + * + * *
      * The Cloud Storage path to write back the corresponding input file to.
      * 
* * string output_path = 2; + * * @param value The bytes for outputPath to set. * @return This builder for chaining. */ - public Builder setOutputPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOutputPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); outputPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -690,41 +768,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.TranslationFileMapping) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.TranslationFileMapping) - private static final com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping(); } - public static com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslationFileMapping parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslationFileMapping parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -736,9 +816,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationFileMappingOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationFileMappingOrBuilder.java similarity index 58% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationFileMappingOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationFileMappingOrBuilder.java index 65ab50f..c08ad66 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationFileMappingOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationFileMappingOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/translation_task.proto package com.google.cloud.bigquery.migration.v2alpha; -public interface TranslationFileMappingOrBuilder extends +public interface TranslationFileMappingOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.TranslationFileMapping) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Cloud Storage path for a file to translation in a subtask.
    * 
* * string input_path = 1; + * * @return The inputPath. */ java.lang.String getInputPath(); /** + * + * *
    * The Cloud Storage path for a file to translation in a subtask.
    * 
* * string input_path = 1; + * * @return The bytes for inputPath. */ - com.google.protobuf.ByteString - getInputPathBytes(); + com.google.protobuf.ByteString getInputPathBytes(); /** + * + * *
    * The Cloud Storage path to write back the corresponding input file to.
    * 
* * string output_path = 2; + * * @return The outputPath. */ java.lang.String getOutputPath(); /** + * + * *
    * The Cloud Storage path to write back the corresponding input file to.
    * 
* * string output_path = 2; + * * @return The bytes for outputPath. */ - com.google.protobuf.ByteString - getOutputPathBytes(); + com.google.protobuf.ByteString getOutputPathBytes(); } diff --git a/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationServiceProto.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationServiceProto.java new file mode 100644 index 0000000..c896a8d --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationServiceProto.java @@ -0,0 +1,175 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2alpha/translation_service.proto + +package com.google.cloud.bigquery.migration.v2alpha; + +public final class TranslationServiceProto { + private TranslationServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationErrorDetail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationErrorDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationWarning_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationWarning_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nAgoogle/cloud/bigquery/migration/v2alph" + + "a/translation_service.proto\022\'google.clou" + + "d.bigquery.migration.v2alpha\032\034google/api" + + "/annotations.proto\032\027google/api/client.pr" + + "oto\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\"\274\002\n\025TranslateQue" + + "ryRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locat" + + "ions.googleapis.com/Location\022w\n\016source_d" + + "ialect\030\002 \001(\0162Z.google.cloud.bigquery.mig" + + "ration.v2alpha.TranslateQueryRequest.Sql" + + "TranslationSourceDialectB\003\340A\002\022\022\n\005query\030\003" + + " \001(\tB\003\340A\002\"[\n\033SqlTranslationSourceDialect" + + "\022.\n*SQL_TRANSLATION_SOURCE_DIALECT_UNSPE" + + "CIFIED\020\000\022\014\n\010TERADATA\020\001\"\363\001\n\026TranslateQuer" + + "yResponse\022\037\n\017translation_job\030\004 \001(\tB\006\340A\003\340" + + "A\005\022\030\n\020translated_query\030\001 \001(\t\022L\n\006errors\030\002" + + " \003(\0132<.google.cloud.bigquery.migration.v" + + "2alpha.SqlTranslationError\022P\n\010warnings\030\003" + + " \003(\0132>.google.cloud.bigquery.migration.v" + + "2alpha.SqlTranslationWarning\"I\n\031SqlTrans" + + "lationErrorDetail\022\013\n\003row\030\001 \001(\003\022\016\n\006column" + + "\030\002 \001(\003\022\017\n\007message\030\003 \001(\t\"\323\002\n\023SqlTranslati" + + "onError\022h\n\nerror_type\030\001 \001(\0162T.google.clo" + + "ud.bigquery.migration.v2alpha.SqlTransla" + + "tionError.SqlTranslationErrorType\022X\n\014err" + + "or_detail\030\002 \001(\0132B.google.cloud.bigquery." + + "migration.v2alpha.SqlTranslationErrorDet" + + "ail\"x\n\027SqlTranslationErrorType\022*\n&SQL_TR" + + "ANSLATION_ERROR_TYPE_UNSPECIFIED\020\000\022\023\n\017SQ" + + "L_PARSE_ERROR\020\001\022\034\n\030UNSUPPORTED_SQL_FUNCT" + + "ION\020\002\"s\n\025SqlTranslationWarning\022Z\n\016warnin" + + "g_detail\030\001 \001(\0132B.google.cloud.bigquery.m" + + "igration.v2alpha.SqlTranslationErrorDeta" + + "il2\343\002\n\025SqlTranslationService\022\363\001\n\016Transla" + + "teQuery\022>.google.cloud.bigquery.migratio" + + "n.v2alpha.TranslateQueryRequest\032?.google" + + ".cloud.bigquery.migration.v2alpha.Transl" + + "ateQueryResponse\"`\202\323\344\223\002<\"7/v2alpha/{pare" + + "nt=projects/*/locations/*}:translateQuer" + + "y:\001*\332A\033parent,source_dialect,query\032T\312A b" + + "igquerymigration.googleapis.com\322A.https:" + + "//www.googleapis.com/auth/cloud-platform" + + "B\347\001\n+com.google.cloud.bigquery.migration" + + ".v2alphaB\027TranslationServiceProtoP\001ZIclo" + + "ud.google.com/go/bigquery/migration/apiv" + + "2alpha/migrationpb;migrationpb\252\002\'Google." + + "Cloud.BigQuery.Migration.V2Alpha\312\002\'Googl" + + "e\\Cloud\\BigQuery\\Migration\\V2alphab\006prot" + + "o3" + }; + 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(), + }); + internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryRequest_descriptor, + new java.lang.String[] { + "Parent", "SourceDialect", "Query", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_TranslateQueryResponse_descriptor, + new java.lang.String[] { + "TranslationJob", "TranslatedQuery", "Errors", "Warnings", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationErrorDetail_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationErrorDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationErrorDetail_descriptor, + new java.lang.String[] { + "Row", "Column", "Message", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationError_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationError_descriptor, + new java.lang.String[] { + "ErrorType", "ErrorDetail", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationWarning_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationWarning_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_SqlTranslationWarning_descriptor, + new java.lang.String[] { + "WarningDetail", + }); + 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); + 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(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationTaskDetails.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationTaskDetails.java similarity index 65% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationTaskDetails.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationTaskDetails.java index 28edd1b..e7f5693 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationTaskDetails.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationTaskDetails.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/translation_task.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * The translation task config to capture necessary settings for a translation
  * task and subtask.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails}
  */
-public final class TranslationTaskDetails extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TranslationTaskDetails extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails)
     TranslationTaskDetailsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TranslationTaskDetails.newBuilder() to construct.
   private TranslationTaskDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TranslationTaskDetails() {
     inputPath_ = "";
     outputPath_ = "";
@@ -31,51 +49,55 @@ private TranslationTaskDetails() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TranslationTaskDetails();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto
+        .internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_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 6:
         return internalGetSpecialTokenMap();
       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.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_fieldAccessorTable
+    return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto
+        .internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.class, com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.Builder.class);
+            com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.class,
+            com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The file encoding types.
    * 
* - * Protobuf enum {@code google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding} + * Protobuf enum {@code + * google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding} */ - public enum FileEncoding - implements com.google.protobuf.ProtocolMessageEnum { + public enum FileEncoding implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * File encoding setting is not specified.
      * 
@@ -84,6 +106,8 @@ public enum FileEncoding */ FILE_ENCODING_UNSPECIFIED(0), /** + * + * *
      * File encoding is UTF_8.
      * 
@@ -92,6 +116,8 @@ public enum FileEncoding */ UTF_8(1), /** + * + * *
      * File encoding is ISO_8859_1.
      * 
@@ -100,6 +126,8 @@ public enum FileEncoding */ ISO_8859_1(2), /** + * + * *
      * File encoding is US_ASCII.
      * 
@@ -108,6 +136,8 @@ public enum FileEncoding */ US_ASCII(3), /** + * + * *
      * File encoding is UTF_16.
      * 
@@ -116,6 +146,8 @@ public enum FileEncoding */ UTF_16(4), /** + * + * *
      * File encoding is UTF_16LE.
      * 
@@ -124,6 +156,8 @@ public enum FileEncoding */ UTF_16LE(5), /** + * + * *
      * File encoding is UTF_16BE.
      * 
@@ -135,6 +169,8 @@ public enum FileEncoding ; /** + * + * *
      * File encoding setting is not specified.
      * 
@@ -143,6 +179,8 @@ public enum FileEncoding */ public static final int FILE_ENCODING_UNSPECIFIED_VALUE = 0; /** + * + * *
      * File encoding is UTF_8.
      * 
@@ -151,6 +189,8 @@ public enum FileEncoding */ public static final int UTF_8_VALUE = 1; /** + * + * *
      * File encoding is ISO_8859_1.
      * 
@@ -159,6 +199,8 @@ public enum FileEncoding */ public static final int ISO_8859_1_VALUE = 2; /** + * + * *
      * File encoding is US_ASCII.
      * 
@@ -167,6 +209,8 @@ public enum FileEncoding */ public static final int US_ASCII_VALUE = 3; /** + * + * *
      * File encoding is UTF_16.
      * 
@@ -175,6 +219,8 @@ public enum FileEncoding */ public static final int UTF_16_VALUE = 4; /** + * + * *
      * File encoding is UTF_16LE.
      * 
@@ -183,6 +229,8 @@ public enum FileEncoding */ public static final int UTF_16LE_VALUE = 5; /** + * + * *
      * File encoding is UTF_16BE.
      * 
@@ -191,7 +239,6 @@ public enum FileEncoding */ public static final int UTF_16BE_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -216,53 +263,59 @@ public static FileEncoding valueOf(int value) { */ public static FileEncoding forNumber(int value) { switch (value) { - case 0: return FILE_ENCODING_UNSPECIFIED; - case 1: return UTF_8; - case 2: return ISO_8859_1; - case 3: return US_ASCII; - case 4: return UTF_16; - case 5: return UTF_16LE; - case 6: return UTF_16BE; - default: return null; + case 0: + return FILE_ENCODING_UNSPECIFIED; + case 1: + return UTF_8; + case 2: + return ISO_8859_1; + case 3: + return US_ASCII; + case 4: + return UTF_16; + case 5: + return UTF_16LE; + case 6: + return UTF_16BE; + 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< - FileEncoding> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public FileEncoding findValueByNumber(int number) { - return FileEncoding.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 FileEncoding findValueByNumber(int number) { + return FileEncoding.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.getDescriptor() + .getEnumTypes() + .get(0); } private static final FileEncoding[] VALUES = values(); - public static FileEncoding valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static FileEncoding 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; @@ -280,15 +333,18 @@ private FileEncoding(int value) { } /** + * + * *
    * The special token data type.
    * 
* * Protobuf enum {@code google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType} */ - public enum TokenType - implements com.google.protobuf.ProtocolMessageEnum { + public enum TokenType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Token type is not specified.
      * 
@@ -297,6 +353,8 @@ public enum TokenType */ TOKEN_TYPE_UNSPECIFIED(0), /** + * + * *
      * Token type as string.
      * 
@@ -305,6 +363,8 @@ public enum TokenType */ STRING(1), /** + * + * *
      * Token type as integer.
      * 
@@ -313,6 +373,8 @@ public enum TokenType */ INT64(2), /** + * + * *
      * Token type as numeric.
      * 
@@ -321,6 +383,8 @@ public enum TokenType */ NUMERIC(3), /** + * + * *
      * Token type as boolean.
      * 
@@ -329,6 +393,8 @@ public enum TokenType */ BOOL(4), /** + * + * *
      * Token type as float.
      * 
@@ -337,6 +403,8 @@ public enum TokenType */ FLOAT64(5), /** + * + * *
      * Token type as date.
      * 
@@ -345,6 +413,8 @@ public enum TokenType */ DATE(6), /** + * + * *
      * Token type as timestamp.
      * 
@@ -356,6 +426,8 @@ public enum TokenType ; /** + * + * *
      * Token type is not specified.
      * 
@@ -364,6 +436,8 @@ public enum TokenType */ public static final int TOKEN_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Token type as string.
      * 
@@ -372,6 +446,8 @@ public enum TokenType */ public static final int STRING_VALUE = 1; /** + * + * *
      * Token type as integer.
      * 
@@ -380,6 +456,8 @@ public enum TokenType */ public static final int INT64_VALUE = 2; /** + * + * *
      * Token type as numeric.
      * 
@@ -388,6 +466,8 @@ public enum TokenType */ public static final int NUMERIC_VALUE = 3; /** + * + * *
      * Token type as boolean.
      * 
@@ -396,6 +476,8 @@ public enum TokenType */ public static final int BOOL_VALUE = 4; /** + * + * *
      * Token type as float.
      * 
@@ -404,6 +486,8 @@ public enum TokenType */ public static final int FLOAT64_VALUE = 5; /** + * + * *
      * Token type as date.
      * 
@@ -412,6 +496,8 @@ public enum TokenType */ public static final int DATE_VALUE = 6; /** + * + * *
      * Token type as timestamp.
      * 
@@ -420,7 +506,6 @@ public enum TokenType */ public static final int TIMESTAMP_VALUE = 7; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -445,54 +530,61 @@ public static TokenType valueOf(int value) { */ public static TokenType forNumber(int value) { switch (value) { - case 0: return TOKEN_TYPE_UNSPECIFIED; - case 1: return STRING; - case 2: return INT64; - case 3: return NUMERIC; - case 4: return BOOL; - case 5: return FLOAT64; - case 6: return DATE; - case 7: return TIMESTAMP; - default: return null; + case 0: + return TOKEN_TYPE_UNSPECIFIED; + case 1: + return STRING; + case 2: + return INT64; + case 3: + return NUMERIC; + case 4: + return BOOL; + case 5: + return FLOAT64; + case 6: + return DATE; + case 7: + return TIMESTAMP; + 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< - TokenType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TokenType findValueByNumber(int number) { - return TokenType.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 TokenType findValueByNumber(int number) { + return TokenType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.getDescriptor() + .getEnumTypes() + .get(1); } private static final TokenType[] VALUES = values(); - public static TokenType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static TokenType 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; @@ -511,13 +603,16 @@ private TokenType(int value) { private int languageOptionsCase_ = 0; private java.lang.Object languageOptions_; + public enum LanguageOptionsCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TERADATA_OPTIONS(10), BTEQ_OPTIONS(11), LANGUAGEOPTIONS_NOT_SET(0); private final int value; + private LanguageOptionsCase(int value) { this.value = value; } @@ -533,30 +628,36 @@ public static LanguageOptionsCase valueOf(int value) { public static LanguageOptionsCase forNumber(int value) { switch (value) { - case 10: return TERADATA_OPTIONS; - case 11: return BTEQ_OPTIONS; - case 0: return LANGUAGEOPTIONS_NOT_SET; - default: return null; + case 10: + return TERADATA_OPTIONS; + case 11: + return BTEQ_OPTIONS; + case 0: + return LANGUAGEOPTIONS_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public LanguageOptionsCase - getLanguageOptionsCase() { - return LanguageOptionsCase.forNumber( - languageOptionsCase_); + public LanguageOptionsCase getLanguageOptionsCase() { + return LanguageOptionsCase.forNumber(languageOptionsCase_); } public static final int TERADATA_OPTIONS_FIELD_NUMBER = 10; /** + * + * *
    * The Teradata SQL specific settings for the translation task.
    * 
* * .google.cloud.bigquery.migration.v2alpha.TeradataOptions teradata_options = 10; + * * @return Whether the teradataOptions field is set. */ @java.lang.Override @@ -564,21 +665,26 @@ public boolean hasTeradataOptions() { return languageOptionsCase_ == 10; } /** + * + * *
    * The Teradata SQL specific settings for the translation task.
    * 
* * .google.cloud.bigquery.migration.v2alpha.TeradataOptions teradata_options = 10; + * * @return The teradataOptions. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.TeradataOptions getTeradataOptions() { if (languageOptionsCase_ == 10) { - return (com.google.cloud.bigquery.migration.v2alpha.TeradataOptions) languageOptions_; + return (com.google.cloud.bigquery.migration.v2alpha.TeradataOptions) languageOptions_; } return com.google.cloud.bigquery.migration.v2alpha.TeradataOptions.getDefaultInstance(); } /** + * + * *
    * The Teradata SQL specific settings for the translation task.
    * 
@@ -586,20 +692,24 @@ public com.google.cloud.bigquery.migration.v2alpha.TeradataOptions getTeradataOp * .google.cloud.bigquery.migration.v2alpha.TeradataOptions teradata_options = 10; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.TeradataOptionsOrBuilder getTeradataOptionsOrBuilder() { + public com.google.cloud.bigquery.migration.v2alpha.TeradataOptionsOrBuilder + getTeradataOptionsOrBuilder() { if (languageOptionsCase_ == 10) { - return (com.google.cloud.bigquery.migration.v2alpha.TeradataOptions) languageOptions_; + return (com.google.cloud.bigquery.migration.v2alpha.TeradataOptions) languageOptions_; } return com.google.cloud.bigquery.migration.v2alpha.TeradataOptions.getDefaultInstance(); } public static final int BTEQ_OPTIONS_FIELD_NUMBER = 11; /** + * + * *
    * The BTEQ specific settings for the translation task.
    * 
* * .google.cloud.bigquery.migration.v2alpha.BteqOptions bteq_options = 11; + * * @return Whether the bteqOptions field is set. */ @java.lang.Override @@ -607,21 +717,26 @@ public boolean hasBteqOptions() { return languageOptionsCase_ == 11; } /** + * + * *
    * The BTEQ specific settings for the translation task.
    * 
* * .google.cloud.bigquery.migration.v2alpha.BteqOptions bteq_options = 11; + * * @return The bteqOptions. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.BteqOptions getBteqOptions() { if (languageOptionsCase_ == 11) { - return (com.google.cloud.bigquery.migration.v2alpha.BteqOptions) languageOptions_; + return (com.google.cloud.bigquery.migration.v2alpha.BteqOptions) languageOptions_; } return com.google.cloud.bigquery.migration.v2alpha.BteqOptions.getDefaultInstance(); } /** + * + * *
    * The BTEQ specific settings for the translation task.
    * 
@@ -629,22 +744,27 @@ public com.google.cloud.bigquery.migration.v2alpha.BteqOptions getBteqOptions() * .google.cloud.bigquery.migration.v2alpha.BteqOptions bteq_options = 11; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.BteqOptionsOrBuilder getBteqOptionsOrBuilder() { + public com.google.cloud.bigquery.migration.v2alpha.BteqOptionsOrBuilder + getBteqOptionsOrBuilder() { if (languageOptionsCase_ == 11) { - return (com.google.cloud.bigquery.migration.v2alpha.BteqOptions) languageOptions_; + return (com.google.cloud.bigquery.migration.v2alpha.BteqOptions) languageOptions_; } return com.google.cloud.bigquery.migration.v2alpha.BteqOptions.getDefaultInstance(); } public static final int INPUT_PATH_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object inputPath_ = ""; /** + * + * *
    * The Cloud Storage path for translation input files.
    * 
* * string input_path = 1; + * * @return The inputPath. */ @java.lang.Override @@ -653,29 +773,29 @@ public java.lang.String getInputPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputPath_ = s; return s; } } /** + * + * *
    * The Cloud Storage path for translation input files.
    * 
* * string input_path = 1; + * * @return The bytes for inputPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getInputPathBytes() { + public com.google.protobuf.ByteString getInputPathBytes() { java.lang.Object ref = inputPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputPath_ = b; return b; } else { @@ -684,14 +804,18 @@ public java.lang.String getInputPath() { } public static final int OUTPUT_PATH_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object outputPath_ = ""; /** + * + * *
    * The Cloud Storage path for translation output files.
    * 
* * string output_path = 2; + * * @return The outputPath. */ @java.lang.Override @@ -700,29 +824,29 @@ public java.lang.String getOutputPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputPath_ = s; return s; } } /** + * + * *
    * The Cloud Storage path for translation output files.
    * 
* * string output_path = 2; + * * @return The bytes for outputPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getOutputPathBytes() { + public com.google.protobuf.ByteString getOutputPathBytes() { java.lang.Object ref = outputPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputPath_ = b; return b; } else { @@ -731,76 +855,100 @@ public java.lang.String getOutputPath() { } public static final int FILE_PATHS_FIELD_NUMBER = 12; + @SuppressWarnings("serial") - private java.util.List filePaths_; + private java.util.List + filePaths_; /** + * + * *
    * Cloud Storage files to be processed for translation.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ @java.lang.Override - public java.util.List getFilePathsList() { + public java.util.List + getFilePathsList() { return filePaths_; } /** + * + * *
    * Cloud Storage files to be processed for translation.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.bigquery.migration.v2alpha.TranslationFileMappingOrBuilder> getFilePathsOrBuilderList() { return filePaths_; } /** + * + * *
    * Cloud Storage files to be processed for translation.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ @java.lang.Override public int getFilePathsCount() { return filePaths_.size(); } /** + * + * *
    * Cloud Storage files to be processed for translation.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping getFilePaths(int index) { + public com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping getFilePaths( + int index) { return filePaths_.get(index); } /** + * + * *
    * Cloud Storage files to be processed for translation.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.TranslationFileMappingOrBuilder getFilePathsOrBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2alpha.TranslationFileMappingOrBuilder + getFilePathsOrBuilder(int index) { return filePaths_.get(index); } public static final int SCHEMA_PATH_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object schemaPath_ = ""; /** + * + * *
    * The Cloud Storage path to DDL files as table schema to assist semantic
    * translation.
    * 
* * string schema_path = 3; + * * @return The schemaPath. */ @java.lang.Override @@ -809,30 +957,30 @@ public java.lang.String getSchemaPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaPath_ = s; return s; } } /** + * + * *
    * The Cloud Storage path to DDL files as table schema to assist semantic
    * translation.
    * 
* * string schema_path = 3; + * * @return The bytes for schemaPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getSchemaPathBytes() { + public com.google.protobuf.ByteString getSchemaPathBytes() { java.lang.Object ref = schemaPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schemaPath_ = b; return b; } else { @@ -843,37 +991,59 @@ public java.lang.String getSchemaPath() { public static final int FILE_ENCODING_FIELD_NUMBER = 4; private int fileEncoding_ = 0; /** + * + * *
    * The file encoding type.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding file_encoding = 4; + * + * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding file_encoding = 4; + * + * * @return The enum numeric value on the wire for fileEncoding. */ - @java.lang.Override public int getFileEncodingValue() { + @java.lang.Override + public int getFileEncodingValue() { return fileEncoding_; } /** + * + * *
    * The file encoding type.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding file_encoding = 4; + * + * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding file_encoding = 4; + * + * * @return The fileEncoding. */ - @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding getFileEncoding() { - com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding result = com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding.forNumber(fileEncoding_); - return result == null ? com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding + getFileEncoding() { + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding result = + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding.forNumber( + fileEncoding_); + return result == null + ? com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding + .UNRECOGNIZED + : result; } public static final int IDENTIFIER_SETTINGS_FIELD_NUMBER = 5; private com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifierSettings_; /** + * + * *
    * The settings for SQL identifiers.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * + * * @return Whether the identifierSettings field is set. */ @java.lang.Override @@ -881,69 +1051,94 @@ public boolean hasIdentifierSettings() { return identifierSettings_ != null; } /** + * + * *
    * The settings for SQL identifiers.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * + * * @return The identifierSettings. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings getIdentifierSettings() { - return identifierSettings_ == null ? com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.getDefaultInstance() : identifierSettings_; + return identifierSettings_ == null + ? com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.getDefaultInstance() + : identifierSettings_; } /** + * + * *
    * The settings for SQL identifiers.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.IdentifierSettingsOrBuilder getIdentifierSettingsOrBuilder() { - return identifierSettings_ == null ? com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.getDefaultInstance() : identifierSettings_; + public com.google.cloud.bigquery.migration.v2alpha.IdentifierSettingsOrBuilder + getIdentifierSettingsOrBuilder() { + return identifierSettings_ == null + ? com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.getDefaultInstance() + : identifierSettings_; } public static final int SPECIAL_TOKEN_MAP_FIELD_NUMBER = 6; + private static final class SpecialTokenMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_SpecialTokenMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.ENUM, - com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType.TOKEN_TYPE_UNSPECIFIED.getNumber()); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_SpecialTokenMapEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.ENUM, + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType + .TOKEN_TYPE_UNSPECIFIED + .getNumber()); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> specialTokenMap_; + private com.google.protobuf.MapField specialTokenMap_; + private com.google.protobuf.MapField - internalGetSpecialTokenMap() { + internalGetSpecialTokenMap() { if (specialTokenMap_ == null) { return com.google.protobuf.MapField.emptyMapField( SpecialTokenMapDefaultEntryHolder.defaultEntry); } return specialTokenMap_; } - private static final - com.google.protobuf.Internal.MapAdapter.Converter< - java.lang.Integer, com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> specialTokenMapValueConverter = + + private static final com.google.protobuf.Internal.MapAdapter.Converter< + java.lang.Integer, + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> + specialTokenMapValueConverter = com.google.protobuf.Internal.MapAdapter.newEnumConverter( - com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType.internalGetValueMap(), - com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType.UNRECOGNIZED); - private static final java.util.Map - internalGetAdaptedSpecialTokenMapMap( - java.util.Map map) { + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType + .internalGetValueMap(), + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType + .UNRECOGNIZED); + + private static final java.util.Map< + java.lang.String, + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> + internalGetAdaptedSpecialTokenMapMap(java.util.Map map) { return new com.google.protobuf.Internal.MapAdapter< - java.lang.String, com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType, java.lang.Integer>( - map, specialTokenMapValueConverter); + java.lang.String, + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType, + java.lang.Integer>(map, specialTokenMapValueConverter); } + public int getSpecialTokenMapCount() { return internalGetSpecialTokenMap().getMap().size(); } /** + * + * *
    * The map capturing special tokens to be replaced during translation. The key
    * is special token in string. The value is the token data type. This is used
@@ -953,24 +1148,29 @@ public int getSpecialTokenMapCount() {
    * how to parse them into proper structure with type information.
    * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * + * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * */ @java.lang.Override - public boolean containsSpecialTokenMap( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsSpecialTokenMap(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetSpecialTokenMap().getMap().containsKey(key); } - /** - * Use {@link #getSpecialTokenMapMap()} instead. - */ + /** Use {@link #getSpecialTokenMapMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getSpecialTokenMap() { + public java.util.Map< + java.lang.String, + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> + getSpecialTokenMap() { return getSpecialTokenMapMap(); } /** + * + * *
    * The map capturing special tokens to be replaced during translation. The key
    * is special token in string. The value is the token data type. This is used
@@ -980,14 +1180,20 @@ public boolean containsSpecialTokenMap(
    * how to parse them into proper structure with type information.
    * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * + * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * */ @java.lang.Override - public java.util.Map - getSpecialTokenMapMap() { - return internalGetAdaptedSpecialTokenMapMap( - internalGetSpecialTokenMap().getMap());} + public java.util.Map< + java.lang.String, + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> + getSpecialTokenMapMap() { + return internalGetAdaptedSpecialTokenMapMap(internalGetSpecialTokenMap().getMap()); + } /** + * + * *
    * The map capturing special tokens to be replaced during translation. The key
    * is special token in string. The value is the token data type. This is used
@@ -997,22 +1203,28 @@ public boolean containsSpecialTokenMap(
    * how to parse them into proper structure with type information.
    * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * + * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * */ @java.lang.Override - public /* nullable */ -com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType getSpecialTokenMapOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetSpecialTokenMap().getMap(); + public /* nullable */ com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType + getSpecialTokenMapOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType + defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetSpecialTokenMap().getMap(); return map.containsKey(key) - ? specialTokenMapValueConverter.doForward(map.get(key)) - : defaultValue; + ? specialTokenMapValueConverter.doForward(map.get(key)) + : defaultValue; } /** + * + * *
    * The map capturing special tokens to be replaced during translation. The key
    * is special token in string. The value is the token data type. This is used
@@ -1022,29 +1234,31 @@ com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType get
    * how to parse them into proper structure with type information.
    * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * + * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType getSpecialTokenMapOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetSpecialTokenMap().getMap(); + public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType + getSpecialTokenMapOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetSpecialTokenMap().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return specialTokenMapValueConverter.doForward(map.get(key)); } - /** - * Use {@link #getSpecialTokenMapValueMap()} instead. - */ + /** Use {@link #getSpecialTokenMapValueMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getSpecialTokenMapValue() { + public java.util.Map getSpecialTokenMapValue() { return getSpecialTokenMapValueMap(); } /** + * + * *
    * The map capturing special tokens to be replaced during translation. The key
    * is special token in string. The value is the token data type. This is used
@@ -1054,14 +1268,17 @@ public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenT
    * how to parse them into proper structure with type information.
    * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * + * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * */ @java.lang.Override - public java.util.Map - getSpecialTokenMapValueMap() { + public java.util.Map getSpecialTokenMapValueMap() { return internalGetSpecialTokenMap().getMap(); } /** + * + * *
    * The map capturing special tokens to be replaced during translation. The key
    * is special token in string. The value is the token data type. This is used
@@ -1071,18 +1288,21 @@ public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenT
    * how to parse them into proper structure with type information.
    * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * + * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * */ @java.lang.Override - public int getSpecialTokenMapValueOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetSpecialTokenMap().getMap(); + public int getSpecialTokenMapValueOrDefault(java.lang.String key, int defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetSpecialTokenMap().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * The map capturing special tokens to be replaced during translation. The key
    * is special token in string. The value is the token data type. This is used
@@ -1092,14 +1312,16 @@ public int getSpecialTokenMapValueOrDefault(
    * how to parse them into proper structure with type information.
    * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * + * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * */ @java.lang.Override - public int getSpecialTokenMapValueOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetSpecialTokenMap().getMap(); + public int getSpecialTokenMapValueOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetSpecialTokenMap().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1109,11 +1331,14 @@ public int getSpecialTokenMapValueOrThrow( public static final int FILTER_FIELD_NUMBER = 7; private com.google.cloud.bigquery.migration.v2alpha.Filter filter_; /** + * + * *
    * The filter applied to translation details.
    * 
* * .google.cloud.bigquery.migration.v2alpha.Filter filter = 7; + * * @return Whether the filter field is set. */ @java.lang.Override @@ -1121,18 +1346,25 @@ public boolean hasFilter() { return filter_ != null; } /** + * + * *
    * The filter applied to translation details.
    * 
* * .google.cloud.bigquery.migration.v2alpha.Filter filter = 7; + * * @return The filter. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.Filter getFilter() { - return filter_ == null ? com.google.cloud.bigquery.migration.v2alpha.Filter.getDefaultInstance() : filter_; + return filter_ == null + ? com.google.cloud.bigquery.migration.v2alpha.Filter.getDefaultInstance() + : filter_; } /** + * + * *
    * The filter applied to translation details.
    * 
@@ -1141,13 +1373,18 @@ public com.google.cloud.bigquery.migration.v2alpha.Filter getFilter() { */ @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.FilterOrBuilder getFilterOrBuilder() { - return filter_ == null ? com.google.cloud.bigquery.migration.v2alpha.Filter.getDefaultInstance() : filter_; + return filter_ == null + ? com.google.cloud.bigquery.migration.v2alpha.Filter.getDefaultInstance() + : filter_; } public static final int TRANSLATION_EXCEPTION_TABLE_FIELD_NUMBER = 13; + @SuppressWarnings("serial") private volatile java.lang.Object translationExceptionTable_ = ""; /** + * + * *
    * Specifies the exact name of the bigquery table ("dataset.table") to be used
    * for surfacing raw translation errors. If the table does not exist, we will
@@ -1156,6 +1393,7 @@ public com.google.cloud.bigquery.migration.v2alpha.FilterOrBuilder getFilterOrBu
    * 
* * string translation_exception_table = 13; + * * @return The translationExceptionTable. */ @java.lang.Override @@ -1164,14 +1402,15 @@ public java.lang.String getTranslationExceptionTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); translationExceptionTable_ = s; return s; } } /** + * + * *
    * Specifies the exact name of the bigquery table ("dataset.table") to be used
    * for surfacing raw translation errors. If the table does not exist, we will
@@ -1180,16 +1419,15 @@ public java.lang.String getTranslationExceptionTable() {
    * 
* * string translation_exception_table = 13; + * * @return The bytes for translationExceptionTable. */ @java.lang.Override - public com.google.protobuf.ByteString - getTranslationExceptionTableBytes() { + public com.google.protobuf.ByteString getTranslationExceptionTableBytes() { java.lang.Object ref = translationExceptionTable_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); translationExceptionTable_ = b; return b; } else { @@ -1198,6 +1436,7 @@ public java.lang.String getTranslationExceptionTable() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1209,8 +1448,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputPath_); } @@ -1220,26 +1458,27 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, schemaPath_); } - if (fileEncoding_ != com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding.FILE_ENCODING_UNSPECIFIED.getNumber()) { + if (fileEncoding_ + != com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding + .FILE_ENCODING_UNSPECIFIED + .getNumber()) { output.writeEnum(4, fileEncoding_); } if (identifierSettings_ != null) { output.writeMessage(5, getIdentifierSettings()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetSpecialTokenMap(), - SpecialTokenMapDefaultEntryHolder.defaultEntry, - 6); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetSpecialTokenMap(), SpecialTokenMapDefaultEntryHolder.defaultEntry, 6); if (filter_ != null) { output.writeMessage(7, getFilter()); } if (languageOptionsCase_ == 10) { - output.writeMessage(10, (com.google.cloud.bigquery.migration.v2alpha.TeradataOptions) languageOptions_); + output.writeMessage( + 10, (com.google.cloud.bigquery.migration.v2alpha.TeradataOptions) languageOptions_); } if (languageOptionsCase_ == 11) { - output.writeMessage(11, (com.google.cloud.bigquery.migration.v2alpha.BteqOptions) languageOptions_); + output.writeMessage( + 11, (com.google.cloud.bigquery.migration.v2alpha.BteqOptions) languageOptions_); } for (int i = 0; i < filePaths_.size(); i++) { output.writeMessage(12, filePaths_.get(i)); @@ -1265,42 +1504,44 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaPath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schemaPath_); } - if (fileEncoding_ != com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding.FILE_ENCODING_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, fileEncoding_); + if (fileEncoding_ + != com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding + .FILE_ENCODING_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, fileEncoding_); } if (identifierSettings_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getIdentifierSettings()); - } - for (java.util.Map.Entry entry - : internalGetSpecialTokenMap().getMap().entrySet()) { - com.google.protobuf.MapEntry - specialTokenMap__ = SpecialTokenMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, specialTokenMap__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getIdentifierSettings()); + } + for (java.util.Map.Entry entry : + internalGetSpecialTokenMap().getMap().entrySet()) { + com.google.protobuf.MapEntry specialTokenMap__ = + SpecialTokenMapDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, specialTokenMap__); } if (filter_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getFilter()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getFilter()); } if (languageOptionsCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (com.google.cloud.bigquery.migration.v2alpha.TeradataOptions) languageOptions_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, (com.google.cloud.bigquery.migration.v2alpha.TeradataOptions) languageOptions_); } if (languageOptionsCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (com.google.cloud.bigquery.migration.v2alpha.BteqOptions) languageOptions_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.cloud.bigquery.migration.v2alpha.BteqOptions) languageOptions_); } for (int i = 0; i < filePaths_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, filePaths_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, filePaths_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(translationExceptionTable_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, translationExceptionTable_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(13, translationExceptionTable_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1310,45 +1551,36 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails other = (com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails) obj; + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails other = + (com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails) obj; - if (!getInputPath() - .equals(other.getInputPath())) return false; - if (!getOutputPath() - .equals(other.getOutputPath())) return false; - if (!getFilePathsList() - .equals(other.getFilePathsList())) return false; - if (!getSchemaPath() - .equals(other.getSchemaPath())) return false; + if (!getInputPath().equals(other.getInputPath())) return false; + if (!getOutputPath().equals(other.getOutputPath())) return false; + if (!getFilePathsList().equals(other.getFilePathsList())) return false; + if (!getSchemaPath().equals(other.getSchemaPath())) return false; if (fileEncoding_ != other.fileEncoding_) return false; if (hasIdentifierSettings() != other.hasIdentifierSettings()) return false; if (hasIdentifierSettings()) { - if (!getIdentifierSettings() - .equals(other.getIdentifierSettings())) return false; + if (!getIdentifierSettings().equals(other.getIdentifierSettings())) return false; } - if (!internalGetSpecialTokenMap().equals( - other.internalGetSpecialTokenMap())) return false; + if (!internalGetSpecialTokenMap().equals(other.internalGetSpecialTokenMap())) return false; if (hasFilter() != other.hasFilter()) return false; if (hasFilter()) { - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getFilter().equals(other.getFilter())) return false; } - if (!getTranslationExceptionTable() - .equals(other.getTranslationExceptionTable())) return false; + if (!getTranslationExceptionTable().equals(other.getTranslationExceptionTable())) return false; if (!getLanguageOptionsCase().equals(other.getLanguageOptionsCase())) return false; switch (languageOptionsCase_) { case 10: - if (!getTeradataOptions() - .equals(other.getTeradataOptions())) return false; + if (!getTeradataOptions().equals(other.getTeradataOptions())) return false; break; case 11: - if (!getBteqOptions() - .equals(other.getBteqOptions())) return false; + if (!getBteqOptions().equals(other.getBteqOptions())) return false; break; case 0: default: @@ -1408,96 +1640,105 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 translation task config to capture necessary settings for a translation
    * task and subtask.
@@ -1505,55 +1746,53 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails)
       com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetailsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto
+          .internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 6:
           return internalGetSpecialTokenMap();
         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 6:
           return internalGetMutableSpecialTokenMap();
         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.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_fieldAccessorTable
+      return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto
+          .internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.class, com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.Builder.class);
+              com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.class,
+              com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.Builder.class);
     }
 
-    // Construct using com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.newBuilder()
-    private Builder() {
+    // Construct using
+    // com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.newBuilder()
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1593,14 +1832,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto.internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskProto
+          .internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails getDefaultInstanceForType() {
-      return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.getDefaultInstance();
+    public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails
+        getDefaultInstanceForType() {
+      return com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -1614,15 +1855,19 @@ public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails build(
 
     @java.lang.Override
     public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails buildPartial() {
-      com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails result = new com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails(this);
+      com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails result =
+          new com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails result) {
       if (filePathsBuilder_ == null) {
         if (((bitField0_ & 0x00000010) != 0)) {
           filePaths_ = java.util.Collections.unmodifiableList(filePaths_);
@@ -1634,7 +1879,8 @@ private void buildPartialRepeatedFields(com.google.cloud.bigquery.migration.v2al
       }
     }
 
-    private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails result) {
+    private void buildPartial0(
+        com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.inputPath_ = inputPath_;
@@ -1649,33 +1895,31 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.Translati
         result.fileEncoding_ = fileEncoding_;
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.identifierSettings_ = identifierSettingsBuilder_ == null
-            ? identifierSettings_
-            : identifierSettingsBuilder_.build();
+        result.identifierSettings_ =
+            identifierSettingsBuilder_ == null
+                ? identifierSettings_
+                : identifierSettingsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
         result.specialTokenMap_ = internalGetSpecialTokenMap();
         result.specialTokenMap_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.filter_ = filterBuilder_ == null
-            ? filter_
-            : filterBuilder_.build();
+        result.filter_ = filterBuilder_ == null ? filter_ : filterBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
         result.translationExceptionTable_ = translationExceptionTable_;
       }
     }
 
-    private void buildPartialOneofs(com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails result) {
+    private void buildPartialOneofs(
+        com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails result) {
       result.languageOptionsCase_ = languageOptionsCase_;
       result.languageOptions_ = this.languageOptions_;
-      if (languageOptionsCase_ == 10 &&
-          teradataOptionsBuilder_ != null) {
+      if (languageOptionsCase_ == 10 && teradataOptionsBuilder_ != null) {
         result.languageOptions_ = teradataOptionsBuilder_.build();
       }
-      if (languageOptionsCase_ == 11 &&
-          bteqOptionsBuilder_ != null) {
+      if (languageOptionsCase_ == 11 && bteqOptionsBuilder_ != null) {
         result.languageOptions_ = bteqOptionsBuilder_.build();
       }
     }
@@ -1684,46 +1928,51 @@ private void buildPartialOneofs(com.google.cloud.bigquery.migration.v2alpha.Tran
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails) {
-        return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails)other);
+        return mergeFrom(
+            (com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails other) {
-      if (other == com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails other) {
+      if (other
+          == com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails
+              .getDefaultInstance()) return this;
       if (!other.getInputPath().isEmpty()) {
         inputPath_ = other.inputPath_;
         bitField0_ |= 0x00000004;
@@ -1752,9 +2001,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.Translation
             filePathsBuilder_ = null;
             filePaths_ = other.filePaths_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            filePathsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getFilePathsFieldBuilder() : null;
+            filePathsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getFilePathsFieldBuilder()
+                    : null;
           } else {
             filePathsBuilder_.addAllMessages(other.filePaths_);
           }
@@ -1771,8 +2021,7 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.Translation
       if (other.hasIdentifierSettings()) {
         mergeIdentifierSettings(other.getIdentifierSettings());
       }
-      internalGetMutableSpecialTokenMap().mergeFrom(
-          other.internalGetSpecialTokenMap());
+      internalGetMutableSpecialTokenMap().mergeFrom(other.internalGetSpecialTokenMap());
       bitField0_ |= 0x00000100;
       if (other.hasFilter()) {
         mergeFilter(other.getFilter());
@@ -1783,17 +2032,20 @@ public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.Translation
         onChanged();
       }
       switch (other.getLanguageOptionsCase()) {
-        case TERADATA_OPTIONS: {
-          mergeTeradataOptions(other.getTeradataOptions());
-          break;
-        }
-        case BTEQ_OPTIONS: {
-          mergeBteqOptions(other.getBteqOptions());
-          break;
-        }
-        case LANGUAGEOPTIONS_NOT_SET: {
-          break;
-        }
+        case TERADATA_OPTIONS:
+          {
+            mergeTeradataOptions(other.getTeradataOptions());
+            break;
+          }
+        case BTEQ_OPTIONS:
+          {
+            mergeBteqOptions(other.getBteqOptions());
+            break;
+          }
+        case LANGUAGEOPTIONS_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1821,87 +2073,95 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              inputPath_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 10
-            case 18: {
-              outputPath_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 18
-            case 26: {
-              schemaPath_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 26
-            case 32: {
-              fileEncoding_ = input.readEnum();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 32
-            case 42: {
-              input.readMessage(
-                  getIdentifierSettingsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 42
-            case 50: {
-              com.google.protobuf.MapEntry
-              specialTokenMap__ = input.readMessage(
-                  SpecialTokenMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableSpecialTokenMap().getMutableMap().put(
-                  specialTokenMap__.getKey(), specialTokenMap__.getValue());
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getFilterFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 58
-            case 82: {
-              input.readMessage(
-                  getTeradataOptionsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              languageOptionsCase_ = 10;
-              break;
-            } // case 82
-            case 90: {
-              input.readMessage(
-                  getBteqOptionsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              languageOptionsCase_ = 11;
-              break;
-            } // case 90
-            case 98: {
-              com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping m =
-                  input.readMessage(
-                      com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.parser(),
-                      extensionRegistry);
-              if (filePathsBuilder_ == null) {
-                ensureFilePathsIsMutable();
-                filePaths_.add(m);
-              } else {
-                filePathsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 98
-            case 106: {
-              translationExceptionTable_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 106
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                inputPath_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 10
+            case 18:
+              {
+                outputPath_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 18
+            case 26:
+              {
+                schemaPath_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 26
+            case 32:
+              {
+                fileEncoding_ = input.readEnum();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 32
+            case 42:
+              {
+                input.readMessage(
+                    getIdentifierSettingsFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 42
+            case 50:
+              {
+                com.google.protobuf.MapEntry
+                    specialTokenMap__ =
+                        input.readMessage(
+                            SpecialTokenMapDefaultEntryHolder.defaultEntry.getParserForType(),
+                            extensionRegistry);
+                internalGetMutableSpecialTokenMap()
+                    .getMutableMap()
+                    .put(specialTokenMap__.getKey(), specialTokenMap__.getValue());
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getFilterFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 58
+            case 82:
+              {
+                input.readMessage(getTeradataOptionsFieldBuilder().getBuilder(), extensionRegistry);
+                languageOptionsCase_ = 10;
+                break;
+              } // case 82
+            case 90:
+              {
+                input.readMessage(getBteqOptionsFieldBuilder().getBuilder(), extensionRegistry);
+                languageOptionsCase_ = 11;
+                break;
+              } // case 90
+            case 98:
+              {
+                com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping m =
+                    input.readMessage(
+                        com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.parser(),
+                        extensionRegistry);
+                if (filePathsBuilder_ == null) {
+                  ensureFilePathsIsMutable();
+                  filePaths_.add(m);
+                } else {
+                  filePathsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 98
+            case 106:
+              {
+                translationExceptionTable_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 106
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1911,12 +2171,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int languageOptionsCase_ = 0;
     private java.lang.Object languageOptions_;
-    public LanguageOptionsCase
-        getLanguageOptionsCase() {
-      return LanguageOptionsCase.forNumber(
-          languageOptionsCase_);
+
+    public LanguageOptionsCase getLanguageOptionsCase() {
+      return LanguageOptionsCase.forNumber(languageOptionsCase_);
     }
 
     public Builder clearLanguageOptions() {
@@ -1929,13 +2189,19 @@ public Builder clearLanguageOptions() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.migration.v2alpha.TeradataOptions, com.google.cloud.bigquery.migration.v2alpha.TeradataOptions.Builder, com.google.cloud.bigquery.migration.v2alpha.TeradataOptionsOrBuilder> teradataOptionsBuilder_;
+            com.google.cloud.bigquery.migration.v2alpha.TeradataOptions,
+            com.google.cloud.bigquery.migration.v2alpha.TeradataOptions.Builder,
+            com.google.cloud.bigquery.migration.v2alpha.TeradataOptionsOrBuilder>
+        teradataOptionsBuilder_;
     /**
+     *
+     *
      * 
      * The Teradata SQL specific settings for the translation task.
      * 
* * .google.cloud.bigquery.migration.v2alpha.TeradataOptions teradata_options = 10; + * * @return Whether the teradataOptions field is set. */ @java.lang.Override @@ -1943,11 +2209,14 @@ public boolean hasTeradataOptions() { return languageOptionsCase_ == 10; } /** + * + * *
      * The Teradata SQL specific settings for the translation task.
      * 
* * .google.cloud.bigquery.migration.v2alpha.TeradataOptions teradata_options = 10; + * * @return The teradataOptions. */ @java.lang.Override @@ -1965,13 +2234,16 @@ public com.google.cloud.bigquery.migration.v2alpha.TeradataOptions getTeradataOp } } /** + * + * *
      * The Teradata SQL specific settings for the translation task.
      * 
* * .google.cloud.bigquery.migration.v2alpha.TeradataOptions teradata_options = 10; */ - public Builder setTeradataOptions(com.google.cloud.bigquery.migration.v2alpha.TeradataOptions value) { + public Builder setTeradataOptions( + com.google.cloud.bigquery.migration.v2alpha.TeradataOptions value) { if (teradataOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1985,6 +2257,8 @@ public Builder setTeradataOptions(com.google.cloud.bigquery.migration.v2alpha.Te return this; } /** + * + * *
      * The Teradata SQL specific settings for the translation task.
      * 
@@ -2003,18 +2277,27 @@ public Builder setTeradataOptions( return this; } /** + * + * *
      * The Teradata SQL specific settings for the translation task.
      * 
* * .google.cloud.bigquery.migration.v2alpha.TeradataOptions teradata_options = 10; */ - public Builder mergeTeradataOptions(com.google.cloud.bigquery.migration.v2alpha.TeradataOptions value) { + public Builder mergeTeradataOptions( + com.google.cloud.bigquery.migration.v2alpha.TeradataOptions value) { if (teradataOptionsBuilder_ == null) { - if (languageOptionsCase_ == 10 && - languageOptions_ != com.google.cloud.bigquery.migration.v2alpha.TeradataOptions.getDefaultInstance()) { - languageOptions_ = com.google.cloud.bigquery.migration.v2alpha.TeradataOptions.newBuilder((com.google.cloud.bigquery.migration.v2alpha.TeradataOptions) languageOptions_) - .mergeFrom(value).buildPartial(); + if (languageOptionsCase_ == 10 + && languageOptions_ + != com.google.cloud.bigquery.migration.v2alpha.TeradataOptions + .getDefaultInstance()) { + languageOptions_ = + com.google.cloud.bigquery.migration.v2alpha.TeradataOptions.newBuilder( + (com.google.cloud.bigquery.migration.v2alpha.TeradataOptions) + languageOptions_) + .mergeFrom(value) + .buildPartial(); } else { languageOptions_ = value; } @@ -2030,6 +2313,8 @@ public Builder mergeTeradataOptions(com.google.cloud.bigquery.migration.v2alpha. return this; } /** + * + * *
      * The Teradata SQL specific settings for the translation task.
      * 
@@ -2053,16 +2338,21 @@ public Builder clearTeradataOptions() { return this; } /** + * + * *
      * The Teradata SQL specific settings for the translation task.
      * 
* * .google.cloud.bigquery.migration.v2alpha.TeradataOptions teradata_options = 10; */ - public com.google.cloud.bigquery.migration.v2alpha.TeradataOptions.Builder getTeradataOptionsBuilder() { + public com.google.cloud.bigquery.migration.v2alpha.TeradataOptions.Builder + getTeradataOptionsBuilder() { return getTeradataOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * The Teradata SQL specific settings for the translation task.
      * 
@@ -2070,7 +2360,8 @@ public com.google.cloud.bigquery.migration.v2alpha.TeradataOptions.Builder getTe * .google.cloud.bigquery.migration.v2alpha.TeradataOptions teradata_options = 10; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.TeradataOptionsOrBuilder getTeradataOptionsOrBuilder() { + public com.google.cloud.bigquery.migration.v2alpha.TeradataOptionsOrBuilder + getTeradataOptionsOrBuilder() { if ((languageOptionsCase_ == 10) && (teradataOptionsBuilder_ != null)) { return teradataOptionsBuilder_.getMessageOrBuilder(); } else { @@ -2081,6 +2372,8 @@ public com.google.cloud.bigquery.migration.v2alpha.TeradataOptionsOrBuilder getT } } /** + * + * *
      * The Teradata SQL specific settings for the translation task.
      * 
@@ -2088,14 +2381,20 @@ public com.google.cloud.bigquery.migration.v2alpha.TeradataOptionsOrBuilder getT * .google.cloud.bigquery.migration.v2alpha.TeradataOptions teradata_options = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.TeradataOptions, com.google.cloud.bigquery.migration.v2alpha.TeradataOptions.Builder, com.google.cloud.bigquery.migration.v2alpha.TeradataOptionsOrBuilder> + com.google.cloud.bigquery.migration.v2alpha.TeradataOptions, + com.google.cloud.bigquery.migration.v2alpha.TeradataOptions.Builder, + com.google.cloud.bigquery.migration.v2alpha.TeradataOptionsOrBuilder> getTeradataOptionsFieldBuilder() { if (teradataOptionsBuilder_ == null) { if (!(languageOptionsCase_ == 10)) { - languageOptions_ = com.google.cloud.bigquery.migration.v2alpha.TeradataOptions.getDefaultInstance(); + languageOptions_ = + com.google.cloud.bigquery.migration.v2alpha.TeradataOptions.getDefaultInstance(); } - teradataOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.TeradataOptions, com.google.cloud.bigquery.migration.v2alpha.TeradataOptions.Builder, com.google.cloud.bigquery.migration.v2alpha.TeradataOptionsOrBuilder>( + teradataOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2alpha.TeradataOptions, + com.google.cloud.bigquery.migration.v2alpha.TeradataOptions.Builder, + com.google.cloud.bigquery.migration.v2alpha.TeradataOptionsOrBuilder>( (com.google.cloud.bigquery.migration.v2alpha.TeradataOptions) languageOptions_, getParentForChildren(), isClean()); @@ -2107,13 +2406,19 @@ public com.google.cloud.bigquery.migration.v2alpha.TeradataOptionsOrBuilder getT } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.BteqOptions, com.google.cloud.bigquery.migration.v2alpha.BteqOptions.Builder, com.google.cloud.bigquery.migration.v2alpha.BteqOptionsOrBuilder> bteqOptionsBuilder_; + com.google.cloud.bigquery.migration.v2alpha.BteqOptions, + com.google.cloud.bigquery.migration.v2alpha.BteqOptions.Builder, + com.google.cloud.bigquery.migration.v2alpha.BteqOptionsOrBuilder> + bteqOptionsBuilder_; /** + * + * *
      * The BTEQ specific settings for the translation task.
      * 
* * .google.cloud.bigquery.migration.v2alpha.BteqOptions bteq_options = 11; + * * @return Whether the bteqOptions field is set. */ @java.lang.Override @@ -2121,11 +2426,14 @@ public boolean hasBteqOptions() { return languageOptionsCase_ == 11; } /** + * + * *
      * The BTEQ specific settings for the translation task.
      * 
* * .google.cloud.bigquery.migration.v2alpha.BteqOptions bteq_options = 11; + * * @return The bteqOptions. */ @java.lang.Override @@ -2143,6 +2451,8 @@ public com.google.cloud.bigquery.migration.v2alpha.BteqOptions getBteqOptions() } } /** + * + * *
      * The BTEQ specific settings for the translation task.
      * 
@@ -2163,6 +2473,8 @@ public Builder setBteqOptions(com.google.cloud.bigquery.migration.v2alpha.BteqOp return this; } /** + * + * *
      * The BTEQ specific settings for the translation task.
      * 
@@ -2181,6 +2493,8 @@ public Builder setBteqOptions( return this; } /** + * + * *
      * The BTEQ specific settings for the translation task.
      * 
@@ -2189,10 +2503,14 @@ public Builder setBteqOptions( */ public Builder mergeBteqOptions(com.google.cloud.bigquery.migration.v2alpha.BteqOptions value) { if (bteqOptionsBuilder_ == null) { - if (languageOptionsCase_ == 11 && - languageOptions_ != com.google.cloud.bigquery.migration.v2alpha.BteqOptions.getDefaultInstance()) { - languageOptions_ = com.google.cloud.bigquery.migration.v2alpha.BteqOptions.newBuilder((com.google.cloud.bigquery.migration.v2alpha.BteqOptions) languageOptions_) - .mergeFrom(value).buildPartial(); + if (languageOptionsCase_ == 11 + && languageOptions_ + != com.google.cloud.bigquery.migration.v2alpha.BteqOptions.getDefaultInstance()) { + languageOptions_ = + com.google.cloud.bigquery.migration.v2alpha.BteqOptions.newBuilder( + (com.google.cloud.bigquery.migration.v2alpha.BteqOptions) languageOptions_) + .mergeFrom(value) + .buildPartial(); } else { languageOptions_ = value; } @@ -2208,6 +2526,8 @@ public Builder mergeBteqOptions(com.google.cloud.bigquery.migration.v2alpha.Bteq return this; } /** + * + * *
      * The BTEQ specific settings for the translation task.
      * 
@@ -2231,6 +2551,8 @@ public Builder clearBteqOptions() { return this; } /** + * + * *
      * The BTEQ specific settings for the translation task.
      * 
@@ -2241,6 +2563,8 @@ public com.google.cloud.bigquery.migration.v2alpha.BteqOptions.Builder getBteqOp return getBteqOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * The BTEQ specific settings for the translation task.
      * 
@@ -2248,7 +2572,8 @@ public com.google.cloud.bigquery.migration.v2alpha.BteqOptions.Builder getBteqOp * .google.cloud.bigquery.migration.v2alpha.BteqOptions bteq_options = 11; */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.BteqOptionsOrBuilder getBteqOptionsOrBuilder() { + public com.google.cloud.bigquery.migration.v2alpha.BteqOptionsOrBuilder + getBteqOptionsOrBuilder() { if ((languageOptionsCase_ == 11) && (bteqOptionsBuilder_ != null)) { return bteqOptionsBuilder_.getMessageOrBuilder(); } else { @@ -2259,6 +2584,8 @@ public com.google.cloud.bigquery.migration.v2alpha.BteqOptionsOrBuilder getBteqO } } /** + * + * *
      * The BTEQ specific settings for the translation task.
      * 
@@ -2266,14 +2593,20 @@ public com.google.cloud.bigquery.migration.v2alpha.BteqOptionsOrBuilder getBteqO * .google.cloud.bigquery.migration.v2alpha.BteqOptions bteq_options = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.BteqOptions, com.google.cloud.bigquery.migration.v2alpha.BteqOptions.Builder, com.google.cloud.bigquery.migration.v2alpha.BteqOptionsOrBuilder> + com.google.cloud.bigquery.migration.v2alpha.BteqOptions, + com.google.cloud.bigquery.migration.v2alpha.BteqOptions.Builder, + com.google.cloud.bigquery.migration.v2alpha.BteqOptionsOrBuilder> getBteqOptionsFieldBuilder() { if (bteqOptionsBuilder_ == null) { if (!(languageOptionsCase_ == 11)) { - languageOptions_ = com.google.cloud.bigquery.migration.v2alpha.BteqOptions.getDefaultInstance(); + languageOptions_ = + com.google.cloud.bigquery.migration.v2alpha.BteqOptions.getDefaultInstance(); } - bteqOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.BteqOptions, com.google.cloud.bigquery.migration.v2alpha.BteqOptions.Builder, com.google.cloud.bigquery.migration.v2alpha.BteqOptionsOrBuilder>( + bteqOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2alpha.BteqOptions, + com.google.cloud.bigquery.migration.v2alpha.BteqOptions.Builder, + com.google.cloud.bigquery.migration.v2alpha.BteqOptionsOrBuilder>( (com.google.cloud.bigquery.migration.v2alpha.BteqOptions) languageOptions_, getParentForChildren(), isClean()); @@ -2286,18 +2619,20 @@ public com.google.cloud.bigquery.migration.v2alpha.BteqOptionsOrBuilder getBteqO private java.lang.Object inputPath_ = ""; /** + * + * *
      * The Cloud Storage path for translation input files.
      * 
* * string input_path = 1; + * * @return The inputPath. */ public java.lang.String getInputPath() { java.lang.Object ref = inputPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputPath_ = s; return s; @@ -2306,20 +2641,21 @@ public java.lang.String getInputPath() { } } /** + * + * *
      * The Cloud Storage path for translation input files.
      * 
* * string input_path = 1; + * * @return The bytes for inputPath. */ - public com.google.protobuf.ByteString - getInputPathBytes() { + public com.google.protobuf.ByteString getInputPathBytes() { java.lang.Object ref = inputPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); inputPath_ = b; return b; } else { @@ -2327,28 +2663,35 @@ public java.lang.String getInputPath() { } } /** + * + * *
      * The Cloud Storage path for translation input files.
      * 
* * string input_path = 1; + * * @param value The inputPath to set. * @return This builder for chaining. */ - public Builder setInputPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInputPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } inputPath_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The Cloud Storage path for translation input files.
      * 
* * string input_path = 1; + * * @return This builder for chaining. */ public Builder clearInputPath() { @@ -2358,17 +2701,21 @@ public Builder clearInputPath() { return this; } /** + * + * *
      * The Cloud Storage path for translation input files.
      * 
* * string input_path = 1; + * * @param value The bytes for inputPath to set. * @return This builder for chaining. */ - public Builder setInputPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInputPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); inputPath_ = value; bitField0_ |= 0x00000004; @@ -2378,18 +2725,20 @@ public Builder setInputPathBytes( private java.lang.Object outputPath_ = ""; /** + * + * *
      * The Cloud Storage path for translation output files.
      * 
* * string output_path = 2; + * * @return The outputPath. */ public java.lang.String getOutputPath() { java.lang.Object ref = outputPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputPath_ = s; return s; @@ -2398,20 +2747,21 @@ public java.lang.String getOutputPath() { } } /** + * + * *
      * The Cloud Storage path for translation output files.
      * 
* * string output_path = 2; + * * @return The bytes for outputPath. */ - public com.google.protobuf.ByteString - getOutputPathBytes() { + public com.google.protobuf.ByteString getOutputPathBytes() { java.lang.Object ref = outputPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputPath_ = b; return b; } else { @@ -2419,28 +2769,35 @@ public java.lang.String getOutputPath() { } } /** + * + * *
      * The Cloud Storage path for translation output files.
      * 
* * string output_path = 2; + * * @param value The outputPath to set. * @return This builder for chaining. */ - public Builder setOutputPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOutputPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } outputPath_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The Cloud Storage path for translation output files.
      * 
* * string output_path = 2; + * * @return This builder for chaining. */ public Builder clearOutputPath() { @@ -2450,17 +2807,21 @@ public Builder clearOutputPath() { return this; } /** + * + * *
      * The Cloud Storage path for translation output files.
      * 
* * string output_path = 2; + * * @param value The bytes for outputPath to set. * @return This builder for chaining. */ - public Builder setOutputPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOutputPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); outputPath_ = value; bitField0_ |= 0x00000008; @@ -2468,26 +2829,37 @@ public Builder setOutputPathBytes( return this; } - private java.util.List filePaths_ = - java.util.Collections.emptyList(); + private java.util.List + filePaths_ = java.util.Collections.emptyList(); + private void ensureFilePathsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - filePaths_ = new java.util.ArrayList(filePaths_); + filePaths_ = + new java.util.ArrayList< + com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping>(filePaths_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping, com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.Builder, com.google.cloud.bigquery.migration.v2alpha.TranslationFileMappingOrBuilder> filePathsBuilder_; + com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping, + com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.Builder, + com.google.cloud.bigquery.migration.v2alpha.TranslationFileMappingOrBuilder> + filePathsBuilder_; /** + * + * *
      * Cloud Storage files to be processed for translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ - public java.util.List getFilePathsList() { + public java.util.List + getFilePathsList() { if (filePathsBuilder_ == null) { return java.util.Collections.unmodifiableList(filePaths_); } else { @@ -2495,11 +2867,15 @@ public java.util.List * Cloud Storage files to be processed for translation. *
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ public int getFilePathsCount() { if (filePathsBuilder_ == null) { @@ -2509,13 +2885,18 @@ public int getFilePathsCount() { } } /** + * + * *
      * Cloud Storage files to be processed for translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ - public com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping getFilePaths(int index) { + public com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping getFilePaths( + int index) { if (filePathsBuilder_ == null) { return filePaths_.get(index); } else { @@ -2523,11 +2904,15 @@ public com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping getFil } } /** + * + * *
      * Cloud Storage files to be processed for translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ public Builder setFilePaths( int index, com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping value) { @@ -2544,14 +2929,20 @@ public Builder setFilePaths( return this; } /** + * + * *
      * Cloud Storage files to be processed for translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ public Builder setFilePaths( - int index, com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.Builder builderForValue) { + int index, + com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.Builder + builderForValue) { if (filePathsBuilder_ == null) { ensureFilePathsIsMutable(); filePaths_.set(index, builderForValue.build()); @@ -2562,13 +2953,18 @@ public Builder setFilePaths( return this; } /** + * + * *
      * Cloud Storage files to be processed for translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ - public Builder addFilePaths(com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping value) { + public Builder addFilePaths( + com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping value) { if (filePathsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2582,11 +2978,15 @@ public Builder addFilePaths(com.google.cloud.bigquery.migration.v2alpha.Translat return this; } /** + * + * *
      * Cloud Storage files to be processed for translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ public Builder addFilePaths( int index, com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping value) { @@ -2603,14 +3003,19 @@ public Builder addFilePaths( return this; } /** + * + * *
      * Cloud Storage files to be processed for translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ public Builder addFilePaths( - com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.Builder builderForValue) { + com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.Builder + builderForValue) { if (filePathsBuilder_ == null) { ensureFilePathsIsMutable(); filePaths_.add(builderForValue.build()); @@ -2621,14 +3026,20 @@ public Builder addFilePaths( return this; } /** + * + * *
      * Cloud Storage files to be processed for translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ public Builder addFilePaths( - int index, com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.Builder builderForValue) { + int index, + com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.Builder + builderForValue) { if (filePathsBuilder_ == null) { ensureFilePathsIsMutable(); filePaths_.add(index, builderForValue.build()); @@ -2639,18 +3050,23 @@ public Builder addFilePaths( return this; } /** + * + * *
      * Cloud Storage files to be processed for translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ public Builder addAllFilePaths( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping> + values) { if (filePathsBuilder_ == null) { ensureFilePathsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, filePaths_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filePaths_); onChanged(); } else { filePathsBuilder_.addAllMessages(values); @@ -2658,11 +3074,15 @@ public Builder addAllFilePaths( return this; } /** + * + * *
      * Cloud Storage files to be processed for translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ public Builder clearFilePaths() { if (filePathsBuilder_ == null) { @@ -2675,11 +3095,15 @@ public Builder clearFilePaths() { return this; } /** + * + * *
      * Cloud Storage files to be processed for translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ public Builder removeFilePaths(int index) { if (filePathsBuilder_ == null) { @@ -2692,39 +3116,53 @@ public Builder removeFilePaths(int index) { return this; } /** + * + * *
      * Cloud Storage files to be processed for translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ - public com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.Builder getFilePathsBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.Builder + getFilePathsBuilder(int index) { return getFilePathsFieldBuilder().getBuilder(index); } /** + * + * *
      * Cloud Storage files to be processed for translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ - public com.google.cloud.bigquery.migration.v2alpha.TranslationFileMappingOrBuilder getFilePathsOrBuilder( - int index) { + public com.google.cloud.bigquery.migration.v2alpha.TranslationFileMappingOrBuilder + getFilePathsOrBuilder(int index) { if (filePathsBuilder_ == null) { - return filePaths_.get(index); } else { + return filePaths_.get(index); + } else { return filePathsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Cloud Storage files to be processed for translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ - public java.util.List - getFilePathsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.bigquery.migration.v2alpha.TranslationFileMappingOrBuilder> + getFilePathsOrBuilderList() { if (filePathsBuilder_ != null) { return filePathsBuilder_.getMessageOrBuilderList(); } else { @@ -2732,49 +3170,71 @@ public com.google.cloud.bigquery.migration.v2alpha.TranslationFileMappingOrBuild } } /** + * + * *
      * Cloud Storage files to be processed for translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ - public com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.Builder addFilePathsBuilder() { - return getFilePathsFieldBuilder().addBuilder( - com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.getDefaultInstance()); + public com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.Builder + addFilePathsBuilder() { + return getFilePathsFieldBuilder() + .addBuilder( + com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping + .getDefaultInstance()); } /** + * + * *
      * Cloud Storage files to be processed for translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ - public com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.Builder addFilePathsBuilder( - int index) { - return getFilePathsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.getDefaultInstance()); + public com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.Builder + addFilePathsBuilder(int index) { + return getFilePathsFieldBuilder() + .addBuilder( + index, + com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping + .getDefaultInstance()); } /** + * + * *
      * Cloud Storage files to be processed for translation.
      * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ - public java.util.List - getFilePathsBuilderList() { + public java.util.List< + com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.Builder> + getFilePathsBuilderList() { return getFilePathsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping, com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.Builder, com.google.cloud.bigquery.migration.v2alpha.TranslationFileMappingOrBuilder> + com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping, + com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.Builder, + com.google.cloud.bigquery.migration.v2alpha.TranslationFileMappingOrBuilder> getFilePathsFieldBuilder() { if (filePathsBuilder_ == null) { - filePathsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping, com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.Builder, com.google.cloud.bigquery.migration.v2alpha.TranslationFileMappingOrBuilder>( - filePaths_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); + filePathsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping, + com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.Builder, + com.google.cloud.bigquery.migration.v2alpha.TranslationFileMappingOrBuilder>( + filePaths_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); filePaths_ = null; } return filePathsBuilder_; @@ -2782,19 +3242,21 @@ public com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping.Builde private java.lang.Object schemaPath_ = ""; /** + * + * *
      * The Cloud Storage path to DDL files as table schema to assist semantic
      * translation.
      * 
* * string schema_path = 3; + * * @return The schemaPath. */ public java.lang.String getSchemaPath() { java.lang.Object ref = schemaPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaPath_ = s; return s; @@ -2803,21 +3265,22 @@ public java.lang.String getSchemaPath() { } } /** + * + * *
      * The Cloud Storage path to DDL files as table schema to assist semantic
      * translation.
      * 
* * string schema_path = 3; + * * @return The bytes for schemaPath. */ - public com.google.protobuf.ByteString - getSchemaPathBytes() { + public com.google.protobuf.ByteString getSchemaPathBytes() { java.lang.Object ref = schemaPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schemaPath_ = b; return b; } else { @@ -2825,30 +3288,37 @@ public java.lang.String getSchemaPath() { } } /** + * + * *
      * The Cloud Storage path to DDL files as table schema to assist semantic
      * translation.
      * 
* * string schema_path = 3; + * * @param value The schemaPath to set. * @return This builder for chaining. */ - public Builder setSchemaPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } schemaPath_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * The Cloud Storage path to DDL files as table schema to assist semantic
      * translation.
      * 
* * string schema_path = 3; + * * @return This builder for chaining. */ public Builder clearSchemaPath() { @@ -2858,18 +3328,22 @@ public Builder clearSchemaPath() { return this; } /** + * + * *
      * The Cloud Storage path to DDL files as table schema to assist semantic
      * translation.
      * 
* * string schema_path = 3; + * * @param value The bytes for schemaPath to set. * @return This builder for chaining. */ - public Builder setSchemaPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); schemaPath_ = value; bitField0_ |= 0x00000020; @@ -2879,22 +3353,33 @@ public Builder setSchemaPathBytes( private int fileEncoding_ = 0; /** + * + * *
      * The file encoding type.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding file_encoding = 4; + * + * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding file_encoding = 4; + * + * * @return The enum numeric value on the wire for fileEncoding. */ - @java.lang.Override public int getFileEncodingValue() { + @java.lang.Override + public int getFileEncodingValue() { return fileEncoding_; } /** + * + * *
      * The file encoding type.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding file_encoding = 4; + * + * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding file_encoding = 4; + * + * * @param value The enum numeric value on the wire for fileEncoding to set. * @return This builder for chaining. */ @@ -2905,28 +3390,45 @@ public Builder setFileEncodingValue(int value) { return this; } /** + * + * *
      * The file encoding type.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding file_encoding = 4; + * + * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding file_encoding = 4; + * + * * @return The fileEncoding. */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding getFileEncoding() { - com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding result = com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding.forNumber(fileEncoding_); - return result == null ? com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding.UNRECOGNIZED : result; + public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding + getFileEncoding() { + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding result = + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding.forNumber( + fileEncoding_); + return result == null + ? com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding + .UNRECOGNIZED + : result; } /** + * + * *
      * The file encoding type.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding file_encoding = 4; + * + * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding file_encoding = 4; + * + * * @param value The fileEncoding to set. * @return This builder for chaining. */ - public Builder setFileEncoding(com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding value) { + public Builder setFileEncoding( + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding value) { if (value == null) { throw new NullPointerException(); } @@ -2936,11 +3438,16 @@ public Builder setFileEncoding(com.google.cloud.bigquery.migration.v2alpha.Trans return this; } /** + * + * *
      * The file encoding type.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding file_encoding = 4; + * + * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding file_encoding = 4; + * + * * @return This builder for chaining. */ public Builder clearFileEncoding() { @@ -2952,41 +3459,58 @@ public Builder clearFileEncoding() { private com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifierSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings, com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.Builder, com.google.cloud.bigquery.migration.v2alpha.IdentifierSettingsOrBuilder> identifierSettingsBuilder_; + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings, + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.Builder, + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettingsOrBuilder> + identifierSettingsBuilder_; /** + * + * *
      * The settings for SQL identifiers.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * + * * @return Whether the identifierSettings field is set. */ public boolean hasIdentifierSettings() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * The settings for SQL identifiers.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * + * * @return The identifierSettings. */ public com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings getIdentifierSettings() { if (identifierSettingsBuilder_ == null) { - return identifierSettings_ == null ? com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.getDefaultInstance() : identifierSettings_; + return identifierSettings_ == null + ? com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.getDefaultInstance() + : identifierSettings_; } else { return identifierSettingsBuilder_.getMessage(); } } /** + * + * *
      * The settings for SQL identifiers.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * */ - public Builder setIdentifierSettings(com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings value) { + public Builder setIdentifierSettings( + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings value) { if (identifierSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3000,11 +3524,14 @@ public Builder setIdentifierSettings(com.google.cloud.bigquery.migration.v2alpha return this; } /** + * + * *
      * The settings for SQL identifiers.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * */ public Builder setIdentifierSettings( com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.Builder builderForValue) { @@ -3018,17 +3545,23 @@ public Builder setIdentifierSettings( return this; } /** + * + * *
      * The settings for SQL identifiers.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * */ - public Builder mergeIdentifierSettings(com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings value) { + public Builder mergeIdentifierSettings( + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings value) { if (identifierSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - identifierSettings_ != null && - identifierSettings_ != com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && identifierSettings_ != null + && identifierSettings_ + != com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings + .getDefaultInstance()) { getIdentifierSettingsBuilder().mergeFrom(value); } else { identifierSettings_ = value; @@ -3041,11 +3574,14 @@ public Builder mergeIdentifierSettings(com.google.cloud.bigquery.migration.v2alp return this; } /** + * + * *
      * The settings for SQL identifiers.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * */ public Builder clearIdentifierSettings() { bitField0_ = (bitField0_ & ~0x00000080); @@ -3058,55 +3594,70 @@ public Builder clearIdentifierSettings() { return this; } /** + * + * *
      * The settings for SQL identifiers.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * */ - public com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.Builder getIdentifierSettingsBuilder() { + public com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.Builder + getIdentifierSettingsBuilder() { bitField0_ |= 0x00000080; onChanged(); return getIdentifierSettingsFieldBuilder().getBuilder(); } /** + * + * *
      * The settings for SQL identifiers.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * */ - public com.google.cloud.bigquery.migration.v2alpha.IdentifierSettingsOrBuilder getIdentifierSettingsOrBuilder() { + public com.google.cloud.bigquery.migration.v2alpha.IdentifierSettingsOrBuilder + getIdentifierSettingsOrBuilder() { if (identifierSettingsBuilder_ != null) { return identifierSettingsBuilder_.getMessageOrBuilder(); } else { - return identifierSettings_ == null ? - com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.getDefaultInstance() : identifierSettings_; + return identifierSettings_ == null + ? com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.getDefaultInstance() + : identifierSettings_; } } /** + * + * *
      * The settings for SQL identifiers.
      * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings, com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.Builder, com.google.cloud.bigquery.migration.v2alpha.IdentifierSettingsOrBuilder> + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings, + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.Builder, + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettingsOrBuilder> getIdentifierSettingsFieldBuilder() { if (identifierSettingsBuilder_ == null) { - identifierSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings, com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.Builder, com.google.cloud.bigquery.migration.v2alpha.IdentifierSettingsOrBuilder>( - getIdentifierSettings(), - getParentForChildren(), - isClean()); + identifierSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings, + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings.Builder, + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettingsOrBuilder>( + getIdentifierSettings(), getParentForChildren(), isClean()); identifierSettings_ = null; } return identifierSettingsBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> specialTokenMap_; + private com.google.protobuf.MapField specialTokenMap_; + private com.google.protobuf.MapField internalGetSpecialTokenMap() { if (specialTokenMap_ == null) { @@ -3115,11 +3666,13 @@ public com.google.cloud.bigquery.migration.v2alpha.IdentifierSettingsOrBuilder g } return specialTokenMap_; } + private com.google.protobuf.MapField internalGetMutableSpecialTokenMap() { if (specialTokenMap_ == null) { - specialTokenMap_ = com.google.protobuf.MapField.newMapField( - SpecialTokenMapDefaultEntryHolder.defaultEntry); + specialTokenMap_ = + com.google.protobuf.MapField.newMapField( + SpecialTokenMapDefaultEntryHolder.defaultEntry); } if (!specialTokenMap_.isMutable()) { specialTokenMap_ = specialTokenMap_.copy(); @@ -3128,10 +3681,13 @@ public com.google.cloud.bigquery.migration.v2alpha.IdentifierSettingsOrBuilder g onChanged(); return specialTokenMap_; } + public int getSpecialTokenMapCount() { return internalGetSpecialTokenMap().getMap().size(); } /** + * + * *
      * The map capturing special tokens to be replaced during translation. The key
      * is special token in string. The value is the token data type. This is used
@@ -3141,24 +3697,29 @@ public int getSpecialTokenMapCount() {
      * how to parse them into proper structure with type information.
      * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * + * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * */ @java.lang.Override - public boolean containsSpecialTokenMap( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsSpecialTokenMap(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetSpecialTokenMap().getMap().containsKey(key); } - /** - * Use {@link #getSpecialTokenMapMap()} instead. - */ + /** Use {@link #getSpecialTokenMapMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getSpecialTokenMap() { + public java.util.Map< + java.lang.String, + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> + getSpecialTokenMap() { return getSpecialTokenMapMap(); } /** + * + * *
      * The map capturing special tokens to be replaced during translation. The key
      * is special token in string. The value is the token data type. This is used
@@ -3168,14 +3729,20 @@ public boolean containsSpecialTokenMap(
      * how to parse them into proper structure with type information.
      * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * + * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * */ @java.lang.Override - public java.util.Map - getSpecialTokenMapMap() { - return internalGetAdaptedSpecialTokenMapMap( - internalGetSpecialTokenMap().getMap());} + public java.util.Map< + java.lang.String, + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> + getSpecialTokenMapMap() { + return internalGetAdaptedSpecialTokenMapMap(internalGetSpecialTokenMap().getMap()); + } /** + * + * *
      * The map capturing special tokens to be replaced during translation. The key
      * is special token in string. The value is the token data type. This is used
@@ -3185,22 +3752,30 @@ public boolean containsSpecialTokenMap(
      * how to parse them into proper structure with type information.
      * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * + * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * */ @java.lang.Override - public /* nullable */ -com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType getSpecialTokenMapOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + public /* nullable */ com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails + .TokenType + getSpecialTokenMapOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType + defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetSpecialTokenMap().getMap(); return map.containsKey(key) - ? specialTokenMapValueConverter.doForward(map.get(key)) - : defaultValue; + ? specialTokenMapValueConverter.doForward(map.get(key)) + : defaultValue; } /** + * + * *
      * The map capturing special tokens to be replaced during translation. The key
      * is special token in string. The value is the token data type. This is used
@@ -3210,12 +3785,16 @@ com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType get
      * how to parse them into proper structure with type information.
      * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * + * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * */ @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType getSpecialTokenMapOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType + getSpecialTokenMapOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetSpecialTokenMap().getMap(); if (!map.containsKey(key)) { @@ -3223,16 +3802,15 @@ public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenT } return specialTokenMapValueConverter.doForward(map.get(key)); } - /** - * Use {@link #getSpecialTokenMapValueMap()} instead. - */ + /** Use {@link #getSpecialTokenMapValueMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getSpecialTokenMapValue() { + public java.util.Map getSpecialTokenMapValue() { return getSpecialTokenMapValueMap(); } /** + * + * *
      * The map capturing special tokens to be replaced during translation. The key
      * is special token in string. The value is the token data type. This is used
@@ -3242,14 +3820,17 @@ public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenT
      * how to parse them into proper structure with type information.
      * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * + * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * */ @java.lang.Override - public java.util.Map - getSpecialTokenMapValueMap() { + public java.util.Map getSpecialTokenMapValueMap() { return internalGetSpecialTokenMap().getMap(); } /** + * + * *
      * The map capturing special tokens to be replaced during translation. The key
      * is special token in string. The value is the token data type. This is used
@@ -3259,18 +3840,22 @@ public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenT
      * how to parse them into proper structure with type information.
      * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * + * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * */ @java.lang.Override - public int getSpecialTokenMapValueOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + public int getSpecialTokenMapValueOrDefault(java.lang.String key, int defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetSpecialTokenMap().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * The map capturing special tokens to be replaced during translation. The key
      * is special token in string. The value is the token data type. This is used
@@ -3280,12 +3865,15 @@ public int getSpecialTokenMapValueOrDefault(
      * how to parse them into proper structure with type information.
      * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * + * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * */ @java.lang.Override - public int getSpecialTokenMapValueOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public int getSpecialTokenMapValueOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetSpecialTokenMap().getMap(); if (!map.containsKey(key)) { @@ -3293,13 +3881,15 @@ public int getSpecialTokenMapValueOrThrow( } return map.get(key); } + public Builder clearSpecialTokenMap() { bitField0_ = (bitField0_ & ~0x00000100); - internalGetMutableSpecialTokenMap().getMutableMap() - .clear(); + internalGetMutableSpecialTokenMap().getMutableMap().clear(); return this; } /** + * + * *
      * The map capturing special tokens to be replaced during translation. The key
      * is special token in string. The value is the token data type. This is used
@@ -3309,26 +3899,30 @@ public Builder clearSpecialTokenMap() {
      * how to parse them into proper structure with type information.
      * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * + * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * */ - public Builder removeSpecialTokenMap( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableSpecialTokenMap().getMutableMap() - .remove(key); + public Builder removeSpecialTokenMap(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableSpecialTokenMap().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map + public java.util.Map< + java.lang.String, + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> getMutableSpecialTokenMap() { bitField0_ |= 0x00000100; return internalGetAdaptedSpecialTokenMapMap( - internalGetMutableSpecialTokenMap().getMutableMap()); + internalGetMutableSpecialTokenMap().getMutableMap()); } /** + * + * *
      * The map capturing special tokens to be replaced during translation. The key
      * is special token in string. The value is the token data type. This is used
@@ -3338,19 +3932,26 @@ public Builder removeSpecialTokenMap(
      * how to parse them into proper structure with type information.
      * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * + * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * */ public Builder putSpecialTokenMap( java.lang.String key, com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableSpecialTokenMap().getMutableMap() + if (key == null) { + throw new NullPointerException("map key"); + } + + internalGetMutableSpecialTokenMap() + .getMutableMap() .put(key, specialTokenMapValueConverter.doBackward(value)); bitField0_ |= 0x00000100; return this; } /** + * + * *
      * The map capturing special tokens to be replaced during translation. The key
      * is special token in string. The value is the token data type. This is used
@@ -3360,26 +3961,29 @@ public Builder putSpecialTokenMap(
      * how to parse them into proper structure with type information.
      * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * + * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * */ public Builder putAllSpecialTokenMap( - java.util.Map values) { - internalGetAdaptedSpecialTokenMapMap( - internalGetMutableSpecialTokenMap().getMutableMap()) - .putAll(values); + java.util.Map< + java.lang.String, + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> + values) { + internalGetAdaptedSpecialTokenMapMap(internalGetMutableSpecialTokenMap().getMutableMap()) + .putAll(values); bitField0_ |= 0x00000100; return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableSpecialTokenMapValue() { + public java.util.Map getMutableSpecialTokenMapValue() { bitField0_ |= 0x00000100; return internalGetMutableSpecialTokenMap().getMutableMap(); } /** + * + * *
      * The map capturing special tokens to be replaced during translation. The key
      * is special token in string. The value is the token data type. This is used
@@ -3389,19 +3993,22 @@ public Builder putAllSpecialTokenMap(
      * how to parse them into proper structure with type information.
      * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * + * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * */ - public Builder putSpecialTokenMapValue( - java.lang.String key, - int value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableSpecialTokenMap().getMutableMap() - .put(key, value); + public Builder putSpecialTokenMapValue(java.lang.String key, int value) { + if (key == null) { + throw new NullPointerException("map key"); + } + + internalGetMutableSpecialTokenMap().getMutableMap().put(key, value); bitField0_ |= 0x00000100; return this; } /** + * + * *
      * The map capturing special tokens to be replaced during translation. The key
      * is special token in string. The value is the token data type. This is used
@@ -3411,46 +4018,60 @@ public Builder putSpecialTokenMapValue(
      * how to parse them into proper structure with type information.
      * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * + * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * */ public Builder putAllSpecialTokenMapValue( java.util.Map values) { - internalGetMutableSpecialTokenMap().getMutableMap() - .putAll(values); + internalGetMutableSpecialTokenMap().getMutableMap().putAll(values); bitField0_ |= 0x00000100; return this; } private com.google.cloud.bigquery.migration.v2alpha.Filter filter_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.Filter, com.google.cloud.bigquery.migration.v2alpha.Filter.Builder, com.google.cloud.bigquery.migration.v2alpha.FilterOrBuilder> filterBuilder_; + com.google.cloud.bigquery.migration.v2alpha.Filter, + com.google.cloud.bigquery.migration.v2alpha.Filter.Builder, + com.google.cloud.bigquery.migration.v2alpha.FilterOrBuilder> + filterBuilder_; /** + * + * *
      * The filter applied to translation details.
      * 
* * .google.cloud.bigquery.migration.v2alpha.Filter filter = 7; + * * @return Whether the filter field is set. */ public boolean hasFilter() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * The filter applied to translation details.
      * 
* * .google.cloud.bigquery.migration.v2alpha.Filter filter = 7; + * * @return The filter. */ public com.google.cloud.bigquery.migration.v2alpha.Filter getFilter() { if (filterBuilder_ == null) { - return filter_ == null ? com.google.cloud.bigquery.migration.v2alpha.Filter.getDefaultInstance() : filter_; + return filter_ == null + ? com.google.cloud.bigquery.migration.v2alpha.Filter.getDefaultInstance() + : filter_; } else { return filterBuilder_.getMessage(); } } /** + * + * *
      * The filter applied to translation details.
      * 
@@ -3471,6 +4092,8 @@ public Builder setFilter(com.google.cloud.bigquery.migration.v2alpha.Filter valu return this; } /** + * + * *
      * The filter applied to translation details.
      * 
@@ -3489,6 +4112,8 @@ public Builder setFilter( return this; } /** + * + * *
      * The filter applied to translation details.
      * 
@@ -3497,9 +4122,9 @@ public Builder setFilter( */ public Builder mergeFilter(com.google.cloud.bigquery.migration.v2alpha.Filter value) { if (filterBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - filter_ != null && - filter_ != com.google.cloud.bigquery.migration.v2alpha.Filter.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && filter_ != null + && filter_ != com.google.cloud.bigquery.migration.v2alpha.Filter.getDefaultInstance()) { getFilterBuilder().mergeFrom(value); } else { filter_ = value; @@ -3512,6 +4137,8 @@ public Builder mergeFilter(com.google.cloud.bigquery.migration.v2alpha.Filter va return this; } /** + * + * *
      * The filter applied to translation details.
      * 
@@ -3529,6 +4156,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * The filter applied to translation details.
      * 
@@ -3541,6 +4170,8 @@ public com.google.cloud.bigquery.migration.v2alpha.Filter.Builder getFilterBuild return getFilterFieldBuilder().getBuilder(); } /** + * + * *
      * The filter applied to translation details.
      * 
@@ -3551,11 +4182,14 @@ public com.google.cloud.bigquery.migration.v2alpha.FilterOrBuilder getFilterOrBu if (filterBuilder_ != null) { return filterBuilder_.getMessageOrBuilder(); } else { - return filter_ == null ? - com.google.cloud.bigquery.migration.v2alpha.Filter.getDefaultInstance() : filter_; + return filter_ == null + ? com.google.cloud.bigquery.migration.v2alpha.Filter.getDefaultInstance() + : filter_; } } /** + * + * *
      * The filter applied to translation details.
      * 
@@ -3563,14 +4197,17 @@ public com.google.cloud.bigquery.migration.v2alpha.FilterOrBuilder getFilterOrBu * .google.cloud.bigquery.migration.v2alpha.Filter filter = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.Filter, com.google.cloud.bigquery.migration.v2alpha.Filter.Builder, com.google.cloud.bigquery.migration.v2alpha.FilterOrBuilder> + com.google.cloud.bigquery.migration.v2alpha.Filter, + com.google.cloud.bigquery.migration.v2alpha.Filter.Builder, + com.google.cloud.bigquery.migration.v2alpha.FilterOrBuilder> getFilterFieldBuilder() { if (filterBuilder_ == null) { - filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.migration.v2alpha.Filter, com.google.cloud.bigquery.migration.v2alpha.Filter.Builder, com.google.cloud.bigquery.migration.v2alpha.FilterOrBuilder>( - getFilter(), - getParentForChildren(), - isClean()); + filterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.migration.v2alpha.Filter, + com.google.cloud.bigquery.migration.v2alpha.Filter.Builder, + com.google.cloud.bigquery.migration.v2alpha.FilterOrBuilder>( + getFilter(), getParentForChildren(), isClean()); filter_ = null; } return filterBuilder_; @@ -3578,6 +4215,8 @@ public com.google.cloud.bigquery.migration.v2alpha.FilterOrBuilder getFilterOrBu private java.lang.Object translationExceptionTable_ = ""; /** + * + * *
      * Specifies the exact name of the bigquery table ("dataset.table") to be used
      * for surfacing raw translation errors. If the table does not exist, we will
@@ -3586,13 +4225,13 @@ public com.google.cloud.bigquery.migration.v2alpha.FilterOrBuilder getFilterOrBu
      * 
* * string translation_exception_table = 13; + * * @return The translationExceptionTable. */ public java.lang.String getTranslationExceptionTable() { java.lang.Object ref = translationExceptionTable_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); translationExceptionTable_ = s; return s; @@ -3601,6 +4240,8 @@ public java.lang.String getTranslationExceptionTable() { } } /** + * + * *
      * Specifies the exact name of the bigquery table ("dataset.table") to be used
      * for surfacing raw translation errors. If the table does not exist, we will
@@ -3609,15 +4250,14 @@ public java.lang.String getTranslationExceptionTable() {
      * 
* * string translation_exception_table = 13; + * * @return The bytes for translationExceptionTable. */ - public com.google.protobuf.ByteString - getTranslationExceptionTableBytes() { + public com.google.protobuf.ByteString getTranslationExceptionTableBytes() { java.lang.Object ref = translationExceptionTable_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); translationExceptionTable_ = b; return b; } else { @@ -3625,6 +4265,8 @@ public java.lang.String getTranslationExceptionTable() { } } /** + * + * *
      * Specifies the exact name of the bigquery table ("dataset.table") to be used
      * for surfacing raw translation errors. If the table does not exist, we will
@@ -3633,18 +4275,22 @@ public java.lang.String getTranslationExceptionTable() {
      * 
* * string translation_exception_table = 13; + * * @param value The translationExceptionTable to set. * @return This builder for chaining. */ - public Builder setTranslationExceptionTable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTranslationExceptionTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } translationExceptionTable_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** + * + * *
      * Specifies the exact name of the bigquery table ("dataset.table") to be used
      * for surfacing raw translation errors. If the table does not exist, we will
@@ -3653,6 +4299,7 @@ public Builder setTranslationExceptionTable(
      * 
* * string translation_exception_table = 13; + * * @return This builder for chaining. */ public Builder clearTranslationExceptionTable() { @@ -3662,6 +4309,8 @@ public Builder clearTranslationExceptionTable() { return this; } /** + * + * *
      * Specifies the exact name of the bigquery table ("dataset.table") to be used
      * for surfacing raw translation errors. If the table does not exist, we will
@@ -3670,21 +4319,23 @@ public Builder clearTranslationExceptionTable() {
      * 
* * string translation_exception_table = 13; + * * @param value The bytes for translationExceptionTable to set. * @return This builder for chaining. */ - public Builder setTranslationExceptionTableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTranslationExceptionTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); translationExceptionTable_ = value; bitField0_ |= 0x00000400; 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); } @@ -3694,41 +4345,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails) - private static final com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails(); } - public static com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails getDefaultInstance() { + public static com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslationTaskDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslationTaskDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3740,9 +4393,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails getDefaultInstanceForType() { + public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationTaskDetailsOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationTaskDetailsOrBuilder.java similarity index 71% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationTaskDetailsOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationTaskDetailsOrBuilder.java index 63e261c..9dba084 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationTaskDetailsOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationTaskDetailsOrBuilder.java @@ -1,58 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/translation_task.proto package com.google.cloud.bigquery.migration.v2alpha; -public interface TranslationTaskDetailsOrBuilder extends +public interface TranslationTaskDetailsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Teradata SQL specific settings for the translation task.
    * 
* * .google.cloud.bigquery.migration.v2alpha.TeradataOptions teradata_options = 10; + * * @return Whether the teradataOptions field is set. */ boolean hasTeradataOptions(); /** + * + * *
    * The Teradata SQL specific settings for the translation task.
    * 
* * .google.cloud.bigquery.migration.v2alpha.TeradataOptions teradata_options = 10; + * * @return The teradataOptions. */ com.google.cloud.bigquery.migration.v2alpha.TeradataOptions getTeradataOptions(); /** + * + * *
    * The Teradata SQL specific settings for the translation task.
    * 
* * .google.cloud.bigquery.migration.v2alpha.TeradataOptions teradata_options = 10; */ - com.google.cloud.bigquery.migration.v2alpha.TeradataOptionsOrBuilder getTeradataOptionsOrBuilder(); + com.google.cloud.bigquery.migration.v2alpha.TeradataOptionsOrBuilder + getTeradataOptionsOrBuilder(); /** + * + * *
    * The BTEQ specific settings for the translation task.
    * 
* * .google.cloud.bigquery.migration.v2alpha.BteqOptions bteq_options = 11; + * * @return Whether the bteqOptions field is set. */ boolean hasBteqOptions(); /** + * + * *
    * The BTEQ specific settings for the translation task.
    * 
* * .google.cloud.bigquery.migration.v2alpha.BteqOptions bteq_options = 11; + * * @return The bteqOptions. */ com.google.cloud.bigquery.migration.v2alpha.BteqOptions getBteqOptions(); /** + * + * *
    * The BTEQ specific settings for the translation task.
    * 
@@ -62,158 +95,213 @@ public interface TranslationTaskDetailsOrBuilder extends com.google.cloud.bigquery.migration.v2alpha.BteqOptionsOrBuilder getBteqOptionsOrBuilder(); /** + * + * *
    * The Cloud Storage path for translation input files.
    * 
* * string input_path = 1; + * * @return The inputPath. */ java.lang.String getInputPath(); /** + * + * *
    * The Cloud Storage path for translation input files.
    * 
* * string input_path = 1; + * * @return The bytes for inputPath. */ - com.google.protobuf.ByteString - getInputPathBytes(); + com.google.protobuf.ByteString getInputPathBytes(); /** + * + * *
    * The Cloud Storage path for translation output files.
    * 
* * string output_path = 2; + * * @return The outputPath. */ java.lang.String getOutputPath(); /** + * + * *
    * The Cloud Storage path for translation output files.
    * 
* * string output_path = 2; + * * @return The bytes for outputPath. */ - com.google.protobuf.ByteString - getOutputPathBytes(); + com.google.protobuf.ByteString getOutputPathBytes(); /** + * + * *
    * Cloud Storage files to be processed for translation.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ - java.util.List + java.util.List getFilePathsList(); /** + * + * *
    * Cloud Storage files to be processed for translation.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping getFilePaths(int index); /** + * + * *
    * Cloud Storage files to be processed for translation.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ int getFilePathsCount(); /** + * + * *
    * Cloud Storage files to be processed for translation.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.bigquery.migration.v2alpha.TranslationFileMappingOrBuilder> getFilePathsOrBuilderList(); /** + * + * *
    * Cloud Storage files to be processed for translation.
    * 
* - * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12; + * */ com.google.cloud.bigquery.migration.v2alpha.TranslationFileMappingOrBuilder getFilePathsOrBuilder( int index); /** + * + * *
    * The Cloud Storage path to DDL files as table schema to assist semantic
    * translation.
    * 
* * string schema_path = 3; + * * @return The schemaPath. */ java.lang.String getSchemaPath(); /** + * + * *
    * The Cloud Storage path to DDL files as table schema to assist semantic
    * translation.
    * 
* * string schema_path = 3; + * * @return The bytes for schemaPath. */ - com.google.protobuf.ByteString - getSchemaPathBytes(); + com.google.protobuf.ByteString getSchemaPathBytes(); /** + * + * *
    * The file encoding type.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding file_encoding = 4; + * + * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding file_encoding = 4; + * + * * @return The enum numeric value on the wire for fileEncoding. */ int getFileEncodingValue(); /** + * + * *
    * The file encoding type.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding file_encoding = 4; + * + * .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding file_encoding = 4; + * + * * @return The fileEncoding. */ com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding getFileEncoding(); /** + * + * *
    * The settings for SQL identifiers.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * + * * @return Whether the identifierSettings field is set. */ boolean hasIdentifierSettings(); /** + * + * *
    * The settings for SQL identifiers.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * + * * @return The identifierSettings. */ com.google.cloud.bigquery.migration.v2alpha.IdentifierSettings getIdentifierSettings(); /** + * + * *
    * The settings for SQL identifiers.
    * 
* - * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * .google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5; + * */ - com.google.cloud.bigquery.migration.v2alpha.IdentifierSettingsOrBuilder getIdentifierSettingsOrBuilder(); + com.google.cloud.bigquery.migration.v2alpha.IdentifierSettingsOrBuilder + getIdentifierSettingsOrBuilder(); /** + * + * *
    * The map capturing special tokens to be replaced during translation. The key
    * is special token in string. The value is the token data type. This is used
@@ -223,10 +311,14 @@ com.google.cloud.bigquery.migration.v2alpha.TranslationFileMappingOrBuilder getF
    * how to parse them into proper structure with type information.
    * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * + * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * */ int getSpecialTokenMapCount(); /** + * + * *
    * The map capturing special tokens to be replaced during translation. The key
    * is special token in string. The value is the token data type. This is used
@@ -236,17 +328,20 @@ com.google.cloud.bigquery.migration.v2alpha.TranslationFileMappingOrBuilder getF
    * how to parse them into proper structure with type information.
    * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; - */ - boolean containsSpecialTokenMap( - java.lang.String key); - /** - * Use {@link #getSpecialTokenMapMap()} instead. + * + * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * */ + boolean containsSpecialTokenMap(java.lang.String key); + /** Use {@link #getSpecialTokenMapMap()} instead. */ @java.lang.Deprecated - java.util.Map - getSpecialTokenMap(); + java.util.Map< + java.lang.String, + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> + getSpecialTokenMap(); /** + * + * *
    * The map capturing special tokens to be replaced during translation. The key
    * is special token in string. The value is the token data type. This is used
@@ -256,11 +351,17 @@ boolean containsSpecialTokenMap(
    * how to parse them into proper structure with type information.
    * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * + * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * */ - java.util.Map - getSpecialTokenMapMap(); + java.util.Map< + java.lang.String, + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> + getSpecialTokenMapMap(); /** + * + * *
    * The map capturing special tokens to be replaced during translation. The key
    * is special token in string. The value is the token data type. This is used
@@ -270,14 +371,20 @@ boolean containsSpecialTokenMap(
    * how to parse them into proper structure with type information.
    * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * + * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * */ /* nullable */ -com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType getSpecialTokenMapOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType defaultValue); + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType + getSpecialTokenMapOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType + defaultValue); /** + * + * *
    * The map capturing special tokens to be replaced during translation. The key
    * is special token in string. The value is the token data type. This is used
@@ -287,17 +394,18 @@ com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType get
    * how to parse them into proper structure with type information.
    * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; - */ - com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType getSpecialTokenMapOrThrow( - java.lang.String key); - /** - * Use {@link #getSpecialTokenMapValueMap()} instead. + * + * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * */ + com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType + getSpecialTokenMapOrThrow(java.lang.String key); + /** Use {@link #getSpecialTokenMapValueMap()} instead. */ @java.lang.Deprecated - java.util.Map - getSpecialTokenMapValue(); + java.util.Map getSpecialTokenMapValue(); /** + * + * *
    * The map capturing special tokens to be replaced during translation. The key
    * is special token in string. The value is the token data type. This is used
@@ -307,11 +415,14 @@ com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType get
    * how to parse them into proper structure with type information.
    * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * + * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * */ - java.util.Map - getSpecialTokenMapValueMap(); + java.util.Map getSpecialTokenMapValueMap(); /** + * + * *
    * The map capturing special tokens to be replaced during translation. The key
    * is special token in string. The value is the token data type. This is used
@@ -321,12 +432,14 @@ com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType get
    * how to parse them into proper structure with type information.
    * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * + * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * */ - int getSpecialTokenMapValueOrDefault( - java.lang.String key, - int defaultValue); + int getSpecialTokenMapValueOrDefault(java.lang.String key, int defaultValue); /** + * + * *
    * The map capturing special tokens to be replaced during translation. The key
    * is special token in string. The value is the token data type. This is used
@@ -336,30 +449,39 @@ int getSpecialTokenMapValueOrDefault(
    * how to parse them into proper structure with type information.
    * 
* - * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * + * map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6; + * */ - int getSpecialTokenMapValueOrThrow( - java.lang.String key); + int getSpecialTokenMapValueOrThrow(java.lang.String key); /** + * + * *
    * The filter applied to translation details.
    * 
* * .google.cloud.bigquery.migration.v2alpha.Filter filter = 7; + * * @return Whether the filter field is set. */ boolean hasFilter(); /** + * + * *
    * The filter applied to translation details.
    * 
* * .google.cloud.bigquery.migration.v2alpha.Filter filter = 7; + * * @return The filter. */ com.google.cloud.bigquery.migration.v2alpha.Filter getFilter(); /** + * + * *
    * The filter applied to translation details.
    * 
@@ -369,6 +491,8 @@ int getSpecialTokenMapValueOrThrow( com.google.cloud.bigquery.migration.v2alpha.FilterOrBuilder getFilterOrBuilder(); /** + * + * *
    * Specifies the exact name of the bigquery table ("dataset.table") to be used
    * for surfacing raw translation errors. If the table does not exist, we will
@@ -377,10 +501,13 @@ int getSpecialTokenMapValueOrThrow(
    * 
* * string translation_exception_table = 13; + * * @return The translationExceptionTable. */ java.lang.String getTranslationExceptionTable(); /** + * + * *
    * Specifies the exact name of the bigquery table ("dataset.table") to be used
    * for surfacing raw translation errors. If the table does not exist, we will
@@ -389,10 +516,11 @@ int getSpecialTokenMapValueOrThrow(
    * 
* * string translation_exception_table = 13; + * * @return The bytes for translationExceptionTable. */ - com.google.protobuf.ByteString - getTranslationExceptionTableBytes(); + com.google.protobuf.ByteString getTranslationExceptionTableBytes(); - public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.LanguageOptionsCase getLanguageOptionsCase(); + public com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.LanguageOptionsCase + getLanguageOptionsCase(); } diff --git a/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationTaskProto.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationTaskProto.java new file mode 100644 index 0000000..3b4cd44 --- /dev/null +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TranslationTaskProto.java @@ -0,0 +1,228 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/migration/v2alpha/translation_task.proto + +package com.google.cloud.bigquery.migration.v2alpha; + +public final class TranslationTaskProto { + private TranslationTaskProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_TranslationFileMapping_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_TranslationFileMapping_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_SpecialTokenMapEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_SpecialTokenMapEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_Filter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_Filter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_IdentifierSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_IdentifierSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_TeradataOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_TeradataOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_FileReplacementMapEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_FileReplacementMapEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_migration_v2alpha_DatasetReference_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_migration_v2alpha_DatasetReference_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/bigquery/migration/v2alph" + + "a/translation_task.proto\022\'google.cloud.b" + + "igquery.migration.v2alpha\"A\n\026Translation" + + "FileMapping\022\022\n\ninput_path\030\001 \001(\t\022\023\n\013outpu" + + "t_path\030\002 \001(\t\"\372\010\n\026TranslationTaskDetails\022" + + "T\n\020teradata_options\030\n \001(\01328.google.cloud" + + ".bigquery.migration.v2alpha.TeradataOpti" + + "onsH\000\022L\n\014bteq_options\030\013 \001(\01324.google.clo" + + "ud.bigquery.migration.v2alpha.BteqOption" + + "sH\000\022\022\n\ninput_path\030\001 \001(\t\022\023\n\013output_path\030\002" + + " \001(\t\022S\n\nfile_paths\030\014 \003(\0132?.google.cloud." + + "bigquery.migration.v2alpha.TranslationFi" + + "leMapping\022\023\n\013schema_path\030\003 \001(\t\022c\n\rfile_e" + + "ncoding\030\004 \001(\0162L.google.cloud.bigquery.mi" + + "gration.v2alpha.TranslationTaskDetails.F" + + "ileEncoding\022X\n\023identifier_settings\030\005 \001(\013" + + "2;.google.cloud.bigquery.migration.v2alp" + + "ha.IdentifierSettings\022o\n\021special_token_m" + + "ap\030\006 \003(\0132T.google.cloud.bigquery.migrati" + + "on.v2alpha.TranslationTaskDetails.Specia" + + "lTokenMapEntry\022?\n\006filter\030\007 \001(\0132/.google." + + "cloud.bigquery.migration.v2alpha.Filter\022" + + "#\n\033translation_exception_table\030\r \001(\t\032\201\001\n" + + "\024SpecialTokenMapEntry\022\013\n\003key\030\001 \001(\t\022X\n\005va" + + "lue\030\002 \001(\0162I.google.cloud.bigquery.migrat" + + "ion.v2alpha.TranslationTaskDetails.Token" + + "Type:\0028\001\"~\n\014FileEncoding\022\035\n\031FILE_ENCODIN" + + "G_UNSPECIFIED\020\000\022\t\n\005UTF_8\020\001\022\016\n\nISO_8859_1" + + "\020\002\022\014\n\010US_ASCII\020\003\022\n\n\006UTF_16\020\004\022\014\n\010UTF_16LE" + + "\020\005\022\014\n\010UTF_16BE\020\006\"{\n\tTokenType\022\032\n\026TOKEN_T" + + "YPE_UNSPECIFIED\020\000\022\n\n\006STRING\020\001\022\t\n\005INT64\020\002" + + "\022\013\n\007NUMERIC\020\003\022\010\n\004BOOL\020\004\022\013\n\007FLOAT64\020\005\022\010\n\004" + + "DATE\020\006\022\r\n\tTIMESTAMP\020\007B\022\n\020language_option" + + "s\"/\n\006Filter\022%\n\035input_file_exclusion_pref" + + "ixes\030\001 \003(\t\"\250\003\n\022IdentifierSettings\022j\n\026out" + + "put_identifier_case\030\001 \001(\0162J.google.cloud" + + ".bigquery.migration.v2alpha.IdentifierSe" + + "ttings.IdentifierCase\022r\n\027identifier_rewr" + + "ite_mode\030\002 \001(\0162Q.google.cloud.bigquery.m" + + "igration.v2alpha.IdentifierSettings.Iden" + + "tifierRewriteMode\"U\n\016IdentifierCase\022\037\n\033I" + + "DENTIFIER_CASE_UNSPECIFIED\020\000\022\014\n\010ORIGINAL" + + "\020\001\022\t\n\005UPPER\020\002\022\t\n\005LOWER\020\003\"[\n\025IdentifierRe" + + "writeMode\022\'\n#IDENTIFIER_REWRITE_MODE_UNS" + + "PECIFIED\020\000\022\010\n\004NONE\020\001\022\017\n\013REWRITE_ALL\020\002\"\021\n" + + "\017TeradataOptions\"\242\002\n\013BteqOptions\022R\n\017proj" + + "ect_dataset\030\001 \001(\01329.google.cloud.bigquer" + + "y.migration.v2alpha.DatasetReference\022\030\n\020" + + "default_path_uri\030\002 \001(\t\022j\n\024file_replaceme" + + "nt_map\030\003 \003(\0132L.google.cloud.bigquery.mig" + + "ration.v2alpha.BteqOptions.FileReplaceme" + + "ntMapEntry\0329\n\027FileReplacementMapEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\":\n\020Dataset" + + "Reference\022\022\n\ndataset_id\030\001 \001(\t\022\022\n\nproject" + + "_id\030\002 \001(\tB\344\001\n+com.google.cloud.bigquery." + + "migration.v2alphaB\024TranslationTaskProtoP" + + "\001ZIcloud.google.com/go/bigquery/migratio" + + "n/apiv2alpha/migrationpb;migrationpb\252\002\'G" + + "oogle.Cloud.BigQuery.Migration.V2Alpha\312\002" + + "\'Google\\Cloud\\BigQuery\\Migration\\V2alpha" + + "b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_bigquery_migration_v2alpha_TranslationFileMapping_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_migration_v2alpha_TranslationFileMapping_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_TranslationFileMapping_descriptor, + new java.lang.String[] { + "InputPath", "OutputPath", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_descriptor, + new java.lang.String[] { + "TeradataOptions", + "BteqOptions", + "InputPath", + "OutputPath", + "FilePaths", + "SchemaPath", + "FileEncoding", + "IdentifierSettings", + "SpecialTokenMap", + "Filter", + "TranslationExceptionTable", + "LanguageOptions", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_SpecialTokenMapEntry_descriptor = + internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_SpecialTokenMapEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_TranslationTaskDetails_SpecialTokenMapEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_Filter_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_migration_v2alpha_Filter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_Filter_descriptor, + new java.lang.String[] { + "InputFileExclusionPrefixes", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_IdentifierSettings_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_bigquery_migration_v2alpha_IdentifierSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_IdentifierSettings_descriptor, + new java.lang.String[] { + "OutputIdentifierCase", "IdentifierRewriteMode", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_TeradataOptions_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_bigquery_migration_v2alpha_TeradataOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_TeradataOptions_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_descriptor, + new java.lang.String[] { + "ProjectDataset", "DefaultPathUri", "FileReplacementMap", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_FileReplacementMapEntry_descriptor = + internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_FileReplacementMapEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_BteqOptions_FileReplacementMapEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_bigquery_migration_v2alpha_DatasetReference_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_bigquery_migration_v2alpha_DatasetReference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_migration_v2alpha_DatasetReference_descriptor, + new java.lang.String[] { + "DatasetId", "ProjectId", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TypedValue.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TypedValue.java similarity index 70% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TypedValue.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TypedValue.java index 3590338..5a92872 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TypedValue.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TypedValue.java @@ -1,56 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_metrics.proto package com.google.cloud.bigquery.migration.v2alpha; /** + * + * *
  * A single strongly-typed value.
  * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.TypedValue} */ -public final class TypedValue extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TypedValue extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2alpha.TypedValue) TypedValueOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TypedValue.newBuilder() to construct. private TypedValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TypedValue() { - } + + private TypedValue() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TypedValue(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2alpha_TypedValue_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TypedValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2alpha_TypedValue_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TypedValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.TypedValue.class, com.google.cloud.bigquery.migration.v2alpha.TypedValue.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.TypedValue.class, + com.google.cloud.bigquery.migration.v2alpha.TypedValue.Builder.class); } private int valueCase_ = 0; private java.lang.Object value_; + public enum ValueCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BOOL_VALUE(1), INT64_VALUE(2), @@ -59,6 +79,7 @@ public enum ValueCase DISTRIBUTION_VALUE(5), VALUE_NOT_SET(0); private final int value; + private ValueCase(int value) { this.value = value; } @@ -74,33 +95,42 @@ public static ValueCase valueOf(int value) { public static ValueCase forNumber(int value) { switch (value) { - case 1: return BOOL_VALUE; - case 2: return INT64_VALUE; - case 3: return DOUBLE_VALUE; - case 4: return STRING_VALUE; - case 5: return DISTRIBUTION_VALUE; - case 0: return VALUE_NOT_SET; - default: return null; + case 1: + return BOOL_VALUE; + case 2: + return INT64_VALUE; + case 3: + return DOUBLE_VALUE; + case 4: + return STRING_VALUE; + case 5: + return DISTRIBUTION_VALUE; + case 0: + return VALUE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); } public static final int BOOL_VALUE_FIELD_NUMBER = 1; /** + * + * *
    * A Boolean value: `true` or `false`.
    * 
* * bool bool_value = 1; + * * @return Whether the boolValue field is set. */ @java.lang.Override @@ -108,11 +138,14 @@ public boolean hasBoolValue() { return valueCase_ == 1; } /** + * + * *
    * A Boolean value: `true` or `false`.
    * 
* * bool bool_value = 1; + * * @return The boolValue. */ @java.lang.Override @@ -125,11 +158,14 @@ public boolean getBoolValue() { public static final int INT64_VALUE_FIELD_NUMBER = 2; /** + * + * *
    * A 64-bit integer. Its range is approximately +/-9.2x10^18.
    * 
* * int64 int64_value = 2; + * * @return Whether the int64Value field is set. */ @java.lang.Override @@ -137,11 +173,14 @@ public boolean hasInt64Value() { return valueCase_ == 2; } /** + * + * *
    * A 64-bit integer. Its range is approximately +/-9.2x10^18.
    * 
* * int64 int64_value = 2; + * * @return The int64Value. */ @java.lang.Override @@ -154,6 +193,8 @@ public long getInt64Value() { public static final int DOUBLE_VALUE_FIELD_NUMBER = 3; /** + * + * *
    * A 64-bit double-precision floating-point number. Its magnitude
    * is approximately +/-10^(+/-300) and it has 16 significant digits of
@@ -161,6 +202,7 @@ public long getInt64Value() {
    * 
* * double double_value = 3; + * * @return Whether the doubleValue field is set. */ @java.lang.Override @@ -168,6 +210,8 @@ public boolean hasDoubleValue() { return valueCase_ == 3; } /** + * + * *
    * A 64-bit double-precision floating-point number. Its magnitude
    * is approximately +/-10^(+/-300) and it has 16 significant digits of
@@ -175,6 +219,7 @@ public boolean hasDoubleValue() {
    * 
* * double double_value = 3; + * * @return The doubleValue. */ @java.lang.Override @@ -187,22 +232,28 @@ public double getDoubleValue() { public static final int STRING_VALUE_FIELD_NUMBER = 4; /** + * + * *
    * A variable-length string value.
    * 
* * string string_value = 4; + * * @return Whether the stringValue field is set. */ public boolean hasStringValue() { return valueCase_ == 4; } /** + * + * *
    * A variable-length string value.
    * 
* * string string_value = 4; + * * @return The stringValue. */ public java.lang.String getStringValue() { @@ -213,8 +264,7 @@ public java.lang.String getStringValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 4) { value_ = s; @@ -223,23 +273,24 @@ public java.lang.String getStringValue() { } } /** + * + * *
    * A variable-length string value.
    * 
* * string string_value = 4; + * * @return The bytes for stringValue. */ - public com.google.protobuf.ByteString - getStringValueBytes() { + public com.google.protobuf.ByteString getStringValueBytes() { java.lang.Object ref = ""; if (valueCase_ == 4) { 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); if (valueCase_ == 4) { value_ = b; } @@ -251,11 +302,14 @@ public java.lang.String getStringValue() { public static final int DISTRIBUTION_VALUE_FIELD_NUMBER = 5; /** + * + * *
    * A distribution value.
    * 
* * .google.api.Distribution distribution_value = 5; + * * @return Whether the distributionValue field is set. */ @java.lang.Override @@ -263,21 +317,26 @@ public boolean hasDistributionValue() { return valueCase_ == 5; } /** + * + * *
    * A distribution value.
    * 
* * .google.api.Distribution distribution_value = 5; + * * @return The distributionValue. */ @java.lang.Override public com.google.api.Distribution getDistributionValue() { if (valueCase_ == 5) { - return (com.google.api.Distribution) value_; + return (com.google.api.Distribution) value_; } return com.google.api.Distribution.getDefaultInstance(); } /** + * + * *
    * A distribution value.
    * 
@@ -287,12 +346,13 @@ public com.google.api.Distribution getDistributionValue() { @java.lang.Override public com.google.api.DistributionOrBuilder getDistributionValueOrBuilder() { if (valueCase_ == 5) { - return (com.google.api.Distribution) value_; + return (com.google.api.Distribution) value_; } return com.google.api.Distribution.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -304,19 +364,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (valueCase_ == 1) { - output.writeBool( - 1, (boolean)((java.lang.Boolean) value_)); + output.writeBool(1, (boolean) ((java.lang.Boolean) value_)); } if (valueCase_ == 2) { - output.writeInt64( - 2, (long)((java.lang.Long) value_)); + output.writeInt64(2, (long) ((java.lang.Long) value_)); } if (valueCase_ == 3) { - output.writeDouble( - 3, (double)((java.lang.Double) value_)); + output.writeDouble(3, (double) ((java.lang.Double) value_)); } if (valueCase_ == 4) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, value_); @@ -334,26 +390,27 @@ public int getSerializedSize() { size = 0; if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 1, (boolean)((java.lang.Boolean) value_)); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 1, (boolean) ((java.lang.Boolean) value_)); } if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size( - 2, (long)((java.lang.Long) value_)); + size += + com.google.protobuf.CodedOutputStream.computeInt64Size( + 2, (long) ((java.lang.Long) value_)); } if (valueCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize( - 3, (double)((java.lang.Double) value_)); + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 3, (double) ((java.lang.Double) value_)); } if (valueCase_ == 4) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, value_); } if (valueCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.api.Distribution) value_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.api.Distribution) value_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -363,35 +420,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.migration.v2alpha.TypedValue)) { return super.equals(obj); } - com.google.cloud.bigquery.migration.v2alpha.TypedValue other = (com.google.cloud.bigquery.migration.v2alpha.TypedValue) obj; + com.google.cloud.bigquery.migration.v2alpha.TypedValue other = + (com.google.cloud.bigquery.migration.v2alpha.TypedValue) obj; if (!getValueCase().equals(other.getValueCase())) return false; switch (valueCase_) { case 1: - if (getBoolValue() - != other.getBoolValue()) return false; + if (getBoolValue() != other.getBoolValue()) return false; break; case 2: - if (getInt64Value() - != other.getInt64Value()) return false; + if (getInt64Value() != other.getInt64Value()) return false; break; case 3: if (java.lang.Double.doubleToLongBits(getDoubleValue()) - != java.lang.Double.doubleToLongBits( - other.getDoubleValue())) return false; + != java.lang.Double.doubleToLongBits(other.getDoubleValue())) return false; break; case 4: - if (!getStringValue() - .equals(other.getStringValue())) return false; + if (!getStringValue().equals(other.getStringValue())) return false; break; case 5: - if (!getDistributionValue() - .equals(other.getDistributionValue())) return false; + if (!getDistributionValue().equals(other.getDistributionValue())) return false; break; case 0: default: @@ -410,18 +463,18 @@ public int hashCode() { switch (valueCase_) { case 1: hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBoolValue()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBoolValue()); break; case 2: hash = (37 * hash) + INT64_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getInt64Value()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getInt64Value()); break; case 3: hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getDoubleValue())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDoubleValue())); break; case 4: hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; @@ -440,129 +493,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.migration.v2alpha.TypedValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.TypedValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.TypedValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.TypedValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.TypedValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.migration.v2alpha.TypedValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.TypedValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.TypedValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.TypedValue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.migration.v2alpha.TypedValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.migration.v2alpha.TypedValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.TypedValue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.migration.v2alpha.TypedValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.migration.v2alpha.TypedValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.migration.v2alpha.TypedValue prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.migration.v2alpha.TypedValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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 single strongly-typed value.
    * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2alpha.TypedValue} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2alpha.TypedValue) com.google.cloud.bigquery.migration.v2alpha.TypedValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2alpha_TypedValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TypedValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2alpha_TypedValue_fieldAccessorTable + return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TypedValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.migration.v2alpha.TypedValue.class, com.google.cloud.bigquery.migration.v2alpha.TypedValue.Builder.class); + com.google.cloud.bigquery.migration.v2alpha.TypedValue.class, + com.google.cloud.bigquery.migration.v2alpha.TypedValue.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2alpha.TypedValue.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -576,9 +636,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto.internal_static_google_cloud_bigquery_migration_v2alpha_TypedValue_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.migration.v2alpha.MigrationMetricsProto + .internal_static_google_cloud_bigquery_migration_v2alpha_TypedValue_descriptor; } @java.lang.Override @@ -597,8 +657,11 @@ public com.google.cloud.bigquery.migration.v2alpha.TypedValue build() { @java.lang.Override public com.google.cloud.bigquery.migration.v2alpha.TypedValue buildPartial() { - com.google.cloud.bigquery.migration.v2alpha.TypedValue result = new com.google.cloud.bigquery.migration.v2alpha.TypedValue(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.migration.v2alpha.TypedValue result = + new com.google.cloud.bigquery.migration.v2alpha.TypedValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -611,8 +674,7 @@ private void buildPartial0(com.google.cloud.bigquery.migration.v2alpha.TypedValu private void buildPartialOneofs(com.google.cloud.bigquery.migration.v2alpha.TypedValue result) { result.valueCase_ = valueCase_; result.value_ = this.value_; - if (valueCase_ == 5 && - distributionValueBuilder_ != null) { + if (valueCase_ == 5 && distributionValueBuilder_ != null) { result.value_ = distributionValueBuilder_.build(); } } @@ -621,38 +683,39 @@ private void buildPartialOneofs(com.google.cloud.bigquery.migration.v2alpha.Type public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2alpha.TypedValue) { - return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.TypedValue)other); + return mergeFrom((com.google.cloud.bigquery.migration.v2alpha.TypedValue) other); } else { super.mergeFrom(other); return this; @@ -660,33 +723,40 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2alpha.TypedValue other) { - if (other == com.google.cloud.bigquery.migration.v2alpha.TypedValue.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.migration.v2alpha.TypedValue.getDefaultInstance()) + return this; switch (other.getValueCase()) { - case BOOL_VALUE: { - setBoolValue(other.getBoolValue()); - break; - } - case INT64_VALUE: { - setInt64Value(other.getInt64Value()); - break; - } - case DOUBLE_VALUE: { - setDoubleValue(other.getDoubleValue()); - break; - } - case STRING_VALUE: { - valueCase_ = 4; - value_ = other.value_; - onChanged(); - break; - } - case DISTRIBUTION_VALUE: { - mergeDistributionValue(other.getDistributionValue()); - break; - } - case VALUE_NOT_SET: { - break; - } + case BOOL_VALUE: + { + setBoolValue(other.getBoolValue()); + break; + } + case INT64_VALUE: + { + setInt64Value(other.getInt64Value()); + break; + } + case DOUBLE_VALUE: + { + setDoubleValue(other.getDoubleValue()); + break; + } + case STRING_VALUE: + { + valueCase_ = 4; + value_ = other.value_; + onChanged(); + break; + } + case DISTRIBUTION_VALUE: + { + mergeDistributionValue(other.getDistributionValue()); + break; + } + case VALUE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -714,40 +784,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - value_ = input.readBool(); - valueCase_ = 1; - break; - } // case 8 - case 16: { - value_ = input.readInt64(); - valueCase_ = 2; - break; - } // case 16 - case 25: { - value_ = input.readDouble(); - valueCase_ = 3; - break; - } // case 25 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - valueCase_ = 4; - value_ = s; - break; - } // case 34 - case 42: { - input.readMessage( - getDistributionValueFieldBuilder().getBuilder(), - extensionRegistry); - valueCase_ = 5; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + value_ = input.readBool(); + valueCase_ = 1; + break; + } // case 8 + case 16: + { + value_ = input.readInt64(); + valueCase_ = 2; + break; + } // case 16 + case 25: + { + value_ = input.readDouble(); + valueCase_ = 3; + break; + } // case 25 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + valueCase_ = 4; + value_ = s; + break; + } // case 34 + case 42: + { + input.readMessage( + getDistributionValueFieldBuilder().getBuilder(), extensionRegistry); + valueCase_ = 5; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -757,12 +832,12 @@ public Builder mergeFrom( } // finally return this; } + private int valueCase_ = 0; private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); } public Builder clearValue() { @@ -775,22 +850,28 @@ public Builder clearValue() { private int bitField0_; /** + * + * *
      * A Boolean value: `true` or `false`.
      * 
* * bool bool_value = 1; + * * @return Whether the boolValue field is set. */ public boolean hasBoolValue() { return valueCase_ == 1; } /** + * + * *
      * A Boolean value: `true` or `false`.
      * 
* * bool bool_value = 1; + * * @return The boolValue. */ public boolean getBoolValue() { @@ -800,27 +881,33 @@ public boolean getBoolValue() { return false; } /** + * + * *
      * A Boolean value: `true` or `false`.
      * 
* * bool bool_value = 1; + * * @param value The boolValue to set. * @return This builder for chaining. */ public Builder setBoolValue(boolean value) { - + valueCase_ = 1; value_ = value; onChanged(); return this; } /** + * + * *
      * A Boolean value: `true` or `false`.
      * 
* * bool bool_value = 1; + * * @return This builder for chaining. */ public Builder clearBoolValue() { @@ -833,22 +920,28 @@ public Builder clearBoolValue() { } /** + * + * *
      * A 64-bit integer. Its range is approximately +/-9.2x10^18.
      * 
* * int64 int64_value = 2; + * * @return Whether the int64Value field is set. */ public boolean hasInt64Value() { return valueCase_ == 2; } /** + * + * *
      * A 64-bit integer. Its range is approximately +/-9.2x10^18.
      * 
* * int64 int64_value = 2; + * * @return The int64Value. */ public long getInt64Value() { @@ -858,27 +951,33 @@ public long getInt64Value() { return 0L; } /** + * + * *
      * A 64-bit integer. Its range is approximately +/-9.2x10^18.
      * 
* * int64 int64_value = 2; + * * @param value The int64Value to set. * @return This builder for chaining. */ public Builder setInt64Value(long value) { - + valueCase_ = 2; value_ = value; onChanged(); return this; } /** + * + * *
      * A 64-bit integer. Its range is approximately +/-9.2x10^18.
      * 
* * int64 int64_value = 2; + * * @return This builder for chaining. */ public Builder clearInt64Value() { @@ -891,6 +990,8 @@ public Builder clearInt64Value() { } /** + * + * *
      * A 64-bit double-precision floating-point number. Its magnitude
      * is approximately +/-10^(+/-300) and it has 16 significant digits of
@@ -898,12 +999,15 @@ public Builder clearInt64Value() {
      * 
* * double double_value = 3; + * * @return Whether the doubleValue field is set. */ public boolean hasDoubleValue() { return valueCase_ == 3; } /** + * + * *
      * A 64-bit double-precision floating-point number. Its magnitude
      * is approximately +/-10^(+/-300) and it has 16 significant digits of
@@ -911,6 +1015,7 @@ public boolean hasDoubleValue() {
      * 
* * double double_value = 3; + * * @return The doubleValue. */ public double getDoubleValue() { @@ -920,6 +1025,8 @@ public double getDoubleValue() { return 0D; } /** + * + * *
      * A 64-bit double-precision floating-point number. Its magnitude
      * is approximately +/-10^(+/-300) and it has 16 significant digits of
@@ -927,17 +1034,20 @@ public double getDoubleValue() {
      * 
* * double double_value = 3; + * * @param value The doubleValue to set. * @return This builder for chaining. */ public Builder setDoubleValue(double value) { - + valueCase_ = 3; value_ = value; onChanged(); return this; } /** + * + * *
      * A 64-bit double-precision floating-point number. Its magnitude
      * is approximately +/-10^(+/-300) and it has 16 significant digits of
@@ -945,6 +1055,7 @@ public Builder setDoubleValue(double value) {
      * 
* * double double_value = 3; + * * @return This builder for chaining. */ public Builder clearDoubleValue() { @@ -957,11 +1068,14 @@ public Builder clearDoubleValue() { } /** + * + * *
      * A variable-length string value.
      * 
* * string string_value = 4; + * * @return Whether the stringValue field is set. */ @java.lang.Override @@ -969,11 +1083,14 @@ public boolean hasStringValue() { return valueCase_ == 4; } /** + * + * *
      * A variable-length string value.
      * 
* * string string_value = 4; + * * @return The stringValue. */ @java.lang.Override @@ -983,8 +1100,7 @@ public java.lang.String getStringValue() { 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(); if (valueCase_ == 4) { value_ = s; @@ -995,24 +1111,25 @@ public java.lang.String getStringValue() { } } /** + * + * *
      * A variable-length string value.
      * 
* * string string_value = 4; + * * @return The bytes for stringValue. */ @java.lang.Override - public com.google.protobuf.ByteString - getStringValueBytes() { + public com.google.protobuf.ByteString getStringValueBytes() { java.lang.Object ref = ""; if (valueCase_ == 4) { 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); if (valueCase_ == 4) { value_ = b; } @@ -1022,28 +1139,35 @@ public java.lang.String getStringValue() { } } /** + * + * *
      * A variable-length string value.
      * 
* * string string_value = 4; + * * @param value The stringValue to set. * @return This builder for chaining. */ - public Builder setStringValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStringValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } valueCase_ = 4; value_ = value; onChanged(); return this; } /** + * + * *
      * A variable-length string value.
      * 
* * string string_value = 4; + * * @return This builder for chaining. */ public Builder clearStringValue() { @@ -1055,17 +1179,21 @@ public Builder clearStringValue() { return this; } /** + * + * *
      * A variable-length string value.
      * 
* * string string_value = 4; + * * @param value The bytes for stringValue to set. * @return This builder for chaining. */ - public Builder setStringValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStringValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); valueCase_ = 4; value_ = value; @@ -1074,13 +1202,19 @@ public Builder setStringValueBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.Distribution, com.google.api.Distribution.Builder, com.google.api.DistributionOrBuilder> distributionValueBuilder_; + com.google.api.Distribution, + com.google.api.Distribution.Builder, + com.google.api.DistributionOrBuilder> + distributionValueBuilder_; /** + * + * *
      * A distribution value.
      * 
* * .google.api.Distribution distribution_value = 5; + * * @return Whether the distributionValue field is set. */ @java.lang.Override @@ -1088,11 +1222,14 @@ public boolean hasDistributionValue() { return valueCase_ == 5; } /** + * + * *
      * A distribution value.
      * 
* * .google.api.Distribution distribution_value = 5; + * * @return The distributionValue. */ @java.lang.Override @@ -1110,6 +1247,8 @@ public com.google.api.Distribution getDistributionValue() { } } /** + * + * *
      * A distribution value.
      * 
@@ -1130,14 +1269,15 @@ public Builder setDistributionValue(com.google.api.Distribution value) { return this; } /** + * + * *
      * A distribution value.
      * 
* * .google.api.Distribution distribution_value = 5; */ - public Builder setDistributionValue( - com.google.api.Distribution.Builder builderForValue) { + public Builder setDistributionValue(com.google.api.Distribution.Builder builderForValue) { if (distributionValueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); @@ -1148,6 +1288,8 @@ public Builder setDistributionValue( return this; } /** + * + * *
      * A distribution value.
      * 
@@ -1156,10 +1298,11 @@ public Builder setDistributionValue( */ public Builder mergeDistributionValue(com.google.api.Distribution value) { if (distributionValueBuilder_ == null) { - if (valueCase_ == 5 && - value_ != com.google.api.Distribution.getDefaultInstance()) { - value_ = com.google.api.Distribution.newBuilder((com.google.api.Distribution) value_) - .mergeFrom(value).buildPartial(); + if (valueCase_ == 5 && value_ != com.google.api.Distribution.getDefaultInstance()) { + value_ = + com.google.api.Distribution.newBuilder((com.google.api.Distribution) value_) + .mergeFrom(value) + .buildPartial(); } else { value_ = value; } @@ -1175,6 +1318,8 @@ public Builder mergeDistributionValue(com.google.api.Distribution value) { return this; } /** + * + * *
      * A distribution value.
      * 
@@ -1198,6 +1343,8 @@ public Builder clearDistributionValue() { return this; } /** + * + * *
      * A distribution value.
      * 
@@ -1208,6 +1355,8 @@ public com.google.api.Distribution.Builder getDistributionValueBuilder() { return getDistributionValueFieldBuilder().getBuilder(); } /** + * + * *
      * A distribution value.
      * 
@@ -1226,6 +1375,8 @@ public com.google.api.DistributionOrBuilder getDistributionValueOrBuilder() { } } /** + * + * *
      * A distribution value.
      * 
@@ -1233,26 +1384,29 @@ public com.google.api.DistributionOrBuilder getDistributionValueOrBuilder() { * .google.api.Distribution distribution_value = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.Distribution, com.google.api.Distribution.Builder, com.google.api.DistributionOrBuilder> + com.google.api.Distribution, + com.google.api.Distribution.Builder, + com.google.api.DistributionOrBuilder> getDistributionValueFieldBuilder() { if (distributionValueBuilder_ == null) { if (!(valueCase_ == 5)) { value_ = com.google.api.Distribution.getDefaultInstance(); } - distributionValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.api.Distribution, com.google.api.Distribution.Builder, com.google.api.DistributionOrBuilder>( - (com.google.api.Distribution) value_, - getParentForChildren(), - isClean()); + distributionValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.Distribution, + com.google.api.Distribution.Builder, + com.google.api.DistributionOrBuilder>( + (com.google.api.Distribution) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 5; onChanged(); return distributionValueBuilder_; } + @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); } @@ -1262,12 +1416,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2alpha.TypedValue) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2alpha.TypedValue) private static final com.google.cloud.bigquery.migration.v2alpha.TypedValue DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2alpha.TypedValue(); } @@ -1276,27 +1430,27 @@ public static com.google.cloud.bigquery.migration.v2alpha.TypedValue getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TypedValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TypedValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1311,6 +1465,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.migration.v2alpha.TypedValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TypedValueOrBuilder.java b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TypedValueOrBuilder.java similarity index 77% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TypedValueOrBuilder.java rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TypedValueOrBuilder.java index faf74ab..656d1f7 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TypedValueOrBuilder.java +++ b/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/TypedValueOrBuilder.java @@ -1,51 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/migration/v2alpha/migration_metrics.proto package com.google.cloud.bigquery.migration.v2alpha; -public interface TypedValueOrBuilder extends +public interface TypedValueOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2alpha.TypedValue) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A Boolean value: `true` or `false`.
    * 
* * bool bool_value = 1; + * * @return Whether the boolValue field is set. */ boolean hasBoolValue(); /** + * + * *
    * A Boolean value: `true` or `false`.
    * 
* * bool bool_value = 1; + * * @return The boolValue. */ boolean getBoolValue(); /** + * + * *
    * A 64-bit integer. Its range is approximately +/-9.2x10^18.
    * 
* * int64 int64_value = 2; + * * @return Whether the int64Value field is set. */ boolean hasInt64Value(); /** + * + * *
    * A 64-bit integer. Its range is approximately +/-9.2x10^18.
    * 
* * int64 int64_value = 2; + * * @return The int64Value. */ long getInt64Value(); /** + * + * *
    * A 64-bit double-precision floating-point number. Its magnitude
    * is approximately +/-10^(+/-300) and it has 16 significant digits of
@@ -53,10 +83,13 @@ public interface TypedValueOrBuilder extends
    * 
* * double double_value = 3; + * * @return Whether the doubleValue field is set. */ boolean hasDoubleValue(); /** + * + * *
    * A 64-bit double-precision floating-point number. Its magnitude
    * is approximately +/-10^(+/-300) and it has 16 significant digits of
@@ -64,58 +97,75 @@ public interface TypedValueOrBuilder extends
    * 
* * double double_value = 3; + * * @return The doubleValue. */ double getDoubleValue(); /** + * + * *
    * A variable-length string value.
    * 
* * string string_value = 4; + * * @return Whether the stringValue field is set. */ boolean hasStringValue(); /** + * + * *
    * A variable-length string value.
    * 
* * string string_value = 4; + * * @return The stringValue. */ java.lang.String getStringValue(); /** + * + * *
    * A variable-length string value.
    * 
* * string string_value = 4; + * * @return The bytes for stringValue. */ - com.google.protobuf.ByteString - getStringValueBytes(); + com.google.protobuf.ByteString getStringValueBytes(); /** + * + * *
    * A distribution value.
    * 
* * .google.api.Distribution distribution_value = 5; + * * @return Whether the distributionValue field is set. */ boolean hasDistributionValue(); /** + * + * *
    * A distribution value.
    * 
* * .google.api.Distribution distribution_value = 5; + * * @return The distributionValue. */ com.google.api.Distribution getDistributionValue(); /** + * + * *
    * A distribution value.
    * 
diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/assessment_task.proto b/proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/assessment_task.proto similarity index 100% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/assessment_task.proto rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/assessment_task.proto diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/migration_entities.proto b/proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/migration_entities.proto similarity index 100% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/migration_entities.proto rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/migration_entities.proto diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/migration_error_details.proto b/proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/migration_error_details.proto similarity index 100% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/migration_error_details.proto rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/migration_error_details.proto diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/migration_metrics.proto b/proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/migration_metrics.proto similarity index 100% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/migration_metrics.proto rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/migration_metrics.proto diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/migration_service.proto b/proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/migration_service.proto similarity index 100% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/migration_service.proto rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/migration_service.proto diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/translation_service.proto b/proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/translation_service.proto similarity index 100% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/translation_service.proto rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/translation_service.proto diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/translation_task.proto b/proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/translation_task.proto similarity index 100% rename from owl-bot-staging/v2alpha/proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/translation_task.proto rename to proto-google-cloud-bigquerymigration-v2alpha/src/main/proto/google/cloud/bigquery/migration/v2alpha/translation_task.proto